1/*! For license information please see main.702eb3ae.js.LICENSE.txt */ 2(()=>{var e={21381:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(41594),i=n.n(r),o=n(7219),a=n(26380),s=n(754),c=n(52889),l=n(5316),u=n(48738),d=n.n(u),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n},f=function(e){function t(){return(0,a.A)(this,t),(0,c.A)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,l.A)(t,e),(0,s.A)(t,[{key:"shouldComponentUpdate",value:function(e){return e.shouldUpdate}},{key:"render",value:function(){return i().createElement("div",null,this.props.render())}}]),t}(i().Component);var p="undefined"!==typeof navigator&&/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),g="down",y="up",m={activate:"release",deactivate:"pull",release:"loading",finish:"finish"},v=!1;try{var b=Object.defineProperty({},"passive",{get:function(){v=!0}});window.addEventListener("test",null,b)}catch(_){}var w=!!v&&{passive:!1},x=function(e){function t(){(0,a.A)(this,t);var e=(0,c.A)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={currSt:"deactivate",dragOnEdge:!1},e._isMounted=!1,e.shouldUpdateChildren=!1,e.triggerPullToRefresh=function(){!e.state.dragOnEdge&&e._isMounted&&(e.props.refreshing?(e.props.direction===y&&(e._lastScreenY=-e.props.distanceToRefresh-1),e.props.direction===g&&(e._lastScreenY=e.props.distanceToRefresh+1),e.setState({currSt:"release"},(function(){return e.setContentStyle(e._lastScreenY)}))):e.setState({currSt:"finish"},(function(){return e.reset()})))},e.init=function(t){t&&(e._to={touchstart:e.onTouchStart.bind(e,t),touchmove:e.onTouchMove.bind(e,t),touchend:e.onTouchEnd.bind(e,t),touchcancel:e.onTouchEnd.bind(e,t)},Object.keys(e._to).forEach((function(n){t.addEventListener(n,e._to[n],w)})))},e.destroy=function(t){e._to&&t&&Object.keys(e._to).forEach((function(n){t.removeEventListener(n,e._to[n])}))},e.onTouchStart=function(t,n){e._ScreenY=e._startScreenY=n.touches[0].screenY,e._startScreenX=n.touches[0].screenX,e._lastScreenY=e._lastScreenY||0},e.isEdge=function(t,n){var r=e.props.getScrollContainer();if(r&&r===document.body){var i=document.scrollingElement?document.scrollingElement:document.body;if(n===y)return i.scrollHeight-i.scrollTop<=window.innerHeight;if(n===g)return i.scrollTop<=0}return n===y?t.scrollHeight-t.scrollTop===t.clientHeight:n===g?t.scrollTop<=0:void 0},e.damping=function(t){return Math.abs(e._lastScreenY)>e.props.damping?0:t*=(1-Math.abs(e._ScreenY-e._startScreenY)/window.screen.height)*e.props.scale},e.onTouchMove=function(t,n){var r=n.touches[0].screenY,i=n.touches[0].screenX,o=e.props.direction;if(!(Math.abs(i-e._startScreenX)>20*window.devicePixelRatio)&&!(o===y&&e._startScreenY<r||o===g&&e._startScreenY>r)&&e.isEdge(t,o)){e.state.dragOnEdge||(e._ScreenY=e._startScreenY=n.touches[0].screenY,e.setState({dragOnEdge:!0})),n.preventDefault();var a=Math.round(r-e._ScreenY);e._ScreenY=r,e._lastScreenY+=e.damping(a),e.setContentStyle(e._lastScreenY),Math.abs(e._lastScreenY)<e.props.distanceToRefresh?"deactivate"!==e.state.currSt&&e.setState({currSt:"deactivate"}):"deactivate"===e.state.currSt&&e.setState({currSt:"activate"}),p&&n.changedTouches[0].clientY<0&&e.onTouchEnd()}},e.onTouchEnd=function(){e.state.dragOnEdge&&e.setState({dragOnEdge:!1}),"activate"===e.state.currSt?(e.setState({currSt:"release"}),e._timer=setTimeout((function(){e.props.refreshing||e.setState({currSt:"finish"},(function(){return e.reset()})),e._timer=void 0}),1e3),e.props.onRefresh()):e.reset()},e.reset=function(){e._lastScreenY=0,e.setContentStyle(0)},e.setContentStyle=function(t){var n,r;e.contentRef&&(n=e.contentRef.style,r="translate3d(0px,"+t+"px,0)",n.transform=r,n.webkitTransform=r,n.MozTransform=r)},e}return(0,l.A)(t,e),(0,s.A)(t,[{key:"shouldComponentUpdate",value:function(e){return this.shouldUpdateChildren=this.props.children!==e.children,!0}},{key:"componentDidUpdate",value:function(e){e!==this.props&&e.refreshing!==this.props.refreshing&&this.triggerPullToRefresh()}},{key:"componentDidMount",value:function(){var e=this;
2setTimeout((function(){e.init(e.props.getScrollContainer()||e.containerRef),e.triggerPullToRefresh(),e._isMounted=!0}))}},{key:"componentWillUnmount",value:function(){this.destroy(this.props.getScrollContainer()||this.containerRef)}},{key:"render",value:function(){var e=this,t=(0,o.A)({},this.props);delete t.damping;var n=t.className,r=t.prefixCls,a=t.children,s=t.getScrollContainer,c=t.direction,l=(t.onRefresh,t.refreshing,t.indicator),u=(t.distanceToRefresh,h(t,["className","prefixCls","children","getScrollContainer","direction","onRefresh","refreshing","indicator","distanceToRefresh"])),p=i().createElement(f,{shouldUpdate:this.shouldUpdateChildren,render:function(){return a}}),v=function(t){var n=d()(t,!e.state.dragOnEdge&&r+"-transition");return i().createElement("div",{className:r+"-content-wrapper"},i().createElement("div",{className:n,ref:function(t){return e.contentRef=t}},c===y?p:null,i().createElement("div",{className:r+"-indicator"},l[e.state.currSt]||m[e.state.currSt]),c===g?p:null))};return s()?v(r+"-content "+r+"-"+c):i().createElement("div",(0,o.A)({ref:function(t){return e.containerRef=t},className:d()(n,r,r+"-"+c)},u),v(r+"-content"))}}]),t}(i().Component);const S=x;x.defaultProps={prefixCls:"rmc-pull-to-refresh",getScrollContainer:function(){},direction:g,distanceToRefresh:25,damping:100,indicator:m,scale:.6};const A=S;var k=n(44414);const O=e=>(0,k.jsx)(A,{...e,prefixCls:"oak-pull-to-refresh"})},24725:(e,t,n)=>{"use strict";n.d(t,{hf:()=>c,OH:()=>r.O,Jr:()=>l});n(69093),n(21381);var r=n(715),i=n(41594),o=n.n(i),a=n(44414);const s=o().createContext({features:{}}),c=e=>{let{features:t,children:n}=e;return(0,a.jsx)(s.Provider,{value:{features:t},children:n})},l=()=>{const{features:e}=(0,i.useContext)(s);return e}},715:(e,t,n)=>{"use strict";n.d(t,{O:()=>a,u:()=>c});var r=n(41594);const i={keys:["xs","sm","md","lg","xl","xxl"],values:{xs:576,sm:576,md:768,lg:992,xl:1200,xxl:1600}},o=n.n(r)().createContext({breakpoints:i});function a(e){const{breakpoints:t,children:n}=e,i=(0,r.useMemo)((()=>({breakpoints:t})),[t]);return(0,r.createElement)(o.Provider,{value:i},n)}var s=n(70446);function c(e){const{breakpoints:t}=(0,r.useContext)(o)||{},{breakpoints:n}=e||{},a=Object.assign(i,n,t).values,c=a.sm,l=a.md,u=a.lg,d=a.xl,h=a.xxl,f=(0,s.useMediaQuery)({minWidth:h}),p=(0,s.useMediaQuery)({minWidth:d}),g=(0,s.useMediaQuery)({minWidth:u}),y=(0,s.useMediaQuery)({minWidth:l}),m=(0,s.useMediaQuery)({minWidth:c});return f?"xxl":p?"xl":g?"lg":y?"md":m?"sm":"xs"}},69093:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(41594),i=n.n(r),o=n(86976),a=n(715),s=n(13095),c=n(44414);function l(e,t){const{search:n,state:r}=e,i=function(e,t){if(!e)return;const n=new URLSearchParams(e||""),r={};for(const i of n.keys())if(t&&t.hasOwnProperty(i))switch(typeof t[i]){case"number":Object.assign(r,{[i]:Number(n.get(i))});break;case"boolean":Object.assign(r,{[i]:"true"===n.get(i)});break;case"object":Object.assign(r,{[i]:JSON.parse(n.get(i))});break;default:(0,s.v)("string"===typeof t[i],"\u4f20\u53c2\u53ea\u80fd\u662fnumber/boolean/object/string\u56db\u79cd\u7c7b\u578b"),Object.assign(r,{[i]:n.get(i)})}else if("oakDisablePulldownRefresh"===i)Object.assign(r,{[i]:Boolean(n.get(i))});else Object.assign(r,{[i]:n.get(i)});return r}(n,t);return Object.assign({},i,r)}const u=(e,t)=>{let{path:n,properties:r}=t;const s=t=>{const i=(0,o.zy)(),s=(0,o.g)(),u=(0,a.u)(),{forwardedRef:d,...h}=t;let f={},p=!1;return n&&(f=Object.assign(f,l(i,r),s),p=!0),(0,c.jsx)(e,{...h,...f,width:u,ref:d,routeMatch:p})};return i().forwardRef(((e,t)=>(0,c.jsx)(s,{...e,forwardedRef:t})))}},57323:(e,t,n)=>{"use strict";var r;n.d(t,{Z:()=>r}),function(e){e.forbidden="403",e.notFound="404",e.error="500",e.networkError="network-error",e.browserIncompatible="browser-incompatible",e.maintenance="maintenance",e.pageCrash="pageCrash",e.pageUpdate="pageUpdate",e.pageDataCacheFailure="pageDataCacheFailure"}(r||(r={}))},79519:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>r});const r={http:{hostname:window.location.hostname,ssl:!0,path:"oak-api"},timeout:3e4}},49315:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(24725);function i(){return(0,r.Jr)()}},92956:(e,t,n)=>{Object.assign(n.g,{fetch:fetch,getRandomValues:async function(e){if(e>65536)throw new Error("Can only request a maximum of 65536 bytes");const t=window.crypto.getRandomValues(new Uint8Array(e));return new Uint8Array(t)}})}
2,36889:(e,t,n)=>{"use strict";n.d(t,{z1:()=>I,cM:()=>v,UA:()=>P,uy:()=>b});var r=n(52226),i=n(30372),o=2,a=.16,s=.05,c=.05,l=.15,u=5,d=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 f(e){var t=e.r,n=e.g,i=e.b,o=(0,r.wE)(t,n,i);return{h:360*o.h,s:o.s,v:o.v}}function p(e){var t=e.r,n=e.g,i=e.b;return"#".concat((0,r.Ob)(t,n,i,!1))}function g(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-o*t:Math.round(e.h)+o*t:n?Math.round(e.h)+o*t:Math.round(e.h)-o*t)<0?r+=360:r>=360&&(r-=360),r}function y(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-a*t:t===d?e.s+a:e.s+s*t)>1&&(r=1),n&&t===u&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function m(e,t,n){var r;return(r=n?e.v+c*t:e.v-l*t)>1&&(r=1),Number(r.toFixed(2))}function v(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,i.RO)(e),o=u;o>0;o-=1){var a=f(r),s=p((0,i.RO)({h:g(a,o,!0),s:y(a,o,!0),v:m(a,o,!0)}));n.push(s)}n.push(p(r));for(var c=1;c<=d;c+=1){var l=f(r),v=p((0,i.RO)({h:g(l,c),s:y(l,c),v:m(l,c)}));n.push(v)}return"dark"===t.theme?h.map((function(e){var r=e.index,o=e.opacity;return p(function(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}((0,i.RO)(t.backgroundColor||"#141414"),(0,i.RO)(n[r]),100*o))})):n}var b={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"},w=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];w.primary=w[5];var x=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];x.primary=x[5];var S=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];S.primary=S[5];var A=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];A.primary=A[5];var k=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];k.primary=k[5];var O=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];O.primary=O[5];var _=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];_.primary=_[5];var E=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];E.primary=E[5];var I=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];I.primary=I[5];var j=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];j.primary=j[5];var $=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];$.primary=$[5];var T=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];T.primary=T[5];var C=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];C.primary=C[5];var P={red:w,volcano:x,orange:S,gold:A,yellow:k,lime:O,green:_,cyan:E,blue:I,geekblue:j,purple:$,magenta:T,grey:C},R=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];R.primary=R[5];var N=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];N.primary=N[5];var M=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];M.primary=M[5];var F=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];F.primary=F[5];var D=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];D.primary=D[5];var L=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];L.primary=L[5];var B=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];B.primary=B[5];var U=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];U.primary=U[5];var W=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3
2c89e8","#65a9f3","#8dc5f8","#b7dcfa"];W.primary=W[5];var H=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];H.primary=H[5];var z=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];z.primary=z[5];var q=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];q.primary=q[5];var V=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];V.primary=V[5]},77261:(e,t,n)=>{"use strict";n.d(t,{L_:()=>N,oX:()=>_});var r=n(82284),i=n(5544),o=n(64467),a=n(89379),s=n(41594),c=n.n(s),l=n(47864),u=n(23029),d=n(92901),h=n(9417),f=n(85501),p=n(49640);const g=(0,d.A)((function e(){(0,u.A)(this,e)}));var y="CALC_UNIT",m=new RegExp(y,"g");function v(e){return"number"===typeof e?"".concat(e).concat(y):e}var b=function(e){(0,f.A)(n,e);var t=(0,p.A)(n);function n(e,i){var a;(0,u.A)(this,n),a=t.call(this),(0,o.A)((0,h.A)(a),"result",""),(0,o.A)((0,h.A)(a),"unitlessCssVar",void 0),(0,o.A)((0,h.A)(a),"lowPriority",void 0);var s=(0,r.A)(e);return a.unitlessCssVar=i,e instanceof n?a.result="(".concat(e.result,")"):"number"===s?a.result=v(e):"string"===s&&(a.result=e),a}return(0,d.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," + ").concat(v(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," - ").concat(v(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"===typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(m,r?"px":""),"undefined"!==typeof this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(g);const w=function(e){(0,f.A)(n,e);var t=(0,p.A)(n);function n(e){var r;return(0,u.A)(this,n),r=t.call(this),(0,o.A)((0,h.A)(r),"result",0),e instanceof n?r.result=e.result:"number"===typeof e&&(r.result=e),r}return(0,d.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"===typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"===typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"===typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"===typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(g);const x=function(e,t){var n="css"===e?b:w;return function(e){return new n(e,t)}};const S=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};n(14996);const A=function(e,t,n,r){var o=(0,a.A)({},t[e]);null!==r&&void 0!==r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(e){var t,n=(0,i.A)(e,2),r=n[0],a=n[1];(null!==o&&void 0!==o&&o[r]||null!==o&&void 0!==o&&o[a])&&(null!==(t=o[a])&&void 0!==t||(o[a]=null===o||void 0===o?void 0:o[r]))}));var s=(0,a.A)((0,a.A)({},n),o);
2return Object.keys(s).forEach((function(e){s[e]===t[e]&&delete s[e]})),s};var k="undefined"!==typeof CSSINJS_STATISTIC,O=!0;function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!k)return Object.assign.apply(Object,[{}].concat(t));O=!1;var i={};return t.forEach((function(e){"object"===(0,r.A)(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),O=!0,i}var E={};function I(){}const j=function(e){var t,n=e,r=I;return k&&"undefined"!==typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;O&&(null===(r=t)||void 0===r||r.add(n));return e[n]}}),r=function(e,n){var r;E[e]={global:Array.from(t),component:(0,a.A)((0,a.A)({},null===(r=E[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}};const $=function(e,t,n){var r;return"function"===typeof n?n(_(t,null!==(r=t[e])&&void 0!==r?r:{})):null!==n&&void 0!==n?n:{}};const T=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return(0,l.zA)(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((function(e){return(0,l.zA)(e)})).join(","),")")}}};var C=new(function(){function e(){(0,u.A)(this,e),(0,o.A)(this,"map",new Map),(0,o.A)(this,"objectIDMap",new WeakMap),(0,o.A)(this,"nextID",0),(0,o.A)(this,"lastAccessBeat",new Map),(0,o.A)(this,"accessBeat",0)}return(0,d.A)(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===(0,r.A)(e)?"obj_".concat(t.getObjectID(e)):"".concat((0,r.A)(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}());const P=function(e,t){return c().useMemo((function(){var n=C.get(t);if(n)return n;var r=e();return C.set(t,r),r}),t)};const R=function(){return{}};const N=function(e){var t=e.useCSP,n=void 0===t?R:t,s=e.useToken,u=e.usePrefix,d=e.getResetStyles,h=e.getCommonStyle,f=e.getCompUnitless;function p(t,o,c){var f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},p=Array.isArray(t)?t:[t,t],g=(0,i.A)(p,1)[0],y=p.join("-"),m=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=s(),p=i.theme,v=i.realToken,b=i.hashId,w=i.token,k=i.cssVar,O=u(),E=O.rootPrefixCls,I=O.iconPrefixCls,C=n(),R=k?"css":"js",N=P((function(){var e=new Set;return k&&Object.keys(f.unitless||{}).forEach((function(t){e.add((0,l.Ki)(t,k.prefix)),e.add((0,l.Ki)(t,S(g,k.prefix)))}
2)),x(R,e)}),[R,g,null===k||void 0===k?void 0:k.prefix]),M=T(R),F=M.max,D=M.min,L={theme:p,token:w,hashId:b,nonce:function(){return C.nonce},clientOnly:f.clientOnly,layer:m,order:f.order||-999};return(0,l.IV)((0,a.A)((0,a.A)({},L),{},{clientOnly:!1,path:["Shared",E]}),(function(){return"function"===typeof d?d(w):[]})),[(0,l.IV)((0,a.A)((0,a.A)({},L),{},{path:[y,e,I]}),(function(){if(!1===f.injectStyle)return[];var n=j(w),i=n.token,a=n.flush,s=$(g,v,c),u=".".concat(e),d=A(g,v,s,{deprecatedTokens:f.deprecatedTokens});k&&s&&"object"===(0,r.A)(s)&&Object.keys(s).forEach((function(e){s[e]="var(".concat((0,l.Ki)(e,S(g,k.prefix)),")")}));var p=_(i,{componentCls:u,prefixCls:e,iconCls:".".concat(I),antCls:".".concat(E),calc:N,max:F,min:D},k?s:d),y=o(p,{hashId:b,prefixCls:e,rootPrefixCls:E,iconPrefixCls:I});a(g,d);var m="function"===typeof h?h(p,e,t,f.resetFont):null;return[!1===f.resetStyle?null:m,y]})),b]}}return{genStyleHooks:function(e,t,n,r){var u=Array.isArray(e)?e[0]:e;function d(e){return"".concat(String(u)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var h=(null===r||void 0===r?void 0:r.unitless)||{},g="function"===typeof f?f(e):{},y=(0,a.A)((0,a.A)({},g),{},(0,o.A)({},d("zIndexPopup"),!0));Object.keys(h).forEach((function(e){y[d(e)]=h[e]}));var m=(0,a.A)((0,a.A)({},r),{},{unitless:y,prefixToken:d}),v=p(e,t,n,m),b=function(e,t,n){var r=n.unitless,i=n.injectStyle,o=void 0===i||i,a=n.prefixToken,u=n.ignore,d=function(i){var o=i.rootCls,c=i.cssVar,d=void 0===c?{}:c,h=s().realToken;return(0,l.RC)({path:[e],prefix:d.prefix,key:d.key,unitless:r,ignore:u,token:h,scope:o},(function(){var r=$(e,h,t),i=A(e,h,r,{deprecatedTokens:null===n||void 0===n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((function(e){i[a(e)]=i[e],delete i[e]})),i})),null},h=function(t){var n=s().cssVar;return[function(r){return o&&n?c().createElement(c().Fragment,null,c().createElement(d,{rootCls:t,cssVar:n,component:e}),r):r},null===n||void 0===n?void 0:n.key]};return h}(u,n,m);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=v(e,t),r=(0,i.A)(n,2)[1],o=b(t),a=(0,i.A)(o,2);return[a[0],r,a[1]]}},genSubStyleComponent:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=p(e,t,n,(0,a.A)({resetStyle:!1,order:-998},r));return function(e){var t=e.prefixCls,n=e.rootCls;return i(t,void 0===n?t:n),null}},genComponentStyleHook:p}}},47864:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>ft,N7:()=>k,an:()=>R,NZ:()=>mt,Ki:()=>H,zA:()=>U,RC:()=>dt,hV:()=>oe,IV:()=>lt});var r=n(64467),i=n(5544),o=n(60436),a=n(89379);const s=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var c=n(28619),l=n(41594),u=n(53986),d=n(86910),h=n(41216),f=n(23029),p=n(92901),g="%";function y(e){return e.join(g)}const m=function(){function e(t){(0,f.A)(this,e),(0,r.A)(this,"instanceId",void 0),(0,r.A)(this,"cache",new Map),this.instanceId=t}return(0,p.A)(e,[{key:"get",value:function(e){return this.opGet(y(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(y(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();var v=["children"],b="data-token-hash",w="data-css-hash",x="__cssinjs_instance__";function S(){var e=Math.random().toString(12).slice(2);if("undefined"!==typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(w,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[x]=t[x]||e,t[x]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(w,"]"))).forEac
2h((function(t){var n,i=t.getAttribute(w);r[i]?t[x]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[i]=!0}))}return new m(e)}var A=l.createContext({hashPriority:"low",cache:S(),defaultCache:!0}),k=function(e){var t=e.children,n=(0,u.A)(e,v),r=l.useContext(A),i=(0,d.A)((function(){var e=(0,a.A)({},r);Object.keys(n).forEach((function(t){var r=n[t];void 0!==n[t]&&(e[t]=r)}));var t=n.cache;return e.cache=e.cache||S(),e.defaultCache=!t&&r.defaultCache,e}),[r,n],(function(e,t){return!(0,h.A)(e[0],t[0],!0)||!(0,h.A)(e[1],t[1],!0)}));return l.createElement(A.Provider,{value:i},t)};const O=A;var _=n(82284),E=n(3888),I="CALC_UNIT";new RegExp(I,"g");var j=function(){function e(){(0,f.A)(this,e),(0,r.A)(this,"cache",void 0),(0,r.A)(this,"keys",void 0),(0,r.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,p.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return e.forEach((function(e){var t;i?i=null===(t=i)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):i=void 0})),null!==(t=i)&&void 0!==t&&t.value&&r&&(i.value[1]=this.cacheCallTimes++),null===(n=i)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=(0,i.A)(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),a=(0,i.A)(o,1)[0];this.delete(a)}this.keys.push(t)}var s=this.cache;t.forEach((function(e,i){if(i===t.length-1)s.set(e,{value:[n,r.cacheCallTimes++]});else{var o=s.get(e);o?o.map||(o.map=new Map):s.set(e,{map:new Map}),s=s.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var i=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),i}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();(0,r.A)(j,"MAX_CACHE_SIZE",20),(0,r.A)(j,"MAX_CACHE_OFFSET",5);var $=n(99424),T=0,C=function(){function e(t){(0,f.A)(this,e),(0,r.A)(this,"derivatives",void 0),(0,r.A)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=T,0===t.length&&(0,$.$e)(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),T+=1}return(0,p.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),P=new j;function R(e){var t=Array.isArray(e)?e:[e];return P.has(t)||P.set(t,new C(t)),P.get(t)}var N=new WeakMap,M={};var F=new WeakMap;function D(e){var t=F.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof C?t+=r.id:r&&"object"===(0,_.A)(r)?t+=D(r):t+=r})),t=s(t),F.set(e,t)),t}function L(e,t){return s("".concat(t,"_").concat(D(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var B=(0,E.A)();function U(e){return"number"===typeof e?"".concat(e,"px"):e}function W(e,t,n){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var s=(0,a.A)((0,a.A)({},o),{},(i={},(0,r.A)(i,b,t),(0,r.A)(i,w,n),i)),c=Object.keys(s).map((function(e){var t=s[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(c,">").concat(e,"</style>")}var H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},z=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!==n&&void 0!==n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,i.A)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},q=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,a,s=(0,i.A)(e,2),c=s[0],l=s[1];if(null!==n&&void 0!==n&&null!==(t=n.preserve)&&void 0!==t&&t[c])o[c]=l;else if(("string"===typeof l||"number"===typeof l)&&(null===n||void 0===n||null===(a=n.ignore)||void 0===a||!a[c])){var u,d=H(c,null===n||void 0===n?void 0:n.prefix);r[d]="number"!==typeof l||null!==n&&void 0!==n&&null!==(u=n.unitless)&&void 0!==u&&u[c]?String(l):"".concat(l,"px"),o[c]="var(".concat(d,")")}})),[o,z(r,t,{scope:null===n||void 0===n?void 0:n.scope})]},V=n(13511),G=(0,a.A)({},l).useInsertionEffect;const Y=G?function(e,t,n){return G((function(){return e(),t()}),n)}:function(e,t,n){l.useMemo(e,n),(0,V.A)((function(){return t(!0)}),n)};const K="undefined"!==typeof(0,a.A)({},l).useInsertionEffect?function(e){var t=[],n=!1;return l.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}
2),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};const X=function(){return!1};function J(e,t,n,r,a){var s=l.useContext(O).cache,c=y([e].concat((0,o.A)(t))),u=K([c]),d=(X(),function(e){s.opUpdate(c,(function(t){var r=t||[void 0,void 0],o=(0,i.A)(r,2),a=o[0];var s=[void 0===a?0:a,o[1]||n()];return e?e(s):s}))});l.useMemo((function(){d()}),[c]);var h=s.opGet(c)[1];return Y((function(){null===a||void 0===a||a(h)}),(function(e){return d((function(t){var n=(0,i.A)(t,2),r=n[0],o=n[1];return e&&0===r&&(null===a||void 0===a||a(h)),[r+1,o]})),function(){s.opUpdate(c,(function(t){var n=t||[],o=(0,i.A)(n,2),a=o[0],l=void 0===a?0:a,d=o[1];return 0===l-1?(u((function(){!e&&s.opGet(c)||null===r||void 0===r||r(d,!1)})),null):[l-1,d]}))}}),[c]),h}var Q={},Z="css",ee=new Map;var te=0;function ne(e,t){ee.set(e,(ee.get(e)||0)-1);var n=Array.from(ee.keys()),r=n.filter((function(e){return(ee.get(e)||0)<=0}));n.length-r.length>te&&r.forEach((function(e){!function(e,t){"undefined"!==typeof document&&document.querySelectorAll("style[".concat(b,'="').concat(e,'"]')).forEach((function(e){var n;e[x]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),ee.delete(e)}))}var re=function(e,t,n,r){var i=n.getDerivativeToken(e),o=(0,a.A)((0,a.A)({},i),t);return r&&(o=r(o)),o},ie="token";function oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,l.useContext)(O),u=r.cache.instanceId,d=r.container,h=n.salt,f=void 0===h?"":h,p=n.override,g=void 0===p?Q:p,y=n.formatToken,m=n.getComputedToken,v=n.cssVar,S=function(e,t){for(var n=N,r=0;r<t.length;r+=1){var i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(M)||n.set(M,e()),n.get(M)}((function(){return Object.assign.apply(Object,[{}].concat((0,o.A)(t)))}),t),A=D(S),k=D(g),_=v?D(v):"",E=J(ie,[f,e.id,A,k,_],(function(){var t,n=m?m(S,g,e):re(S,g,e,y),r=(0,a.A)({},n),o="";if(v){var c=q(n,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),l=(0,i.A)(c,2);n=l[0],o=l[1]}var u=L(n,f);n._tokenKey=u,r._tokenKey=L(r,f);var d=null!==(t=null===v||void 0===v?void 0:v.key)&&void 0!==t?t:u;n._themeKey=d,function(e){ee.set(e,(ee.get(e)||0)+1)}(d);var h="".concat(Z,"-").concat(s(u));return n._hashId=h,[n,h,r,o,(null===v||void 0===v?void 0:v.key)||""]}),(function(e){ne(e[0]._themeKey,u)}),(function(e){var t=(0,i.A)(e,4),n=t[0],r=t[3];if(v&&r){var o=(0,c.BD)(r,s("css-variables-".concat(n._themeKey)),{mark:w,prepend:"queue",attachTo:d,priority:-999});o[x]=u,o.setAttribute(b,n._themeKey)}}));return E}var ae=n(58168);const se={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};var ce="comm",le="rule",ue="decl",de="@import",he="@keyframes",fe="@layer",pe=Math.abs,ge=String.fromCharCode;Object.assign;function ye(e){return e.trim()}function me(e,t,n){return e.replace(t,n)}function ve(e,t,n){return e.indexOf(t,n)}function be(e,t){return 0|e.charCodeAt(t)}function we(e,t,n){return e.slice(t,n)}function xe(e){return e.length}function Se(e,t){return t.push(e),e}function Ae(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ke(e,t,n,r){switch(e.type){case fe:if(e.children.length)break;case de:case ue:return e.return=e.return||e.value;case ce:return"";case he:return e.return=e.value+"{"+Ae(e.children,r)+"}";case le:if(!xe(e.value=e.props.join(",")))return""}return xe(n=Ae(e.children,r))?e.return=e.value+"{"+n+"}":""}var Oe=1,_e=1,Ee=0,Ie=0,je=0,$e="";function Te(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Oe,column:_e,length:a,return:"",siblings:s}}function Ce(){return je=Ie>0?be($e,--Ie):0,_e--,10===je&&(_e=1,Oe--),je}function Pe(){return je=Ie<Ee?be($e,Ie++):0,_e++,10===je&&(_e=1,Oe++),je}function Re(){return be($e,Ie)}function Ne(){return Ie}function Me(e,t){return we($e,e,t)}function Fe(e){switch(e){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 De(e){return Oe=_e=1,Ee=xe($e=e),Ie=0,[]}function Le(e){return $e="",e}function Be(e){return ye(Me(Ie-1,He(91===e?e+2:40===e?e+1:e)))}function Ue(e){for(;(je=Re())&&je<33;)Pe();return Fe(e)>2||Fe(je)>3?"":" "}function We(e,t){for(;--t&&Pe()&&!(je<48||je>102||je>57&&je<65||je>70&&je<97););return Me(e,Ne()+(t<6&&32==Re()&&32==Pe()))}function He(e){for(;Pe();)switch(je){case e:return Ie;case 34:case 39:34!==e&&39!==e&&He(je);break;case 40:41===e&&He(e);break;case 92:Pe()}return Ie}function ze(e,t){for(;Pe()&&e+je!==57&&(e+je!==84||47!==Re()););return"/*"+Me(t,Ie-1)+"*"+ge(47===e?e:Pe())}function qe(e){for(;!Fe(Re());)Pe();return Me(e,Ie)}function Ve(e){return Le(Ge("",null,null,null,[""],e=De(e),0,[0],e))}function Ge(e,t,n,r,i,o,a,s,c){for(var l=0,u=0,d=a,h=0,f=0,p=0,g=1,y=1,m=1,v=0,b="",w=i,x=o,S=r,A=b;y;)switch(p=v,v=Pe()){case 40:if(108!=p&&58==be(A,d-1)){-1!=ve(A+=me(Be(v),"&","&\f"),"&\f",pe(l?s[l-1]:0))&&(m=-1);break}case 34:case 39:case 91:A+=Be(v);break;case 9:case 10:case 13:case 32:A+=Ue(p);break;case 92:A+=We(Ne()-1,7);continue;case 47:switch(Re()){case 42:case 47:Se(Ke(ze(Pe(),Ne()),t,n,c),c),5!=Fe(p||1)&&5!=Fe(Re()||1)||!xe(A)||" "===we(A,-1,void 0)||(A+=" ");break;default:A+="/"}break;case 123*g:s[l++]=xe(A)*m;case 125*g:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+u:-1==m&&(A=me(A,/\f/g,"")),f>0&&(xe(A)-d||0===g&&47===p)&&Se(f>32?Xe(A+";",r,n,d-1,c):Xe(me(A," ","")+";",r,n,d-2,c),c);break;case 59:A+=";";default:if(Se(S=Ye(A,t,n,l,u,i,s,b,w=[],x=[],d,o),o),123===v)if(0===u)Ge(A,t,S,S,w,o,d,s,x);else switch(99===h&&110===be(A,3)?100:h){case 100:case 108:case 109:case 115:Ge(e,S,S,r&&Se(Ye(e,S,S,0,0,i,s,b,i,w=[],d,x),x),i,x,d,s,r?w:x);break;default:Ge(A,S,S,S,[""],x,0,s,x)}}l=u=f=0,g=m=1,b=A="",d=a;break;case 58:d=1+xe(A),f=p;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==Ce())continue;switch(A+=ge(v),v*g){case 38:m=u>0?1:(A+="\f",-1);break;case 44:s[l++]=(xe(A)-1)*m,m=1;break;case 64:45===Re()&&(A+=Be(Pe())),h=Re(),u=d=xe(b=A+=qe(Ne())),v++;break;case 45:45===p&&2==xe(A)&&(g=0)}}return o}function Ye(e,t,n,r,i,o,a,s,c,l,u,d){for(var h=i-1,f=0===i?o:[""],p=function(e){return e.length}(f),g=0,y=0,m=0;g<r;++g)for(var v=0,b=we(e,h+1,h=pe(y=a[g])),w=e;v<p;++v)(w=ye(y>0?f[v]+" "+b:me(b,/&\f/g,f[v])))&&(c[m++]=w);return Te(e,t,n,0===i?le:s,c,l,u,d)}function Ke(e,t,n,r){return Te(e,t,n,ce,ge(je),we(e,2,-2),0,r)}function Xe(e,t,n,r,i){return Te(e,t,n,ue,we(e,0,r),we(e,r+1,-1),r,i)}var Je,Qe="data-ant-cssinjs-cache-path",Ze="_FILE_STYLE__";var et=!0;function tt(e){return function(){if(!Je&&(Je={},(0,E.A)())){var e=document.createElement("div");e.className=Qe,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=(0,i.A)(t,2),r=n[0],o=n[1];Je[r]=o}));var n,r=document.querySelector("style[".concat(Qe,"]"));r&&(et=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Je[e]}var nt="_multi_value_";function rt(e){return Ae(Ve(e),ke).replace(/\{%%%\:[^;];}/g,";")}function it(e,t,n){if(!t)return e;var r=".".concat(t),i="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";
2return[r="".concat(a).concat(i).concat(r.slice(a.length))].concat((0,o.A)(n.slice(1))).join(" ")})).join(",")}var ot=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},s=r.root,c=r.injectHash,l=r.parentSelectors,u=n.hashId,d=n.layer,h=(n.path,n.hashPriority),f=n.transformers,p=void 0===f?[]:f,g=(n.linters,""),y={};function m(t){var r=t.getName(u);if(!y[r]){var o=e(t.style,n,{root:!1,parentSelectors:l}),a=(0,i.A)(o,1)[0];y[r]="@keyframes ".concat(t.getName(u)).concat(a)}}var v=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return v.forEach((function(t){var r="string"!==typeof t||s?t:{};if("string"===typeof r)g+="".concat(r,"\n");else if(r._keyframe)m(r);else{var d=p.reduce((function(e,t){var n;return(null===t||void 0===t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(d).forEach((function(t){var r=d[t];if("object"!==(0,_.A)(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===(0,_.A)(e)&&e&&("_skip_check_"in e||nt in e)}(r)){var f;function O(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;se[e]||"number"!==typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!==t&&void 0!==t&&t._keyframe&&(m(t),r=t.getName(u)),g+="".concat(n,":").concat(r,";")}var p=null!==(f=null===r||void 0===r?void 0:r.value)&&void 0!==f?f:r;"object"===(0,_.A)(r)&&null!==r&&void 0!==r&&r[nt]&&Array.isArray(p)?p.forEach((function(e){O(t,e)})):O(t,p)}else{var v=!1,b=t.trim(),w=!1;(s||c)&&u?b.startsWith("@")?v=!0:b=it("&"===b?"":t,u,h):!s||u||"&"!==b&&""!==b||(b="",w=!0);var x=e(r,n,{root:w,injectHash:v,parentSelectors:[].concat((0,o.A)(l),[b])}),S=(0,i.A)(x,2),A=S[0],k=S[1];y=(0,a.A)((0,a.A)({},y),k),g+="".concat(b).concat(A)}}))}})),s?d&&(g="@layer ".concat(d.name," {").concat(g,"}"),d.dependencies&&(y["@layer ".concat(d.name)]=d.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(d.name,";")})).join("\n"))):g="{".concat(g,"}"),[g,y]};function at(e,t){return s("".concat(e.join("%")).concat(t))}function st(){return null}var ct="style";function lt(e,t){var n=e.token,s=e.path,u=e.hashId,d=e.layer,h=e.nonce,f=e.clientOnly,p=e.order,g=void 0===p?0:p,y=l.useContext(O),m=y.autoClear,v=(y.mock,y.defaultCache),S=y.hashPriority,A=y.container,k=y.ssrInline,_=y.transformers,I=y.linters,j=y.cache,$=y.layer,T=n._tokenKey,C=[T];$&&C.push("layer"),C.push.apply(C,(0,o.A)(s));var P=B;var R=J(ct,C,(function(){var e=C.join("|");if(tt(e)){var n=function(e){var t=Je[e],n=null;if(t&&(0,E.A)())if(et)n=Ze;else{var r=document.querySelector("style[".concat(w,'="').concat(Je[e],'"]'));r?n=r.innerHTML:delete Je[e]}return[n,t]}(e),r=(0,i.A)(n,2),o=r[0],a=r[1];if(o)return[o,T,a,{},f,g]}var c=t(),l=ot(c,{hashId:u,hashPriority:S,layer:$?d:void 0,path:s.join("-"),transformers:_,linters:I}),h=(0,i.A)(l,2),p=h[0],y=h[1],m=rt(p),v=at(C,m);return[m,T,v,y,f,g]}),(function(e,t){var n=(0,i.A)(e,3)[2];(t||m)&&B&&(0,c.m6)(n,{mark:w})}),(function(e){var t=(0,i.A)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(P&&n!==Ze){var s={mark:w,prepend:!$&&"queue",attachTo:A,priority:g},l="function"===typeof h?h():h;l&&(s.csp={nonce:l});var u=[],d=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?u.push(e):d.push(e)})),u.forEach((function(e){(0,c.BD)(rt(o[e]),"_layer-".concat(e),(0,a.A)((0,a.A)({},s),{},{prepend:!0}))}));var f=(0,c.BD)(n,r,s);f[x]=j.instanceId,f.setAttribute(b,T),d.forEach((function(e){(0,c.BD)(rt(o[e]),"_effect-".concat(e),s)}))}})),N=(0,i.A)(R,3),M=N[0],F=N[1],D=N[2];return function(e){var t,n;k&&!P&&v?t=l.createElement("style",(0,ae.A)({},(n={},(0,r.A)(n,b,F),(0,r.A)(n,w,D),n),{dangerouslySetInnerHTML:{__html:M}})):t=l.createElement(st,null);return l.createElement(l.Fragment,null,t,e)}}var ut="cssVar";const dt=function(e,t){var n=e.key,r=e.prefix,a=e.unitless,s=e.ignore,u=e.token,d=e.scope,h=void 0===d?"":d,f=(0,l.useContext)(O),p=f.cache.instanceId,g=f.container,y=u._tokenKey,m=[].concat((0,o.A)(e.path),[n,h,y]);return J(ut,m,(function(){var e=t(),o=q(e,n,{prefix:r,unitless:a,ignore:s,scope:h}),c=(0,i.A)(o,2),l=c[0],u=c[1];return[l,u,at(m,u),n]}),(function(e){var t=(0,i.A)(e,3)[2];B&&(0,c.m6)(t,{mark:w})}),(function(e){var t=(0,i.A)(e,3),r=t[1],o=t[2];if(r){var a=(0,c.BD)(r,o,{mark:w,prepend:"queue",attachTo:g,priority:-999});a[x]=p,a.setAttribute(b,n)}}))};var ht;ht={},(0,r.A)(ht,ct,(function(e,t,n){var r=(0,i.A)(e,6),o=r[0],a=r[1],s=r[2],c=r[3],l=r[4],u=r[5],d=(n||{}).plain;if(l)return null;var h=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};
2return h=W(o,a,s,f,d),c&&Object.keys(c).forEach((function(e){if(!t[e]){t[e]=!0;var n=W(rt(c[e]),a,"_effect-".concat(e),f,d);e.startsWith("@layer")?h=n+h:h+=n}})),[u,s,h]})),(0,r.A)(ht,ie,(function(e,t,n){var r=(0,i.A)(e,5),o=r[2],a=r[3],s=r[4],c=(n||{}).plain;if(!a)return null;var l=o._tokenKey;return[-999,l,W(a,s,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),(0,r.A)(ht,ut,(function(e,t,n){var r=(0,i.A)(e,4),o=r[1],a=r[2],s=r[3],c=(n||{}).plain;if(!o)return null;return[-999,a,W(o,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]}));const ft=function(){function e(t,n){(0,f.A)(this,e),(0,r.A)(this,"name",void 0),(0,r.A)(this,"style",void 0),(0,r.A)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,p.A)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function pt(e){return e.notSplit=!0,e}var gt={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:pt(["borderTop","borderBottom"]),borderBlockStart:pt(["borderTop"]),borderBlockEnd:pt(["borderBottom"]),borderInline:pt(["borderLeft","borderRight"]),borderInlineStart:pt(["borderLeft"]),borderInlineEnd:pt(["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 yt(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}const mt={visit:function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n],o=gt[n];if(!o||"number"!==typeof r&&"string"!==typeof r)t[n]=r;else{var a=function(e){if("number"===typeof e)return[[e],!1];var t=String(e).trim(),n=t.match(/(.*)(!important)/),r=(n?n[1]:t).trim().split(/\s+/),i=[],o=0;return[r.reduce((function(e,t){if(t.includes("(")||t.includes(")")){var n=t.split("(").length-1,r=t.split(")").length-1;o+=n-r}return o>=0&&i.push(t),0===o&&(e.push(i.join(" ")),i=[]),e}),[]),!!n]}(r),s=(0,i.A)(a,2),c=s[0],l=s[1];o.length&&o.notSplit?o.forEach((function(e){t[e]=yt(r,l)})):1===o.length?t[o[0]]=yt(c[0],l):2===o.length?o.forEach((function(e,n){var r;t[e]=yt(null!==(r=c[n])&&void 0!==r?r:c[0],l)})):4===o.length?o.forEach((function(e,n){var r,i;t[e]=yt(null!==(r=null!==(i=c[n])&&void 0!==i?i:c[n-2])&&void 0!==r?r:c[0],l)})):t[n]=r}})),t}}},25085:(e,t,n)=>{"use strict";n.d(t,{A:()=>$});var r=n(58168),i=n(5544),o=n(64467),a=n(53986),s=n(41594),c=n.n(s),l=n(48738),u=n.n(l),d=n(36889),h=n(98151),f=n(89379),p=n(82284),g=n(28619),y=n(31147),m=n(99424);function v(e){return"object"===(0,p.A)(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===(0,p.A)(e.icon)||"function"===typeof e.icon)}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,i=e[n];if("class"===n)t.className=i,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i;return t}),{})}function w(e,t,n){return n?c().createElement(e.tag,(0,f.A)((0,f.A)({key:t},b(e.attrs)),n),(e.children||[]).map((function(n,r){return w(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):c().createElement(e.tag,(0,f.A)({key:t},b(e.attrs)),(e.children||[]).map((function(n,r){return w(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function x(e){return(0,d.cM)(e)[0]}function S(e){return e?Array.isArray(e)?e:[e]:[]}var A=["icon","className","onClick","style","primaryColor","secondaryColor"],k={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var O=function(e){var t,n,r=e.icon,i=e.className,o=e.onClick,c=e.style,l=e.primaryColor,u=e.secondaryColor,d=(0,a.A)(e,A),p=s.useRef(),b=k;if(l&&(b={primaryColor:l,secondaryColor:u||x(l)}),function(e){var t=(0,s.useContext)(h.A),n=t.csp,r=t.prefixCls,i="\n.anticon {\n display: inline-flex;\n align-items: center;
2\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(i=i.replace(/anticon/g,r)),(0,s.useEffect)((function(){var t=e.current,r=(0,y.j)(t);(0,g.BD)(i,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})}),[])}(p),t=v(r),n="icon should be icon definiton, but got ".concat(r),(0,m.Ay)(t,"[@ant-design/icons] ".concat(n)),!v(r))return null;var S=r;return S&&"function"===typeof S.icon&&(S=(0,f.A)((0,f.A)({},S),{},{icon:S.icon(b.primaryColor,b.secondaryColor)})),w(S.icon,"svg-".concat(S.name),(0,f.A)((0,f.A)({className:i,onClick:o,style:c,"data-icon":S.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:p}))};O.displayName="IconReact",O.getTwoToneColors=function(){return(0,f.A)({},k)},O.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;k.primaryColor=t,k.secondaryColor=n||x(t),k.calculated=!!n};const _=O;function E(e){var t=S(e),n=(0,i.A)(t,2),r=n[0],o=n[1];return _.setTwoToneColors({primaryColor:r,secondaryColor:o})}var I=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];E(d.z1.primary);var j=s.forwardRef((function(e,t){var n=e.className,c=e.icon,l=e.spin,d=e.rotate,f=e.tabIndex,p=e.onClick,g=e.twoToneColor,y=(0,a.A)(e,I),m=s.useContext(h.A),v=m.prefixCls,b=void 0===v?"anticon":v,w=m.rootClassName,x=u()(w,b,(0,o.A)((0,o.A)({},"".concat(b,"-").concat(c.name),!!c.name),"".concat(b,"-spin"),!!l||"loading"===c.name),n),A=f;void 0===A&&p&&(A=-1);var k=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,O=S(g),E=(0,i.A)(O,2),j=E[0],$=E[1];return s.createElement("span",(0,r.A)({role:"img","aria-label":c.name},y,{ref:t,tabIndex:A,onClick:p,className:x}),s.createElement(_,{icon:c,primaryColor:j,secondaryColor:$,style:k}))}));j.displayName="AntdIcon",j.getTwoToneColor=function(){var e=_.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},j.setTwoToneColor=E;const $=j},98151:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(41594);const i=(0,r.createContext)({})},2260:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(58168),i=n(41594);const 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"};var a=n(25085),s=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:o}))};const c=i.forwardRef(s)},52226:(e,t,n)=>{"use strict";n.d(t,{H:()=>d,K6:()=>o,Me:()=>l,Ob:()=>u,YL:()=>s,_:()=>i,g8:()=>p,n6:()=>f,oS:()=>g,wE:()=>c});var r=n(65438);function i(e,t,n){return{r:255*(0,r.Cg)(e,255),g:255*(0,r.Cg)(t,255),b:255*(0,r.Cg)(n,255)}}function o(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),a=0,s=0,c=(i+o)/2;if(i===o)s=0,a=0;else{var l=i-o;switch(s=c>.5?l/(2-i-o):l/(i+o),i){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4}a/=6}return{h:a,s:s,l:c}}function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function s(e,t,n){var i,o,s;if(e=(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100),0===t)o=n,s=n,i=n;else{var c=n<.5?n*(1+t):n+t-n*t,l=2*n-c;i=a(l,c,e+1/3),o=a(l,c,e),s=a(l,c,e-1/3)}return{r:255*i,g:255*o,b:255*s}}
vendor: 4,351 bytes, line 2
2function c(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),a=0,s=i,c=i-o,l=0===i?0:c/i;if(i===o)a=0;else{switch(i){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4}a/=6}return{h:a,s:l,v:s}}function l(e,t,n){e=6*(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100);var i=Math.floor(e),o=e-i,a=n*(1-t),s=n*(1-o*t),c=n*(1-(1-o)*t),l=i%6;return{r:255*[n,s,a,a,c,n][l],g:255*[c,n,n,s,a,a][l],b:255*[a,a,c,n,n,s][l]}}function u(e,t,n,i){var o=[(0,r.wl)(Math.round(e).toString(16)),(0,r.wl)(Math.round(t).toString(16)),(0,r.wl)(Math.round(n).toString(16))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function d(e,t,n,i,o){var a=[(0,r.wl)(Math.round(e).toString(16)),(0,r.wl)(Math.round(t).toString(16)),(0,r.wl)(Math.round(n).toString(16)),(0,r.wl)(h(i))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function h(e){return Math.round(255*parseFloat(e)).toString(16)}function f(e){return p(e)/255}function p(e){return parseInt(e,16)}function g(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}},71916:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var r={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"}}
2,30372:(e,t,n)=>{"use strict";n.d(t,{RO:()=>a});var r=n(52226),i=n(71916),o=n(65438);function a(e){var t={r:0,g:0,b:0},n=1,a=null,s=null,c=null,l=!1,h=!1;return"string"===typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(i.D[e])e=i.D[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=u.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=u.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=u.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=u.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=u.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=u.hex8.exec(e),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),a:(0,r.n6)(n[4]),format:t?"name":"hex8"};if(n=u.hex6.exec(e),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),format:t?"name":"hex"};if(n=u.hex4.exec(e),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),a:(0,r.n6)(n[4]+n[4]),format:t?"name":"hex8"};if(n=u.hex3.exec(e),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"===typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r._)(e.r,e.g,e.b),l=!0,h="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(a=(0,o.Px)(e.s),s=(0,o.Px)(e.v),t=(0,r.Me)(e.h,a,s),l=!0,h="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(a=(0,o.Px)(e.s),c=(0,o.Px)(e.l),t=(0,r.YL)(e.h,a,c),l=!0,h="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,o.TV)(n),{ok:l,format:e.format||h,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var s="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),c="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),l="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),u={CSS_UNIT:new RegExp(s),rgb:new RegExp("rgb"+c),rgba:new RegExp("rgba"+l),hsl:new RegExp("hsl"+c),hsla:new RegExp("hsla"+l),hsv:new RegExp("hsv"+c),hsva:new RegExp("hsva"
vendor: 4,048 bytes, line 2
2+l),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(e){return Boolean(u.CSS_UNIT.exec(String(e)))}},23452:(e,t,n)=>{"use strict";n.d(t,{q:()=>s});var r=n(52226),i=n(71916),o=n(30372),a=n(65438),s=function(){function e(t,n){var i;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=(0,r.oS)(t)),this.originalInput=t;var a=(0,o.RO)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(i=n.format)&&void 0!==i?i:a.format,this.gradientType=n.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=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.TV)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.wE)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.wE)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.K6)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.K6)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.Ob)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.H)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.Cg)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.Cg)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.Ob)(this.r,this.g,this.b,!1),t=0,n=Object.entries(i.D);t<n.length;t++){var o=n[t],a=o[0];if(e===o[1])return a}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;
2return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100;return new e({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a<t;a++)i.push(new e({h:(r+a*o)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}()},65438:(e,t,n)=>{"use strict";function r(e,t){(function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function i(e){return Math.min(1,Math.max(0,e))}function o(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function s(e){return 1===e.length?"0"+e:String(e)}n.d(t,{Cg:()=>r,J$:()=>i,Px:()=>a,TV:()=>o,wl:()=>s})},39156:(e,t,n)=>{"use strict";n.d(t,{Ob:()=>s,zv:()=>o});var r=n(41594),i=n.n(r);function o(e){return e&&i().isValidElement(e)&&e.type===i().Fragment}const a=(e,t,n)=>i().isValidElement(e)?i().cloneElement(e,"function"===typeof n?n(e.props||{}):n):t;function s(e,t){return a(e,e,t)}},16059:(e,t,n)=>{"use strict";n.d(t,{_n:()=>o,rJ:()=>a});var r=n(41594);n(99424);function i(){}const o=r.createContext({}),a=()=>{const e=()=>{};return e.deprecated=i,e}},84603:(e,t,n)=>{"use strict";n.d(t,{Ap:()=>s,DU:()=>c,u1:()=>u,uR:()=>d});var r=n(41594),i=n.n(r),o=n(39156);const a=/^[\u4E00-\u9FA5]{2}$/,s=a.test.bind(a);function c(e){return"danger"===e?{danger:!0}:{type:e}}function l(e){return"string"===typeof e}function u(e){return"text"===e||"link"===e}function d(e,t){let n=!1;const r=[];
2return i().Children.forEach(e,(e=>{const t=typeof e,i="string"===t||"number"===t;if(n&&i){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=i})),i().Children.map(r,(e=>function(e,t){if(null===e||void 0===e)return;const n=t?" ":"";return"string"!==typeof e&&"number"!==typeof e&&l(e.type)&&s(e.props.children)?(0,o.Ob)(e,{children:e.props.children.split("").join(n)}):l(e)?s(e)?i().createElement("span",null,e.split("").join(n)):i().createElement("span",null,e):(0,o.zv)(e)?i().createElement("span",null,e):e}(e,t)))}},37565:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>Xe});var r=n(41594),i=n.n(r),o=n(48738),a=n.n(o),s=n(15207),c=n(41929),l=n(22389),u=n(5741),d=n(39156),h=n(31900);const f=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},p=(0,h.Or)("Wave",(e=>[f(e)]));var g=n(20490),y=n(7261),m=n(69700);const v=`${u.yH}-wave-target`;var b=n(2144),w=n(63294);function x(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function S(e){return Number.isNaN(e)?0:e}const A=e=>{const{className:t,target:n,component:i}=e,o=r.useRef(null),[s,l]=r.useState(null),[u,d]=r.useState([]),[h,f]=r.useState(0),[p,g]=r.useState(0),[m,A]=r.useState(0),[k,O]=r.useState(0),[_,E]=r.useState(!1),I={left:h,top:p,width:m,height:k,borderRadius:u.map((e=>`${e}px`)).join(" ")};function j(){const e=getComputedStyle(n);l(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return x(t)?t:x(n)?n:x(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:i}=e;f(t?n.offsetLeft:S(-parseFloat(r))),g(t?n.offsetTop:S(-parseFloat(i))),A(n.offsetWidth),O(n.offsetHeight);const{borderTopLeftRadius:o,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:c}=e;d([o,a,c,s].map((e=>S(parseFloat(e)))))}if(s&&(I["--wave-color"]=s),r.useEffect((()=>{if(n){const e=(0,y.A)((()=>{j(),E(!0)}));let t;return"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(j),t.observe(n)),()=>{y.A.cancel(e),null===t||void 0===t||t.disconnect()}}}),[]),!_)return null;const $=("Checkbox"===i||"Radio"===i)&&(null===n||void 0===n?void 0:n.classList.contains(v));return r.createElement(b.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=o.current)||void 0===n?void 0:n.parentElement;(0,w.v)(e).then((()=>{null===e||void 0===e||e.remove()}))}return!1}},((e,n)=>{let{className:i}=e;return r.createElement("div",{ref:(0,c.K4)(o,n),className:a()(t,i,{"wave-quick":$}),style:I})}))},k=(e,t)=>{var n;const{component:i}=t;if("Checkbox"===i&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null===e||void 0===e||e.insertBefore(o,null===e||void 0===e?void 0:e.firstChild),(0,w.X)(r.createElement(A,Object.assign({},t,{target:e})),o)},O=(e,t,n)=>{const{wave:i}=r.useContext(u.QO),[,o,a]=(0,m.Ay)(),s=(0,g.A)((r=>{const s=e.current;if((null===i||void 0===i?void 0:i.disabled)||!s)return;const c=s.querySelector(`.${v}`)||s,{showEffect:l}=i||{};(l||k)(c,{className:t,token:o,component:n,event:r,hashId:a})})),c=r.useRef();return e=>{y.A.cancel(c.current),c.current=(0,y.A)((()=>{s(e)}))}};const _=e=>{const{children:t,disabled:n,component:o}=e,{getPrefixCls:s}=(0,r.useContext)(u.QO),h=(0,r.useRef)(null),f=s("wave"),[,g]=p(f),y=O(h,a()(f,g),o);if(i().useEffect((()=>{const e=h.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!(0,l.A)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||y(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!i().isValidElement(t))return null!==t&&void 0!==t?t:null;const m=(0,c.f3)(t)?(0,c.K4)(t.ref,h):h;return(0,d.Ob)(t,{ref:m})};var E=n(19389),I=n(9415),j=n(93457),$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const T=r.createContext(void 0),C=e=>{const{getPrefixCls:t,direction:n}=r.useContext(u.QO),{prefixCls:i,size:o,className:s}=e,c=$(e,["prefixCls","size","className"]),l=t("btn-group",i),[,,d]=(0,m.Ay)();let h="";switch(o){case"large":h="lg";break;case"small":h="sm"}const f=a()(l,{[`${l}-${h}`]:h,[`${l}-rtl`]:"rtl"===n},s,d);return r.createElement(T.Provider,{value:o},r.createElement("div",Object.assign({},c,{className:f})))};var P=n(84603);const R=(0,r.forwardRef)(((e,t)=>{const{className:n,style:r,children:o,prefixCls:s}=e,c=a()(`${s}-icon`,n);return i().createElement("span",{ref:t,className:c,style:r},o)})),N=R;var M=n(2260);const F=(0,r.forwardRef)(((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:s}=e,c=a()(`${n}-loading-icon`,r);return i().createElement(N,{prefixCls:n,className:c,style:o,ref:t},i().createElement(M.A,{className:s}))})),D=()=>({width:0,opacity:0,transform:"scale(0)"}),L=e=>
2({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),B=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,s=!!n;return r?i().createElement(F,{prefixCls:t,className:o,style:a}):i().createElement(b.Ay,{visible:s,motionName:`${t}-loading-icon-motion`,motionLeave:s,removeOnLeave:!0,onAppearStart:D,onAppearActive:L,onEnterStart:D,onEnterActive:L,onLeaveStart:L,onLeaveActive:D},((e,n)=>{let{className:r,style:s}=e;return i().createElement(F,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),s),ref:n,iconClassName:r})}))};var U=n(47864),W=n(45343),H=n(77261);const z=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),q=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},z(`${t}-primary`,i),z(`${t}-danger`,o)]}};var V=n(23029),G=n(92901),Y=n(85501),K=n(49640),X=n(89379),J=n(53986),Q=n(82284),Z=n(64467);const ee=Math.round;function te(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const ne=(e,t,n)=>0===n?e:e/100;function re(e,t){const n=t||255;return e>n?n:e<0?0:e}class ie{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,Z.A)(this,"isValid",!0),(0,Z.A)(this,"r",0),(0,Z.A)(this,"g",0),(0,Z.A)(this,"b",0),(0,Z.A)(this,"a",1),(0,Z.A)(this,"_h",void 0),(0,Z.A)(this,"_s",void 0),(0,Z.A)(this,"_l",void 0),(0,Z.A)(this,"_v",void 0),(0,Z.A)(this,"_max",void 0),(0,Z.A)(this,"_min",void 0),(0,Z.A)(this,"_brightness",void 0),e)if("string"===typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof ie)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=re(e.r),this.g=re(e.g),this.b=re(e.b),this.a="number"===typeof e.a?re(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if("undefined"===typeof this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:ee(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if("undefined"===typeof this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return"undefined"===typeof this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return"undefined"===typeof this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return"undefined"===typeof this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;const n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],o={r:ee(i("r")),g:ee(i("g")),b:ee(i("b")),a:ee(100*i("a"))/100};return this._c(o)}tint(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:255,g:255,b:255,a:1},e)}shade(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:0,g:0,b:0,a:1},e)}
vendor: 1,727 bytes, line 2
2onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>ee((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"===typeof this.a&&this.a>=0&&this.a<1){const t=ee(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=ee(100*this.getSaturation()),n=ee(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=re(t,n),r}_c(e){return new this.constructor(e)}getMax(){return"undefined"===typeof this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return"undefined"===typeof this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}
2fromHsl(e){let{h:t,s:n,l:r,a:i}=e;if(this._h=t%360,this._s=n,this._l=r,this.a="number"===typeof i?i:1,n<=0){const e=ee(255*r);this.r=e,this.g=e,this.b=e}let o=0,a=0,s=0;const c=t/60,l=(1-Math.abs(2*r-1))*n,u=l*(1-Math.abs(c%2-1));c>=0&&c<1?(o=l,a=u):c>=1&&c<2?(o=u,a=l):c>=2&&c<3?(a=l,s=u):c>=3&&c<4?(a=u,s=l):c>=4&&c<5?(o=u,s=l):c>=5&&c<6&&(o=l,s=u);const d=r-l/2;this.r=ee(255*(o+d)),this.g=ee(255*(a+d)),this.b=ee(255*(s+d))}fromHsv(e){let{h:t,s:n,v:r,a:i}=e;this._h=t%360,this._s=n,this._v=r,this.a="number"===typeof i?i:1;const o=ee(255*r);if(this.r=o,this.g=o,this.b=o,n<=0)return;const a=t/60,s=Math.floor(a),c=a-s,l=ee(r*(1-n)*255),u=ee(r*(1-n*c)*255),d=ee(r*(1-n*(1-c))*255);switch(s){case 0:this.g=d,this.b=l;break;case 1:this.r=u,this.b=l;break;case 2:this.r=l,this.b=d;break;case 3:this.r=l,this.g=u;break;case 4:this.r=d,this.g=l;break;default:this.g=l,this.b=u}}fromHsvString(e){const t=te(e,ne);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=te(e,ne);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=te(e,((e,t)=>t.includes("%")?ee(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var oe=["b"],ae=["v"],se=function(e){return Math.round(Number(e||0))},ce=function(e){(0,Y.A)(n,e);var t=(0,K.A)(n);function n(e){return(0,V.A)(this,n),t.call(this,function(e){if(e instanceof ie)return e;if(e&&"object"===(0,Q.A)(e)&&"h"in e&&"b"in e){var t=e,n=t.b,r=(0,J.A)(t,oe);return(0,X.A)((0,X.A)({},r),{},{v:n})}return"string"===typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return(0,G.A)(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=se(100*e.s),n=se(100*e.b),r=se(e.h),i=e.a,o="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(i.toFixed(0===i?0:2),")");return 1===i?o:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,n=(0,J.A)(e,ae);return(0,X.A)((0,X.A)({},n),{},{b:t,a:this.a})}}]),n}(ie),le=function(e){return e instanceof ce?e:new ce(e)};le("#1677ff");n(14996);let ue=function(){return(0,G.A)((function e(t){var n;if((0,V.A)(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map((t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}})),this.metaColor=new ce(this.colors[0].color.metaColor)):this.metaColor=new ce(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null===e||void 0===e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)})):this.toHexString()===e.toHexString())}}])}();n(71207);const de=(e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),a=new ce(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:.299*n+.587*r+.114*i>192};var he=n(8323);const fe=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return(0,H.oX)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},pe=e=>{var t,n,r,i,o,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,l=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(i=e.contentLineHeight)&&void 0!==i?i:(0,he.k)(s),d=null!==(o=e.contentLineHeightSM)&&void 0!==o?o:(0,he.k)(c),h=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:(0,he.k)(l),f=de(new ue(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBg
vendor: 8,645 bytes, line 2
2Container,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:f,contentFontSize:s,contentFontSizeSM:c,contentFontSizeLG:l,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-l*h)/2-e.lineWidth,0)}},ge=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,U.zA)(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,W.K8)(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},ye=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),me=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),ve=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),be=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),we=(e,t,n,r,i,o,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},ye(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),xe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},be(e))}),Se=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Ae=(e,t,n,r)=>{const i=r&&["link","text"].includes(r)?Se:xe;return Object.assign(Object.assign({},i(e)),ye(e.componentCls,t,n))},ke=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Ae(e,r,i))}),Oe=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Ae(e,r,i))}),_e=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Ee=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Ae(e,n,r))}),Ie=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Ae(e,r,i,n))}),je=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ke(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),_e(e)),Ee(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Ie(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),we(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),$e=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Oe(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),_e(e)),Ee(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Ie(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),we(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Te=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ke(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Oe(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),_e(e)),Ee(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Ie(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Ie(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),we(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ce=e=>{const{componentCls:t}=e;return{[`${t}-color-default`]:je(e),[`${t}-color-primary`]:$e(e),[`${t}-color-dangerous`]:Te(e)}},Pe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Oe(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ie(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ke(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Ie(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Re=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,lineHeight:o,borderRadius:a,buttonPaddingHorizontal:s,iconCls:c,buttonPaddingVertical:l}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:i,lineHeight:o,height:r,padding:`${(0,U.zA)(l)} ${(0,U.zA)(s)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:me(e)},{[`${n}${n}-round${t}`]:ve(e)}]},Ne=e=>{const t=(0,H.oX)(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Re(t,e.componentCls)},Me=e=>{const t=(0,H.oX)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Re(t,`${e.componentCls}-sm`)},Fe=e=>{const t=(0,H.oX)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Re(t,`${e.componentCls}-lg`)},De=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Le=(0,h.OF)("Button",(e=>{const t=fe(e);return[ge(t),Ne(t),Me(t),Fe(t),De(t),Ce(t),Pe(t),q(t)]}),pe,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Be(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?">
2 *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Ue(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function We(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Be(e,r,t)),Ue(n,r,t))}}function He(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function ze(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},He(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const qe=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${(0,U.zA)(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${(0,U.zA)(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Ve=(0,h.bf)(["Button","compact"],(e=>{const t=fe(e);return[We(t),ze(t),qe(t)]}),pe);var Ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Ye={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},Ke=i().forwardRef(((e,t)=>{var n,o,l,d;const{loading:h=!1,prefixCls:f,color:p,variant:g,type:y,danger:m=!1,shape:v="default",size:b,styles:w,disabled:x,className:S,rootClassName:A,children:k,icon:O,iconPosition:$="start",ghost:C=!1,block:R=!1,htmlType:M="button",classNames:F,style:D={},autoInsertSpace:L}=e,U=Ge(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),W=y||"default",[H,z]=(0,r.useMemo)((()=>{if(p&&g)return[p,g];const e=Ye[W]||[];return m?["danger",e[1]]:e}),[y,p,g,m]),q="danger"===H?"dangerous":H,{getPrefixCls:V,direction:G,button:Y}=(0,r.useContext)(u.QO),K=null===(n=null!==L&&void 0!==L?L:null===Y||void 0===Y?void 0:Y.autoInsertSpace)||void 0===n||n,X=V("btn",f),[J,Q,Z]=Le(X),ee=(0,r.useContext)(E.A),te=null!==x&&void 0!==x?x:ee,ne=(0,r.useContext)(T),re=(0,r.useMemo)((()=>function(e){if("object"===typeof e&&e){let t=null===e||void 0===e?void 0:e.delay;return t=Number.isNaN(t)||"number"!==typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(h)),[h]),[ie,oe]=(0,r.useState)(re.loading),[ae,se]=(0,r.useState)(!1),ce=(0,r.createRef)(),le=(0,c.K4)(t,ce),ue=1===r.Children.count(k)&&!O&&!(0,P.u1)(z);(0,r.useEffect)((()=>{let e=null;return re.delay>0?e=setTimeout((()=>{e=null,oe(!0)}),re.delay):oe(re.loading),function(){e&&(clearTimeout(e),e=null)}}),[re]),(0,r.useEffect)((()=>
2{if(!le||!le.current||!K)return;const e=le.current.textContent;ue&&(0,P.Ap)(e)?ae||se(!0):ae&&se(!1)}),[le]);const de=i().useCallback((t=>{var n;ie||te?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)}),[e.onClick,ie,te]);const{compactSize:he,compactItemClassnames:fe}=(0,j.RQ)(X,G),pe={large:"lg",small:"sm",middle:void 0},ge=(0,I.A)((e=>{var t,n;return null!==(n=null!==(t=null!==b&&void 0!==b?b:he)&&void 0!==t?t:ne)&&void 0!==n?n:e})),ye=ge&&null!==(o=pe[ge])&&void 0!==o?o:"",me=ie?"loading":O,ve=(0,s.A)(U,["navigate"]),be=a()(X,Q,Z,{[`${X}-${v}`]:"default"!==v&&v,[`${X}-${W}`]:W,[`${X}-dangerous`]:m,[`${X}-color-${q}`]:q,[`${X}-variant-${z}`]:z,[`${X}-${ye}`]:ye,[`${X}-icon-only`]:!k&&0!==k&&!!me,[`${X}-background-ghost`]:C&&!(0,P.u1)(z),[`${X}-loading`]:ie,[`${X}-two-chinese-chars`]:ae&&K&&!ie,[`${X}-block`]:R,[`${X}-rtl`]:"rtl"===G,[`${X}-icon-end`]:"end"===$},fe,S,A,null===Y||void 0===Y?void 0:Y.className),we=Object.assign(Object.assign({},null===Y||void 0===Y?void 0:Y.style),D),xe=a()(null===F||void 0===F?void 0:F.icon,null===(l=null===Y||void 0===Y?void 0:Y.classNames)||void 0===l?void 0:l.icon),Se=Object.assign(Object.assign({},(null===w||void 0===w?void 0:w.icon)||{}),(null===(d=null===Y||void 0===Y?void 0:Y.styles)||void 0===d?void 0:d.icon)||{}),Ae=O&&!ie?i().createElement(N,{prefixCls:X,className:xe,style:Se},O):i().createElement(B,{existIcon:!!O,prefixCls:X,loading:ie}),ke=k||0===k?(0,P.uR)(k,ue&&K):null;if(void 0!==ve.href)return J(i().createElement("a",Object.assign({},ve,{className:a()(be,{[`${X}-disabled`]:te}),href:te?void 0:ve.href,style:we,onClick:de,ref:le,tabIndex:te?-1:0}),Ae,ke));let Oe=i().createElement("button",Object.assign({},U,{type:M,className:be,style:we,onClick:de,disabled:te,ref:le}),Ae,ke,!!fe&&i().createElement(Ve,{key:"compact",prefixCls:X}));return(0,P.u1)(z)||(Oe=i().createElement(_,{component:"Button",disabled:ie},Oe)),J(Oe)}));Ke.Group=C,Ke.__ANT_BUTTON=!0;const Xe=Ke},19389:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,X:()=>o});var r=n(41594);const i=r.createContext(!1),o=e=>{let{children:t,disabled:n}=e;const o=r.useContext(i);return r.createElement(i.Provider,{value:null!==n&&void 0!==n?n:o},t)},a=i},87126:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,c:()=>o});var r=n(41594);const i=r.createContext(void 0),o=e=>{let{children:t,size:n}=e;const o=r.useContext(i);return r.createElement(i.Provider,{value:n||o},t)},a=i},5741:(e,t,n)=>{"use strict";n.d(t,{QO:()=>a,pM:()=>o,yH:()=>i});var r=n(41594);const i="ant",o="anticon",a=r.createContext({getPrefixCls:(e,t)=>t||(e?`${i}-${e}`:i),iconPrefixCls:o}),{Consumer:s}=a},9415:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(41594),i=n.n(r),o=n(87126);const a=e=>{const t=i().useContext(o.A);return i().useMemo((()=>e?"string"===typeof e?null!==e&&void 0!==e?e:t:e instanceof Function?e(t):t:t),[e,t])}},48949:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>V,cr:()=>H});var r=n(41594),i=n(47864),o=n(98151),a=n(86910),s=n(48174),c=n(16059);const l=(0,r.createContext)(void 0);var u=n(14261),d=n(34875);const h=e=>{const{locale:t={},children:n,_ANT_MARK__:i}=e;r.useEffect((()=>(0,u.L)(null===t||void 0===t?void 0:t.Modal)),[t]);const o=r.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return r.createElement(d.A.Provider,{value:o},n)};var f=n(76098),p=n(70248),g=n(35605),y=n(5741),m=n(36889),v=n(23452),b=n(3888),w=n(28619);const x=`-ant-${Date.now()}-${Math.random()}`;function S(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null===t||void 0===t?void 0:t(n))||n,n.toRgbString()},i=(e,t)=>{const i=new v.q(e),o=(0,m.cM)(i.toRgbString());n[`${t}-color`]=r(i),n[`${t}-color-disabled`]=o[1],n[`${t}-color-hover`]=o[4],n[`${t}-color-active`]=o[6],n[`${t}-color-outline`]=i.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=o[0],n[`${t}-color-deprecated-border`]=o[2]};if(t.primaryColor){i(t.primaryColor,"primary");const e=new v.q(t.primaryColor),o=(0,m.cM)(e.toRgbString());o.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));
2const a=new v.q(o[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);(0,b.A)()&&(0,w.BD)(n,`${x}-dynamic-theme`)}var A=n(19389),k=n(87126);const O=function(){return{componentDisabled:(0,r.useContext)(A.A),componentSize:(0,r.useContext)(k.A)}};var _=n(41216);const E=Object.assign({},r),{useId:I}=E,j="undefined"===typeof I?()=>"":I;var $=n(2144),T=n(69700);function C(e){const{children:t}=e,[,n]=(0,T.Ay)(),{motion:i}=n,o=r.useRef(!1);return o.current=o.current||!1===i,o.current?r.createElement($.Kq,{motion:i},t):t}const P=()=>null;var R=n(19976),N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const M=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let F,D,L,B;function U(){return F||y.yH}function W(){return D||y.pM}const H=()=>({getPrefixCls:(e,t)=>t||(e?`${U()}-${e}`:U()),getIconPrefixCls:W,getRootPrefixCls:()=>F||U(),getTheme:()=>L,holderRender:B}),z=e=>{const{children:t,csp:n,autoInsertSpaceInButton:u,alert:d,anchor:m,form:v,locale:b,componentSize:w,direction:x,space:S,splitter:O,virtual:E,dropdownMatchSelectWidth:I,popupMatchSelectWidth:$,popupOverflow:T,legacyLocale:F,parentContext:D,iconPrefixCls:L,theme:B,componentDisabled:U,segmented:W,statistic:H,spin:z,calendar:q,carousel:V,cascader:G,collapse:Y,typography:K,checkbox:X,descriptions:J,divider:Q,drawer:Z,skeleton:ee,steps:te,image:ne,layout:re,list:ie,mentions:oe,modal:ae,progress:se,result:ce,slider:le,breadcrumb:ue,menu:de,pagination:he,input:fe,textArea:pe,empty:ge,badge:ye,radio:me,rate:ve,switch:be,transfer:we,avatar:xe,message:Se,tag:Ae,table:ke,card:Oe,tabs:_e,timeline:Ee,timePicker:Ie,upload:je,notification:$e,tree:Te,colorPicker:Ce,datePicker:Pe,rangePicker:Re,flex:Ne,wave:Me,dropdown:Fe,warning:De,tour:Le,floatButtonGroup:Be,variant:Ue,inputNumber:We,treeSelect:He}=e,ze=r.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const i=r||D.getPrefixCls("");return t?`${i}-${t}`:i}),[D.getPrefixCls,e.prefixCls]),qe=L||D.iconPrefixCls||y.pM,Ve=n||D.csp;(0,R.A)(qe,Ve);const Ge=function(e,t,n){var r;(0,c.rJ)("ConfigProvider");const i=e||{},o=!1!==i.inherit&&t?t:Object.assign(Object.assign({},p.sb),{hashed:null!==(r=null===t||void 0===t?void 0:t.hashed)&&void 0!==r?r:p.sb.hashed,cssVar:null===t||void 0===t?void 0:t.cssVar}),s=j();return(0,a.A)((()=>{var r,a;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach((t=>{c[t]=Object.assign(Object.assign({},c[t]),e.components[t])}));const l=`css-var-${s.replace(/:/g,"")}`,u=(null!==(r=i.cssVar)&&void 0!==r?r:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null===n||void 0===n?void 0:n.prefixCls},"object"===typeof o.cssVar?o.cssVar:{}),"object"===typeof i.cssVar?i.cssVar:{}),{key:"object"===typeof i.cssVar&&(null===(a=i.cssVar)||void 0===a?void 0:a.key)||l});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:u})}),[i,o],((e,t)=>e.some(((e,n)=>{const r=t[n];return!(0,_.A)(e,r,!0)}))))}(B,D.theme,{prefixCls:ze("")});const Ye={csp:Ve,autoInsertSpaceInButton:u,alert:d,anchor:m,locale:b||F,direction:x,space:S,splitter:O,virtual:E,popupMatchSelectWidth:null!==$&&void 0!==$?$:I,popupOverflow:T,getPrefixCls:ze,iconPrefixCls:qe,theme:Ge,segmented:W,statistic:H,spin:z,calendar:q,carousel:V,cascader:G,collapse:Y,typography:K,checkbox:X,descriptions:J,divider:Q,drawer:Z,skeleton:ee,steps:te,image:ne,input:fe,textArea:pe,layout:re,list:ie,mentions:oe,modal:ae,progress:se,result:ce,slider:le,breadcrumb:ue,menu:de,pagination:he,empty:ge,badge:ye,radio:me,rate:ve,switch:be,transfer:we,avatar:xe,message:Se,tag:Ae,table:ke,card:Oe,tabs:_e,timeline:Ee,timePicker:Ie,upload:je,notification:$e,tree:Te,colorPicker:Ce,datePicker:Pe,rangePicker:Re,flex:Ne,wave:Me,dropdown:Fe,warning:De,tour:Le,floatButtonGroup:Be,variant:Ue,inputNumber:We,treeSelect:He};const Ke=Object.assign({},D);Object.keys(Ye).forEach((e=>{void 0!==Ye[e]&&(Ke[e]=Ye[e])})),M.forEach((t=>{const n=e[t];n&&(Ke[t]=n)})),"undefined"!==typeof u&&(Ke.button=Object.assign({autoInsertSpace:u},Ke.button));const Xe=(0,a.A)((()=>Ke),Ke,((e,t)=>
2{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Je=r.useMemo((()=>({prefixCls:qe,csp:Ve})),[qe,Ve]);let Qe=r.createElement(r.Fragment,null,r.createElement(P,{dropdownMatchSelectWidth:I}),t);const Ze=r.useMemo((()=>{var e,t,n,r;return(0,s.h)((null===(e=f.A.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Xe.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Xe.form)||void 0===r?void 0:r.validateMessages)||{},(null===v||void 0===v?void 0:v.validateMessages)||{})}),[Xe,null===v||void 0===v?void 0:v.validateMessages]);Object.keys(Ze).length>0&&(Qe=r.createElement(l.Provider,{value:Ze},Qe)),b&&(Qe=r.createElement(h,{locale:b,_ANT_MARK__:"internalMark"},Qe)),(qe||Ve)&&(Qe=r.createElement(o.A.Provider,{value:Je},Qe)),w&&(Qe=r.createElement(k.c,{size:w},Qe)),Qe=r.createElement(C,null,Qe);const et=r.useMemo((()=>{const e=Ge||{},{algorithm:t,token:n,components:r,cssVar:o}=e,a=N(e,["algorithm","token","components","cssVar"]),s=t&&(!Array.isArray(t)||t.length>0)?(0,i.an)(t):p.zQ,c={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=s:(Array.isArray(r.algorithm)||"function"===typeof r.algorithm)&&(r.theme=(0,i.an)(r.algorithm)),delete r.algorithm),c[t]=r}));const l=Object.assign(Object.assign({},g.A),n);return Object.assign(Object.assign({},a),{theme:s,token:l,components:c,override:Object.assign({override:l},c),cssVar:o})}),[Ge]);return B&&(Qe=r.createElement(p.vG.Provider,{value:et},Qe)),Xe.warning&&(Qe=r.createElement(c._n.Provider,{value:Xe.warning},Qe)),void 0!==U&&(Qe=r.createElement(A.X,{disabled:U},Qe)),r.createElement(y.QO.Provider,{value:Xe},Qe)},q=e=>{const t=r.useContext(y.QO),n=r.useContext(d.A);return r.createElement(z,Object.assign({parentContext:t,legacyLocale:n},e))};q.ConfigContext=y.QO,q.SizeContext=k.A,q.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;void 0!==t&&(F=t),void 0!==n&&(D=n),"holderRender"in e&&(B=i),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?L=r:S(U(),r))},q.useConfig=O,Object.defineProperty(q,"SizeContext",{get:()=>k.A});const V=q},34875:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(41594);const i=(0,r.createContext)(void 0)}
2,76098:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});const r={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"};var i=n(89379);const o=(0,i.A)((0,i.A)({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},s={lang:Object.assign({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"]},o),timePickerLocale:Object.assign({},a)},c="${label} is not a valid ${type}",l={locale:"en",Pagination:r,DatePicker:s,TimePicker:a,Calendar:s,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"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},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",deselectAll:"Deselect 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",collapse:"Collapse"},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:c,method:c,array:c,object:c,number:c,date:c,boolean:c,integer:c,float:c,regexp:c,email:c,url:c,hex:c},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"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}
2,ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}}},14261:(e,t,n)=>{"use strict";n.d(t,{L:()=>s,l:()=>c});var r=n(76098);let i=Object.assign({},r.A.Modal),o=[];const a=()=>o.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),r.A.Modal);function s(e){if(e){const t=Object.assign({},e);return o.push(t),i=a(),()=>{o=o.filter((e=>e!==t)),i=a()}}i=Object.assign({},r.A.Modal)}function c(){return i}},93457:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>g,K6:()=>f,RQ:()=>h});var r=n(41594),i=n(48738),o=n.n(i),a=n(50604),s=n(5741),c=n(9415),l=n(44655),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const d=r.createContext(null),h=(e,t)=>{const n=r.useContext(d),i=r.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:i,isLastItem:a}=n,s="vertical"===r?"-vertical-":"-";return o()(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null===n||void 0===n?void 0:n.compactSize,compactDirection:null===n||void 0===n?void 0:n.compactDirection,compactItemClassnames:i}},f=e=>{let{children:t}=e;return r.createElement(d.Provider,{value:null},t)},p=e=>{var{children:t}=e,n=u(e,["children"]);return r.createElement(d.Provider,{value:n},t)},g=e=>{const{getPrefixCls:t,direction:n}=r.useContext(s.QO),{size:i,direction:h,block:f,prefixCls:g,className:y,rootClassName:m,children:v}=e,b=u(e,["size","direction","block","prefixCls","className","rootClassName","children"]),w=(0,c.A)((e=>null!==i&&void 0!==i?i:e)),x=t("space-compact",g),[S,A]=(0,l.A)(x),k=o()(x,A,{[`${x}-rtl`]:"rtl"===n,[`${x}-block`]:f,[`${x}-vertical`]:"vertical"===h},y,m),O=r.useContext(d),_=(0,a.A)(v),E=r.useMemo((()=>_.map(((e,t)=>{const n=(null===e||void 0===e?void 0:e.key)||`${x}-item-${t}`;return r.createElement(p,{key:n,compactSize:w,compactDirection:h,isFirstItem:0===t&&(!O||(null===O||void 0===O?void 0:O.isFirstItem)),isLastItem:t===_.length-1&&(!O||(null===O||void 0===O?void 0:O.isLastItem))},e)}))),[i,_,O]);return 0===_.length?null:S(r.createElement("div",Object.assign({className:k},b),E))}},44655:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(31900),i=n(77261);const o=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},a=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},s=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},c=(0,r.OF)("Space",(e=>{const t=(0,i.oX)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[a(t),s(t),o(t)]}),(()=>({})),{resetStyle:!1})},45343:(e,t,n)=>{"use strict";n.d(t,{K8:()=>u,Nk:()=>o,av:()=>s,dF:()=>i,t6:()=>a,vj:()=>c});var r=n(47864);const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},o=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),a=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),s=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),c=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==r&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},l=e=>({outline:`${(0,r.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),u=e=>({"&:focus-visible":Object.assign({},l(e))})}
2,70248:(e,t,n)=>{"use strict";n.d(t,{vG:()=>b,sb:()=>v,zQ:()=>m});var r=n(41594),i=n.n(r),o=n(47864),a=n(36889),s=n(35605),c=n(23452);const l=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};const u=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};var d=n(8323);const h=e=>{const t=(0,d.A)(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),i=n[1],o=n[0],a=n[2],s=r[1],c=r[0],l=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(s*i),fontHeightLG:Math.round(l*a),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const f=(e,t)=>new c.q(e).setAlpha(t).toRgbString(),p=(e,t)=>new c.q(e).darken(t).toHexString(),g=e=>{const t=(0,a.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},y=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:f(r,.88),colorTextSecondary:f(r,.65),colorTextTertiary:f(r,.45),colorTextQuaternary:f(r,.25),colorFill:f(r,.15),colorFillSecondary:f(r,.06),colorFillTertiary:f(r,.04),colorFillQuaternary:f(r,.02),colorBgSolid:f(r,1),colorBgSolidHover:f(r,.75),colorBgSolidActive:f(r,.95),colorBgLayout:p(n,4),colorBgContainer:p(n,0),colorBgElevated:p(n,0),colorBgSpotlight:f(r,.85),colorBgBlur:"transparent",colorBorder:p(n,15),colorBorderSecondary:p(n,6)}};const m=(0,o.an)((function(e){a.uy.pink=a.uy.magenta,a.UA.pink=a.UA.magenta;const t=Object.keys(s.r).map((t=>{const n=e[t]===a.uy[t]?a.UA[t]:(0,a.cM)(e[t]);return new Array(10).fill(1).reduce(((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:u,colorTextBase:d}=e,h=n(l),f=n(i),p=n(o),g=n(a),y=n(s),m=r(u,d),v=n(e.colorLink||e.colorInfo),b=new c.q(g[1]).mix(new c.q(g[3]),50).toHexString();return Object.assign(Object.assign({},m),{colorPrimaryBg:h[1],colorPrimaryBgHover:h[2],colorPrimaryBorder:h[3],colorPrimaryBorderHover:h[4],colorPrimaryHover:h[5],colorPrimary:h[6],colorPrimaryActive:h[7],colorPrimaryTextHover:h[8],colorPrimaryText:h[9],colorPrimaryTextActive:h[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:b,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new c.q("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:g,generateNeutralColorPalettes:y})),h(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),u(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:i+1},l(r))}(e))})),v={token:s.A,override:{override:s.A},hashed:!0},b=i().createContext(v)},35605:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,r:()=>r});const r={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"},i=Object.assign(Object.assign({},r),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",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:"cub
2ic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0})},8323:(e,t,n)=>{"use strict";function r(e){return(e+8)/e}function i(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,i=e*Math.pow(Math.E,r/5),o=n>1?Math.floor(i):Math.ceil(i);return 2*Math.floor(o/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:r(e)})))}n.d(t,{A:()=>i,k:()=>r})},69700:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>b,Is:()=>g});var r=n(41594),i=n.n(r),o=n(47864);const a="5.22.1";var s=n(70248),c=n(35605),l=n(23452);function u(e){return e>=0&&e<=255}const d=function(e,t){const{r:n,g:r,b:i,a:o}=new l.q(e).toRgb();if(o<1)return e;const{r:a,g:s,b:c}=new l.q(t).toRgb();for(let d=.01;d<=1;d+=.01){const e=Math.round((n-a*(1-d))/d),t=Math.round((r-s*(1-d))/d),o=Math.round((i-c*(1-d))/d);if(u(e)&&u(t)&&u(o))return new l.q({r:e,g:t,b:o,a:Math.round(100*d)/100}).toRgbString()}return new l.q({r:n,g:r,b:i,a:1}).toRgbString()};var h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function f(e){const{override:t}=e,n=h(e,["override"]),r=Object.assign({},t);Object.keys(c.A).forEach((e=>{delete r[e]}));const i=Object.assign(Object.assign({},n),r),o=1200,a=1600;if(!1===i.motion){const e="0s";i.motionDurationFast=e,i.motionDurationMid=e,i.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:d(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:d(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:d(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:3*i.lineWidth,lineWidth:i.lineWidth,controlOutlineWidth:2*i.lineWidth,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:d(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:o,screenXLMin:o,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new l.q("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new l.q("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new l.q("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTo
2p:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const g={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},y={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},m={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},v=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=p(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=f(a),o&&Object.entries(o).forEach((e=>{let[t,n]=e;const{theme:r}=n,i=p(n,["theme"]);let o=i;r&&(o=v(Object.assign(Object.assign({},a),i),{override:i},r)),a[t]=o})),a};function b(){const{token:e,hashed:t,theme:n,override:r,cssVar:l}=i().useContext(s.vG),u=`${a}-${t||""}`,d=n||s.zQ,[h,p,b]=(0,o.hV)(d,[c.A,e],{salt:u,override:r,getComputedToken:v,formatToken:f,cssVar:l&&{prefix:l.prefix,key:l.key,unitless:g,ignore:y,preserve:m}});return[d,b,t?p:"",h,l]}},31900:(e,t,n)=>{"use strict";n.d(t,{OF:()=>l,Or:()=>u,bf:()=>d});var r=n(41594),i=n(77261),o=n(5741),a=n(45343),s=n(69700),c=n(19976);const{genStyleHooks:l,genComponentStyleHook:u,genSubStyleComponent:d}=(0,i.L_)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,r.useContext)(o.QO);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,s.Ay)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=(0,r.useContext)(o.QO);return(0,c.A)(t,e),null!==e&&void 0!==e?e:{}},getResetStyles:e=>[{"&":(0,a.av)(e)}],getCommonStyle:a.vj,getCompUnitless:()=>s.Is})},19976:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(47864),i=n(45343),o=n(69700);const a=(e,t)=>{const[n,a]=(0,o.Ay)();return(0,r.IV)({theme:n,token:a,hashId:"",path:["ant-design-icons",e],nonce:()=>null===t||void 0===t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,i.Nk)()),{[`.${e} .${e}-icon`]:{display:"block"}})}]))}},60216:(e,t,n)=>{"use strict";var r=n(24994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(88559));t.default=i.default},88559:(e,t,n)=>{"use strict";var r=n(24994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(18602)),o=r(n(16218));const a={lang:Object.assign({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"]},i.default),timePickerLocale:Object.assign({},o.default)};a.lang.ok="\u786e\u5b9a";t.default=a},1681:(e,t,n)=>{"use strict";var r=n(24994).default;t.A=void 0;var i=r(n(5664)),o=r(n(60216)),a=r(n(88559)),s=r(n(16218));const c="${label}\u4e0d\u662f\u4e00\u4e2a\u6709\u6548\u7684${type}",l={locale:"zh-cn",Pagination:i.default,DatePicker:a.default,TimePicker:s.default,Calendar:o.default,global:{placeholder:"\u8bf7\u9009\u62e9"}
2,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",emptyText:"\u6682\u65e0\u6570\u636e",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"},Tour:{Next:"\u4e0b\u4e00\u6b65",Previous:"\u4e0a\u4e00\u6b65",Finish:"\u7ed3\u675f\u5bfc\u89c8"},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",deselectAll:"\u53d6\u6d88\u5168\u9009",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",collapse:"\u6536\u8d77"},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:c,method:c,array:c,object:c,number:c,date:c,boolean:c,integer:c,float:c,regexp:c,email:c,url:c,hex:c},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"},QRCode:{expired:"\u4e8c\u7ef4\u7801\u8fc7\u671f",refresh:"\u70b9\u51fb\u5237\u65b0",scanned:"\u5df2\u626b\u63cf"},ColorPicker:{presetEmpty:"\u6682\u65e0",transparent:"\u65e0\u8272",singleColor:"\u5355\u8272",gradientColor:"\u6e10\u53d8\u8272"}};t.A=l},16218:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},33651:(e,t,n)=>{e.exports={default:n(43679),__esModule:!0}},31958:(e,t,n)=>{e.exports={default:n(93610),__esModule:!0}},6063:(e,t,n)=>{e.exports={default:n(58635),__esModule:!0}},33613:(e,t,n)=>{e.exports={default:n(2865),__esModule:!0}},9176:(e,t,n)=>{e.exports={default:n(61563),__esModule:!0}},40281:(e,t,n)=>{e.exports={default:n(12469),__esModule:!0}},26380:(e,t)=>{"use strict";t.A=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},754:(e,t,n)=>{"use strict";var r,i=n(6063),o=(r=i)&&r.__esModule?r:{default:r};t.A=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},7219:(e,t,n)=>{"use strict";var r,i=n(33651),o=(r=i)&&r.__esModule?r:{default:r};t.A=o.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},5316:(e,t,n)=>{"use strict";var r=a(n(33613)),i=a(n(31958)),o=a(n(69861));
2function a(e){return e&&e.__esModule?e:{default:e}}t.A=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof t?"undefined":(0,o.default)(t)));e.prototype=(0,i.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},52889:(e,t,n)=>{"use strict";var r,i=n(69861),o=(r=i)&&r.__esModule?r:{default:r};t.A=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"===typeof t?"undefined":(0,o.default)(t))&&"function"!==typeof t?e:t}},69861:(e,t,n)=>{"use strict";t.__esModule=!0;var r=a(n(40281)),i=a(n(9176)),o="function"===typeof i.default&&"symbol"===typeof r.default?function(e){return typeof e}:function(e){return e&&"function"===typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof i.default&&"symbol"===o(r.default)?function(e){return"undefined"===typeof e?"undefined":o(e)}:function(e){return e&&"function"===typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":"undefined"===typeof e?"undefined":o(e)}},43679:(e,t,n)=>{n(30521),e.exports=n(99085).Object.assign},93610:(e,t,n)=>{n(92884);var r=n(99085).Object;e.exports=function(e,t){return r.create(e,t)}},58635:(e,t,n)=>{n(39333);var r=n(99085).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},2865:(e,t,n)=>{n(48083),e.exports=n(99085).Object.setPrototypeOf},61563:(e,t,n)=>{n(81711),n(34983),n(67783),n(91755),e.exports=n(99085).Symbol},12469:(e,t,n)=>{n(41280),n(26467),e.exports=n(35581).f("iterator")},31052:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},63839:e=>{e.exports=function(){}},49853:(e,t,n)=>{var r=n(97056);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},60035:(e,t,n)=>{var r=n(37130),i=n(29676),o=n(23e3);e.exports=function(e){return function(t,n,a){var s,c=r(t),l=i(c.length),u=o(a,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},1628:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},99085:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},90653:(e,t,n)=>{var r=n(31052);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},58441:e=>{e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},36006:(e,t,n)=>{e.exports=!n(31713)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},93029:(e,t,n)=>{var r=n(97056),i=n(97181).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},67757:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},77976:(e,t,n)=>{var r=n(96146),i=n(96469),o=n(47258);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),c=o.f,l=0;s.length>l;
vendor: 13,386 bytes, line 2
2)c.call(e,a=s[l++])&&t.push(a);return t}},86460:(e,t,n)=>{var r=n(97181),i=n(99085),o=n(90653),a=n(27426),s=n(36940),c="prototype",l=function(e,t,n){var u,d,h,f=e&l.F,p=e&l.G,g=e&l.S,y=e&l.P,m=e&l.B,v=e&l.W,b=p?i:i[t]||(i[t]={}),w=b[c],x=p?r:g?r[t]:(r[t]||{})[c];for(u in p&&(n=t),n)(d=!f&&x&&void 0!==x[u])&&s(b,u)||(h=d?x[u]:n[u],b[u]=p&&"function"!=typeof x[u]?n[u]:m&&d?o(h,r):v&&x[u]==h?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[c]=e[c],t}(h):y&&"function"==typeof h?o(Function.call,h):h,y&&((b.virtual||(b.virtual={}))[u]=h,e&l.R&&w&&!w[u]&&a(w,u,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},31713:e=>{e.exports=function(e){try{return!!e()}catch(t){return!0}}},97181:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},36940:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},27426:(e,t,n)=>{var r=n(73590),i=n(34177);e.exports=n(36006)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},69795:(e,t,n)=>{var r=n(97181).document;e.exports=r&&r.documentElement},65695:(e,t,n)=>{e.exports=!n(36006)&&!n(31713)((function(){return 7!=Object.defineProperty(n(93029)("div"),"a",{get:function(){return 7}}).a}))},32988:(e,t,n)=>{var r=n(1628);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},64842:(e,t,n)=>{var r=n(1628);e.exports=Array.isArray||function(e){return"Array"==r(e)}},97056:e=>{e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},62433:(e,t,n)=>{"use strict";var r=n(58978),i=n(34177),o=n(77661),a={};n(27426)(a,n(38999)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},8654:(e,t,n)=>{"use strict";var r=n(80595),i=n(86460),o=n(19988),a=n(27426),s=n(3455),c=n(62433),l=n(77661),u=n(85112),d=n(38999)("iterator"),h=!([].keys&&"next"in[].keys()),f="keys",p="values",g=function(){return this};e.exports=function(e,t,n,y,m,v,b){c(n,t,y);var w,x,S,A=function(e){if(!h&&e in E)return E[e];switch(e){case f:case p:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",O=m==p,_=!1,E=e.prototype,I=E[d]||E["@@iterator"]||m&&E[m],j=I||A(m),$=m?O?A("entries"):j:void 0,T="Array"==t&&E.entries||I;if(T&&(S=u(T.call(new e)))!==Object.prototype&&S.next&&(l(S,k,!0),r||"function"==typeof S[d]||a(S,d,g)),O&&I&&I.name!==p&&(_=!0,j=function(){return I.call(this)}),r&&!b||!h&&!_&&E[d]||a(E,d,j),s[t]=j,s[k]=g,m)if(w={values:O?j:A(p),keys:v?j:A(f),entries:$},b)for(x in w)x in E||o(E,x,w[x]);else i(i.P+i.F*(h||_),t,w);return w}},5111:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},3455:e=>{e.exports={}},80595:e=>{e.exports=!0},65963:(e,t,n)=>{var r=n(48162)("meta"),i=n(97056),o=n(36940),a=n(73590).f,s=0,c=Object.isExtensible||function(){return!0},l=!n(31713)((function(){return c(Object.preventExtensions({}))})),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return l&&d.NEED&&c(e)&&!o(e,r)&&u(e),e}}},19447:(e,t,n)=>{"use strict";var r=n(36006),i=n(96146),o=n(96469),a=n(47258),s=n(49907),c=n(32988),l=Object.assign;e.exports=!l||n(31713)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r}))?function(e,t){for(var n=s(e),l=arguments.length,u=1,d=o.f,h=a.f;l>u;)for(var f,p=c(arguments[u++]),g=d?i(p).concat(d(p)):i(p),y=g.length,m=0;y>m;)f=g[m++],r&&!h.call(p,f)||(n[f]=p[f]);return n}:l},58978:(e,t,n)=>{var r=n(49853),i=n(20829),o=n(67757),a=n(88185)("IE_PROTO"),s=function(){},c="prototype",l=function(){var e,t=n(93029)("iframe"),r=o.length;for(t.style.display="none",n(69795).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l[c][o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},73590:(e,t,n)=>{var r=n(49853),i=n(65695),o=n(35723),a=Object.defineProperty;t.f=n(36006)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},20829:(e,t,n)=>{var r=n(73590),i=n(49853),o=n(96146);e.exports=n(36006)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,c=0;s>c;)r.f(e,n=a[c++],t[n]);return e}},10096:(e,t,n)=>{var r=n(47258),i=n(34177),o=n(37130),a=n(35723),s=n(36940),c=n(65695),l=Object.getOwnPropertyDescriptor;t.f=n(36006)?l:function(e,t){if(e=o(e),t=a(t,!0),c)try{return l(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},28108:(e,t,n)=>{var r=n(37130),i=n(17858).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(t){return a.slice()}}(e):i(r(e))}},17858:(e,t,n)=>{var r=n(26750),i=n(67757).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},96469:(e,t)=>{t.f=Object.getOwnPropertySymbols},85112:(e,t,n)=>{var r=n(36940),i=n(49907),o=n(88185)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},26750:(e,t,n)=>{var r=n(36940),i=n(37130),o=n(60035)(!1),a=n(88185)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(l,n)||l.push(n));return l}},96146:(e,t,n)=>{var r=n(26750),i=n(67757);e.exports=Object.keys||function(e){return r(e,i)}},47258:(e,t)=>{t.f={}.propertyIsEnumerable},34177:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},19988:(e,t,n)=>{e.exports=n(27426)},81795:(e,t,n)=>{var r=n(97056),i=n(49853),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(90653)(Function.call,n(10096).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},77661:(e,t,n)=>{var r=n(73590).f,i=n(36940),o=n(38999)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},88185:(e,t,n)=>{var r=n(39135)("keys"),i=n(48162);e.exports=function(e){return r[e]||(r[e]=i(e))}},39135:(e,t,n)=>{var r=n(99085),i=n(97181),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(80595)?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},24817:(e,t,n)=>{var r=n(69588),i=n(58441);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},23e3:(e,t,n)=>{var r=n(69588),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},69588:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},37130:(e,t,n)=>{var r=n(32988),i=n(58441);e.exports=function(e){return r(i(e))}},29676:(e,t,n)=>{var r=n(69588),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},49907:(e,t,n)=>{var r=n(58441);e.exports=function(e){return Object(r(e))}},35723:(e,t,n)=>{var r=n(97056);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},48162:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},8011:(e,t,n)=>{var r=n(97181),i=n(99085),o=n(80595),a=n(35581),s=n(73590).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},35581:(e,t,n)=>{t.f=n(38999)},38999:(e,t,n)=>{var r=n(39135)("wks"),i=n(48162),o=n(97181).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},58636:(e,t,n)=>{"use strict";var r=n(63839),i=n(5111),o=n(3455),a=n(37130);e.exports=n(8654)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},30521:(e,t,n)=>{var r=n(86460);r(r.S+r.F,"Object",{assign:n(19447)})},92884:(e,t,n)=>{var r=n(86460);r(r.S,"Object",{create:n(58978)})},39333:(e,t,n)=>{var r=n(86460);r(r.S+r.F*!n(36006),"Object",{defineProperty:n(73590).f})},48083:(e,t,n)=>{var r=n(86460);r(r.S,"Object",{setPrototypeOf:n(81795).set})},34983:()=>{},41280:(e,t,n)=>{"use strict";var r=n(24817)(!0);n(8654)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},81711:(e,t,n)=>{"use strict";var r=n(97181),i=n(36940),o=n(36006),a=n(86460),s=n(19988),c=n(65963).KEY,l=n(31713),u=n(39135),d=n(77661),h=n(48162),f=n(38999),p=n(35581),g=n(8011),y=n(77976),m=n(64842),v=n(49853),b=n(97056),w=n(49907),x=n(37130),S=n(35723),A=n(34177),k=n(58978),O=n(28108),_=n(10096),E=n(96469),I=n(73590),j=n(96146),$=_.f,T=I.f,C=O.f,P=r.Symbol,R=r.JSON,N=R&&R.stringify,M="prototype",F=f("_hidden"),D=f("toPrimitive"),L={}.propertyIsEnumerable,B=u("symbol-registry"),U=u("symbols"),W=u("op-symbols"),H=Object[M],z="function"==typeof P&&!!E.f,q=r.QObject,V=!q||!q[M]||!q[M].findChild,G=o&&l((function(){return 7!=k(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=$(H,t);r&&delete H[t],T(e,t,n),r&&e!==H&&T(H,t,r)}:T,Y=function(e){var t=U[e]=k(P[M]);return t._k=e,t},K=z&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},X=function(e,t,n){return e===H&&X(W,t,n),v(e),t=S(t,!0),v(n),i(U,t)?(n.enumerable?(i(e,F)&&e[F][t]&&(e[F][t]=!1),n=k(n,{enumerable:A(0,!1)})):(i(e,F)||T(e,F,A(1,{})),e[F][t]=!0),G(e,t,n)):T(e,t,n)},J=function(e,t){v(e);for(var n,r=y(t=x(t)),i=0,o=r.length;o>i;)X(e,n=r[i++],t[n]);return e},Q=function(e){var t=L.call(this,e=S(e,!0));return!(this===H&&i(U,e)&&!i(W,e))&&(!(t||!i(this,e)||!i(U,e)||i(this,F)&&this[F][e])||t)},Z=function(e,t){if(e=x(e),t=S(t,!0),e!==H||!i(U,t)||i(W,t)){var n=$(e,t);return!n||!i(U,t)||i(e,F)&&e[F][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=C(x(e)),r=[],o=0;n.length>o;)i(U,t=n[o++])||t==F||t==c||r.push(t);return r},te=function(e){for(var t,n=e===H,r=C(n?W:x(e)),o=[],a=0;r.length>a;)!i(U,t=r[a++])||n&&!i(H,t)||o.push(U[t]);return o};z||(s((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),i(this,F)&&i(this[F],e)&&(this[F][e]=!1),G(this,e,A(1,n))};return o&&V&&G(H,e,{configurable:!0,set:t}),Y(e)})[M],"toString",(function(){return this._k})),_.f=Z,I.f=X,n(17858).f=O.f=ee,n(47258).f=Q,E.f=te,o&&!n(80595)&&s(H,"propertyIsEnumerable",Q,!0),p.f=function(e){return Y(f(e))}),a(a.G+a.W+a.F*!z,{Symbol:P});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)f(ne[re++]);for(var ie=j(f.store),oe=0;ie.length>oe;)g(ie[oe++]);a(a.S+a.F*!z,"Symbol",{for:function(e){return i(B,e+="")?B[e]:B[e]=P(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!z,"Object",{create:function(e,t){return void 0===t?k(e):J(k(e),t)},defineProperty:X,defineProperties:J,getOwnPropertyDescriptor:Z,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=l((function(){E.f(1)}));a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return E.f(w(e))}}),R&&a(a.S+a.F*(!z||l((function(){var e=P();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!K(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,N.apply(R,r)}}),P[M][D]||n(27426)(P[M],D,P[M].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)}
2,67783:(e,t,n)=>{n(8011)("asyncIterator")},91755:(e,t,n)=>{n(8011)("observable")},26467:(e,t,n)=>{n(58636);for(var r=n(97181),i=n(27426),o=n(3455),a=n(38999)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var l=s[c],u=r[l],d=u&&u.prototype;d&&!d[a]&&i(d,a,l),o[l]=o.Array}},46676:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],c=o[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),u=0,d=c>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,l=r-i;s<l;s+=a)o.push(c(e,s,s+a>l?l:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},9062:e=>{e.exports=function(e,t){if(!Boolean(e))throw new Error(t||"unknown assertion error")}},93325:(e,t,n)=>{"use strict";const r=n(46676),i=n(66897),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,n)}function l(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|g(e,t);let r=s(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);const i=function(e){if(c.isBuffer(e)){const t=0|p(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||X(e.length)?s(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');
vendor: 7,567 bytes, line 2
2if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|p(e))}function h(e){const t=e.length<0?0:0|p(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function p(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(i)return r?-1:V(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return $(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;o<s;o++)if(l(e,o)===l(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===c)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){let n=!0;for(let r=0;r<c;r++)if(l(e,o+r)!==l(t,r)){n=!1;break}if(n)return o}return-1}function w(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(X(r))return a;e[n+a]=r}return a}function x(e,t,n,r){return Y(V(t,e.length-n),e,n,r)}function S(e,t,n,r){return Y(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function A(e,t,n,r){return Y(G(t),e,n,r)}function k(e,t,n,r){return Y(function(e,t){let n,r,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function O(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128===(192&n)&&(c=(31&t)<<6|63&n,c>127&&(o=c));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=E));return n}(r)}t.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?s(e):void 0!==t?"string"===typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},c.allocUnsafe=function(e){return d(e)},c.allocUnsafeSlow=function(e){return d(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).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}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=c.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(K(t,Uint8Array))i+t.length>r.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?_(this,0,e):y.apply(this,arguments)}
vendor: 12,242 bytes, line 2
2,c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n);for(let c=0;c<s;++c)if(l[c]!==u[c]){o=l[c],a=u[c];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":case"latin1":case"binary":return S(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function I(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function j(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function $(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let o=t;o<n;++o)i+=J[e[o]];return i}function T(e,t,n){const r=e.slice(t,n);let i="";for(let o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function C(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function R(e,t,n,r,i){W(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function N(e,t,n,r,i){W(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function M(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,o){return t=+t,n>>>=0,o||M(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,o){return t=+t,n>>>=0,o||M(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Q((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),c.prototype.readBigUInt64BE=Q((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||C(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||C(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Q((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),c.prototype.readBigInt64BE=Q((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||C(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||C(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||C(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||C(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){P(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){P(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Q((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Q((function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);P(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);P(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Q((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Q((function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},c.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=c.isBuffer(e)?e:c.from(e,r),a=o.length;
2if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}return this};const L={};function B(e,t,n){L[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function U(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function W(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"===typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new L.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||z(t,e.length-(n+1))}(r,i,o)}function H(e,t){if("number"!==typeof e)throw new L.ERR_INVALID_ARG_TYPE(t,"number",e)}function z(e,t,n){if(Math.floor(e)!==e)throw H(e,n),new L.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new L.ERR_BUFFER_OUT_OF_BOUNDS;throw new L.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}B("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),B("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),B("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=U(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=U(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function V(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function Y(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!==e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Q(e){return"undefined"===typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},74703:function(e,t,n){e.exports=function(){var e=e||function(e,t){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(50477)}catch(y){}var i=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(y){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(y){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},s=a.lib={},c=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.a
vendor: 4,717 bytes, line 2
2pply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=s.WordArray=c.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<i;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(i());return new l.init(t,e)}}),u=a.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},f=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*c,o);if(c){for(var d=0;d<c;d+=a)this._doProcessBlock(i,d);n=i.splice(0,c),r.sigBytes-=u}return new l.init(n,u)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(s.Hasher=p.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new g.HMAC.init(e,n).finalize(t)}}}),a.algo={});return a}(Math);return e}()},18134:function(e,t,n){!function(){var t;e.exports=(t=n(74703),t.enc.Hex)}()},87427:function(e,t,n){!function(){var t;e.exports=(t=n(74703),function(e){var n=t,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),c[i]=n(e.pow(r,1/3)),i++),r++}();var l=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],h=n[7],f=0;f<64;f++){if(f<16)l[f]=0|e[t+f];else{var p=l[f-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,y=l[f-2],m=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;l[f]=g+l[f-7]+m+l[f-16]}var v=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+c[f]+l[f];h=d,d=u,u=s,s=a+w|0,a=o,o=i,i=r,r=w+(b+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(u),n.HmacSHA256=o._createHmacHelper(u)}(Math),t.SHA256)}()},4159:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",c="week",l="month",u="quarter",d="year",h="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
vendor: 4,483 bytes, line 2
2|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={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(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),o=n-i<0,a=t.clone().add(r+(o?-1:1),l);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:h,h:a,m:o,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=y;var x="$isDayjsObject",S=function(e){return e instanceof _||!(!e||!e[x])},A=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var o=t.toLowerCase();w[o]&&(i=o),n&&(w[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},k=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new _(n)},O=v;O.l=A,O.i=S,O.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function y(e){this.$L=A(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var m=y.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(O.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return O},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return k(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<k(e)},m.$g=function(e,t,n){return O.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,r=!!O.u(t)||t,u=O.p(e),f=function(e,t){var i=O.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},p=function(e,t){return O.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,y=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case d:return r?f(1,0):f(31,11);case l:return r?f(1,y):f(0,y+1);case c:var b=this.$locale().weekStart||0,w=(g<b?g+7:g)-b;return f(r?m-w:m+(6-w),y);case s:case h:return p(v+"Hours",0);case a:return p(v+"Minutes",1);case o:return p(v+"Seconds",2);case i:return p(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var n,c=O.p(e),u="set"+(this.$u?"UTC":""),f=(n={},n[s]=u+"Date",n[h]=u+"Date",n[l]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],p=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var g=this.clone().set(h,1);g.$d[f](p),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[O.p(e)]()},m.add=function(r,u){var h,f=this;r=Number(r);var p=O.p(u),g=function(e){var t=k(f);return O.w(t.date(t.date()+Math.round(e*r)),f)};if(p===l)return this.set(l,this.$M+r);if(p===d)return this.set(d,this.$y+r);if(p===s)return g(1);if(p===c)return g(7);var y=(h={},h[o]=t,h[a]=n,h[i]=e,h)[p]||1,m=this.$d.getTime()+r*y;return O.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),o=this.$H,a=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,o){return e&&(e[
2n]||e(t,r))||i[n].slice(0,o)},h=function(e){return O.s(o%12||12,e,"0")},p=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return O.s(t.$y,4,"0");case"M":return s+1;case"MM":return O.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,l,3);case"MMMM":return d(l,s);case"D":return t.$D;case"DD":return O.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(o);case"HH":return O.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(o,a,!0);case"A":return p(o,a,!1);case"m":return String(a);case"mm":return O.s(a,2,"0");case"s":return String(t.$s);case"ss":return O.s(t.$s,2,"0");case"SSS":return O.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,h,f){var p,g=this,y=O.p(h),m=k(r),v=(m.utcOffset()-this.utcOffset())*t,b=this-m,w=function(){return O.m(g,m)};switch(y){case d:p=w()/12;break;case l:p=w();break;case u:p=w()/3;break;case c:p=(b-v)/6048e5;break;case s:p=(b-v)/864e5;break;case a:p=b/n;break;case o:p=b/t;break;case i:p=b/e;break;default:p=b}return f?p:O.a(p)},m.daysInMonth=function(){return this.endOf(l).$D},m.$locale=function(){return w[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=A(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},y}(),E=_.prototype;return k.prototype=E,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",l],["$y",d],["$D",h]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),k.extend=function(e,t){return e.$i||(e(t,_,k),e.$i=!0),k},k.locale=A,k.isDayjs=S,k.unix=function(e){return k(1e3*e)},k.en=w[b],k.Ls=w,k.p={},k}()},33731:function(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={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(e,t){return"W"===t?e+"\u5468":e+"\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(e,t){var n=100*e+t;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1100?"\u4e0a\u5348":n<1300?"\u4e2d\u5348":n<1800?"\u4e0b\u5348":"\u665a\u4e0a"}};return n.default.locale(r,null,!0),r}(n(4159))},2704:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.dayOfYear=function(e){var t=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day")}}}()},43540:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,i){var o=r.prototype;o.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=i(this).startOf(t).add(1,t).date(r),a=i(this).endOf(e);if(o.isBefore(a))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(s,e,!0);return c<0?i(this).startOf("week").week():Math.ceil(c)},o.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},28981:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"===typeof e}function r(e){return"object"===typeof e&&null!==e}function i(e){return void 0===e}e.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,o,a,s,c,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(i(o=this._events[e]))return!1;if(n(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;
vendor: 4,730 bytes, line 2
2default:s=Array.prototype.slice.call(arguments,1),o.apply(this,s)}else if(r(o))for(s=Array.prototype.slice.call(arguments,1),a=(l=o.slice()).length,c=0;c<a;c++)l[c].apply(this,s);return!0},t.prototype.addListener=function(e,o){var a;if(!n(o))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(o.listener)?o.listener:o),this._events[e]?r(this._events[e])?this._events[e].push(o):this._events[e]=[this._events[e],o]:this._events[e]=o,r(this._events[e])&&!this._events[e].warned&&(a=i(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"===typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,o,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(i=this._events[e]).length,o=-1,i===t||n(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(r(i)){for(s=a;s-- >0;)if(i[s]===t||i[s].listener&&i[s].listener===t){o=s;break}if(o<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},66897:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=l}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,l=8*o-i-1,u=(1<<l)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+f]=255&a,f+=p,a/=256,l-=8);e[n+f-p]|=128*g}},61596:e=>{"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},22434:(e,t,n)=>{var r=n(20220)(n(14759),"DataView");e.exports=r},1111:(e,t,n)=>{var r=n(76958),i=n(41176),o=n(1787),a=n(70231),s=n(27455);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},85661:(e,t,n)=>{var r=n(5088),i=n(10150),o=n(7889),a=n(44349),s=n(33077);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},81465:(e,t,n)=>{var r=n(20220)(n(14759),"Map");e.exports=r},54467:(e,t,n)=>{var r=n(40738),i=n(70708),o=n(26823),a=n(20475),s=n(77859);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c}
vendor: 2,906 bytes, line 2
2,30202:(e,t,n)=>{var r=n(20220)(n(14759),"Promise");e.exports=r},57887:(e,t,n)=>{var r=n(20220)(n(14759),"Set");e.exports=r},36669:(e,t,n)=>{var r=n(54467),i=n(62274),o=n(69757);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},25535:(e,t,n)=>{var r=n(85661),i=n(44710),o=n(78384),a=n(87379),s=n(80799),c=n(12791);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=c,e.exports=l},4635:(e,t,n)=>{var r=n(14759).Symbol;e.exports=r},48246:(e,t,n)=>{var r=n(14759).Uint8Array;e.exports=r},94801:(e,t,n)=>{var r=n(20220)(n(14759),"WeakMap");e.exports=r},65507:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},60299:e=>{e.exports=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}},48951:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},46860:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},83107:(e,t,n)=>{var r=n(11049);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},23259:e=>{e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},37405:(e,t,n)=>{var r=n(44102),i=n(24578),o=n(12279),a=n(6794),s=n(97059),c=n(71641),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),h=!n&&!u&&!d&&c(e),f=n||u||d||h,p=f?r(e.length,String):[],g=p.length;for(var y in e)!t&&!l.call(e,y)||f&&("length"==y||d&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,g))||p.push(y);return p}},61570:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},87518:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},61516:e=>{e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},56010:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},29508:e=>{e.exports=function(e){return e.split("")}},71443:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},51983:(e,t,n)=>{var r=n(10366),i=n(44206);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},77305:(e,t,n)=>{var r=n(10366),i=n(44206),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},45099:(e,t,n)=>{var r=n(44206);e.exports=function(e,t){for(var n=e.length;n--;
vendor: 4,372 bytes, line 2
2)if(r(e[n][0],t))return n;return-1}},41971:(e,t,n)=>{var r=n(20927);e.exports=function(e,t,n,i){return r(e,(function(e,r,o){t(i,e,n(e),o)})),i}},40291:(e,t,n)=>{var r=n(83965),i=n(65724);e.exports=function(e,t){return e&&r(t,i(t),e)}},62064:(e,t,n)=>{var r=n(83965),i=n(31235);e.exports=function(e,t){return e&&r(t,i(t),e)}},10366:(e,t,n)=>{var r=n(88925);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},79645:(e,t,n)=>{var r=n(25535),i=n(48951),o=n(77305),a=n(40291),s=n(62064),c=n(8984),l=n(76321),u=n(21849),d=n(63586),h=n(93660),f=n(36387),p=n(25531),g=n(17203),y=n(10997),m=n(35539),v=n(12279),b=n(6794),w=n(97744),x=n(24567),S=n(5738),A=n(65724),k=n(31235),O="[object Arguments]",_="[object Function]",E="[object Object]",I={};I[O]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[E]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[_]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,j,$,T,C){var P,R=1&n,N=2&n,M=4&n;if(j&&(P=T?j(t,$,T,C):j(t)),void 0!==P)return P;if(!x(t))return t;var F=v(t);if(F){if(P=g(t),!R)return l(t,P)}else{var D=p(t),L=D==_||"[object GeneratorFunction]"==D;if(b(t))return c(t,R);if(D==E||D==O||L&&!T){if(P=N||L?{}:m(t),!R)return N?d(t,s(P,t)):u(t,a(P,t))}else{if(!I[D])return T?t:{};P=y(t,D,R)}}C||(C=new r);var B=C.get(t);if(B)return B;C.set(t,P),S(t)?t.forEach((function(r){P.add(e(r,n,j,r,t,C))})):w(t)&&t.forEach((function(r,i){P.set(i,e(r,n,j,i,t,C))}));var U=F?void 0:(M?N?f:h:N?k:A)(t);return i(U||t,(function(r,i){U&&(r=t[i=r]),o(P,i,e(r,n,j,i,t,C))})),P}},48230:(e,t,n)=>{var r=n(24567),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},25901:(e,t,n)=>{var r=n(36669),i=n(83107),o=n(23259),a=n(61570),s=n(35639),c=n(63445);e.exports=function(e,t,n,l){var u=-1,d=i,h=!0,f=e.length,p=[],g=t.length;if(!f)return p;n&&(t=a(t,s(n))),l?(d=o,h=!1):t.length>=200&&(d=c,h=!1,t=new r(t));e:for(;++u<f;){var y=e[u],m=null==n?y:n(y);if(y=l||0!==y?y:0,h&&m===m){for(var v=g;v--;)if(t[v]===m)continue e;p.push(y)}else d(t,m,l)||p.push(y)}return p}},20927:(e,t,n)=>{var r=n(70423),i=n(73267)(r);e.exports=i},6993:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},26810:(e,t,n)=>{var r=n(87518),i=n(97989);e.exports=function e(t,n,o,a,s){var c=-1,l=t.length;for(o||(o=i),s||(s=[]);++c<l;){var u=t[c];n>0&&o(u)?n>1?e(u,n-1,o,a,s):r(s,u):a||(s[s.length]=u)}return s}},93031:(e,t,n)=>{var r=n(45211)();e.exports=r},70423:(e,t,n)=>{var r=n(93031),i=n(65724);e.exports=function(e,t){return e&&r(e,t,i)}},10052:(e,t,n)=>{var r=n(26463),i=n(92535);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},54761:(e,t,n)=>{var r=n(87518),i=n(12279);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},22022:(e,t,n)=>{var r=n(4635),i=n(81581),o=n(65336),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},22320:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},14591:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},11049:(e,t,n)=>{var r=n(6993),i=n(85381),o=n(97825);e.exports=function(e,t,n){return t===t?o(e,t,n):r(e,i,n)}},63165:e=>{e.exports=function(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}},96255:(e,t,n)=>{var r=n(36669),i=n(83107),o=n(23259),a=n(61570),s=n(35639),c=n(63445),l=Math.min;e.exports=function(e,t,n){for(var u=n?o:i,d=e[0].length,h=e.length,f=h,p=Array(h),g=1/0,y=[];f--;){var m=e[f];f&&t&&(m=a(m,s(t))),g=l(m.length,g),p[f]=!n&&(t||d>=120&&m.length>=120)?new r(f&&m):void 0}m=e[0];var v=-1,b=p[0];e:for(;++v<d&&y.length<g;){var w=m[v],x=t?t(w):w;if(w=n||0!==w?w:0,!(b?c(b,x):u(y,x,n))){for(f=h;--f;){var S=p[f];if(!(S?c(S,x):u(e[f],x,n)))continue e}
2b&&b.push(x),y.push(w)}}return y}},73012:(e,t,n)=>{var r=n(22022),i=n(39248);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},1404:(e,t,n)=>{var r=n(92130),i=n(39248);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,o,a,e,s))}},92130:(e,t,n)=>{var r=n(25535),i=n(49757),o=n(21416),a=n(16195),s=n(25531),c=n(12279),l=n(6794),u=n(71641),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,y,m){var v=c(e),b=c(t),w=v?h:s(e),x=b?h:s(t),S=(w=w==d?f:w)==f,A=(x=x==d?f:x)==f,k=w==x;if(k&&l(e)){if(!l(t))return!1;v=!0,S=!1}if(k&&!S)return m||(m=new r),v||u(e)?i(e,t,n,g,y,m):o(e,t,w,n,g,y,m);if(!(1&n)){var O=S&&p.call(e,"__wrapped__"),_=A&&p.call(t,"__wrapped__");if(O||_){var E=O?e.value():e,I=_?t.value():t;return m||(m=new r),y(E,I,n,g,m)}}return!!k&&(m||(m=new r),a(e,t,n,g,y,m))}},3530:(e,t,n)=>{var r=n(25531),i=n(39248);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},24489:(e,t,n)=>{var r=n(25535),i=n(1404);e.exports=function(e,t,n,o){var a=n.length,s=a,c=!o;if(null==e)return!s;for(e=Object(e);a--;){var l=n[a];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){var u=(l=n[a])[0],d=e[u],h=l[1];if(c&&l[2]){if(void 0===d&&!(u in e))return!1}else{var f=new r;if(o)var p=o(d,h,u,e,t,f);if(!(void 0===p?i(h,d,3,o,f):p))return!1}}return!0}},85381:e=>{e.exports=function(e){return e!==e}},57949:(e,t,n)=>{var r=n(93008),i=n(73306),o=n(24567),a=n(29131),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?h:s).test(a(e))}},63152:(e,t,n)=>{var r=n(25531),i=n(39248);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},38183:(e,t,n)=>{var r=n(22022),i=n(5776),o=n(39248),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},15127:(e,t,n)=>{var r=n(79769),i=n(44104),o=n(69002),a=n(12279),s=n(78857);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},37462:(e,t,n)=>{var r=n(82161),i=n(25112),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},28833:(e,t,n)=>{var r=n(24567),i=n(82161),o=n(7175),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},56602:(e,t,n)=>{var r=n(20927),i=n(97840);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},79769:(e,t,n)=>{var r=n(24489),i=n(13334),o=n(14243);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},44104:(e,t,n)=>{var r=n(1404),i=n(87946),o=n(15321),a=n(65916),s=n(29794),c=n(14243),l=n(92535);e.exports=function(e,t){return a(e)&&s(t)?c(l(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},47436:(e,t,n)=>{var r=n(25535),i=n(51983),o=n(93031),a=n(58994),s=n(24567),c=n(31235),l=n(69924);e.exports=function e(t,n,u,d,h){t!==n&&o(n,(function(o,c){if(h||(h=new r),s(o))a(t,n,c,u,e,d,h);else{var f=d?d(l(t,c),o,c+"",t,n,h):void 0;void 0===f&&(f=o),i(t,c,f)}}),c)}},58994:(e,t,n)=>{var r=n(51983),i=n(8984),o=n(58463),a=n(76321),s=n(35539),c=n(24578),l=n(12279),u=n(53815),d=n(6794),h=n(93008),f=n(24567),p=n(75461),g=n(71641),y=n(69924),m=n(28774);e.exports=function(e,t,n,v,b,w,x){var S=y(e,n),A=y(t,n),k=x.get(A);if(k)r(e,n,k);else{var O=w?w(S,A,n+"",e,t,x):void 0,_=void 0===O;if(_){var E=l(A),I=!E&&d(A),j=!E&&!I&&g(A);O=A,E||I||j?l(S)?O=S:u(S)?O=a(S):I?(_=!1,O=i(A,!0)):j?(_=!1,O=o(A,!0)):O=[]:p(A)||c(A)?(O=S,c(S)?O=m(S):f(S)&&!h(S)||(O=s(A))):_=!1}_&&(x.set(A,O),b(O,A,v,w,x),x.delete(A)),r(e,n,O)}}},28245:(e,t,n)=>{var r=n(61570),i=n(10052),o=n(15127),a=n(56602),s=n(67311),c=n(35639),l=n(68152),u=n(69002),d=n(12279);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[u];var h=-1;t=r(t,c(o));var f=a(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++h,value:e}}));return s(f,(function(e,t){return l(e,t,n)}))}},95271:(e,t,n)=>{var r=n(92038),i=n(15321);e.exports=function(e,t){return r(e,t,(function(t,n){return i(e,n)}))}}
2,92038:(e,t,n)=>{var r=n(10052),i=n(76992),o=n(26463);e.exports=function(e,t,n){for(var a=-1,s=t.length,c={};++a<s;){var l=t[a],u=r(e,l);n(u,l)&&i(c,o(l,e),u)}return c}},29343:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},84753:(e,t,n)=>{var r=n(10052);e.exports=function(e){return function(t){return r(t,e)}}},19725:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},86718:(e,t,n)=>{var r=n(61570),i=n(11049),o=n(63165),a=n(35639),s=n(76321),c=Array.prototype.splice;e.exports=function(e,t,n,l){var u=l?o:i,d=-1,h=t.length,f=e;for(e===t&&(t=s(t)),n&&(f=r(e,a(n)));++d<h;)for(var p=0,g=t[d],y=n?n(g):g;(p=u(f,y,p,l))>-1;)f!==e&&c.call(f,p,1),c.call(e,p,1);return e}},64181:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,s=n(t((r-e)/(i||1)),0),c=Array(s);s--;)c[o?s:++a]=e,e+=i;return c}},77685:e=>{var t=Math.floor;e.exports=function(e,n){var r="";if(!e||n<1||n>9007199254740991)return r;do{n%2&&(r+=e),(n=t(n/2))&&(e+=e)}while(n);return r}},80516:(e,t,n)=>{var r=n(69002),i=n(24295),o=n(1043);e.exports=function(e,t){return o(i(e,t,r),e+"")}},76992:(e,t,n)=>{var r=n(77305),i=n(26463),o=n(97059),a=n(24567),s=n(92535);e.exports=function(e,t,n,c){if(!a(e))return e;for(var l=-1,u=(t=i(t,e)).length,d=u-1,h=e;null!=h&&++l<u;){var f=s(t[l]),p=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(l!=d){var g=h[f];void 0===(p=c?c(g,f,h):void 0)&&(p=a(g)?g:o(t[l+1])?[]:{})}r(h,f,p),h=h[f]}return e}},65148:(e,t,n)=>{var r=n(96800),i=n(88925),o=n(69002),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},4978:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},67311:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},44102:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},91582:(e,t,n)=>{var r=n(4635),i=n(61570),o=n(12279),a=n(50184),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},86914:(e,t,n)=>{var r=n(88798),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},35639:e=>{e.exports=function(e){return function(t){return e(t)}}},88183:(e,t,n)=>{var r=n(36669),i=n(83107),o=n(23259),a=n(63445),s=n(3739),c=n(26557);e.exports=function(e,t,n){var l=-1,u=i,d=e.length,h=!0,f=[],p=f;if(n)h=!1,u=o;else if(d>=200){var g=t?null:s(e);if(g)return c(g);h=!1,u=a,p=new r}else p=t?[]:f;e:for(;++l<d;){var y=e[l],m=t?t(y):y;if(y=n||0!==y?y:0,h&&m===m){for(var v=p.length;v--;)if(p[v]===m)continue e;t&&p.push(m),f.push(y)}else u(p,m,n)||(p!==f&&p.push(m),f.push(y))}return f}},96949:(e,t,n)=>{var r=n(26463),i=n(47988),o=n(88639),a=n(92535);e.exports=function(e,t){return t=r(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},34696:e=>{e.exports=function(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}},63445:e=>{e.exports=function(e,t){return e.has(t)}},77795:(e,t,n)=>{var r=n(53815);e.exports=function(e){return r(e)?e:[]}},26463:(e,t,n)=>{var r=n(12279),i=n(65916),o=n(17044),a=n(54008);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},16212:(e,t,n)=>{var r=n(4978);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},75871:(e,t,n)=>{var r=n(48246);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},8984:(e,t,n)=>{e=n.nmd(e);var r=n(14759),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},93863:(e,t,n)=>{var r=n(75871);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},91991:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},42106:(e,t,n)=>
vendor: 4,397 bytes, line 2
2{var r=n(4635),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},58463:(e,t,n)=>{var r=n(75871);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},656:(e,t,n)=>{var r=n(50184);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e===e,a=r(e),s=void 0!==t,c=null===t,l=t===t,u=r(t);if(!c&&!u&&!a&&e>t||a&&s&&l&&!c&&!u||i&&s&&l||!n&&l||!o)return 1;if(!i&&!a&&!u&&e<t||u&&n&&o&&!i&&!a||c&&n&&o||!s&&o||!l)return-1}return 0}},68152:(e,t,n)=>{var r=n(656);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,c=n.length;++i<s;){var l=r(o[i],a[i]);if(l)return i>=c?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}},76321:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},83965:(e,t,n)=>{var r=n(77305),i=n(10366);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var l=t[s],u=o?o(n[l],e[l],l,n,e):void 0;void 0===u&&(u=e[l]),a?i(n,l,u):r(n,l,u)}return n}},21849:(e,t,n)=>{var r=n(83965),i=n(98194);e.exports=function(e,t){return r(e,i(e),t)}},63586:(e,t,n)=>{var r=n(83965),i=n(9653);e.exports=function(e,t){return r(e,i(e),t)}},64123:(e,t,n)=>{var r=n(14759)["__core-js_shared__"];e.exports=r},86942:(e,t,n)=>{var r=n(60299),i=n(41971),o=n(15127),a=n(12279);e.exports=function(e,t){return function(n,s){var c=a(n)?r:i,l=t?t():{};return c(n,e,o(s,2),l)}}},64681:(e,t,n)=>{var r=n(80516),i=n(99042);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var c=n[r];c&&e(t,c,r,a)}return t}))}},73267:(e,t,n)=>{var r=n(97840);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},45211:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}},66689:(e,t,n)=>{var r=n(16212),i=n(21536),o=n(10078),a=n(54008);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),c=n?r(n,1).join(""):t.slice(1);return s[e]()+c}}},59189:(e,t,n)=>{var r=n(61516),i=n(91454),o=n(71047),a=RegExp("['\u2019]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},79954:(e,t,n)=>{var r=n(64181),i=n(99042),o=n(314);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t<n?1:-1:o(a),r(t,n,a,e)}}},3739:(e,t,n)=>{var r=n(57887),i=n(19208),o=n(26557),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},41288:(e,t,n)=>{var r=n(75461);e.exports=function(e){return r(e)?void 0:e}},2269:(e,t,n)=>{var r=n(19725)({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"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"
vendor: 4,785 bytes, line 2
2:"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"});e.exports=r},88925:(e,t,n)=>{var r=n(20220),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},49757:(e,t,n)=>{var r=n(36669),i=n(56010),o=n(63445);e.exports=function(e,t,n,a,s,c){var l=1&n,u=e.length,d=t.length;if(u!=d&&!(l&&d>u))return!1;var h=c.get(e),f=c.get(t);if(h&&f)return h==t&&f==e;var p=-1,g=!0,y=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++p<u;){var m=e[p],v=t[p];if(a)var b=l?a(v,m,p,t,e,c):a(m,v,p,e,t,c);if(void 0!==b){if(b)continue;g=!1;break}if(y){if(!i(t,(function(e,t){if(!o(y,t)&&(m===e||s(m,e,n,a,c)))return y.push(t)}))){g=!1;break}}else if(m!==v&&!s(m,v,n,a,c)){g=!1;break}}return c.delete(e),c.delete(t),g}},21416:(e,t,n)=>{var r=n(4635),i=n(48246),o=n(44206),a=n(49757),s=n(90943),c=n(26557),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,d,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var p=1&r;if(f||(f=c),e.size!=t.size&&!p)return!1;var g=h.get(e);if(g)return g==t;r|=2,h.set(e,t);var y=a(f(e),f(t),r,l,d,h);return h.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},16195:(e,t,n)=>{var r=n(93660),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var c=1&n,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var d=u;d--;){var h=l[d];if(!(c?h in t:i.call(t,h)))return!1}var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var y=c;++d<u;){var m=e[h=l[d]],v=t[h];if(o)var b=c?o(v,m,h,t,e,s):o(m,v,h,e,t,s);if(!(void 0===b?m===v||a(m,v,n,o,s):b)){g=!1;break}y||(y="constructor"==h)}if(g&&!y){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(g=!1)}return s.delete(e),s.delete(t),g}},65002:(e,t,n)=>{var r=n(32964),i=n(24295),o=n(1043);e.exports=function(e){return o(i(e,void 0,r),e+"")}},16658:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},93660:(e,t,n)=>{var r=n(54761),i=n(98194),o=n(65724);e.exports=function(e){return r(e,o,i)}},36387:(e,t,n)=>{var r=n(54761),i=n(9653),o=n(31235);e.exports=function(e){return r(e,o,i)}},77101:(e,t,n)=>{var r=n(94672);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},13334:(e,t,n)=>{var r=n(29794),i=n(65724);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},20220:(e,t,n)=>{var r=n(57949),i=n(98166);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},42253:(e,t,n)=>{var r=n(62621)(Object.getPrototypeOf,Object);e.exports=r},81581:(e,t,n)=>{var r=n(4635),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(c){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},98194:(e,t,n)=>{var r=n(46860),i=n(71515),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},9653:(e,t,n)=>{var r=n(87518),i=n(42253),o=n(98194),a=n(71515),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},25531:(e,t,n)=>{var r=n(22434),i=n(81465),o=n(30202),a=n(57887),s=n(94801),c=n(22022),l=n(29131),u="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",g=l(r),y=l(i),m=l(o),v=l(a),b=l(s),w=c;
vendor: 4,147 bytes, line 2
2(r&&w(new r(new ArrayBuffer(1)))!=p||i&&w(new i)!=u||o&&w(o.resolve())!=d||a&&w(new a)!=h||s&&w(new s)!=f)&&(w=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case g:return p;case y:return u;case m:return d;case v:return h;case b:return f}return t}),e.exports=w},98166:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},10964:(e,t,n)=>{var r=n(26463),i=n(24578),o=n(12279),a=n(97059),s=n(5776),c=n(92535);e.exports=function(e,t,n){for(var l=-1,u=(t=r(t,e)).length,d=!1;++l<u;){var h=c(t[l]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++l!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(h,u)&&(o(e)||i(e))}},21536:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},98300:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},76958:(e,t,n)=>{var r=n(73616);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},41176:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1787:(e,t,n)=>{var r=n(73616),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},70231:(e,t,n)=>{var r=n(73616),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},27455:(e,t,n)=>{var r=n(73616);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},17203:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},10997:(e,t,n)=>{var r=n(75871),i=n(93863),o=n(91991),a=n(42106),s=n(58463);e.exports=function(e,t,n){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return i(e,n);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 s(e,n);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},35539:(e,t,n)=>{var r=n(48230),i=n(42253),o=n(82161);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},97989:(e,t,n)=>{var r=n(4635),i=n(24578),o=n(12279),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},97059:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},99042:(e,t,n)=>{var r=n(44206),i=n(97840),o=n(97059),a=n(24567);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},65916:(e,t,n)=>{var r=n(12279),i=n(50184),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},94672:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},73306:(e,t,n)=>{var r=n(64123),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},82161:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},29794:(e,t,n)=>{var r=n(24567);e.exports=function(e){return e===e&&!r(e)}},5088:e=>{e.exports=function(){this.__data__=[],this.size=0}},10150:(e,t,n)=>{var r=n(45099),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);
vendor: 6,134 bytes, line 2
2return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},7889:(e,t,n)=>{var r=n(45099);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},44349:(e,t,n)=>{var r=n(45099);e.exports=function(e){return r(this.__data__,e)>-1}},33077:(e,t,n)=>{var r=n(45099);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},40738:(e,t,n)=>{var r=n(1111),i=n(85661),o=n(81465);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},70708:(e,t,n)=>{var r=n(77101);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},26823:(e,t,n)=>{var r=n(77101);e.exports=function(e){return r(this,e).get(e)}},20475:(e,t,n)=>{var r=n(77101);e.exports=function(e){return r(this,e).has(e)}},77859:(e,t,n)=>{var r=n(77101);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},90943:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},14243:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},23734:(e,t,n)=>{var r=n(42434);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},73616:(e,t,n)=>{var r=n(20220)(Object,"create");e.exports=r},25112:(e,t,n)=>{var r=n(62621)(Object.keys,Object);e.exports=r},7175:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},82479:(e,t,n)=>{e=n.nmd(e);var r=n(16658),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},65336:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},62621:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},24295:(e,t,n)=>{var r=n(65507),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),c=Array(s);++a<s;)c[a]=o[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=o[a];return l[t]=n(c),r(e,this,l)}}},88639:(e,t,n)=>{var r=n(10052),i=n(4978);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},14759:(e,t,n)=>{var r=n(16658),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},69924:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},62274:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},69757:e=>{e.exports=function(e){return this.__data__.has(e)}},26557:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},1043:(e,t,n)=>{var r=n(65148),i=n(42929)(r);e.exports=i},42929:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},44710:(e,t,n)=>{var r=n(85661);e.exports=function(){this.__data__=new r,this.size=0}},78384:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},87379:e=>{e.exports=function(e){return this.__data__.get(e)}},80799:e=>{e.exports=function(e){return this.__data__.has(e)}},12791:(e,t,n)=>{var r=n(85661),i=n(81465),o=n(54467);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},97825:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},10078:(e,t,n)=>{var r=n(29508),i=n(21536),o=n(29892);e.exports=function(e){return i(e)?o(e):r(e)}},17044:(e,t,n)=>{var r=n(23734),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},92535:(e,t,n)=>{var r=n(50184);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},29131:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},88798:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},29892:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+i+")"+"?",l="[\\ufe0e\\ufe0f]?",u=l+c+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+l+c+")*"),d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",h=RegExp(i+"(?="+i+")|"+d+u,"g");e.exports=function(e){return e.match(h)||[]}},3315:e=>{var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",a="["+o+"]",s="\\d+",c="["+n+"]",l="["+r+"]",u="[^"+t+o+s+n+r+i+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",f="["+i+"]",p="(?:"+l+"|"+u+")",g="(?:"+f+"|"+u+")",y="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",m="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",w=b+v+("(?:\\u200d(?:"+["[^"+t+"]",d,h].join("|")+")"+b+v+")*"),x="(?:"+[c,d,h].join("|")+")"+w,S=RegExp([f+"?"+l+"+"+y+"(?="+[a,f,"$"].join("|")+")",g+"+"+m+"(?="+[a,f+p,"$"].join("|")+")",f+"?"+p+"+"+y,f+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,x].join("|"),"g");e.exports=function(e){return e.match(S)||[]}},56808:(e,t,n)=>{var r=n(36014),i=n(59189)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=i}
2,36014:(e,t,n)=>{var r=n(54008),i=n(3414);e.exports=function(e){return i(r(e).toLowerCase())}},55117:(e,t,n)=>{var r=n(79645);e.exports=function(e){return r(e,5)}},96800:e=>{e.exports=function(e){return function(){return e}}},91454:(e,t,n)=>{var r=n(2269),i=n(54008),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},67391:(e,t,n)=>{var r=n(25901),i=n(26810),o=n(80516),a=n(53815),s=o((function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]}));e.exports=s},81038:(e,t,n)=>{var r=n(25901),i=n(26810),o=n(15127),a=n(80516),s=n(53815),c=n(47988),l=a((function(e,t){var n=c(t);return s(n)&&(n=void 0),s(e)?r(e,i(t,1,s,!0),o(n,2)):[]}));e.exports=l},44206:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},32964:(e,t,n)=>{var r=n(26810);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},87946:(e,t,n)=>{var r=n(10052);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},33684:(e,t,n)=>{var r=n(10366),i=n(86942),o=Object.prototype.hasOwnProperty,a=i((function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},26094:(e,t,n)=>{var r=n(22320),i=n(10964);e.exports=function(e,t){return null!=e&&i(e,t,r)}},15321:(e,t,n)=>{var r=n(14591),i=n(10964);e.exports=function(e,t){return null!=e&&i(e,t,r)}},69002:e=>{e.exports=function(e){return e}},92437:(e,t,n)=>{var r=n(61570),i=n(96255),o=n(80516),a=n(77795),s=o((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]}));e.exports=s},53408:(e,t,n)=>{var r=n(61570),i=n(96255),o=n(15127),a=n(80516),s=n(77795),c=n(47988),l=a((function(e){var t=c(e),n=r(e,s);return t===c(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?i(n,o(t,2)):[]}));e.exports=l},24578:(e,t,n)=>{var r=n(73012),i=n(39248),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},12279:e=>{var t=Array.isArray;e.exports=t},97840:(e,t,n)=>{var r=n(93008),i=n(5776);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},53815:(e,t,n)=>{var r=n(97840),i=n(39248);e.exports=function(e){return i(e)&&r(e)}},6794:(e,t,n)=>{e=n.nmd(e);var r=n(14759),i=n(63721),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c},59418:(e,t,n)=>{var r=n(1404);e.exports=function(e,t){return r(e,t)}},93008:(e,t,n)=>{var r=n(22022),i=n(24567);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5776:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},97744:(e,t,n)=>{var r=n(3530),i=n(35639),o=n(82479),a=o&&o.isMap,s=a?i(a):r;e.exports=s},24567:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},39248:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},75461:(e,t,n)=>{var r=n(22022),i=n(42253),o=n(39248),a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,u=c.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},5738:(e,t,n)=>{var r=n(63152),i=n(35639),o=n(82479),a=o&&o.isSet,s=a?i(a):r;e.exports=s},50184:(e,t,n)=>{var r=n(22022),i=n(39248);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},71641:(e,t,n)=>{var r=n(38183),i=n(35639),o=n(82479),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},65724:(e,t,n)=>{var r=n(37405),i=n(37462),o=n(97840);e.exports=function(e){return o(e)?r(e):i(e)}},31235:(e,t,n)=>{var r=n(37405),i=n(28833),o=n(97840);e.exports=function(e){return o(e)?r(e,!0):i(e)}},47988:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},42434:(e,t,n)=>{var r=n(54467);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},23334:(e,t,n)=>{var r=n(47436),i=n(64681)((function(e,t,n){r(e,t,n)}));e.exports=i},89986:(e,t,n)=>{var r=n(47436),i=n(64681)((function(e,t,n,i){r(e,t,n,i)}));e.exports=i},19208:e=>{e.exports=function(){}}
2,92093:(e,t,n)=>{var r=n(61570),i=n(79645),o=n(96949),a=n(26463),s=n(83965),c=n(41288),l=n(65002),u=n(36387),d=l((function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,(function(t){return t=a(t,e),l||(l=t.length>1),t})),s(e,u(e),n),l&&(n=i(n,7,c));for(var d=t.length;d--;)o(n,t[d]);return n}));e.exports=d},75357:(e,t,n)=>{var r=n(95271),i=n(65002)((function(e,t){return null==e?{}:r(e,t)}));e.exports=i},78857:(e,t,n)=>{var r=n(29343),i=n(84753),o=n(65916),a=n(92535);e.exports=function(e){return o(e)?r(a(e)):i(e)}},23887:(e,t,n)=>{var r=n(80516)(n(77392));e.exports=r},77392:(e,t,n)=>{var r=n(86718);e.exports=function(e,t){return e&&e.length&&t&&t.length?r(e,t):e}},39939:(e,t,n)=>{var r=n(79954)();e.exports=r},43095:(e,t,n)=>{var r=n(77685),i=n(99042),o=n(25171),a=n(54008);e.exports=function(e,t,n){return t=(n?i(e,t,n):void 0===t)?1:o(t),r(a(e),t)}},38230:(e,t,n)=>{var r=n(76992);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},21261:(e,t,n)=>{var r=n(26810),i=n(28245),o=n(80516),a=n(99042),s=o((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},71515:e=>{e.exports=function(){return[]}},63721:e=>{e.exports=function(){return!1}},314:(e,t,n)=>{var r=n(72588),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},25171:(e,t,n)=>{var r=n(314);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},72588:(e,t,n)=>{var r=n(86914),i=n(24567),o=n(50184),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},28774:(e,t,n)=>{var r=n(83965),i=n(31235);e.exports=function(e){return r(e,i(e))}},54008:(e,t,n)=>{var r=n(91582);e.exports=function(e){return null==e?"":r(e)}},92177:(e,t,n)=>{var r=n(26810),i=n(80516),o=n(88183),a=n(53815),s=i((function(e){return o(r(e,1,a,!0))}));e.exports=s},47292:(e,t,n)=>{var r=n(26810),i=n(15127),o=n(80516),a=n(88183),s=n(53815),c=n(47988),l=o((function(e){var t=c(e);return s(t)&&(t=void 0),a(r(e,1,s,!0),i(t,2))}));e.exports=l},80561:(e,t,n)=>{var r=n(88183);e.exports=function(e){return e&&e.length?r(e):[]}},35420:(e,t,n)=>{var r=n(15127),i=n(88183);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},47951:(e,t,n)=>{var r=n(96949);e.exports=function(e,t){return null==e||r(e,t)}},3414:(e,t,n)=>{var r=n(66689)("toUpperCase");e.exports=r},71047:(e,t,n)=>{var r=n(71443),i=n(98300),o=n(54008),a=n(3315);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?i(e)?a(e):r(e):e.match(t)||[]}},45630:(e,t,n)=>{var r=n(77305),i=n(34696);e.exports=function(e,t){return i(e||[],t||[],r)}},7817:function(e,t,n){var r,i;r=function(){var e={version:"0.2.0"},t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function n(e,t,n){return e<t?t:e>n?n:e}function r(e){return 100*(-1+e)}function i(e,n,i){var o;return(o="translate3d"===t.positionUsing?{transform:"translate3d("+r(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+r(e)+"%,0)"}:{"margin-left":r(e)+"%"}).transition="all "+n+"ms "+i,o}e.configure=function(e){var n,r;for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var s=e.isStarted();r=n(r,t.minimum,1),e.status=1===r?null:r;var c=e.render(!s),l=c.querySelector(t.barSelector),u=t.speed,d=t.easing;return c.offsetWidth,o((function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),a(l,i(r,u,d)),1===r?(a(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout((function(){a(c,{transition:"all "+u+"ms linear",opacity:0}
2),setTimeout((function(){e.remove(),n()}),u)}),u)):setTimeout(n,u)})),this},e.isStarted=function(){return"number"===typeof e.status},e.start=function(){e.status||e.set(0);var n=function(){setTimeout((function(){e.status&&(e.trickle(),n())}),t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var r=e.status;return r?("number"!==typeof t&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&e.start(),t++,n++,r.always((function(){0===--n?(t=0,e.done()):e.set((t-n)/t)})),this):this}}(),e.render=function(n){if(e.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var i=document.createElement("div");i.id="nprogress",i.innerHTML=t.template;var o,s=i.querySelector(t.barSelector),l=n?"-100":r(e.status||0),u=document.querySelector(t.parent);return a(s,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),t.showSpinner||(o=i.querySelector(t.spinnerSelector))&&d(o),u!=document.body&&c(u,"nprogress-custom-parent"),u.appendChild(i),i},e.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&d(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var o=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),a=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,i=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((r=e[i]+o)in n)return r;return t}function i(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=i(t),e.style[t]=n}return function(e,t){var n,r,i=arguments;if(2==i.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,i[1],i[2])}}();function s(e,t){return("string"==typeof e?e:u(e)).indexOf(" "+t+" ")>=0}function c(e,t){var n=u(e),r=n+t;s(n,t)||(e.className=r.substring(1))}function l(e,t){var n,r=u(e);s(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function u(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e},void 0===(i="function"===typeof r?r.call(t,n,t,e):r)||(e.exports=i)},84189:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeAbleActionDef=t.relationActions=t.genericActions=t.excludeRemoveActions=t.excludeUpdateActions=t.appendOnlyActions=t.readOnlyActions=void 0,t.readOnlyActions=["count","stat","download","select","aggregate"],t.appendOnlyActions=t.readOnlyActions.concat("create"),t.excludeUpdateActions=t.appendOnlyActions.concat("remove"),t.excludeRemoveActions=t.appendOnlyActions.concat("update"),t.genericActions=t.excludeUpdateActions.concat("update"),t.relationActions=["grant","revoke"];t.makeAbleActionDef=e=>({stm:{enable:["disabled","enabled"],disable:["enabled","disabled"]},is:e})},65390:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SYSTEM_RESERVE_ENTITIES=t.RESERVED_ENTITY_NAMES=void 0,t.RESERVED_ENTITY_NAMES=["Schema","Filter","Query","SubQuery","Entity","Selection","Operation","File","Common","Config","Configuration","Locale","Projection","Data"],t.SYSTEM_RESERVE_ENTITIES=["user","relation","oper","operEntity","modi","modiEntity","userRelation","actionAuth","relationAuth","relation","userEntityGrant","i18n"]},92300:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncContext=void 0;const r=n(37827),i=n(16269),o=n(84189),a=r.__importDefault(n(9062)),s=n(25007);t.AsyncContext=class{rowStore;uuid;opRecords;scene;headers;clusterInfo;opResult;message;events;constructor(e){this.rowStore=e,this.opRecords=[],this.events={commit:[],rollback:[]},this.opResult={}}
2async restartToExecute(e){const t=await this.getSerializedData(),n=new(Object.getPrototypeOf(this).constructor)(this.rowStore);await n.begin(),await n.initialize(t,!0),n.opRecords=[],n.events={commit:[],rollback:[]},n.opResult={};try{await e(n),await n.commit()}catch(r){throw await n.rollback(),r}}getHeader(e){if(this.headers)return this.headers[e]}getScene(){return this.scene}setScene(e){this.scene=e}resetEvents(){this.events={commit:[],rollback:[]}}on(e,t){this.uuid&&this.events[e].push(t)}saveOpRecord(e,t){const{action:n,data:r,filter:s,id:c}=t;switch(n){case"create":this.opRecords.push({id:c,a:"c",e:e,d:r});break;case"remove":{const t=r[i.DeleteAtAttribute];(0,a.default)(t),this.opRecords.push({id:c,a:"r",d:{[i.DeleteAtAttribute]:t},e:e,f:s});break}default:(0,a.default)(!o.readOnlyActions.includes(n)),this.opRecords.push({id:c,a:n,e:e,d:r,f:s})}}getRowIdsOfOperation(e){const{id:t,action:n,data:r,filter:i}=e;if("create"===n)return r instanceof Array?r.map((e=>e.id)):[r.id];if(i){const e=(0,s.getRelevantIds)(i);if(e.length>0)return e}const o=this.opRecords.find((e=>e.id===t));if(o){const{a:e}=o;(0,a.default)("create"!==e);const{f:t}=o;return(0,a.default)(t&&t?.id?.$in&&t.id.$in instanceof Array),t.id.$in}return[]}async begin(e){this.uuid?(0,a.default)(!1):this.uuid=await this.rowStore.begin(e)}async commit(){if(this.uuid){await this.rowStore.commit(this.uuid);const{commit:e}=this.events,t=await this.toString();e.forEach((e=>e(this.opRecords,t))),this.uuid=void 0,this.resetEvents(),this.opRecords=[],this.opResult={},this.message=""}}async rollback(){if(this.uuid){await this.rowStore.rollback(this.uuid);const{rollback:e}=this.events,t=await this.toString();e.forEach((e=>e(this.opRecords,t))),this.uuid=void 0,this.opRecords=[],this.opResult={},this.resetEvents()}}async operate(e,t,n){const r=await this.rowStore.operate(e,t,this,n);return this.opResult=this.mergeMultipleResults([this.opResult,r]),r}select(e,t,n){return this.rowStore.select(e,t,this,n)}aggregate(e,t,n){return this.rowStore.aggregate(e,t,this,n)}count(e,t,n){return this.rowStore.count(e,t,this,n)}exec(e,t){return this.rowStore.exec(e,t)}mergeMultipleResults(e){return this.rowStore.mergeMultipleResults(e)}getCurrentTxnId(){return this.uuid}getSchema(){return this.rowStore.getSchema()}setMessage(e){this.message=e}getMessage(){return this.message}}},85402:(e,t,n)=>{"use strict";t.wU=t.sM=void 0;const r=n(37827).__importDefault(n(9062)),i=n(50598),o=n(45864),a=n(25007),s=n(65201),c=n(16269),l=n(61328),u=n(92300),d=n(25007),h=n(5638),f=n(65390),p=n(2972);function g(e,t,n,o,a){const{filter:l,data:u,sorter:h}=n,p=(e,t)=>{t.forEach((t=>{e.hasOwnProperty(t)||Object.assign(e,{[t]:1})}))},y=(t,n,i,o,a)=>{const l=["id"];for(const u in n){if("#id"===u)(0,r.default)(!a[n[u]],`projection\u4e2d\u7ed3\u70b9\u7684id\u6709\u91cd\u590d, ${n[u]}`),Object.assign(a,{[n[u]]:i}),o[n[u]]&&p(i,o[n[u]]);else if(["$and","$or"].includes(u))for(const e of n[u])y(t,e,i,o,a);else if("$not"===u)y(t,n[u],i,o,a);else if("$text"===u){const{indexes:n}=e[t],r=n.find((e=>e.config&&"fulltext"===e.config.type)),{attributes:i}=r;l.push(...i.map((e=>e.name)))}else if(u.toLowerCase().startsWith(c.EXPRESSION_PREFIX)){const e=(0,c.getAttrRefInExpression)(n[u]);for(const t in e)"#current"===t?p(i,e[t]):a[t]?p(a[t],e[t]):o[t]?o[t].push(...e[t]):Object.assign(o,{[t]:e[t]})}else{const r=(0,s.judgeRelation)(e,t,u);1===r?l.push(u):2===r?(l.push("entity","entityId"),i[u]||Object.assign(i,{[u]:{id:1}}),y(u,n[u],i[u],o,a)):"string"===typeof r&&(l.push(`${u}Id`),i[u]||Object.assign(i,{[u]:{id:1}}),y(r,n[u],i[u],o,a))}p(i,l)}};let m=[];if(l){y(t,l,u,{},{}),m=(0,d.getRelevantIds)(l)}h&&((t,n,i)=>{const o=(t,n,i)=>{const a=[];for(const c in n){const l=(0,s.judgeRelation)(e,t,c);"number"===typeof l&&[0,1].includes(l)?a.push(c):"string"===typeof l?(i[c]||Object.assign(i,{[c]:{}}),(0,r.default)("object"===typeof n[c]),o(l,n[c],i[c])):((0,r.default)(2===l),i[c]||Object.assign(i,{[c]:{}}),(0,r.default)("object"===typeof n[c]),o(c,n[c],i[c]))}p(i,a)};n.forEach((e=>{const{$attr:n}=e;o(t,n,i)}))})(t,h,u);const v={},b={},w=(t,n,l)=>{const u=[c.PrimaryKeyAttribute,i.CreateAtAttribute,i.UpdateAtAttribute];l&&a?.includedDeleted&&u.push(i.DeleteAtAttribute);for(const i in n){if("#id"===i)(0,r.default)(!b[n[i]],`projection\u4e2d\u7ed3\u70b9\u7684id\u6709\u91cd\u590d, ${n[i]}`),Object.assign(b,{[n[i]]:n}),v[n[i]]&&p(n,v[n[i]]);else if(i.toLowerCase().startsWith(c.EXPRESSION_PREFIX)){const e=(0,c.getAttrRefInExpression)(n[i]);for(const t in e)"#current"===t?p(n,e[t]):b[t]?p(b[t],e[t]):v[t]?v[t].push(...e[t]):Object.assign(v,{[t]:e[t]})}else{const r=(0,s.judgeRelation)(e,t,i);if(1===r)u.push(i);else if(2===r)u.push("entity","entityId"),w(i,n[i]);else if("string"===typeof r)u.push(`${i}Id`),w(r,n[i]);else if(r instanceof Array&&!i.endsWith("$$aggr")){const{data:t,filter:s}=n[i];r[1]?p(t,[r[1]]):p(t,["entity","entityId"]),g(e,r[0],n[i],o,a)}}p(n,u)}if(o&&!a?.dontCollect){const r=o.getCurrentUserId(!0);r&&!f.SYSTEM_RESERVE_ENTITIES.includes(t)&&e[t].relation&&!n.userRelation$entity&&Object.assign(n,{userRelation$entity:{$entity:"userRelation",data:{id:1,entity:1,entity
2Id:1,userId:1,relationId:1,relation:{id:1,name:1,display:1,[i.CreateAtAttribute]:1,[i.UpdateAtAttribute]:1},[i.CreateAtAttribute]:1,[i.UpdateAtAttribute]:1},filter:{userId:r}}})}};w(t,u,!0),h||0!==m.length||(Object.assign(n,{sorter:[{$attr:{$$createAt$$:1},$direction:"desc"}]}),Object.assign(u,{$$createAt$$:1}))}t.sM=g;class y extends o.RowStore{constructor(e){super(e)}selectionRewriters=[];operationRewriters=[];async reinforceSelectionAsync(e,t,n,r,i){i||t.distinct||g(this.getSchema(),e,t,n,r);const o=this.selectionRewriters.map((o=>o(this.getSchema(),e,t,n,r,i)));o.length>0&&await Promise.all(o)}reinforceSelectionSync(e,t,n,i,o){o||t.distinct||g(this.getSchema(),e,t),this.selectionRewriters.forEach((a=>{const s=a(this.getSchema(),e,t,n,i,o);(0,r.default)(!(s instanceof Promise))}))}async reinforceOperation(e,t,n,r){await Promise.all(this.operationRewriters.map((i=>i(this.getSchema(),e,t,n,r))))}registerOperationRewriter(e){this.operationRewriters.push(e)}registerSelectionRewriter(e){this.selectionRewriters.push(e)}destructCascadeSelect(e,t,n,i,o,d,h){const f=[],p=this.supportManyToOneJoin(),{toModi:g}=this.getSchema()[e],y={};(0,r.default)("object"===typeof t);for(const m in t){const v=(0,s.judgeRelation)(this.storageSchema,e,m);if(1===v||0==v)y[m]=t[m];else if(2===v)if((0,r.default)("object"===typeof t[m]),p){f.push((e=>{g||e.forEach((e=>{if(e.entity===m&&((0,r.default)(e.entityId),!e[m]))throw new c.OakRowUnexistedException([{entity:m,selection:{data:t[m],filter:{id:e.entityId}}}])}))}));const{projection:e,cascadeSelectionFns:a}=this.destructCascadeSelect(m,t[m],n,i,o,d,h);a.forEach((e=>f.push((t=>e(t.map((e=>e[m])).filter((e=>!!e))))))),y[m]=e}else f.push((e=>{const o=(0,l.uniq)(e.filter((e=>e.entity===m)).map((e=>((0,r.default)(null!==e.entityId),e.entityId)))),a=i=>{if((0,r.default)(i.length<=o.length),i.length<o.length&&!g&&(n instanceof u.AsyncContext||!d.ignoreAttrMiss))throw new c.OakRowUnexistedException([{entity:m,selection:{id:h,data:t[m],filter:{id:{$in:(0,l.difference)(o,i.map((e=>e.id)))}}}}]);e.forEach((e=>{if(e.entity===m){const t=i.find((t=>t.id===e.entityId));t?Object.assign(e,{[m]:t}):Object.assign(e,{[m]:null})}}))};if(o.length>0){const e=i.call(this,m,{id:h,data:t[m],filter:{id:{$in:o}}},n,d);if(e instanceof Promise)return e.then((e=>a(e)));a(e)}}));else if("string"===typeof v)if((0,r.default)("object"===typeof t[m]),p){g||f.push((e=>{g||e.forEach((e=>{if(e[`${m}Id`]&&!e[m])throw new c.OakRowUnexistedException([{entity:v,selection:{data:t[m],filter:{id:e[`${m}Id`]}}}])}))}));const{projection:e,cascadeSelectionFns:r}=this.destructCascadeSelect(v,t[m],n,i,o,d,h);r.forEach((e=>f.push((t=>e(t.map((e=>e[m])).filter((e=>!!e))))))),y[m]=e}else f.push((e=>{const o=(0,l.uniq)(e.filter((e=>!!e[`${m}Id`])).map((e=>e[`${m}Id`]))),a=i=>{if((0,r.default)(i.length<=o.length),i.length<o.length&&!g&&(n instanceof u.AsyncContext||!d.ignoreAttrMiss))throw new c.OakRowUnexistedException([{entity:v,selection:{data:t[m],filter:{id:{$in:(0,l.difference)(o,i.map((e=>e.id)))}}}}]);e.forEach((e=>{if(e[`${m}Id`]){const t=i.find((t=>t.id===e[`${m}Id`]));t?Object.assign(e,{[m]:t}):Object.assign(e,{[m]:null})}else Object.assign(e,{[m]:null})}))};if(o.length>0){const e=i.call(this,v,{id:h,data:t[m],filter:{id:{$in:o}}},n,d);if(e instanceof Promise)return e.then((e=>a(e)));a(e)}}));else{(0,r.default)(v instanceof Array);const{data:s,filter:c,indexFrom:l,count:p,sorter:g,total:y,randomRange:b,id:w}=t[m],[x,S]=v,A=m.endsWith("$$aggr"),k=t=>{const i=t.map((async t=>
2{const i=S?(0,a.combineFilters)(x,this.getSchema(),[{[S]:t.id},c]):(0,a.combineFilters)(x,this.getSchema(),[{entity:e,entityId:t.id},c]),u=o.call(this,x,{data:s,filter:i,sorter:g,indexFrom:l,count:p},n,d);(0,r.default)(u instanceof Promise);const h=await u;return Object.assign(t,{[m]:h})}));if(i.length>0)return Promise.all(i).then((()=>{}))},O=t=>{const o=e=>{1===t.length?Object.assign(t[0],{[m]:e}):t.forEach((t=>{const n=e.filter((e=>S?e[S]===t.id:e.entityId===t.id));(0,r.default)(n),Object.assign(t,{[m]:n})}))},l=t.map((e=>e.id));if(l.length>0){const t=S?(0,a.combineFilters)(x,this.getSchema(),[{[S]:{$in:l}},c]):(0,a.combineFilters)(x,this.getSchema(),[{entity:e,entityId:{$in:l}},c]),r=i.call(this,x,{id:w||h,data:s,filter:t,sorter:g,total:y},n,d);if(r instanceof Promise)return r.then((e=>o(e)));o(r)}},_=t=>{const r=(e,t)=>{Object.assign(e,{[m]:t})};if(t.length>0){const o=t.map((t=>{const o=S?(0,a.combineFilters)(x,this.getSchema(),[{[S]:t.id},c]):(0,a.combineFilters)(x,this.getSchema(),[{entity:e,entityId:t.id},c]),u=i.call(this,x,{id:w||h,data:s,filter:o,sorter:g,indexFrom:l,count:p,total:y,randomRange:b},n,d);return u instanceof Promise?u.then((e=>r(t,e))):r(t,u)}));return o[0]instanceof Promise?Promise.all(o).then((()=>{})):void 0}};A?n instanceof u.AsyncContext&&f.push((e=>k(e))):f.push((e=>"number"===typeof l?((0,r.default)("number"===typeof p&&p>0),_(e)):O(e)))}}return{projection:y,cascadeSelectionFns:f}}destructCascadeUpdate(e,t,n,i,o,c,l,u){const d=this.getSchema()[e].toModi,f=this.getSchema()[e].toLog,p=Object.assign({},o),g={},y=[],m=[];if(d&&"remove"!==t&&((0,r.default)(!p.modiParentId&&!p.modiParentEntity),"create"===t?(p.modiParentId=n.id,p.modiParentEntity=e):l?.id&&"string"===typeof l.id&&(p.modiParentId=l.id,p.modiParentEntity=e)),f&&"create"!==t&&!o.dontCreateOper){(0,r.default)("string"===typeof l.id),(0,r.default)(!p.logId,"undo\u65e0\u6cd5\u652f\u6301\u5d4c\u5957");const e=(0,h.generateNewId)();p.logId=o.logId=e,Object.assign(n,{log$entity:[{id:(0,h.generateNewId)(),data:{id:e,iState:"normal"},action:"create"}]})}for(const h in n){const o=(0,s.judgeRelation)(this.storageSchema,e,h,!!u);if(1===o)Object.assign(g,{[h]:n[h]});else if(2===o){const o=n[h],{action:s,data:u,filter:d}=o;if("create"===s)Object.assign(g,{entityId:u.id,entity:h});else if("create"===t){const{entityId:e,entity:t}=n;(0,r.default)("string"===typeof e||t===h),d?.id?(0,r.default)(d.id===e):Object.assign(o,{filter:(0,a.combineFilters)(h,this.getSchema(),[{id:e},d])})}else(0,r.default)(!n.hasOwnProperty("entityId")&&!n.hasOwnProperty("entity")),d?.id?(0,r.default)("string"===typeof d.id):l.entity===h&&l.entityId?Object.assign(o,{filter:(0,a.combineFilters)(h,this.getSchema(),[{id:l.entityId},d])}):l[h]?Object.assign(o,{filter:(0,a.combineFilters)(h,this.getSchema(),[l[h],d])}):Object.assign(o,{filter:(0,a.combineFilters)(h,this.getSchema(),[{[`${e}$entity`]:{filter:l}},d])});y.push((()=>c.call(this,h,o,i,p)))}else if("string"===typeof o){const s=n[h],{action:u,data:d,filter:f}=s;if("create"===u)Object.assign(g,{[`${h}Id`]:d.id});else if("create"===t){const{[`${h}Id`]:e}=n;(0,r.default)("string"===typeof e),f?.id?(0,r.default)(f.id===e):Object.assign(s,{filter:(0,a.combineFilters)(o,this.getSchema(),[f,{id:e}])})}else(0,r.default)(!n.hasOwnProperty(`${h}Id`)),f?.id?(0,r.default)("string"===typeof f.id):l[`${h}Id`]?Object.assign(s,{filter:(0,a.combineFilters)(o,this.getSchema(),[f,{id:l[`${h}Id`]}])}):l[h]?Object.assign(s,{filter:(0,a.combineFilters)(o,this.getSchema(),[f,l[h]])}):Object.assign(s,{filter:(0,a.combineFilters)(o,this.getSchema(),[f,{[`${e}$${h}`]:l}])});y.push((()=>c.call(this,o,s,i,p)))}else if(o instanceof Array){const[s,u]=o,d=n[h],f=o=>{const{action:d,data:h,filter:f}=o;if(u)if("create"===t){const{id:e}=n;h instanceof Array?h.forEach((t=>Object.assign(t,{[u]:e}))):Object.assign(h,{[u]:e})}else if("create"===d){const{id:e}=l;(0,r.default)("string"===typeof e),h instanceof Array?h.forEach((t=>Object.assign(t,{[u]:e}))):Object.assign(h,{[u]:e})}else l?l.id&&1===Object.keys(l).length?Object.assign(o,{filter:(0,a.combineFilters)(s,this.get
2Schema(),[{[u]:l.id},f])}):Object.assign(o,{filter:(0,a.combineFilters)(s,this.getSchema(),[{[u.slice(0,u.length-2)]:l},f])}):Object.assign(o,{filter:(0,a.combineFilters)(s,this.getSchema(),[{[u]:{$exists:!0}},f])}),"remove"===t&&"update"===d&&Object.assign(h,{[u]:null});else if("create"===t){const{id:t}=n;h instanceof Array?h.forEach((n=>Object.assign(n,{entity:e,entityId:t}))):Object.assign(h,{entity:e,entityId:t})}else if("create"===d){const{id:t}=l;(0,r.default)("string"===typeof t),h instanceof Array?h.forEach((n=>Object.assign(n,{entity:e,entityId:t}))):Object.assign(h,{entity:e,entityId:t})}else l?l.id&&1===Object.keys(l).length?Object.assign(o,{filter:(0,a.combineFilters)(s,this.getSchema(),[{entity:e,entityId:l.id},f])}):Object.assign(o,{filter:(0,a.combineFilters)(s,this.getSchema(),[{[e]:l},f])}):Object.assign(o,{filter:(0,a.combineFilters)(s,this.getSchema(),[{entity:e,entityId:{$exists:!0}},f])}),"remove"===t&&"update"===d&&Object.assign(h,{entity:null,entityId:null});m.push((()=>c.call(this,s,o,i,p)))};if(d instanceof Array)for(const e of d)f(e);else console.warn("\u4e00\u5bf9\u591a\u7684cascadeUpdate\u5373\u5c06\u5168\u90e8\u5347\u7ea7\u4e3a\u6570\u7ec4\u683c\u5f0f\uff0c\u8bf7\u53ca\u65f6\u4fee\u6b63\u3002by Xc 20250120"),f(d)}else console.warn(`\u63a5\u6536\u5230\u4e0d\u5408\u6cd5\u7684\u5c5e\u6027\u300c${h}\u300d`)}return{data:g,beforeFns:y,afterFns:m}}preProcessDataCreated(e,t){const n=Date.now(),{attributes:r}=this.getSchema()[e],o=e=>{for(const t in r)void 0===e[t]&&Object.assign(e,{[t]:null});Object.assign(e,{[i.CreateAtAttribute]:e[i.CreateAtAttribute]||n,[i.UpdateAtAttribute]:e[i.UpdateAtAttribute]||n,[i.DeleteAtAttribute]:null})};t instanceof Array?t.forEach((e=>o(e))):o(t)}preProcessDataUpdated(e,t,n){Object.keys(t).filter((e=>void 0===t[e])).forEach((e=>(0,l.unset)(t,e)));const r=Date.now();!(Object.keys(t).length>0||"update"!==e)||t[i.UpdateAtAttribute]&&!n||(t[i.UpdateAtAttribute]=r),"remove"!==e||t[i.DeleteAtAttribute]&&!n||(t[i.DeleteAtAttribute]=r)}judgeRelation(e,t){return(0,s.judgeRelation)(this.storageSchema,e,t)}async tryMergeModi(e,t,n,i,o){const{action:a,data:s,filter:c,id:l}=t,[u]=await this.selectAbjointRowAsync("modi",{data:{id:1,data:1,action:1},filter:{targetEntity:e,iState:"active",filter:i.length>0?{id:{$in:i}}:{id:i[0]}},sorter:[{$attr:{$$createAt$$:1},$direction:"desc"}],indexFrom:0,count:1},n,o);if(u){const{data:e,id:t,action:n}=u;return"remove"===a?"create"===n?{id:await(0,h.generateNewIdAsync)(),action:"remove",data:{},filter:{id:u.id}}:((0,r.default)("remove"!==n),{id:await(0,h.generateNewIdAsync)(),action:"update",data:{action:a,data:s},filter:{id:u.id}}):{id:"dummy",action:"update",data:{data:Object.assign({},e,s)},filter:{id:t}}}const{modiParentEntity:d,modiParentId:f}=o;if(d&&f)return{id:"dummy",action:"create",data:{id:l,targetEntity:e,entity:d,entityId:f,action:a,data:s,iState:"active",filter:i.length>0?{id:{$in:i}}:{id:i[0]},modiEntity$modi:[{id:"dummy",action:"create",data:await Promise.all(i.map((async t=>({id:await(0,h.generateNewIdAsync)(),entity:e,entityId:t}))))}]}}}async doUpdateSingleRowAsync(e,t,n,o){const{data:a,action:s,id:u,filter:f,bornAt:g}=t;Date.now();if("create"===s){if(o.modiParentEntity&&!["modi","modiEntity","oper","operEntity"].includes(e)){(0,r.default)(o.modiParentId);const t={id:"dummy",action:"create",data:{id:u,targetEntity:e,action:s,entity:o.modiParentEntity,entityId:o.modiParentId,filter:{id:a.id},data:a,iState:"active"}},i=n.openRootMode();return await this.cascadeUpdateAsync("modi",t,n,o),i(),{modi:{create:1}}}{this.preProcessDataCreated(e,a);let i=0;const c=async t=>{try{await this.updateAbjointRowAsync(e,t,n,o)}catch(r){throw r}};if(a instanceof Array){i=a.length;if(this.supportMultipleCreate())await c(t);else for(const e of a){const t={id:"any",action:"create",data:e};await c(t)}}else i=1,await c(t);if(o.dontCollect||n.saveOpRecord(e,t),!o.dontCreateOper&&!["oper","operEntity","modiEntity","modi","log"].includes(e)){(0,r.default)(u);const t=n.getCurrentUserId(!0);if(t){const r={id:"dummy",action:"create",data:{id:u,action:s,data:a,operatorId:t,targetEntity:e,bornAt:g,operEntity$oper:a instanceof Array?[{id:"dummy",action:"create",data:await Promise.all(a.map((async t=>
2({id:await(0,h.generateNewIdAsync)(),entityId:t.id,entity:e}))))}]:[{id:"dummy",action:"create",data:{id:await(0,h.generateNewIdAsync)(),entityId:a.id,entity:e}}],filter:{id:a instanceof Array?{id:{$in:a.map((e=>e.id))}}:a.id},logId:"log"===e?void 0:o.logId}},i=n.openRootMode();await this.cascadeUpdateAsync("oper",r,n,{dontCollect:!o.logId}),i()}}return{[e]:{create:i}}}}{const y=(0,d.getRelevantIds)(f),m="remove"===s?(0,p.makeProjection)(e,this.getSchema()):(()=>{const e={};return Object.keys(a).forEach((t=>Object.assign(e,{[t]:1}))),e})(),v={};if(0===y.length||o.logId){const r={data:{id:1,...m},filter:t.filter,indexFrom:t.indexFrom,count:t.count};(await this.selectAbjointRowAsync(e,r,n,{dontCollect:!0,forUpdate:!0})).forEach((e=>{y.push(e.id),Object.assign(v,{[e.id]:"remove"===s?e:(0,l.omit)(e,[c.PrimaryKeyAttribute,i.CreateAtAttribute])})}))}if(0===y.length)return{};a&&this.preProcessDataUpdated(s,a,!0);const b=async()=>{const r=await this.tryMergeModi(e,t,n,y,o);if(r){const e=n.openRootMode();return await this.cascadeUpdateAsync("modi",r,n,o),e(),{modi:{create:1}}}return console.warn(`destination includes modies can not be found here: [${e}], [${JSON.stringify(t)}]`),{}},w=async()=>{if("remove"===s)o.dontCollect||n.saveOpRecord(e,{id:u,action:s,data:a,filter:{id:{$in:y}}});else{Object.keys(a).length>0&&(o.dontCollect||n.saveOpRecord(e,{id:u,action:s,data:a,filter:{id:{$in:y}}}))}if(!o.dontCreateOper&&!["oper","operEntity","modiEntity","modi","log"].includes(e)&&y.length>0){(0,r.default)(u);const t=n.getCurrentUserId(!0),i={id:"dummy",action:"create",data:{id:u,action:s,data:a,targetEntity:e,bornAt:g,operatorId:t,operEntity$oper:[{id:"dummy",action:"create",data:await Promise.all(y.map((async t=>({id:await(0,h.generateNewIdAsync)(),entityId:t,entity:e}))))}],filter:{id:{$in:y}},logId:"log"===e?void 0:o.logId,undoData:v}},c=n.openRootMode();await this.cascadeUpdateAsync("oper",i,n,{dontCollect:!o.logId}),c()}return{[e]:{[s]:y.length}}};if("remove"!==s&&0===Object.keys(a).length)return"update"!==s?w():{};if(o.modiParentEntity&&!["modi","modiEntity"].includes(e))return b();{const i=await this.updateAbjointRowAsync(e,t,n,o);return i===y.length?await w():((0,r.default)(0===i,"update\u6210\u529f\u7684\u884c\u6570\u53ea\u80fd\u4e3aid\u6240\u5728\u884c\u6570\u6216\u80050"),await b())}}}doUpdateSingleRow(e,t,n,r){const{data:i,action:o,id:a,filter:s}=t;Date.now();if("create"===o){this.preProcessDataCreated(e,i);let o=0;const a=t=>{try{o+=this.updateAbjointRow(e,t,n,r)}catch(i){throw i}};if(i instanceof Array){if(this.supportMultipleCreate())a(t);else for(const e of i){a({id:"any",action:"create",data:e})}}else a(t);return o}if("remove"===o);else{this.preProcessDataUpdated(o,i);if(0==Object.keys(i).length)return 0}return this.updateAbjointRow(e,t,n,r)}cascadeUpdate(e,t,n,r){const{action:i,data:o,filter:a}=t;let s;const c=[],l=[];if(["create","create-l"].includes(i)&&o instanceof Array){s=[];for(const t of o){const{data:o,beforeFns:a,afterFns:u}=this.destructCascadeUpdate(e,i,t,n,r,this.cascadeUpdate);s.push(o),c.push(...a),l.push(...u)}}else{const{data:t,beforeFns:u,afterFns:d}=this.destructCascadeUpdate(e,i,o,n,r,this.cascadeUpdate,a);s=t,c.push(...u),l.push(...d)}const u=Object.assign({},t,{data:s});for(const d of c)d();this.doUpdateSingleRow(e,u,n,r);for(const d of l)d();return{}}async cascadeUpdateAsync(e,t,n,r){const{action:i,data:o,filter:a,bornAt:s}=t;let c;const l=[],u=[];if(["create","create-l"].includes(i)&&o instanceof Array){c=[];for(const t of o){const{data:o,beforeFns:a,afterFns:d}=this.destructCascadeUpdate(e,i,t,n,r,this.cascadeUpdateAsync,void 0,s);c.push(o),l.push(...a),u.push(...d)}}else{const{data:t,beforeFns:d,afterFns:h}=this.destructCascadeUpdate(e,i,o,n,r,this.cascadeUpdateAsync,a,s);c=t,l.push(...d),u.push(...h)}const d=Object.assign({},t,{data:c});let h={};for(const p of l){const e=await p();h=this.mergeMultipleResults([h,e])}const f=await this.doUpdateSingleRowAsync(e,d,n,r);h=this.mergeMultipleResults([h,f]);for(const p of u){const e=await p();h=this.mergeMultipleResults([h,e])}return h}cascadeSelect(e,t,n,r){const{data:i,filter:o,indexFrom:a,count:s,sorter:l,distinct:u}=t,{projection:d,cascadeSelectionFns:h}=this.destructCascadeSelect(e,i,n,this.cascadeSelect,this.aggregateSync,r),f=this.selectAbjointRow(e,{data:d,filter:o,indexFrom:a,count:s,sorter:l,distinct:u},n,r);if(h.length>0){const e=[];
2if(h.forEach((t=>{try{t(f)}catch(n){if(!(n instanceof c.OakRowUnexistedException))throw n;{const t=n.getRows();e.push(...t)}}})),e.length>0)throw new c.OakRowUnexistedException(e)}return f}addToResultSelections(e,t,n,r){if(this.supportManyToOneJoin()){const i=(0,l.uniq)(t.map((e=>Object.keys(e))).flat()),o=[];for(const s of i){const i=this.judgeRelation(e,s);2===i?this.addToResultSelections(s,t.map((e=>e[s])).filter((e=>!!e)),n,r):"string"===typeof i?this.addToResultSelections(i,t.map((e=>e[s])).filter((e=>!!e)),n,r):i instanceof Array?this.addToResultSelections(i[0],t.map((e=>e[s])).reduce(((e,t)=>e.concat(t)),[]),n,r):o.push(s)}const a=t.map((e=>(0,l.pick)(e,o)));this.addSingleRowToResultSelections(e,a,n,r)}else this.addSingleRowToResultSelections(e,t,n,r)}addSingleRowToResultSelections(e,t,n,r){const{opRecords:o}=n;let a=o[o.length-1];if(a&&"s"===a.a&&r===a.id){const n=a.d[e];if(n)return void t.forEach((e=>{if(e&&e.id&&!e[i.DeleteAtAttribute]){const{id:t}=e;n[t]?Object.assign(n[t],(0,l.cloneDeep)(e)):Object.assign(n,{[t]:(0,l.cloneDeep)(e)})}}))}else a={id:r,a:"s",d:{}},o.push(a);const s={};t.forEach((e=>{if(e&&e.id&&!e[i.DeleteAtAttribute]){const{id:t}=e;Object.assign(s,{[t]:(0,l.cloneDeep)(e)})}})),Object.assign(a.d,{[e]:s})}async cascadeSelectAsync(e,t,n,r){const{data:i,filter:o,indexFrom:a,count:s,sorter:l,total:u,randomRange:d,distinct:h,id:f}=t,{projection:p,cascadeSelectionFns:g}=this.destructCascadeSelect(e,i,n,this.cascadeSelectAsync,this.aggregateAsync,r,f),y=await this.selectAbjointRowAsync(e,{data:p,filter:o,indexFrom:a,distinct:h,count:d||s,sorter:l},n,r);let m=d?[]:y;if(d){const e=s/y.length;let t=y.length-s;m=y.filter((()=>!(Math.random()>e&&t)||(t--,!1)))}if(r.dontCollect||this.addToResultSelections(e,m,n,t.id),g.length>0){const e=[];if(await Promise.all(g.map((async t=>{try{await t(m)}catch(n){if(!(n instanceof c.OakRowUnexistedException))throw n;{const t=n.getRows();e.push(...t)}}}))),e.length>0)throw new c.OakRowUnexistedException(e)}if(u){const i=await this.countAsync(e,{filter:t.filter,count:u},n,r);Object.assign(m,{"#total":i})}return m}async aggregateAsync(e,t,n,r){return await this.reinforceSelectionAsync(e,t,n,r,!0),this.aggregateAbjointRowAsync(e,t,n,r)}aggregateSync(e,t,n,r){return this.reinforceSelectionSync(e,t,n,r,!0),this.aggregateAbjointRowSync(e,t,n,r)}async selectAsync(e,t,n,r){return await this.reinforceSelectionAsync(e,t,n,r),this.cascadeSelectAsync(e,t,n,r)}selectSync(e,t,n,r){return this.reinforceSelectionSync(e,t,n,r),this.cascadeSelect(e,t,n,r)}operateSync(e,t,n,r){return this.cascadeUpdate(e,t,n,r)}async operateAsync(e,t,n,r){return await this.reinforceOperation(e,t,n,r),this.cascadeUpdateAsync(e,t,n,r)}countSync(e,t,n,r){return this.reinforceSelectionSync(e,t,n,r,!0),this.countAbjointRow(e,t,n,r)}countAsync(e,t,n,r){return this.reinforceSelectionAsync(e,t,n,r,!0),this.countAbjointRowAsync(e,t,n,r)}}t.wU=y},77246:(e,t,n)=>{"use strict";t.i=void 0;const r=n(37827),i=n(16269),o=n(61328),a=n(25007),s=n(41146),c=n(95458),l=n(84189),u=r.__importDefault(n(9062));function d(e,t){const n={};for(const r of e){let e="";for(const n of t)null===r[n]||void 0===r[n]?e+=r.id:e+=`-${r[n]}`;if(n[e])throw new i.OakUniqueViolationException([{id:r.id,attrs:t}]);n[e]=1}}function h(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;if(e instanceof Promise)return e.then((e=>{if(e>n)throw new i.OakUniqueViolationException([{id:r,attrs:t}])}));if(e>n)throw new i.OakUniqueViolationException([{id:r,attrs:t}])}function f(e,t,n,r,i){const s=(0,o.pick)(t,r);for(const o in s)null!==s[o]&&void 0!==s[o]||delete s[o];if(Object.keys(s).length<r.length)return;const c=i?(0,a.combineFilters)(e,n.getSchema(),[s,i]):s;return h(n.count(e,{filter:c},{dontCollect:!0}),r,0,t.id)}function p(e,t,n,r,s,c,l,d){const h=(0,o.difference)(Object.keys(r),l),f=(0,o.pick)(r,h),g=n=>{const r=(0,a.analyzeFilterRelation)(e,t,f,n,!0);if("boolean"===typeof r)return r;const{sureAttributes:i}=r,c=(0,o.omit)(n,i);return(0,a.checkFilterContains)(e,d,c,s,!0)},y=l.map((e=>{const{filter:t}=c[e]||{};if(!t)return!0;
2if("function"===typeof t){const e=t({action:n,data:r,filter:s},d);return e instanceof Promise?e.then((e=>!e||g(e))):!e||g(e)}return g(t)})),m=o=>{const a=[],h=[];if((0,u.default)(o.length===l.length),o.forEach(((e,t)=>{e?a.push(l[t]):h.push(l[t])})),0!==h.length){if(0===a.length)throw new i.OakAttrCantUpdateException(e,h,"\u66f4\u65b0\u7684\u884c\u5f53\u524d\u5c5e\u6027\u4e0d\u6ee1\u8db3\u7ea6\u675f\uff0c\u8bf7\u4ed4\u7ec6\u68c0\u67e5\u6570\u636e");return p(e,t,n,r,s,c,h,d)}};return y.find((e=>e instanceof Promise))?Promise.all(y).then((e=>m(e))):m(y)}t.i=function(e,t,n){const r=[];return r.push(...(0,s.createModiRelatedCheckers)(e)),r.push(...(0,c.createRemoveCheckers)(e)),r.push(...(0,c.createCreateCheckers)(e)),r.push(...function(e){const t=[];for(const n in e)for(const r in e[n]){const i=e[n][r],{stm:o,is:a}=i;for(const e in o){const i=o[e],a="string"===typeof i[0]?{[r]:i[0]}:{[r]:{$in:i[0]}};t.push({action:e,type:"row",entity:n,filter:a,errMsg:"\u6570\u636e\u72b6\u6001\u5df2\u7ecf\u6539\u53d8",inconsistentRows:{entity:n,selection:e=>({data:{id:1,[r]:1},filter:e})}}),t.push({action:e,type:"logical",entity:n,checker:t=>{const{data:n}=t;n&&(n instanceof Array?n.forEach((t=>Object.assign(t,{[r]:o[e][1]}))):Object.assign(n,{[r]:o[e][1]}))}})}a&&t.push({action:"create",type:"logical",entity:n,priority:10,checker:e=>{const{data:t}=e;t instanceof Array?t.forEach((e=>{e[r]||Object.assign(e,{[r]:a})})):t&&(t[r]||Object.assign(t,{[r]:a}))}})}return t}(t)),r.push(...function(e){const t=[];for(const n in e){const{indexes:r}=e[n];if(r)for(const e of r)if(e.config?.unique){const{attributes:r}=e,s=r.map((e=>e.name));t.push({entity:n,action:"create",type:"logicalData",priority:i.CHECKER_MAX_PRIORITY,checker:(e,t)=>{const{data:r}=e;if(r instanceof Array){d(r,s);const e=r.map((e=>f(n,e,t,s)));if(e[0]instanceof Promise)return Promise.all(e).then((()=>{}))}else if(r)return f(n,r,t,s)}},{entity:n,action:"update",type:"logicalData",priority:i.CHECKER_MAX_PRIORITY,checker:(e,t)=>{const{data:r,filter:i}=e;if(r){const e=Object.keys(r),c=(0,o.intersection)(e,s);if(0===c.length)return;for(const t of c)if(null===r[t]||void 0===r[t])return;if(c.length===s.length){const e=(0,o.pick)(r,c),l=h(t.count(n,{filter:(0,a.combineFilters)(n,t.getSchema(),[e,{$not:i}])},{dontCollect:!0}),s,0,i?.id),u=h(t.count(n,{filter:i},{dontCollect:!0}),s,1,i?.id);if(u instanceof Promise)return Promise.all([l,u]).then((()=>{}))}const l={id:1};for(const t of s)Object.assign(l,{[t]:1});const u=e=>{const o=e.map((e=>Object.assign(e,r)));d(o,s);const a=o.map((e=>f(n,e,t,s,{$not:i})));if(a[0]instanceof Promise)return Promise.all(a).then((()=>{}))},p=t.select(n,{data:l,filter:i},{dontCollect:!0});return p instanceof Promise?p.then((e=>u(e))):u(p)}}})}}return t}(e)),n&&r.push(...function(e,t){const n=[];for(const r in t){const s=t[r],c=[i.UpdateAtAttribute,i.TriggerDataAttribute,i.TriggerUuidAttribute].concat(Object.keys(s)),{actions:d}=e[r],h=d.filter((e=>!l.readOnlyActions.concat(["create","remove"]).includes(e))),f={entity:r,action:h,type:"logicalData",checker(t,n){let{data:l,filter:d,action:h}=t;const f=Object.keys(l),g=(0,o.difference)(f,c);if(g.length>0)throw new i.OakAttrCantUpdateException(r,g);const y=f.map((e=>s[e])),m=y.map((e=>e?.actions)).filter((e=>!!e)),v=m.length>0&&(0,o.intersection)(m.flat());if(v&&((0,u.default)(h),!v.includes(h))){const e=f.filter((e=>s[e]?.actions&&!s[e]?.actions?.includes(h)));throw new i.OakAttrCantUpdateException(r,e)}const b=y.map((e=>"function"===typeof e?.filter?e.filter({action:h||"select",data:l,filter:d},n):e?.filter)),w=t=>{const o=t.filter((e=>!!e)),c=o.length>0&&(0,a.combineFilters)(r,e,o),u=t=>{if(!t){if(f.length>1)return p(r,e,h||"select",l,d,s,f,n);throw new i.OakAttrCantUpdateException(r,f)}};if(c){const e=(0,a.checkFilterContains)(r,n,c,d,!0);return e instanceof Promise?e.then((e=>u(e))):u(e)}};return b.find((e=>e instanceof Promise))?Promise.all(b).then((e=>w(e))):w(b)}};n.push(f)}return n}(e,n)),r}},84291:(e,t,n)=>{"use strict";t.VB=void 0;const r=n(37827).__importDefault(n(9062)),i=n(16269),o=n(92300),a=n(25007),s=n(65201),c=n(84189),l=n(61328),u=n(65390),d=n(59882);class h{authDeduceRelationMap;
2schema;static SPECIAL_ENTITIES=(()=>u.SYSTEM_RESERVE_ENTITIES)();selectFreeEntities;updateFreeDict;constructor(e,t,n,r){this.schema=e,this.selectFreeEntities=n||[],this.updateFreeDict=r||{},this.authDeduceRelationMap=Object.assign({},t,{modi:"entity"})}checkRelationSync(e,t,n){n.isRoot()||this.checkActions2(e,t,n)}async checkRelationAsync(e,t,n){n.isRoot()||await this.checkActions2(e,t,n)}checkUserRelation(e,t,n){const i=e.getCurrentUserId(),o=(t,n,o)=>{const s=e.select("relationAuth",{data:{id:1,pathId:1,path:{id:1,sourceEntity:1,destEntity:1,value:1,recursive:1},sourceRelationId:1,sourceRelation:{id:1,entity:1,entityId:1},destRelationId:1,destRelation:{id:1,entity:1,entityId:1}},filter:{destRelationId:n}},{dontCollect:!0}),c=n=>{const{destRelation:s,sourceRelationId:c,path:l}=n;(0,r.default)(t===s.entity);let u=this.makePathFilter(t,l,this.schema,{userRelation$entity:{userId:i,relationId:c}});return o&&(u=(0,a.combineFilters)(t,this.schema,[u,o])),e.count(s.entity,{filter:u},{ignoreAttrMiss:!0})};if(s instanceof Promise)return s.then((e=>Promise.all(e.map((e=>c(e)))))).then((e=>!!e.find((e=>((0,r.default)("number"===typeof e),e>0)))));return!!s.map((e=>c(e))).find((e=>e>0))},s=(t,n,i,s)=>{let c=s;const l=(()=>{const n=(0,a.getRelevantIds)(t);if(n.length>0)return n;const i=e.select("relation",{data:{id:1,entity:1,entityId:1},filter:t},{dontCollect:!0});return i instanceof Promise?i.then((e=>(c?(0,r.default)(c===e[0]?.entity):c=e[0]?.entity,e.map((e=>e.id))))):(c?i.length&&(0,r.default)(c===i[0]?.entity):c=i[0]?.entity,i.map((e=>e.id)))})();if(l instanceof Promise)return l.then((e=>((0,r.default)(e.length>0),Promise.all(e.map((e=>o(c,e,i)))).then((e=>n?!e.includes(!1):e.includes(!0))))));if(0===l.length)return!1;const u=l.map((e=>o(c,e,i)));return n?!u.includes(!1):u.includes(!0)};if("create"===t){const{entity:e,entityId:t,relationId:i}=n;let o;return(0,r.default)("string"===typeof e),o=t?{id:t}:n[e],i?s({id:i},!0,o,e):((0,r.default)(t),s({entity:e,$or:[{entityId:{$exists:!1}},{entityId:t}]},!1,o,e))}return(0,r.default)("remove"===t),s({userRelation$relation:n},!1,{userRelation$entity:n},n.entity)}checkOperateSpecialEntities2(e,t,n,i){switch(e){case"userRelation":return(0,r.default)(!(n instanceof Array)),this.checkUserRelation(i,t,n);case"user":return["grant","revoke"].includes(t),!0;case"modi":{(0,r.default)("create"===t);const{entity:e,entityId:o}=n;return this.checkOperation(e,{action:"update",data:{},filter:{id:o}},i)}case"relation":return!1;case"userEntityGrant":if(["create","update","remove"].includes(t)){if("create"===t){const{relationEntity:e,relationEntityFilter:t,relationIds:r}=n;return this.checkOperateSpecialEntities2("userRelation","create",{entity:e,[e]:t,relationId:{$in:r}},i)}return this.checkOperateSpecialEntities2("userRelation","action",{relation:{userEntityGrant$relation:n}},i)}return!0;default:(0,r.default)(!1,`\u5bf9\u8c61${e}\u7684\u6743\u9650\u63a7\u5236\u6ca1\u6709\u52a0\u4ee5\u63a7\u5236`)}}getDeducedEntityFilters(e,t,n,i){const o=[{entity:e,filter:t,actions:n}];if(this.authDeduceRelationMap[e]){(0,r.default)("entity"===this.authDeduceRelationMap[e]);let{entity:a,entityId:s}=t,l={};if(a&&s)l={id:s};else{const{ref:n}=this.schema[e].attributes.entity;(0,r.default)(n instanceof Array);for(const e of n)if(t[e]){a=e,l=t[e];break}}const u=(e,t)=>{const r=c.readOnlyActions.concat([]),o=this.schema[e].actions.filter((e=>!r.includes(e)));return this.getDeducedEntityFilters(e,t,"select"===n[0]?n:o,i)};if(a&&l){const e=u(a,l);return e instanceof Promise?e.then((e=>(o.push(...e),o))):(o.push(...e),o)}{const n=i.select(e,{data:{id:1,entity:1,entityId:1},filter:t,indexFrom:0,count:10},{dontCollect:!0,blockTrigger:!0}),r=e=>{if(e.length>1)return o;if(0===e.length){if(t.id){const e=i.select("modi",{data:{id:1,data:1,entity:1,entityId:1},filter:{filter:t}},{}),n=e=>{if(e[0]){const{entity:t,entityId:n}=e[0];o.push({entity:t,filter:{id:n},actions:["update"]})}return o};return e instanceof Promise?e.then((e=>n(e))):n(e)}return o}const{entity:n,entityId:r}=e[0];if(!n||!r)return o;const a=u(n,{id:r});return a instanceof Promise?a.then((e=>(o.push(...e),o))):(o.push(...a),o)};return n instanceof Promise?n.then((e=>r(e))):r(n)}}return o}destructSelection(e,t){const n=[],i=(e,t)=>{const{data:o,filter:c}=t;let l=!1;
2for(const n in o){const t=(0,s.judgeRelation)(this.schema,e,n);if(t instanceof Array){const[s,u]=t;u?((0,r.default)(!this.authDeduceRelationMap[s]),l=!0,i(s,{data:o[n].data,filter:(0,a.combineFilters)(s,this.schema,[{[u.slice(0,u.length-2)]:c},o[n].filter||{}])})):this.authDeduceRelationMap[s]?(0,r.default)("entity"===this.authDeduceRelationMap[s]):(l=!0,i(s,{data:o[n].data,filter:(0,a.combineFilters)(s,this.schema,[{[e]:c},o[n].filter||{}])}))}}l||n.push({entity:e,filter:c})};return i(e,(0,l.cloneDeep)(t)),n}destructOperation(e,t,n){const i=(e,t)=>{const{data:n,filter:i,bornAt:o}=t;return(0,r.default)(!(n instanceof Array)),n?(0,a.translateCreateDataToFilter)(this.schema,e,n,!!o):i},o=(e,t,n)=>{const i=t.split("$");return(0,r.default)(i.length>=2),this.authDeduceRelationMap[n.entity]===i[1]?((0,r.default)("entity"===i[1],"\u5f53\u524d\u53ea\u652f\u6301entity\u5916\u952e\u4e0a\u7684deduce"),!1):(e.children[t]?e.children[t]instanceof Array?e.children[t].push(n):e.children[t]=[e.children[t],n]:Object.assign(e.children,{[t]:n}),!0)},c=(e,t,a,u,d,h)=>{const{action:f,data:p,filter:g}=t,y="create"===f?i(e,t):g?(0,l.cloneDeep)(g):{};(0,r.default)(y),h&&Object.assign(y,h);const m={entity:e,filter:y,children:{},action:f};let v=m;const b=this.schema[e].toModi&&"remove"!==f;u&&((0,r.default)(a),o(m,a,u)),(0,r.default)(!(p instanceof Array));for(const i in p){const a=(0,s.judgeRelation)(this.schema,e,i,!!t.bornAt);if(2!==a||b)if("string"!==typeof a||b){if(a instanceof Array&&!b){const[t,s]=a,u=p[i];let d;if("userRelation"===t&&"user"!==e){m.userRelations=[],d={entity:e,entityId:y.id};const t=e=>{const{action:t,data:i}=e;if("create"===t){const e=Object.keys(i);(0,r.default)(0===(0,l.difference)(e,Object.keys(this.schema.userRelation.attributes).concat("id")).length),i.userId===n&&m.userRelations?.push(i),(0,r.default)(y.id)}};u instanceof Array?u.forEach((e=>t(e))):t(u)}if(u instanceof Array)u.forEach((e=>{const n=c(t,e,void 0,void 0,!0,d);o(m,i,n)}));else{const e=c(t,u,void 0,void 0,!0,d);o(m,i,e)}}}else(0,r.default)(v===m&&!d,"cascadeUpdate\u5fc5\u987b\u662f\u6811\u7ed3\u6784\uff0c\u907f\u514d\u68ee\u6797"),v=c(a,p[i],`${e}$${i}`,m);else{(0,r.default)(v===m&&!d,"cascadeUpdate\u5fc5\u987b\u662f\u6811\u7ed3\u6784\uff0c\u907f\u514d\u68ee\u6797");const t=p[i];v=c(i,t,`${e}$entity`,m)}}return v};return c(e,t)}makePathFilter(e,t,n,i){const{value:o,recursive:a}=t;if(""===o)return(0,r.default)(!a),i;const c=o.split("."),l=e=>e>0?{$or:[i,{parent:l(e-1)}]}:i,u=(e,t)=>{const o=c[e];if(e===c.length){if(a){const{recursiveDepth:e}=n[t];return(0,r.default)(e>0),l(e)}return i}{const i=(0,s.judgeRelation)(n,t,o);let a;2===i?a=o:"string"===typeof i?a=i:((0,r.default)(i instanceof Array),a=i[0]);const c=u(e+1,a);return{[o]:c}}};return u(0,e)}filterActionAuths(e,t,n,r){const i=n.map((n=>{const{path:i,relation:o,relationId:s}=n;if(s){if(o){const{userRelation$relation:s}=o;if(s.length>0){const o=(0,l.uniq)(s.map((e=>e.entityId))),c=this.makePathFilter(e,i,this.schema,{id:o.length>0?{$in:o}:o[0]}),u=(0,a.checkFilterContains)(e,r,c,t,!0);return u instanceof Promise?u.then((e=>{if(e)return n})):u?n:void 0}}return}const c=this.makePathFilter(e,i,this.schema,{id:r.getCurrentUserId()}),u=(0,a.checkFilterContains)(e,r,c,t,!0);return u instanceof Promise?u.then((e=>{if(e)return n})):u?n:void 0}));return i.find((e=>e instanceof Promise))?Promise.all(i).then((e=>e.filter((e=>!!e)))):i.filter((e=>!!e))}checkActionAuthInGroup(e,t,n,r){const i=n.filter((t=>t.path.destEntity===e)).map((t=>{const{path:n,relation:i,relationId:o}=t;if(o){return this.makePathFilter(e,n,this.schema,{userRelation$entity:{userId:r.getCurrentUserId(),relationId:o}})}return this.makePathFilter(e,n,this.schema,{id:r.getCurrentUserId()})})),o=(0,a.combineFilters)(e,this.schema,i,!0);return!!o&&(0,a.checkFilterContains)(e,r,o,t,!0)}checkSelection(e,t,n){const a=this.destructSelection(e,t).map((e=>{let{entity:t,filter:r}=e;return this.getDeducedEntityFilters(t,r,["select"],n)})),s=e=>{const t=e.filter((e=>{const t=e.map((e=>e.entity));return!((0,l.intersection)(this.selectFreeEntities,t).length>0)&&!((0,l.intersection)(h.SPECIAL_ENTITIES,t).length>0)}));if(0===t.length)return!0;
2if(!n.getCurrentUserId())throw new i.OakUnloggedInException;const a=[];t.forEach((e=>e.forEach((e=>{let{entity:t}=e;a.push(t)}))));const s=n.select("actionAuth",{data:{id:1,pathId:1,path:{id:1,value:1,sourceEntity:1,destEntity:1,recursive:1},deActions:1,relationId:1},filter:{deActions:{$contains:"select"},path:{destEntity:{$in:a}}}},{dontCollect:!0,ignoreAttrMiss:!0}),c=e=>{for(const t of e){if(!t.find((e=>!0===e)))return!1;0}return!0};return s instanceof Promise?((0,r.default)(n instanceof o.AsyncContext),s.then((e=>Promise.all(t.map((t=>Promise.all(t.map((t=>this.checkActionAuthInGroup(t.entity,t.filter,e,n))))))).then((e=>c(e)))))):c(t.map((e=>e.map((e=>this.checkActionAuthInGroup(e.entity,e.filter,s,n))))))};return a[0]instanceof Promise?Promise.all(a).then((e=>s(e))):s(a)}findActionAuthsOnNode(e,t){const{entity:n,filter:i,action:o,userRelations:a}=e;(0,r.default)(i);const s=this.getDeducedEntityFilters(n,i,[o],t),c=[],u=r=>{const i=r.filter((e=>h.SPECIAL_ENTITIES.includes(e.entity))),o=r.filter((e=>!h.SPECIAL_ENTITIES.includes(e.entity))),s=[];if(i.length>0&&s.push(...i.map((r=>this.checkOperateSpecialEntities2(r.entity,r.entity===n?e.action:"create",r.filter,t)))),o.length>0){const e=o.map((e=>e.entity)),i=(0,l.uniq)(o.map((e=>e.actions)).flat()),u=t.select("actionAuth",{data:{id:1,path:{id:1,destEntity:1,sourceEntity:1,value:1,recursive:1},pathId:1,deActions:1,relationId:1,relation:{id:1,entity:1,entityId:1,userRelation$relation:{$entity:"userRelation",data:{id:1,entity:1,entityId:1,userId:1,relationId:1},filter:{userId:t.getCurrentUserId()}}}},filter:{path:{destEntity:{$in:e}},deActions:{$overlaps:i}}},{dontCollect:!0,ignoreAttrMiss:!0}),d=e=>{const i=(e=>{if(a&&a.length>0){const t=e.filter((e=>!!a.find((t=>t.relationId===e.relationId))&&""===e.path.value&&e.path.destEntity===n));if(t.length>0)return t}})(e);if(i)return c.push(...i),!0;const o=r.map((r=>{const i=e.filter((e=>e.path.destEntity===r.entity&&(0,l.intersection)(e.deActions,r.actions).length>0)),o=this.filterActionAuths(r.entity,r.filter,i,t),a=e=>e.length>0&&(r.entity===n&&c.push(...e),!0);return o instanceof Promise?o.then((e=>a(e))):a(o)}));return o.find((e=>e instanceof Promise))?Promise.all(o).then((e=>e.includes(!0))):o.includes(!0)};u instanceof Promise?s.push(u.then((e=>d(e)))):s.push(d(u))}return s.find((e=>e instanceof Promise))?Promise.all(s).then((e=>!!e.includes(!0)&&c)):!!s.includes(!0)&&c};return s instanceof Promise?s.then((e=>u(e))):u(s)}checkOperationTree2(e,t){const n=(e,i)=>{const o=i=>{const{children:o}=e,a=Object.keys(o);if(0===a.length)return!0;const c=a.map((a=>{const c=o[a],l=c instanceof Array?c[0].entity:c.entity;if(this.authDeduceRelationMap[l]){(0,r.default)("entity"===this.authDeduceRelationMap[l]);if(2===(0,s.judgeRelation)(this.schema,l,a))return!0}const u=a.endsWith("$entity")?e.entity:a.split("$")[1];if(c instanceof Array){const e=c.map((e=>e.action)),r=i.map((n=>{const{path:{value:r},relationId:i}=n,o=r?`${u}.${r}`:u;return t.select("actionAuth",{data:{id:1},filter:{path:{value:o,destEntity:l},deActions:{$overlaps:e},relationId:i||{$exists:!1}}},{dontCollect:!0})}));return r[0]instanceof Promise?Promise.all(r).then((e=>c.map((t=>n(t,e.flat()))))):c.map((e=>n(e,r.flat())))}const d=i.map((e=>{const{path:{value:n},relationId:r}=e,i=n?`${u}.${n}`:u;return t.select("actionAuth",{data:{id:1},filter:{path:{value:i,destEntity:l},deActions:{$overlaps:c.action},relationId:r||{$exists:!1}}},{dontCollect:!0})})).flat();return d[0]instanceof Promise?Promise.all(d).then((e=>n(c,e.flat()))):n(c,d)})).flat();return c[0]instanceof Promise?Promise.all(c).then((e=>!e.includes(!1))):!c.includes(!1)};if(i&&i.length>0)return o(i);const{action:a,entity:c}=e;if(this.updateFreeDict[c]&&this.updateFreeDict[c].includes(a))return o([]);const l=this.findActionAuthsOnNode(e,t),u=t=>!1!==t&&("user"===e.entity&&t.push({id:"temp",pathId:"path_temp",path:{id:"path_temp",destEntity:"user",sourceEntity:"any",value:"",$$createAt$$:1,$$updateAt$$:1,$$seq$$:123,recursive:!1},$$createAt$$:1,$$updateAt$$:1,$$seq$$:123,deActions:[e.action]}),o(t));return l instanceof Promise?l.then((e=>u(e))):u(l)};return n(e)}
2checkOperation(e,t,n){const{action:r,filter:o,data:a}=t,s=n.getCurrentUserId();if(!s)throw new i.OakUnloggedInException;if(!o&&(!a||"create"!==r))return!1;const c=this.destructOperation(e,t,s);return this.checkOperationTree2(c,n)}checkActions2(e,t,n,r){const{action:o}=t;if(!o||c.readOnlyActions.includes(o)){const r=this.checkSelection(e,t,n);if(r instanceof Promise)return r.then((n=>{if(!n)throw new i.OakDataInvisibleException(e,t)}));if(!r)throw new i.OakDataInvisibleException(e,t)}else{const r=this.checkOperation(e,t,n);if(r instanceof Promise)return r.then((n=>{if(!n)throw new i.OakOperationUnpermittedException(e,t)}));if(!r)throw new i.OakOperationUnpermittedException(e,t)}}}t.VB=h},12587:(e,t,n)=>{"use strict";t.V=void 0;const r=n(37827).__importDefault(n(9062));t.V=class{rowStore;uuid;constructor(e){this.rowStore=e}begin(e){(0,r.default)(!this.uuid,"\u4e8b\u52a1\u4e0d\u5141\u8bb8\u5d4c\u5957"),this.uuid=this.rowStore.begin(e)}commit(){(0,r.default)(this.uuid),this.rowStore.commit(this.uuid),this.uuid=void 0}rollback(){(0,r.default)(this.uuid),this.rowStore.rollback(this.uuid),this.uuid=void 0}getCurrentTxnId(){return this.uuid}getSchema(){return this.rowStore.getSchema()}operate(e,t,n){return this.rowStore.operate(e,t,this,n)}select(e,t,n){return this.rowStore.select(e,t,this,n)}aggregate(e,t,n){return this.rowStore.aggregate(e,t,this,n)}count(e,t,n){return this.rowStore.count(e,t,this,n)}mergeMultipleResults(e){return this.rowStore.mergeMultipleResults(e)}}},95458:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCreateCheckers=t.createRemoveCheckers=t.translateCheckerInSyncContext=t.translateCheckerInAsyncContext=void 0;const r=n(37827).__importDefault(n(9062)),i=n(25007),o=n(93804),a=n(16269),s=n(61328),c=n(84189);function l(e,t,n){const{attributes:i}=e[t];for(const a in n)if(i[a]){const{type:e,params:s,default:c,enumeration:l,notNull:u}=i[a];if(null===n[a]||void 0===n[a]){if(u&&void 0===c)throw new o.OakAttrNotNullException(t,[a]);void 0!==c&&Object.assign(n,{[a]:c});continue}switch(e){case"char":case"varchar":{if("string"!==typeof n[a])throw new o.OakInputIllegalException(t,[a],"error::attributesFormatError","oak-domain",{attribtues:a,format:"string"});const{length:e}=s;if(e&&n[a].length>e)throw new o.OakInputIllegalException(t,[a],"error::attributesTooLong","oak-domain",{attributes:a,length:e});break}case"int":case"smallint":case"tinyint":case"bigint":case"decimal":case"money":{if("number"!==typeof n[a])throw new o.OakInputIllegalException(t,[a],"error::attributesFormatError","oak-domain",{attribtues:a,format:"number"});const{min:e,max:r}=s||{};if("number"===typeof e&&n[a]<e)throw new o.OakInputIllegalException(t,[a],"error::attributesUnderMin","oak-domain",{attributes:a,threshold:`${e}`});if("number"===typeof r&&n[a]>r)throw new o.OakInputIllegalException(t,[a],"error::attributesOverMax","oak-domain",{attributes:a,threshold:`${r}`});break}case"enum":if((0,r.default)(l),!l.includes(n[a]))throw new o.OakInputIllegalException(t,[a],"error::attributesNotInEnumeration")}}else"object"===typeof n[a]&&"remove"===n[a]?.action&&console.warn("cascade remove\u53ef\u80fd\u662f\u672a\u5904\u7406\u7684\u8fb9\u754c\uff0c\u8bf7\u6ce8\u610f")}t.translateCheckerInAsyncContext=function(e,t){const{entity:n,type:a}=e,s="before";switch(a){case"data":{const{checker:t}=e;return{fn:async(e,n)=>{let{operation:r}=e;const{data:i}=r;return await t(i,n),0},when:s}}case"row":{const{filter:a,errMsg:c,err:l,inconsistentRows:u}=e;return{fn:async(e,s,d)=>{let{operation:h}=e;const{filter:f,data:p,action:g,bornAt:y}=h,m="function"===typeof a?await a(h,s,d):a;if(!m)return 0;if(["select","count","stat"].includes(g))return h.filter=f?(0,i.combineFilters)(n,s.getSchema(),[f,m]):m,0;{const e=async e=>{if(!await(0,i.checkFilterContains)(n,s,m,e,!0)){if(u){const{entity:e,selection:t}=u,n=await s.select(e,t(f),{dontCollect:!0,blockTrigger:!0}),r=new(l||o.OakRowInconsistencyException)(c);throw r.addData(e,n,s.getSchema()),r}throw new(l||o.OakRowInconsistencyException)(c)}};let a=f;if("create"===g){if((0,r.default)(p),p instanceof Array)for(const r of p)await e((0,i.translateCreateDataToFilter)(t,n,r,!!y));else await e((0,i.translateCreateDataToFilter)(t,n,p,!!y));return}return(0,r.default)(a,"row\u7c7b\u578b\u7684checker\u9047\u5230\u4e86\u64cd\u4f5c\u7684filter\u672a\u5b9a\u4e49"),await e(a),0}},when:s}}case"logical":case"logicalData":{const{checker:t}=e;return{fn:async(e,n,r)=>{let{operation:i}=e;return await t(i,n,r),0},when:s}}default:(0,r.default)(!1)}},t.translateCheckerInSyncContext=function(e,t){const{entity:n,type:a}=e,s="before";switch(a){case"data":{const{checker:t}=e;return{fn:(e,n)=>t(e.data,n),when:s}}case"row":{const{filter:n,errMsg:a,entity:c}=e;return{fn:(e,s,l)=>{const{filter:u,data:d,action:h,bornAt:f}=e,p="function"===typeof n?n(e,s,l):n;if(!p)return;let g=u;if("create"===h&&d&&((0,r.default)(!(d instanceof Array)),g=(0,i.translateCreateDataToFilter)(t,c,d,!!f)),(0,r.default)(!(p instanceof Promise)),(0,r.default)(g,"\u5b9a\u4e49\u4e86row\u7c7b\u578b\u7684checker\u4f46\u5374\u8fdb\u884c\u4e86\u65e0filter\u64cd\u4f5c"),(0,i.checkFilterContains)(c,s,p,g,!0))return;throw new o.OakRowInconsistencyException(a||"row checker condition illegal")},when:s}}case"logical":case"logicalData":{const{checker:t}=e;return{fn:(e,n,r)=>{t(e,n,r)},when:s}}default:(0,r.default)(!1)}},t.createRemoveCheckers=function(e){const t=[],n={},r={},i=(e,t,r)=>{n[t]?n[t]?.push([e,r]):n[t]=[[e,r]]},c=(e,t)=>{for(const n of t)r[n]?r[n]?.push(e):r[n]=[e]};for(const o in e){if(["operEntity","modiEntity","userEntityGrant"].includes(o))continue;const{attributes:t}=e[o];for(const e in t)"ref"===t[e].type?i(o,t[e].ref,e):"entity"===e&&t[e].ref&&c(o,t[e].ref)}const l=(0,s.union)(Object.keys(n),Object.keys(r));for(const s of l)t.push({entity:s,action:"remove",type:"logical",priority:a.CHECKER_MAX_PRIORITY,checker:(e,t,i)=>{const a=[];if(n[s])for(const r of n[s]){const[n,i]=r,s={id:1,[i]:1}
2,c=e.filter&&{[i.slice(0,i.length-2)]:e.filter},l=t.select(n,{data:s,filter:c,indexFrom:0,count:1},{dontCollect:!0,ignoreAttrMiss:!0});if(l instanceof Promise)a.push(l.then((e=>{let[r]=e;if(r){const e=new o.OakRowInconsistencyException(`\u60a8\u65e0\u6cd5\u5220\u9664\u5b58\u5728\u6709\u6548\u6570\u636e\u300c${n}\u300d\u5173\u8054\u7684\u884c`);throw e.addData(n,[r],t.getSchema()),e}})));else{const[e]=l;if(e){const r=new o.OakRowInconsistencyException(`\u60a8\u65e0\u6cd5\u5220\u9664\u5b58\u5728\u6709\u6548\u6570\u636e\u300c${n}\u300d\u5173\u8054\u7684\u884c`);throw r.addData(n,[e],t.getSchema()),r}}}if(r[s])for(const n of r[s]){const r={id:1,entity:1,entityId:1},i=e.filter&&{[s]:e.filter},c=t.select(n,{data:r,filter:i,indexFrom:0,count:1},{dontCollect:!0,ignoreAttrMiss:!0});if(c instanceof Promise)a.push(c.then((e=>{let[r]=e;if(r){const e=new o.OakRowInconsistencyException(`\u60a8\u65e0\u6cd5\u5220\u9664\u5b58\u5728\u6709\u6548\u6570\u636e\u300c${n}\u300d\u5173\u8054\u7684\u884c`);throw e.addData(n,[r],t.getSchema()),e}})));else{const[e]=c;if(e){e.id;const r=new o.OakRowInconsistencyException(`\u60a8\u65e0\u6cd5\u5220\u9664\u5b58\u5728\u6709\u6548\u6570\u636e\u300c${n}\u300d\u5173\u8054\u7684\u884c`);throw r.addData(n,[e],t.getSchema()),r}}}if(a.length>0)return Promise.all(a).then((()=>{}))}});return t},t.createCreateCheckers=function(e){const t=[];for(const n in e){const{attributes:r,actions:i}=e[n],a=Object.keys(r).filter((e=>r[e].notNull)),u=(0,s.difference)(i,c.excludeUpdateActions);t.push({entity:n,type:"data",action:"create",checker:t=>{const i=t=>{const i=(0,s.difference)(a,Object.keys(t).filter((e=>null!==t[e])));if(i.length>0){const e=[];for(const n of i){if("entityId"===n){if(i.includes("entity"))continue}else if("entity"===n&&r[n].ref){let e=!1;for(const i of r[n].ref)if(t[i]&&"create"===t[i].action){e=!0;break}if(e)continue}else if("ref"===r[n].type){r[n].ref;const e=n.slice(0,n.length-2);if(t[e]&&"create"===t[e].action)continue}e.push(n)}if(e.length>0)throw new o.OakAttrNotNullException(n,e)}l(e,n,t)};t instanceof Array?t.forEach((e=>i(e))):i(t)}},{entity:n,type:"data",action:u,checker:t=>{l(e,n,t)}})}return t}},25007:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.translateFilterToObjectPredicate=t.checkFilterRepel=t.checkFilterContains=t.makeTreeDescendantFilter=t.makeTreeAncestorFilter=t.same=t.getRelevantIds=t.contains=t.analyzeFilterRelation=t.judgeValueRelation=t.combineFilters=t.translateCreateDataToFilter=void 0;const r=n(37827).__importDefault(n(9062)),i=n(16269),o=n(61328),a=n(65201);function s(e,t){let n;const i=e=>{(0,r.default)(n),n.$and?n.$and.push(e):Object.assign(n,{$and:[e]})},l=(o,a)=>{(0,r.default)(n),n[o]?n[o]===a||(!0===p(e,t,{[o]:a},{[o]:n[o]})?Object.assign(n,{[o]:a}):1==p(e,t,{[o]:n[o]},{[o]:a})||i({[o]:a})):Object.assign(n,{[o]:a})},u={},d=(e,t,n)=>{u[e]?u[e].push([t,n]):u[e]=[[t,n]]},h={},f=(e,t,n)=>{h[e]?h[e].push([t,n]):h[e]=[[t,n]]},g=o=>{if(o){if(n||(n={}),o.hasOwnProperty("$or"))return void i(o);for(const s in o)if("$and"===s)o[s].forEach((e=>g(e)));else if(s.startsWith("$"))i({[s]:o[s]});else if(s.startsWith("#"))(0,r.default)(!n[s]||n[s]===o[s]),n[s]=o[s];else{const n=(0,a.judgeRelation)(t,e,s);1===n?l(s,o[s]):2===n?d(s,s,o[s]):"string"===typeof n?d(s,n,o[s]):((0,r.default)(n instanceof Array),f(s,n[0],o[s]))}}};for(var y=arguments.length,m=new Array(y>2?y-2:0),v=2;v<y;v++)m[v-2]=arguments[v];m.forEach((e=>g(e)));for(const r in u){const e=u[r].map((e=>e[1])),n=s(u[r][0][0],t,...e);l(r,n)}for(const r in h){const e=h[r].map((e=>e[1])),n=e.map((e=>e["#sqp"]||"in"));if((0,o.uniq)(n).length>1)e.forEach((e=>{i({[r]:e})}));else{const o=n[0];if(["not in","all"].includes(o)){const n=c(h[r][0][0],t,...e);l(r,Object.assign(n,{"#sqp":o}))}else e.forEach((e=>{i({[r]:e})}))}}return n}function c(e,t){let n;const i=(n,o,l)=>{const u=((e,t)=>{let n=[],i=[];const o=Object.keys(e),a=Object.keys(t);for(const r of o)if(r.startsWith("#")){if(e[r]!==t[r])return!1}else n.push(r);for(const r of a)if(r.startsWith("#")){if(e[r]!==t[r])return!1}else i.push(r);return!(n.length>1||i.length>1)&&((0,r.default)(1===n.length&&1===i.length),(n[0]===i[0]||"$or"===n[0]||"$or"===i[0])&&[n[0],i[0]])})(n,o);if(!u)return!1;const[d,h]=u;if("$or"===d&&"$or"===h){for(const e of o[h]){let t=!1;for(const r of n[h])if(i(r,e,!0)){t=!0;break}if(!t)return!1}if(l)return!0;for(const e of o[h])for(const t of n[h])if(i(t,e))break;return!0}if("$or"===d){for(const e of n[d])if(i(e,o,l))return!0;return!1}if("$or"===h){for(const e of o[h])if(!i(n,e,!0))return!1;if(l)return!0;for(const e of o[h])i(n,e);return!0}if(d===h){if("$and"!==d){if("$not"===d)return l||Object.assign(n,{[d]:s(e,t,n[d],o[h])}),!0;if(d.startsWith("$"))return!1;{const i=(0,a.judgeRelation)(t,e,d);if(1===i)return((e,t,n,r)=>{const i="object"===typeof e[n]&&Object.keys(e[n])[0],o="object"===typeof t[n]&&Object.keys(t[n])[0];return!i&&o&&["$eq","$in"].includes(o)?(r||Object.assign(e,{[n]:{$in:t[n][o]instanceof Array?t[n][o].concat(e[n]):[e[n],t[n][o]]}}),!0):!o&&i&&["$eq","$in"].includes(i)?(r||Object.assign(e,{[n]:{$in:e[n][i]instanceof Array?e[n][i].concat(t[n]):[e[i][n],t[n]]}}),!0):i&&["$eq","$in"].includes(i)&&o&&["$eq","$in"].includes(o)?(r||Object.assign(e,{[n]:{$in:e[n][i]instanceof Array?e[n][i].concat(t[n][o]):[e[n][i]].concat(t[n][o])}}
2),!0):!i&&!o&&(r||Object.assign(e,{[n]:{$in:[e[n],t[n]]}}),!0)})(n,o,d,l);if(2===i)return l||Object.assign(n,{[d]:c(d,t,n[d],o[h])}),!0;if("string"===typeof i)return l||Object.assign(n,{[d]:c(i,t,n[d],o[h])}),!0;{(0,r.default)(i instanceof Array);const e=n[d]["#sqp"]||"in";return e===(o[d]["#sqp"]||"in")&&(!!l||("in"===e?(Object.assign(n,{[d]:Object.assign(c(i[0],t,n[d],o[h]),{"#sqp":e})}),!0):((0,r.default)("not in"===e),Object.assign(n,{[d]:Object.assign(s(i[0],t,n[d],o[h]),{"#sqp":e})}),!0)))}}}(0,r.default)(!1,"\u53ea\u4e00\u4e2a\u5c5e\u6027\u7684\u65f6\u5019\u4e0d\u5e94\u8be5\u7528$and")}return!1},l=e=>{if(e){if(!n)return void(n=(0,o.cloneDeep)(e));if(i(n,e))return;(e=>{(0,r.default)(n),0===Object.keys(n).length?Object.assign(n,e):n.$or?n.$or.push(e):n={$or:[(0,o.cloneDeep)(n),e]}})(e)}};for(var u=arguments.length,d=new Array(u>2?u-2:0),h=2;h<u;h++)d[h-2]=arguments[h];return d.forEach((e=>l(e))),n}function l(e,t,n,r){return r?c(e,t,...n):s(e,t,...n)}function u(e,t,n){if("object"!==typeof e){const r="object"===typeof t&&Object.keys(t)[0],i="$eq"===r&&t[r]===e||"$ne"===r&&t[r]!==e||"$gt"===r&&t[r]<e||"$lt"===r&&t[r]>e||"$gte"===r&&t[r]<=e||"$lte"===r&&t[r]>=e||"$startsWith"===r&&e.startsWith(t[r])||"$endsWith"===r&&e.endsWith(t[r])||"$includes"===r&&e.includes(t[r])||"$in"===r&&t[r]instanceof Array&&t[r].includes(e)||"$nin"===r&&t[r]instanceof Array&&!t[r].includes(e)||"$between"===r&&t[r][0]<=e&&t[r][1]>=e||"$exists"===r&&!0===t[r]||t===e,o="$eq"===r&&t[r]!==e||"$gt"===r&&t[r]>=e||"$lt"===r&&t[r]<=e||"$gte"===r&&t[r]>e||"$lte"===r&&t[r]<e||"$startsWith"===r&&!e.startsWith(t[r])||"$endsWith"===r&&!e.endsWith(t[r])||"$includes"===r&&!e.includes(t[r])||"$in"===r&&t[r]instanceof Array&&!t[r].includes(e)||"$between"===r&&(t[r][0]>e||t[r][1]<e)||"$exists"===r&&!1===t[r]||typeof t===typeof e&&t!==e;return n?!!i||!o&&void 0:!!o}{const i=Object.keys(e)[0];if(["$gt","$lt","$gte","$lte","$eq","$ne","$startsWith","$endsWith","$includes"].includes(i))switch(i){case"$gt":{const r="object"===typeof t&&Object.keys(t)[0],i=r&&["$gt","$gte"].includes(r)&&t[r]<=e.$gt||"$exists"===r&&!0===t[r],o=r&&(["$lt","$lte","$eq"].includes(r)&&t[r]<=e.$gt||"$in"===r&&t[r]instanceof Array&&!t[r].find((t=>typeof t!==typeof e.$gt||t>e.$gt)))||"$exists"===r&&!1===t[r]||["string","number"].includes(typeof t)&&t<=e.$gt;return n?!!i||!o&&void 0:!!o}case"$gte":{const r="object"===typeof t&&Object.keys(t)[0],i=r&&(["$gte"].includes(r)&&t[r]<=e.$gte||["$gt"].includes(r)&&t[r]<e.$gte||"$exists"===r&&!0===t[r]),o=r&&(["$lt"].includes(r)&&t[r]<=e.$gte||["$eq","$lte"].includes(r)&&t[r]<e.gte||"$in"===r&&t[r]instanceof Array&&!t[r].find((t=>typeof t!==typeof e.$gte||t>=e.$gte))||"$exists"===r&&!1===t[r])||["string","number"].includes(typeof t)&&t<e.$gte;return n?!!i||!o&&void 0:!!o}case"$lt":{const r="object"===typeof t&&Object.keys(t)[0],i=r&&(["$lt","$lte"].includes(r)&&t[r]>=e.$lt||"$exists"===r&&!0===t[r]),o=r&&(["$gt","$gte","$eq"].includes(r)&&t[r]>=e.$lt||"$in"===r&&t[r]instanceof Array&&!t[r].find((t=>typeof t!==typeof e.$gt||t<e.$lt))||"$exists"===r&&!1===t[r])||["string","number"].includes(typeof t)&&t>=e.$lt;return n?!!i||!o&&void 0:!!o}case"$lte":{const r="object"===typeof t&&Object.keys(t)[0],i=r&&(["$lte"].includes(r)&&t[r]>=e.$lte||["$lt"].includes(r)&&t[r]>e.$lte)||"$exists"===r&&!0===t[r],o=r&&(["$gt"].includes(r)&&t[r]>=e.$lte||["$eq","$gte"].includes(r)&&t[r]>e.lte||"$in"===r&&t[r]instanceof Array&&!t[r].find((t=>typeof t!==typeof e.$lte||t<=e.$lte))||"$exists"===r&&!1===t[r])||["string","number"].includes(typeof t)&&t>e.$lte;return n?!!i||!o&&void 0:!!o}case"$eq":{const r="object"===typeof t&&Object.keys(t)[0],i=r&&("$eq"===r&&t[r]===e.$eq||"$ne"===r&&t[r]!==e.$eq||"$gt"===r&&t[r]<e.$eq||"$lt"===r&&t[r]>e.$eq||"$gte"===r&&t[r]<=e.$eq||"$lte"===r&&t[r]>=e.$eq||"$startsWith"===r&&e.$eq.startsWith(t[r])||"$endsWith"===r&&e.$eq.endsWith(t[r])||"$includes"===r&&e.$eq.includes(t[r])||"$in"===r&&t[r]instanceof Array&&t[r].includes(e.$eq)||"$nin"===r&&t[r]instanceof Array&&!t[r].includes(e.$eq)||"$between"===r&&t[r][0]<=e.$eq&&t[r][1]>=e.$eq||"$exists"===r&&!0===t[r])||["string","number"].includes(typeof t)&&t===e.$eq,o=r&&("$eq"===r&&t[r]!==e.$eq||"$gt"===r&&t[r]>=e.$eq||"$lt"===r&&t[r]<=e.$eq||"$gte"===r&&t[r]>e.$eq||"$lte"===r&&t[r]<e.$eq||"$startsWith"===r&&!e.$eq.startsWith(t[r])||"$endsWith"===r&&!e.$eq.endsWith(t[r])||"$includes"===r&&!e.$eq.includes(t[r])||"$in"===r&&t[r]instanceof Array&&!t[r].includes(e.$eq)||"$between"===r&&(t[r][0]>e.$eq||t[r][1]<e.$eq)||"$exists"===r&&!1===t[r])||t!==e.$eq;return n?!!i||!o&&void 0:!!o}case"$ne":{const r="object"===typeof t&&Object.keys(t)[0],i=r&&"$ne"===r&&t[r]===e.$ne,o="$eq"===r&&t[r]===e.$ne||t===e.$ne;return n?!!i||!o&&void 0:!!o}case"$startsWith":{const r="object"===typeof t&&Object.keys(t)[0],i="$startsWith"===r&&"string"===typeof t[r]&&e.$startsWith.startsWith(t[r]),o="$startsWith"===r&&"string"===typeof t[r]&&!e.$startsWith.startsWith(t[r])&&!t[r].startsWith(e.$startsWith)||"$eq"===r&&!t[r].startsWith(e.$startsWith)||"string"===typeof t&&!t.startsWith(e.$startsWith);return n?!!i||!o&&void 0:!!o}case"$endsWith":{const r="object"===typeof t&&Object.keys(t)[0],i="$endsWith"===r&&"string"===typeof t[r]&&e.$endsWith.endsWith(t[r]),o="$endsWith"===r&&"string"===typeof t[r]&&!e.$endsWith.endsWith(t[r])&&!t[r].endsWith(e.$endsWith)||"$eq"===r&&!t[r].endsWith(e.$endsWith)||"string"===typeof t&&!t.endsWith(e.$endsWith);return n?!!i||!o&&void 0:!!o}case"$includes":{const r="object"===typeof t&&Object.keys(t)[0],i=r&&["$includes","$startsWith","$endsWith"].includes(r)&&"string"===typeof t[r]&&t[r].includes(e.$includes)||"string"===typeof t&&t.includes(e.$includes),o="$eq"===r&&!t[r].includes(e.$includes)||"$in"===r&&t[r]instanceof Array&&!t[r].find((t=>t.includes(e.$includes)))||"string"===typeof t&&!t.includes(e.$includes);return n?!!i||!o&&void 0:!!o}default:(0,r.default)(!1,`\u4e0d\u80fd\u5904\u7406\u7684\u7b97\u5b50\u300c${i}\u300d`)}else{if(["$exists"].includes(i)){const r="object"===typeof t&&Object.keys(t)[0],i="$exists"===r&&t[r]===e.$exists,o="$exists"===r&&t[r]!==e.$exists;return n?!!i||!o&&void 0:!!o}if(!["$in","$nin","$between"].includes(i))return console.warn(`\u300cjudgeValueRelation\u300d\u672a\u77e5\u7b97\u5b50\u300c${i}\u300d`),!1;switch(i){case"$in":{(0,r.default)(e.$in instanceof Array);const i="object"===typeof t&&Object.keys(t)[0];let a="$in"===i&&t[i]instanceof Array&&0===(0,o.difference)(e.$in,t[i]).length||"$nin"===i&&t[i]instanceof Array&&0===(0,o.intersection)(e.$in,t[i]).length||"$exists"===i&&!0===t[i];if(!a&&i&&["$gt","$gte","$lt","$lte","$between"].includes(i)){let n,r;e.$in.forEach((e=>{(!n||n>e)&&(n=e),(!r||r<e)&&(r=e)})),a="$gt"===i&&t[i]<n||"$gte"===i&&t[i]<=n||"$lt"===i&&t[i]>r||"$lte"===i&&t[i]>=r||"$between"===i&&t[i][0]<n&&t[i][1]>r}
2let s="$in"===i&&0===(0,o.intersection)(t[i],e.$in).length||"$eq"===i&&!e.$in.includes(t[i])||"$exists"===i&&!1===t[i]||!e.$in.includes(t);if(!s&&i&&["$gt","$gte","$lt","$lte","$between"].includes(i)){let n,r;e.$in.forEach((e=>{(!n||n>e)&&(n=e),(!r||r<e)&&(r=e)})),s="$gt"===i&&t[i]>=r||"$gte"===i&&t[i]>r||"$lt"===i&&t[i]<=n||"$lte"===i&&t[i]<n||"$between"===i&&(t[i][0]>r||t[i][1]<n)}return n?!!a||!s&&void 0:!!s}case"$nin":{(0,r.default)(e.$nin instanceof Array);const i="object"===typeof t&&Object.keys(t)[0],a=i&&("$nin"===i&&t[i]instanceof Array&&0===(0,o.intersection)(t[i],e.$nin).length||"$ne"===i&&e.$nin.includes(t[i])),s=i&&"$in"===i&&t[i]instanceof Array&&(0,o.intersection)(t[i],e.$nin).length>0||e.$nin.includes(t);return n?!!a||!s&&void 0:!!s}case"$between":{(0,r.default)(e.$between instanceof Array);const i="object"===typeof t&&Object.keys(t)[0],o=i&&("$between"===i&&t[i][0]<=e.$between[0]&&t[i][1]>=e.$between[1]||"$gt"===i&&t[i]<e.$between[0]||"$gte"===i&&t[i]<=e.$between[0]||"$lt"===i&&t[i]>e.$between[1]||"$lte"===i&&t[i]>=e.$between[1]||"$exists"===i&&!0===t[i]),a=i&&("$between"===i&&(t[i][0]>e.$between[1]||t[i][1]<e.$between[0])||"$gt"===i&&t[i]>e.$between[1]||"$gte"===i&&t[i]>=e.$between[1]||"$lt"===i&&t[i]<e.$between[0]||"$lte"===i&&t[i]<=e.$between[0]||"$eq"===i&&(t[i]>e.$between[1]||t[i]<e.$between[0])||"$exists"===i&&!1===t[i]||"$in"===i&&t[i]instanceof Array&&!t[i].find((t=>t>=e.$between[0]&&t<=e.$between[1])))||t>e.$between[1]||t<e.$between[0];return n?!!o||!a&&void 0:!!a}default:(0,r.default)(!1,`\u6682\u4e0d\u652f\u6301\u7684\u7b97\u5b50${i}`)}}}}function d(e,t,n,o,s,c){const l=s[n],h=[];for(const p in o)if(["$and","$or","$not"].includes(p))switch(p){case"$and":case"$or":{const i=[],a=o[p].map((r=>d(e,t,n,r,s,c)));for(const e of a){if(!0===e&&"$and"===p)return!0;if(!1===e&&"$or"===p)return!1;if(void 0===e&&"$or"===p)return;"object"===typeof e&&("$and"===p?h.push(e):((0,r.default)("$or"===p),i.push(e)))}i.length>0&&h.push({$and:i});break}case"$not":if(!c){const r=o[p],i=f(e,t,{[n]:l},r,!0);if(!0===i)return!0;"object"===typeof i&&h.push(i)}break;default:(0,r.default)(!1)}else if(p.toLowerCase().startsWith(i.EXPRESSION_PREFIX));else if("$text"===p.toLowerCase());else{const r=(0,a.judgeRelation)(t,e,p);if(n===p){if(1===r){const e=u(o[p],l,c);if("boolean"===typeof e)return e}else if(2===r){const e=f(p,t,o[p],l,c);if("boolean"===typeof e)return e;"object"===typeof e&&h.push(e)}else if("string"===typeof r){const e=f(r,t,o[p],l,c);if("boolean"===typeof e)return e;"object"===typeof e&&h.push(e)}}else if(2===r&&"entity"===n&&l===p&&s.hasOwnProperty("entityId")){const e=f(p,t,o[p],{id:s.entityId},c);if("boolean"===typeof e)return e;"object"===typeof e&&h.push(e)}else if("string"===typeof r&&n===`${p}Id`){const e=f(r,t,o[p],{id:l},c);if("boolean"===typeof e)return e;"object"===typeof e&&h.push(e)}else{const r=(0,a.judgeRelation)(t,e,n);if(2===r&&"entity"===p&&o[p]===n&&o.hasOwnProperty("entityId")){const e=f(n,t,{id:o.entityId},l,c);if("boolean"===typeof e)return e;"object"===typeof e&&h.push(e)}else if("string"===typeof r&&p===`${n}Id`){const e=f(r,t,{id:o[p]},l,c);if("boolean"===typeof e)return e;"object"===typeof e&&h.push(e)}}}if(h.length>0)return{$or:h}}function h(e,t,n,o,a){const s=[],c=[],l=[],u=[];for(let h in o){let p;const g=[];if(["$and","$or","$not"].includes(h))switch(h){case"$and":{const i=o[h].map((r=>f(e,t,n,r,a))),s=[],c=[];for(const e of i)if(a){if(!1===e){p=!1;break}if(void 0===e){s.splice(0,s.length),p=void 0;break}"object"===typeof e&&s.push(e)}else{if((0,r.default)(!a),!0===e){c.splice(0,c.length),p=!0;break}"object"===typeof e&&c.push(e)}s.length>0&&g.push({$and:s}),c.length>0&&g.push({$or:c});break}case"$or":{const i=o[h].map((r=>f(e,t,n,r,a))),s=[],c=[];for(const e of i)if(a){if(!0===e){c.splice(0,c.length),p=!0;break}}else{if((0,r.default)(!a),!1===e){p=!1;break}if(void 0===e){s.splice(0,s.length),p=void 0;break}"object"===typeof e&&s.push(e)}s.length>0&&g.push({$and:s}),c.length>0&&g.push({$or:c});break}case"$not":{const r=o[h];if(a){const i=f(e,t,n,r,!1);!0===i?p=!0:"object"===typeof i&&g.push(i)}else{const i=f(e,t,n,r,!0);!0===i?p=!0:"object"===typeof i&&g.push(i)}break}
2default:throw new Error(`\u6682\u4e0d\u652f\u6301\u7684\u903b\u8f91\u7b97\u5b50${h}`)}else if(h.toLowerCase().startsWith(i.EXPRESSION_PREFIX))a&&(p=void 0);else if("$text"===h.toLowerCase())a&&(p=void 0);else{const r=d(e,t,h,n,o,a);"object"===typeof r?g.push(r):p=r}if(a)if(!0===p)u.push(h);else{if(!1===p)return!1;g.length>0?s.push(...g):l.push(h)}else{if(!0===p)return!0;!1===p?u.push(h):g.length>0?c.push(...g):l.push(h)}}return{totalAndDeducedFilters:s,totalOrDeducedFilters:c,uncertainAttributes:l,sureAttributes:u}}function f(e,t,n,r,i){const a=h(e,t,n,r,i);if("boolean"===typeof a)return a;const{sureAttributes:s,uncertainAttributes:c,totalAndDeducedFilters:u,totalOrDeducedFilters:d}=a;return i?s.length===Object.keys(r).length||(c.length>0&&u.push({entity:e,filter:l(e,t,[n,{$not:(0,o.pick)(r,c)}])}),{$and:u}):s.length!==Object.keys(r).length&&(c.length>0&&d.push({entity:e,filter:l(e,t,[n,(0,o.pick)(r,c)])}),{$or:d})}function p(e,t,n,i){return(0,r.default)(n),(0,r.default)(i),f(e,t,n,i,!0)}function g(e,t){const{$and:n,$or:i}=e;if(n){(0,r.default)(!i);const e=n.map((e=>{if(e.hasOwnProperty("entity")){const n=e;return t.count(n.entity,{filter:n.filter},{ignoreAttrMiss:!0})}return g(e,t)}));if(e.find((e=>e instanceof Promise)))return Promise.all(e).then((e=>{for(const t of e)if(!1===t||"number"===typeof t&&t>0)return!1;return!0}));for(const t of e)if(!1===t||"number"===typeof t&&t>0)return!1;return!0}(0,r.default)(i);const o=i.map((e=>{if(e.hasOwnProperty("entity")){const n=e;return t.count(n.entity,{filter:n.filter},{ignoreAttrMiss:!0})}return g(e,t)}));if(o.find((e=>e instanceof Promise)))return Promise.all(o).then((e=>{for(const t of e)if(!0===t||0===t)return!0;return!1}));for(const r of o)if(!0===r||0===r)return!0;return!1}t.translateCreateDataToFilter=function(e,t,n,r){const i={};for(const o in n){1===(0,a.judgeRelation)(e,t,o,r)&&(["geometry","geography","st_geometry","st_point","function","sequence","array","object"].includes(e[t].attributes[o]?.type)&&"userEntityGrant"!==t||(null===n[o]?i[o]={$exists:!1}:i[o]=n[o]))}return i},t.combineFilters=l,t.judgeValueRelation=u,t.analyzeFilterRelation=h,t.contains=p,t.getRelevantIds=function e(t){let n,r,i;if(!t)return[];const a=Object.keys(t);if((0,o.intersection)(a,["id","$and","$or"]).length>3)return[];if(t?.$and){const n=t.$and.map((t=>e(t)));if(n.find((e=>0===e.length)))return[];r=(0,o.intersection)(...n)}if(t?.$or){const n=t.$or.map((t=>e(t)));if(n.find((e=>0===e.length)))return[];i=(0,o.union)(...n)}if(t?.id)if("string"===typeof t.id)n=[t.id];else if(t.id?.$eq)n=[t.id.$eq];else{if(!(t.id?.$in&&t.id.$in instanceof Array))return[];n=t.id.$in}if(!n&&!r&&!i)return[];let s=n||r||i;return n&&(s=(0,o.intersection)(s,n)),r&&(s=(0,o.intersection)(s,r)),i&&(s=(0,o.intersection)(s,i)),s},t.same=function(e,t,n,r){return!(!n||!n.id||Object.keys(n).length>1||!r||!r.id||Object.keys(r).length>1)&&n.id===r.id},t.makeTreeAncestorFilter=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;(0,r.default)(i>=0);let s=[];a&&s.push(n);let c=n;for(;i>0;)c={id:{$in:{entity:e,data:{[t]:1},filter:c}}},o&&s.push(c),i--;return o?{$or:s}:c},t.makeTreeDescendantFilter=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;(0,r.default)(i>=0),(0,r.default)(t.endsWith("Id"));const s=t.slice(0,t.length-2);let c=[];a&&c.push(n);let l=n;for(;i>0;)l={[s]:l},o&&c.push(l),i--;return o?{$or:c}:l},t.checkFilterContains=function(e,t,n,i,o,a){(0,r.default)(i,`\u5bf9${e}\u7684\u8bbf\u95ee\u5fc5\u987b\u6709filter`);const s=p(e,t.getSchema(),i,n);return"boolean"===typeof s?s:!!o&&(a&&console.warn(`data compare on ${e}, please optimize`),g(s,t))},t.checkFilterRepel=function(e,t,n,i,o,a){(0,r.default)(i);const s=function(e,t,n,i){(0,r.default)(n),(0,r.default)(i);const o=f(e,t,n,i,!1);return("boolean"===typeof o||!0!==p(e,t,i,n))&&o}(e,t.getSchema(),i,n);return"boolean"===typeof s?s:!!o&&(a&&console.warn(`data compare on ${e}, please optimize`),g(s,t))},t.translateFilterToObjectPredicate=function(e){const t=(e,n)=>{for(const r in e){const i=e[r],o=r.startsWith("$")?`.${r}`:r;"object"!==typeof i||i instanceof Array?n[o]=i:(n[o]={},t(i,n[o]))}},n={};return t(e,n),n}},41146:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.createModiRelatedTriggers=t.createModiRelatedCheckers=t.abandonModis=t.applyModis=t.createOperationsFromModies=void 0;const r=n(37827),i=n(16269),o=n(84189),a=n(61328),s=n(5638),c=r.__importDefault(n(9062));t.createOperationsFromModies=function(e){return e.map((e=>({entity:e.targetEntity,operation:{id:e.id,action:e.action,data:e.data,filter:e.filter}})))},t.applyModis=async function(e,t,n){const r=t.openRootMode(),i=await t.operate("modi",{id:await(0,s.generateNewIdAsync)(),action:"apply",data:{},filter:e},Object.assign({},n,{blockTrigger:!1}));return r(),i},t.abandonModis=async function(e,t,n){const r=t.openRootMode(),i=t.operate("modi",{id:await(0,s.generateNewIdAsync)(),action:"abandon",data:{},filter:e},Object.assign({},n,{blockTrigger:!1}));return r(),i},t.createModiRelatedCheckers=function(e){const t=[];for(const n in e){const{actionType:r,actions:i,inModi:s}=e[n];if(!s||["readOnly","appendOnly"].includes(r))continue;const l=(0,a.difference)(i,o.appendOnlyActions);({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,OAK_PLATFORM:"web",OAK_DEV_MODE:"server",SUB_DIR_NAME:"webSingle"}).OAK_DISABLE_MODI_LOCK||t.push({entity:n,action:l,type:"row",filter:(e,t,r)=>{if(r.modiParentEntity){const{modiParentEntity:e,modiParentId:t}=r;return(0,c.default)(e),(0,c.default)(t),{modiEntity$entity:{"#sqp":"not in",entity:n,modi:{iState:"active",$or:[{entity:{$ne:e}},{entityId:{$ne:t}}]}}}}return{modiEntity$entity:{"#sqp":"not in",entity:n,modi:{iState:"active"}}}},errMsg:"\u60a8\u8bf7\u6c42\u7684\u66f4\u65b0\u5bf9\u8c61\u4e0a\u8fd8\u6709\u6b63\u5728\u7533\u8bf7\u7684\u66f4\u65b0\uff0c\u8bf7\u7b49\u8be5\u66f4\u65b0\u7ed3\u675f\u540e\u518d\u8bd5"})}return t},t.createModiRelatedTriggers=function(e){const t=[];for(const n in e){const{toModi:r}=e[n];r&&t.push({name:`\u5f53\u5220\u9664${n}\u5bf9\u8c61\u65f6\uff0c\u5220\u9664\u76f8\u5173\u8054\u7684modi\u7684modiEntity`,action:"remove",entity:n,when:"before",priority:i.TRIGGER_DEFAULT_PRIORITY,fn:async(e,t,r)=>{let{operation:i}=e;const{filter:o}=i;return await t.operate("modiEntity",{id:await(0,s.generateNewIdAsync)(),action:"remove",data:{},filter:{modi:{[n]:o,iState:"active"}}},{dontCollect:!0}),await t.operate("modi",{id:await(0,s.generateNewIdAsync)(),action:"remove",data:{},filter:{[n]:o,iState:"active"}},{dontCollect:!0}),0}})}return t.concat([{name:"\u5f53modi\u88ab\u5e94\u7528\u65f6\uff0c\u5c06\u76f8\u5e94\u7684operate\u5b8c\u6210",entity:"modi",action:"apply",when:"after",fn:async(e,t,n)=>{let{operation:r}=e;const{filter:i}=r,o=await t.select("modi",{data:{id:1,action:1,data:1,filter:1,targetEntity:1},filter:i,sorter:[{$attr:{$$createAt$$:1},$direction:"asc"}]},n);for(const a of o){const{targetEntity:e,id:r,action:i,data:o,filter:s}=a;await t.operate(e,{id:r,action:i,data:o,filter:s},{...n,applyingModi:!0})}return o.length}}])}},65201:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.judgeRelation=void 0;const r=n(37827).__importDefault(n(9062)),i=n(98598),o=n(50598);t.judgeRelation=function(e,t,n,a){const{[t]:{attributes:s}}=e;if(n.startsWith(i.EXPRESSION_PREFIX)||n.startsWith("#"))return 0;if(s.hasOwnProperty(n)||o.initinctiveAttributes.includes(n))return 1;if(!n.includes("$")){if(s.hasOwnProperty(`${n}Id`)){const{type:e,ref:t}=s[`${n}Id`];return"ref"===e?t:1}if(s.hasOwnProperty("entity")&&s.hasOwnProperty("entityId")&&e.hasOwnProperty(n))return(0,r.default)(s.entity.ref.includes(n),"\u4e0d\u5e94\u5f53\u51fa\u73b0\u7684case"),2;if(o.initinctiveAttributes.includes(n))return 1;if(a)return-1;throw new Error(`${t}\u5bf9\u8c61\u4e2d\u7684${n}\u5c5e\u6027\u627e\u4e0d\u5230`)}{const i=n.indexOf("$"),o=n.slice(0,i);(0,r.default)(e.hasOwnProperty(o));const a=n.indexOf("$",i+1),s=n.slice(i+1,a>0?a:n.length),{[o]:{attributes:c}}=e;if("entity"===s)return[o];if(c.hasOwnProperty(`${s}Id`)&&"ref"===c[`${s}Id`].type&&c[`${s}Id`].ref===t)return[o,`${s}Id`];(0,r.default)(!1,`\u975e\u6cd5\u7684\u5c5e\u6027\u540d\uff1a[${n}]`)}}},72587:(e,t)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0})},18085:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppLoader=void 0;t.AppLoader=class{path;constructor(e){this.path=e}}},30297:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},54819:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},29655:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},56778:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},56122:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},63953:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unIndexedTypes=t.types=void 0,t.types=["Int","Uint","Double","Float","String","Text","Datetime","Day","Time","Boolean","Image","File","Geo","SingleGeo","Price","Decimal"],t.unIndexedTypes=["Text","Image","File","Object"]},98598:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUB_QUERY_PREDICATE_KEYWORD=t.isRefAttrNode=t.EXPRESSION_PREFIX=void 0,t.EXPRESSION_PREFIX="$expr",t.isRefAttrNode=function(e){return e.hasOwnProperty("#attr")||e.hasOwnProperty("#refId")&&e.hasOwnProperty("#refAttr")},t.SUB_QUERY_PREDICATE_KEYWORD="#sqp"},46320:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},50598:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initinctiveAttributes=t.SeqAttribute=t.DeleteAtAttribute=t.UpdateAtAttribute=t.CreateAtAttribute=t.PrimaryKeyAttribute=t.TriggerUuidAttribute=t.TriggerDataAttribute=void 0,t.TriggerDataAttribute="$$triggerData$$",t.TriggerUuidAttribute="$$triggerUuid$$",t.PrimaryKeyAttribute="id",t.CreateAtAttribute="$$createAt$$",t.UpdateAtAttribute="$$updateAt$$",t.DeleteAtAttribute="$$deleteAt$$",t.SeqAttribute="$$seq$$",t.initinctiveAttributes=[t.PrimaryKeyAttribute,t.TriggerDataAttribute,t.TriggerUuidAttribute,t.CreateAtAttribute,t.UpdateAtAttribute,t.DeleteAtAttribute,t.SeqAttribute]},10751:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},99208:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},93804:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeException=t.OakApplicationHasToUpgrade=t.OakSocketConnectException=t.OakExternalException=t.OakPreConditionUnsetException=t.OakDeadlock=t.OakCongruentRowExists=t.OakRowLockedException=t.OakUnloggedInException=t.OakDataInvisibleException=t.OakOperationUnpermittedException=t.OakAttrCantUpdateException=t.OakAttrNotNullException=t.OakInputIllegalException=t.OakRowInconsistencyException=t.OakSignatureVerificationException=t.OakClockDriftException=t.OakServerProxyException=t.OakNetworkException=t.OakImportDataParseException=t.OakUniqueViolationException=t.OakUserException=t.OakRowUnexistedException=t.OakOperExistedException=t.OakNoRelationDefException=t.OakDataException=t.OakPartialSuccess=t.OakMakeSureByMySelfException=t.OakRequestTimeoutException=t.OakException=void 0;const r=n(65201),i=n(61328);class o extends Error{opRecords;_module;params;constructor(e,t,n){super(e),this._module=t,this.params=n,this.name=new.target.name,"function"===typeof Error.captureStackTrace&&Error.captureStackTrace(this,new.target),"function"===typeof Object.setPrototypeOf?Object.setPrototypeOf(this,new.target.prototype):this.__proto__=new.target.prototype,this.opRecords=[]}addData(e,t,n){const o={},a=(e,t)=>{const s=[];for(const i in t){const o=(0,r.judgeRelation)(n,e,i);1===o?s.push(i):2===o?a(i,t[i]):"string"===typeof o?a(o,t[i]):o instanceof Array&&t[i].forEach((e=>a(o[0],e)))}((e,t)=>{o[e]?o[e][t.id]?Object.assign(o[e][t.id],t):o[e][t.id]=t:o[e]={[t.id]:t}})(e,(0,i.pick)(t,s))};for(const r of t)a(e,r);for(const r in o){const e={a:"s",d:{[r]:o[r]}};this.opRecords.push(e)}}setOpRecords(e){this.opRecords=e}getSerialData(){return{name:this.constructor.name,message:this.message,_module:this._module,params:this.params,opRecords:this.opRecords,tag1:this.tag1,tag2:this.tag2,tag3:this.tag3}}toString(){return JSON.stringify(this.getSerialData())}tag1;tag2;tag3}t.OakException=o;class a extends o{constructor(e,t,n){super(e||"error::requestTimeout",t||"oak-domain",n)}}t.OakRequestTimeoutException=a;t.OakMakeSureByMySelfException=class extends o{};class s extends o{}t.OakPartialSuccess=s;class c extends o{}t.OakDataException=c;class l extends c{entity;actions;constructor(e,t,n,r,i){super(n||"error::noRelationDef",r||"oak-domain",i||{entity:e,actions:t.join(",")}),this.entity=e,this.actions=t}toString(){const e=super.getSerialData();return JSON.stringify({...e,entity:this.entity,action:this.actions})}}t.OakNoRelationDefException=l;t.OakOperExistedException=class extends c{};class u extends c{rows;constructor(e,t,n,r){super(t||"error::rowUnexisted",n||"oak-domain",r||{entity:e[0].entity}),this.rows=e}toString(){const e=super.getSerialData();return JSON.stringify({...e,rows:this.rows})}getRows(){return this.rows}}t.OakRowUnexistedException=u;class d extends o{}t.OakUserException=d;class h extends d{rows;constructor(e,t,n,r){super(t||"error::uniqViolation",n||"oak-domain",r),this.rows=e}}t.OakUniqueViolationException=h;class f extends d{line;header;constructor(e,t,n,r,i){super(e||"error::importedDataParseError",r||"oak-domain",i),this.line=t,this.header=n}}t.OakImportDataParseException=f;class p extends o{}t.OakNetworkException=p;class g extends o{}t.OakServerProxyException=g;class y extends o{}t.OakClockDriftException=y;class m extends o{constructor(e,t,n){super(e||"error::signatureFailed",t||"oak-domain",n)}}t.OakSignatureVerificationException=m;class v extends d{toString(){const e=super.getSerialData();return JSON.stringify(e)}}t.OakRowInconsistencyException=v;class b extends d{attributes;entity;constructor(e,t,n,r,i){super(n,r,i||{attributes:t.join(",")}),this.entity=e,this.attributes=t}getEntity(){return this.entity}getAttributes(){return this.attributes}addAttributesPrefix(e){this.attributes=this.attributes.map((t=>`${e}.${t}`))}toString(){const e=super.getSerialData();return JSON.stringify({...e,entity:this.entity,attributes:this.attributes})}}t.OakInputIllegalException=b;class w extends b{constructor(e,t,n,r,i){super(e,t,n||"error::attributesNull",r||"oak-domain",i)}}t.OakAttrNotNullException=w;class x extends b{constructor(e,t,n,r,i){super(e,t,n||"error::attributesCantUpdate",r||"oak-domain",i)}}t.OakAttrCantUpdateException=x;class S extends d{entity;operation;constructor(e,t,n,r,i){super(n||"error::operationUnpermitted",r||"oak-domain",i),this.entity=e,this.operation=t}toString(){const e=super.getSerialData();return JSON.stringify({...e,entity:this.entity,operation:this.operation})}}t.OakOperationUnpermittedException=S;class A extends d{entity;operation;constructor(e,t,n,r,i){super(n||"error::dataInvisible",r||"oak-domain",i),this.entity=e,this.operation=t}toString(){const e=super.getSerialData();return JSON.stringify({...e,entity:this.entity,operation:this.operation})}}t.OakDataInvisibleException=A;class k extends d{constructor(e,t,n){super(e||"error::unLoggedIn",t||"oak-domain",n)}}t.OakUnloggedInException=k;class O extends d{constructor(e,t,n){super(e||"error::rowLocked",t||"oak-domain",n)}}t.OakRowLockedException=O;class _ extends d{data;entity;constructor(e,t,n,r,i){super(n||"error::congrentRowExists",r||"oak-domain",i),this.data=t,this.entity=e}getData(){return this.data}getEntity(){return this.entity}toString(){const e=super.getSerialData();return JSON.stringify({...e,data:this.data,entity:this.entity})}}t.OakCongruentRowExists=_;class E extends d{constructor(e,t,n){super(e||"error::deadlock",t||"oak-domain",n)}}t.OakDeadlock=E;class I extends d{entity;code;constructor(e,t,n,r,i){super(e||"error::preconditionUnset",r||"oak-domain",i),this.entity=t,this.co
2de=n}toString(){const e=super.getSerialData();return JSON.stringify({...e,code:this.code,entity:this.entity})}}t.OakPreConditionUnsetException=I;class j extends d{code;source;data;constructor(e,t,n,r,i,o){super(n||"error::externalException",i||"oak-domain",o),this.code=t,this.source=e,this.data=r}toString(){const e=super.getSerialData();return JSON.stringify({...e,code:this.code,source:this.source,data:this.data})}}t.OakExternalException=j;class $ extends d{constructor(e,t,n){super(e||"error::socketConnectException",t||"oak-domain",n)}}t.OakSocketConnectException=$;class T extends d{constructor(e,t,n){super(e||"error::applicationHasToUpgrade",t||"oak-domain",n)}}t.OakApplicationHasToUpgrade=T,t.makeException=function(e){const{name:t,message:n,_module:r,params:i}=e;let C;switch(t){case"OakException":C=new o(n,r,i);break;case"OakUserException":C=new d(n,r,i);break;case"OakRowInconsistencyException":C=new v(n,r,i);break;case"OakInputIllegalException":C=new b(e.entity,e.attributes,n,r,i);break;case"OakAttrCantUpdateException":C=new x(e.entity,e.attributes,n,r,i);break;case"OakOperationUnpermittedException":C=new S(e.entity,e.operation,n,r,i);break;case"OakDataInvisibleException":C=new A(e.entity,e.operation,n,r,i);break;case"OakUnloggedInException":C=new k(n,r,i);break;case"OakCongruentRowExists":C=new _(e.entity,e.data,n,r,i);break;case"OakRowLockedException":C=new O(n,r,i);break;case"OakRowUnexistedException":C=new u(e.rows,n,r,i);break;case"OakDeadlock":C=new E(n,r,i);break;case"OakDataException":C=new c(n,r,i);break;case"OakNoRelationDefException":C=new l(e.entity,e.action,n,r,i);break;case"OakUniqueViolationException":C=new h(e.rows,n,r,i);break;case"OakImportDataParseException":C=new f(n,e.line,e.header,r,i);break;case"OakPreConditionUnsetException":C=new I(n,e.entity,e.code,r,i);break;case"OakAttrNotNullException":C=new w(e.entity,e.attributes,n,r,i);break;case"OakExternalException":C=new j(e.source,e.code,n,e.data,r,i);break;case"OakNetworkException":C=new p(n,r,i);break;case"OakClockDriftException":C=new y(n,r,i);break;case"OakServerProxyException":C=new g(n,r,i);break;case"OakSocketConnectException":C=new $(n,r,i);break;case"OakPartialSuccess":C=new s(n,r,i);break;case"OakRequestTimeoutException":C=new a(n,r,i);break;case"OakSignatureVerificationException":C=new m(n,r,i);break;case"OakApplicationHasToUpgrade":C=new T(n,r,i);break;default:return}if(C)return C.setOpRecords(e.opRecords),C}},44139:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAttrRefInExpression=t.execOp=t.opMultipleParams=t.isExpression=t.isAggrExpression=t.isStringExpression=t.isMathExpression=t.isCompareExpression=t.isBoolExpression=t.isLogicExpression=t.isDateExpression=t.isGeoExpression=void 0;const r=n(37827),i=r.__importDefault(n(9062)),o=r.__importDefault(n(4159)),a=r.__importDefault(n(43540)),s=r.__importDefault(n(2704)),c=n(42040);o.default.extend(a.default),o.default.extend(s.default),t.isGeoExpression=function(e){if(1==Object.keys(e).length){const t=Object.keys(e)[0];if(["$contains","$distance"].includes(t))return!0}return!1},t.isDateExpression=function(e){if(1==Object.keys(e).length){const t=Object.keys(e)[0];if(["$year","$month","$weekday","$weekOfYear","$day","$dayOfMonth","$dayOfWeek","$dayOfYear","$dateDiff","$dateCeil","$dateFloor"].includes(t))return!0}return!1},t.isLogicExpression=function(e){if(1==Object.keys(e).length){const t=Object.keys(e)[0];if(["$and","$or","$not"].includes(t))return!0}return!1},t.isBoolExpression=function(e){if(1==Object.keys(e).length){const t=Object.keys(e)[0];if(["$true","$false"].includes(t))return!0}return!1},t.isCompareExpression=function(e){if(1==Object.keys(e).length){const t=Object.keys(e)[0];if(["$gt","$lt","$gte","$lte","$eq","$ne","$startsWith","$endsWith","$includes"].includes(t))return!0}return!1},t.isMathExpression=function(e){if(1==Object.keys(e).length){const t=Object.keys(e)[0];if(["$add","$subtract","$multiply","$divide","$abs","$pow","$round","$floor","$ceil","$mod"].includes(t))return!0}return!1},t.isStringExpression=function(e){if(1==Object.keys(e).length){const t=Object.keys(e)[0];if(["$concat"].includes(t))return!0}return!1},t.isAggrExpression=function(e){if(1==Object.keys(e).length){const t=Object.keys(e)[0];if(["$$max","$$min","$$sum","$$avg","$$count"].includes(t))return!0}return!1},t.isExpression=function(e){return"object"===typeof e&&1===Object.keys(e).length&&Object.keys(e)[0].startsWith("$")},t.opMultipleParams=function(e){return!["$year","$month","$weekday","$weekOfYear","$day","$dayOfMonth","$dayOfWeek","$dayOfYear","$not","$true","$false","$abs","$round","$floor","$ceil","$$max","$$min","$$sum","$$avg","$$count"].includes(e)},t.execOp=function(e,t){switch(e){case"$gt":return t[0]>t[1];case"$lt":return t[0]<t[1];case"$gte":return t[0]>=t[1];case"$lte":return t[0]<=t[1];case"$eq":return t[0]===t[1];case"$ne":return t[0]!==t[1];case"$startsWith":return t[0].startsWith(t[1]);case"$endsWith":return t[0].endsWith(t[1]);case"$includes":return t[0].includes(t[1]);case"$add":if("number"===typeof t[0]){let e=0;return t.forEach((t=>e+=t)),e}{let e="";return t.forEach((t=>e+=t)),e}case"$subtract":return t[0]-t[1];case"$multiply":{let e=1;return t.forEach((t=>e*=t)),e}case"$divide":return t[0]/t[1];case"$abs":return Math.abs(t);case"$round":return Math.round(t);case"$ceil":return Math.ceil(t);case"$mod":return t[0]%t[1];case"$floor":return Math.floor(t);case"$round":return Math.round(t);case"$pow":return Math.pow(t[0],t[1]);case"$true":return!!t;case"$false":case"$not":return!t;case"$and":for(const e of t)if(!e)return!1;return!0;case"$or":for(const e of t)if(e)return!0;return!1;case"$year":return(0,o.default)(t).year();case"$month":return(0,o.default)(t).month();case"$weekday":return(0,o.default)(t).day();case"$weekOfYear":return(0,o.default)(t).week();case"$day":case"$dayOfMonth":return(0,o.default)(t).date();case"$dayOfWeek":return(0,o.default)(t).day();case"$dayOfYear":return(0,o.default)(t).dayOfYear();case"$dateDiff":{const e=(0,o.default)(t[0]),n=(0,o.default)(t[1]);switch(t[2]){case"y":case"M":case"d":case"h":case"m":case"s":return e.diff(n,t[2]);default:(0,i.default)(!1)}}case"$dateCeil":{const e=(0,o.default)(t[0]);switch(t[1]){case"y":return e.startOf("year").millisecond();case"M":return e.startOf("month").millisecond();case"d":return e.startOf("day").millisecond();case"h":return e.startOf("hour").millisecond();case"m":return e.startOf("minute").millisecond();case"s":return e.startOf("second").millisecond();default:(0,i.default)(!1)}}case"$dateFloor":{const e=(0,o.default)(t[0]);switch(t[1]){case"y":return e.endOf("year").millisecond();case"M":return e.endOf("month").millisecond();case"d":return e.endOf("day").millisecond();case"h":return e.endOf("hour").millisecond();case"m":return e.endOf("minute").millisecond();case"s":return e.endOf("second").millisecond();default:(0,i.default)(!1)}}case"$distance":{const[e,n]=t,{type:r,coordinate:i}=e,{type:o,coordinate:a}=n;
2if("point"!==r||"point"!==o)throw new Error("\u76ee\u524d\u53ea\u652f\u6301point\u7c7b\u578b\u7684\u8ddd\u79bb\u8fd0\u7b97");return(0,c.getDistanceBetweenPoints)(i[1],i[0],a[1],a[0])}case"$contains":throw new Error("$contains\u7c7b\u578b\u672a\u5b9e\u73b0");case"$concat":return t.join("");default:(0,i.default)(!1,`\u4e0d\u80fd\u8bc6\u522b\u7684expression\u8fd0\u7b97\u7b26\uff1a${e}`)}},t.getAttrRefInExpression=function(e){const t={"#current":[]},n=e=>{if(e["#attr"])t["#current"].push(e["#attr"]);else if(e["#refAttr"])t[e["#refId"]]?t[e["#refId"]].push(e["#refAttr"]):Object.assign(t,{[e["#refId"]]:[e["#refAttr"]]});else if(e instanceof Array)for(const t of e)n(t);else if("object"===typeof e)for(const t in e)n(e[t])};return n(e),t}},5492:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},88551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},12453:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},49802:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},53306:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},45864:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RowStore=void 0;const r=n(13289);t.RowStore=class{storageSchema;constructor(e){this.storageSchema=e}getSchema(){return this.storageSchema}mergeMultipleResults(e){const t={};return e.forEach((e=>(0,r.mergeOperationResult)(t,e))),t}}},23696:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},78224:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},48190:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},36132:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},56113:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHECKER_PRIORITY_MAP=t.CHECKER_MAX_PRIORITY=t.TRIGGER_MAX_PRIORITY=t.TRIGGER_DEFAULT_PRIORITY=t.TRIGGER_MIN_PRIORITY=void 0,t.TRIGGER_MIN_PRIORITY=1,t.TRIGGER_DEFAULT_PRIORITY=25,t.TRIGGER_MAX_PRIORITY=50,t.CHECKER_MAX_PRIORITY=99,t.CHECKER_PRIORITY_MAP={logicalData:31,logical:33,row:51,data:61,relation:56}},85233:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},16269:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(37827);r.__exportStar(n(72587),t),r.__exportStar(n(30297),t),r.__exportStar(n(54819),t),r.__exportStar(n(56122),t),r.__exportStar(n(63953),t),r.__exportStar(n(98598),t),r.__exportStar(n(50598),t),r.__exportStar(n(44139),t),r.__exportStar(n(5492),t),r.__exportStar(n(12453),t),r.__exportStar(n(49802),t),r.__exportStar(n(45864),t),r.__exportStar(n(23696),t),r.__exportStar(n(56113),t),r.__exportStar(n(93804),t),r.__exportStar(n(85233),t),r.__exportStar(n(18085),t),r.__exportStar(n(56778),t),r.__exportStar(n(36132),t),r.__exportStar(n(53306),t),r.__exportStar(n(46320),t),r.__exportStar(n(78224),t),r.__exportStar(n(10751),t),r.__exportStar(n(99208),t),r.__exportStar(n(88551),t),r.__exportStar(n(29655),t),r.__exportStar(n(48190),t)},35376:(e,t,n)=>{"use strict";var r=n(93325).Buffer;Object.defineProperty(t,"__esModule",{value:!0});const i=n(37827),o=i.__importDefault(n(9062)),a=n(38556),s=i.__importDefault(n(90625)),c=n(16269);class l{static ASPECT_ROUTER="/aspect";static BRIDGE_ROUTER="/bridge";static SUBSCRIBE_PATH=(()=>({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,OAK_PLATFORM:"web",OAK_DEV_MODE:"server",SUB_DIR_NAME:"webSingle"}.OAK_SUBSCRIBE_PATH||"/subscribe"))();static SOCKET_PATH=(()=>({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,OAK_PLATFORM:"web",OAK_DEV_MODE:"server",SUB_DIR_NAME:"webSingle"}.OAK_SOCKET_PATH||"/socket"))();static SOCKET_POINT_ROUTER="/socketPoint";static ENDPOINT_ROUTER="/endpoint";serverUrl;serverAspectUrl;serverBridgeUrl;serverSubscribePointUrl;configuration;makeException;timeout;clockDriftDuration;constructor(e,t){this.configuration=e;const{routerPrefixes:n,http:r,timeout:i,clockDriftDuration:o}=e;this.timeout=i||5e3,this.clockDriftDuration=o||1e4;const{ssl:a,hostname:s,port:c,path:u}=r;let d=`${a?"https:":"http:"}//${s}`;this.serverUrl=d,"number"===typeof c&&(d+=`:${c}`),u&&(u.startsWith("/")?d+=u:d+=`/${u}`),this.serverAspectUrl=`${d}${n?.aspect||l.ASPECT_ROUTER}`,this.serverBridgeUrl=`${d}${n?.bridge||l.BRIDGE_ROUTER}`,this.serverSubscribePointUrl=`${d}${n?.getSubscribePoint||l.SOCKET_POINT_ROUTER}`,this.makeException=t}getCorsHeader(){return["oak-cxt","oak-aspect"]}async makeHeadersAndBody(e,t,n){const r={"oak-cxt":n?await n.toString():"{}","oak-aspect":e};return t instanceof FormData?{headers:r,body:t}:{headers:{"Content-Type":"application/json",...r},body:JSON.stringify(t)}}async parseAspectResult(e){if(e.status>299)throw new c.OakServerProxyException(`\u7f51\u7edc\u8bf7\u6c42\u8fd4\u56destatus\u662f${e.status}`);const t=e.headers.get("oak-message"),n=e.headers.get("Content-Type")||e.headers.get("content-type");if(n?.toLocaleLowerCase().match(/application\/json/i)){const{exception:n,result:r,opRecords:i}=await e.json();if(n)throw this.makeException(n);return{result:r,opRecords:i,message:t}}return{result:e.body,message:t}}async callAspect(e,t,n){const{headers:r,body:i}=await this.makeHeadersAndBody(e,t,n);let o;try{o=await this.fetchWithTimeout(this.serverAspectUrl,{method:"POST",headers:r,body:i},this.timeout)}catch(a){if(a instanceof c.OakRequestTimeoutException)throw new c.OakNetworkException("\u63a5\u53e3\u8bf7\u6c42\u8d85\u65f6");throw new c.OakNetworkException("\u63a5\u53e3\u8bf7\u6c42\u65f6\u53d1\u751f\u7f51\u7edc\u5f02\u5e38")}return this.parseAspectResult(o)}getRouter(){return this.configuration.routerPrefixes?.aspect||l.ASPECT_ROUTER}getSocketPath(){return this.configuration.socketPath||l.SOCKET_PATH}getSocketPointRouter(){return this.configuration.routerPrefixes?.getSubscribePoint||l.SOCKET_POINT_ROUTER}async getSocketPoint(){let e;try{e=await this.fetchWithTimeout(this.serverSubscribePointUrl,{},this.timeout)}catch(n){if(n instanceof c.OakRequestTimeoutException)throw new c.OakNetworkException("\u63a5\u53e3\u8bf7\u6c42\u8d85\u65f6");throw new c.OakNetworkException("\u63a5\u53e3\u8bf7\u6c42\u65f6\u53d1\u751f\u7f51\u7edc\u5f02\u5e38")}if(e.status>299)throw new c.OakServerProxyException(`\u7f51\u7edc\u8bf7\u6c42\u8fd4\u56destatus\u662f${e.status}`);e.headers.get("oak-message");const t=e.headers.get("Content-Type")||e.headers.get("content-type");if(t?.toLocaleLowerCase().match(/application\/json/i)){const{socketUrl:t,subscribeUrl:n,path:r}=await e.json();return{path:r,subscribeUrl:n,socketUrl:t}}throw new Error(`\u5c1a\u4e0d\u652f\u6301\u7684content-type\u7c7b\u578b${t}`)}getEndpointRouter(){return this.configuration.routerPrefixes?.endpoint||l.ENDPOINT_ROUTER}
2parseRequest(e,t,n){const{"oak-cxt":r,"oak-aspect":i}=e;return(0,o.default)("string"===typeof r||void 0===r),(0,o.default)("string"===typeof i),{contextString:r,aspectName:i,data:n?Object.assign({},t,n):t}}async serializeResult(e,t,n,i,o){return e instanceof a.Stream||e instanceof r?{body:e,headers:{"oak-message":o}}:{body:{result:e,opRecords:t},headers:{"oak-message":o}}}serializeException(e,t,n){return{body:{exception:e.toString()}}}getBridgeRouter(){return l.BRIDGE_ROUTER}makeBridgeUrl(e,t){const n=encodeURIComponent(e);return`${this.serverBridgeUrl}?url=${n}`}parseBridgeRequestQuery(e){const t=new s.default.URLSearchParams(e),n=t.get("url"),r=t.get("headers");return{url:n,headers:r&&JSON.parse(r)}}async getFullData(){return console.error("\u524d\u540e\u53f0\u6a21\u5f0f\u4e0b\u6682\u65f6\u4e0d\u652f\u6301\u6b64\u64cd\u4f5c\uff0c\u8bf7\u5230\u6570\u636e\u5e93\u67e5\u770b\u6570\u636e"),{}}async fetchWithTimeout(e,t){return n.g.fetch(e,t)}}t.default=l},13095:(e,t,n)=>{"use strict";t.v=void 0;const r=n(37827).__importDefault(n(9062));t.v=r.default},60848:(e,t)=>{"use strict";t.T=void 0,t.T=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=(e,n)=>{const i=t[e];if(!i)return n;const o=i(n);return o instanceof Promise?o.then((t=>r(e+1,t))):r(e+1,o)};return r(0)}},42040:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gcj02towgs84=t.wgs84togcj02=t.gcj02tobd09=t.bd09togcj02=t.getDistanceBetweenPoints=void 0,t.getDistanceBetweenPoints=function(e,t,n,r){function i(e){return e*Math.PI/180}const o=i(e),a=i(n),s=i(n-e),c=i(r-t),l=Math.sin(s/2)*Math.sin(s/2)+Math.cos(o)*Math.cos(a)*Math.sin(c/2)*Math.sin(c/2);return 1e3*(6378137*(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))))};const n=52.35987755982988,r=3.141592653589793,i=6378245,o=.006693421622965943;function a(e,t){let n=2*e-100+3*t+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*r)+20*Math.sin(2*e*r))/3,n+=2*(20*Math.sin(t*r)+40*Math.sin(t/3*r))/3,n+=2*(160*Math.sin(t/12*r)+320*Math.sin(t*r/30))/3,n}function s(e,t){let n=300+e+2*t+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*r)+20*Math.sin(2*e*r))/3,n+=2*(20*Math.sin(e*r)+40*Math.sin(e/3*r))/3,n+=2*(150*Math.sin(e/12*r)+300*Math.sin(e/30*r))/3,n}function c(e,t){return!(e>73.66&&e<135.05&&t>3.86&&t<53.55)}t.bd09togcj02=function(e){const[t,r]=e,i=t-.0065,o=r-.006,a=Math.sqrt(i*i+o*o)-2e-5*Math.sin(o*n),s=Math.atan2(o,i)-3e-6*Math.cos(i*n);return[a*Math.cos(s),a*Math.sin(s)]},t.gcj02tobd09=function(e){const[t,r]=e,i=Math.sqrt(t*t+r*r)+2e-5*Math.sin(r*n),o=Math.atan2(r,t)+3e-6*Math.cos(t*n);return[i*Math.cos(o)+.0065,i*Math.sin(o)+.006]},t.wgs84togcj02=function(e){const[t,n]=e;if(c(t,n))return[t,n];{let e=a(t-105,n-35),c=s(t-105,n-35);const l=n/180*r;let u=Math.sin(l);u=1-o*u*u;const d=Math.sqrt(u);e=180*e/(i*(1-o)/(u*d)*r),c=180*c/(i/d*Math.cos(l)*r);return[t+c,n+e]}},t.gcj02towgs84=function(e){const[t,n]=e;if(c(t,n))return[t,n];{let e=a(t-105,n-35),c=s(t-105,n-35);const l=n/180*r;let u=Math.sin(l);u=1-o*u*u;const d=Math.sqrt(u);e=180*e/(i*(1-o)/(u*d)*r),c=180*c/(i/d*Math.cos(l)*r);return[2*t-(t+c),2*n-(n+e)]}}},61328:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pullAll=t.unionBy=t.groupBy=t.differenceBy=t.difference=t.union=t.isEqual=t.pick=t.cloneDeep=t.mergeConcatMany=t.mergeConcatArray=t.mergeWith=t.merge=t.omit=t.intersectionBy=t.intersection=t.set=t.get=t.uniqBy=t.uniq=t.pull=t.unset=void 0;const r=n(37827),i=r.__importDefault(n(47951));t.unset=i.default;const o=r.__importDefault(n(35420));t.uniqBy=o.default;const a=r.__importDefault(n(23887));t.pull=a.default;const s=r.__importDefault(n(80561));t.uniq=s.default;const c=r.__importDefault(n(87946));t.get=c.default;const l=r.__importDefault(n(38230));t.set=l.default;const u=r.__importDefault(n(92437));t.intersection=u.default;const d=r.__importDefault(n(53408));t.intersectionBy=d.default;const h=r.__importDefault(n(92093));t.omit=h.default;const f=r.__importDefault(n(23334));t.merge=f.default;const p=r.__importDefault(n(89986));t.mergeWith=p.default;const g=r.__importDefault(n(55117));t.cloneDeep=g.default;const y=r.__importDefault(n(75357));t.pick=y.default;const m=r.__importDefault(n(59418));t.isEqual=m.default;const v=r.__importDefault(n(92177));t.union=v.default;const b=r.__importDefault(n(67391));t.difference=b.default;const w=r.__importDefault(n(81038));t.differenceBy=w.default;const x=r.__importDefault(n(33684));t.groupBy=x.default;const S=r.__importDefault(n(47292));t.unionBy=S.default;const A=r.__importDefault(n(77392));t.pullAll=A.default;const k=r.__importDefault(n(9062));function O(e,t){return e instanceof Array?((0,k.default)(t instanceof Array,"\u5408\u5e76\u7684\u5bf9\u8c61\u5fc5\u987b\u7ed3\u6784\u4e00\u81f4"),(0,s.default)(e.concat(t))):(0,p.default)(e,t,((e,t)=>
2{if(e instanceof Array)return(0,k.default)(t instanceof Array,"\u5408\u5e76\u7684\u5bf9\u8c61\u5fc5\u987b\u7ed3\u6784\u4e00\u81f4"),(0,s.default)(e.concat(t))}))}t.mergeConcatArray=O,t.mergeConcatMany=function(e){if(0!==e.length)return e.reduce(((e,t)=>O(e,t)))}},13289:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeOperationResult=void 0;const r=n(61328);t.mergeOperationResult=function(e,t){for(const n in t)for(const i in t[n]){const o=(0,r.get)(e,`${n}.${i}`);"number"===typeof o?(0,r.set)(e,`${n}.${i}`,o+t[n][i]):(0,r.set)(e,`${n}.${i}`,t[n][i])}return e}},2972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traverseProjection=t.makeProjection=void 0;const r=n(50598),i=n(65201);t.makeProjection=function(e,t){const{attributes:n}=t[e],i=Object.keys(n);i.push(r.PrimaryKeyAttribute,r.CreateAtAttribute,r.UpdateAtAttribute,r.DeleteAtAttribute);const o={};return i.forEach((e=>Object.assign(o,{[e]:1}))),o},t.traverseProjection=function(e,t,n,r){const o=(e,n)=>{r(e,n);for(const r in n){const a=(0,i.judgeRelation)(t,e,r);2===a?o(r,n[r]):"string"===typeof a?o(a,n[r]):a instanceof Array&&o(a[0],n[r].data)}};o(e,n)}},8362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRandomValues=void 0,t.getRandomValues=async function(e){if(e>65536)throw new Error("Can only request a maximum of 65536 bytes");const t=window.crypto.getRandomValues(new Uint8Array(e));return new Uint8Array(t)}},59882:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.destructDirectPath=t.destructDirectUserPath=t.destructRelationPath=void 0;const r=n(37827).__importDefault(n(9062)),i=n(65201);function o(e,t,n){(0,r.default)(n,"\u76f4\u63a5\u5bf9\u8c61\u7684\u8def\u5f84\u6700\u7ec8\u8981\u6307\u5411user\u5bf9\u8c61\uff0c\u4e0d\u53ef\u80fd\u4e3a\u7a7a");const o=n.split("."),a=(t,n)=>{const s=o[n],c=(0,i.judgeRelation)(e,t,s);if(n===o.length-1)return 2===c?{projection:{id:1,entity:1,entityId:1},getData:(e,n)=>{if(e)return n?((0,r.default)(n===s),[{entity:s,data:{id:e.entityId}}]):[{entity:t,data:e}]}}:{projection:{id:1,[`${s}Id`]:1},getData:(e,n)=>{if(e)return n?((0,r.default)(n===s),[{entity:c,data:{id:e[`${s}Id`]}}]):[{entity:t,data:e}]}};if(2===c){const{projection:e,getData:i}=a(s,n+1);return{projection:{id:1,[s]:e},getData:(e,n)=>{if(e){if(!n)return[{entity:t,data:e}];const o=n.split(".");return(0,r.default)(o[0]===s),e[s]&&i(e[s],o.slice(1).join("."))}}}}if("string"===typeof c){const{projection:e,getData:i}=a(c,n+1);return{projection:{id:1,[s]:e},getData:(e,n)=>{if(e){if(!n)return[{entity:t,data:e}];const o=n.split(".");return(0,r.default)(o[0]===s),e[s]&&i(e[s],o.slice(1).join("."))}}}}{(0,r.default)(c instanceof Array);const[e,i]=c,{projection:o,getData:l}=a(e,n+1);return{projection:{id:1,[s]:{$entity:e,data:o}},getData:(e,n)=>{if(!n)return[{entity:t,data:e}];const i=n.split(".");return(0,r.default)(i[0]===s),e[s]&&e[s].map((e=>l(e,i.slice(1).join(".")))).flat().filter((e=>!!e))}}}};return a(t,0)}t.destructRelationPath=function(e,t,n,o,a){if((0,r.default)(!a,"recursive\u7684\u60c5\u51b5\u8fd8\u6ca1\u5904\u7406\uff0c\u7b49\u8dd1\u51fa\u6765\u518d\u8bf4\uff0c by Xc"),""===n)return{projection:{id:1,userRelation$entity:{$entity:"userRelation",data:{id:1,relationId:1,relation:{id:1,name:1},entity:1,entityId:1,userId:1},filter:o}},getData:e=>e.userRelation$entity};const s=n.split("."),c=(t,n)=>{if(n===s.length)return{projection:{id:1,userRelation$entity:{$entity:"userRelation",data:{id:1,relationId:1,relation:{id:1,name:1},entity:1,entityId:1,userId:1},filter:o}},getData:e=>e.userRelation$entity};const a=s[n],l=(0,i.judgeRelation)(e,t,a);if(2===l){const{projection:e,getData:t}=c(a,n+1);return{projection:{id:1,[a]:e},getData:e=>e[a]&&t(e[a])}}if("string"===typeof l){const{projection:e,getData:t}=c(l,n+1);return{projection:{id:1,[a]:e},getData:e=>e[a]&&t(e[a])}}{(0,r.default)(l instanceof Array);const[e]=l,{projection:t,getData:i}=c(e,n+1);return{projection:{id:1,[a]:{$entity:e,data:t}},getData:e=>e[a]&&e[a].map((e=>i(e))).flat().filter((e=>!!e))}}};return c(t,0)},t.destructDirectUserPath=function(e,t,n){const r=n.split("."),i=r.pop(),a=r.join("."),{projection:s,getData:c}
2=o(e,t,n);return{projection:s,getData:e=>{const t=c(e,a);return t?.map((e=>{let{entity:t,data:n}=e;return{entity:t,entityId:n.id,userId:n[`${i}Id`]||n.entityId}}))}}},t.destructDirectPath=o},52289:(e,t,n)=>{"use strict";t.fz=t.us=void 0;const r=n(37827),i=n(61328),o=n(65201),a=r.__importDefault(n(9062));function s(e,t,n,r){const l=Object.keys(n||{}).filter((e=>!e.startsWith("$$"))),u=Object.keys(r||{}).filter((e=>!e.startsWith("$$")));if((0,i.difference)(l,u).length>0)return!1;for(const i of l){const l=(0,o.judgeRelation)(e,t,i);if(0!==l)if(1===l){if(n[i]!==r[i])return!1}else if(2===l){if(!s(e,i,n[i],r[i]))return!1}else if("string"===typeof l){if(!s(e,l,n[i],r[i]))return!1}else if((0,a.default)(l instanceof Array),!c(e,l[0],n[i],r[i]))return!1}return!0}function c(e,t,n,r){if(n.length!==r.length)return!1;let i=0;for(;i<n.length;){if(!s(e,t,n[i],r[i]))return!1;i++}return!0}t.us=s,t.fz=c},17947:(e,t)=>{"use strict";t.Ef=t.OZ=void 0;const n=URL;t.OZ=n;const r=URLSearchParams;t.Ef=r},5638:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decompressFrom32=t.compressTo32=t.formUuid=t.generateNewId=t.setGenerateIdOption=t.produceIds=t.generateNewIdAsync=t.expandUuidTo36Bytes=t.shrinkUuidTo32Bytes=t.sequentialUuid=void 0;const r=n(8362);let i,o,a=0,s=0;const c=[];for(let g=0;g<256;++g)c.push((g+256).toString(16).slice(1));function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}function u(e){let{random:t}=e,n=0;const r=new Array(16);let c=i,u=o;if(null==c||null==u){const e=t;null==c&&(c=i=[1|e[0],e[1],e[2],e[3],e[4],e[5]]),null==u&&(u=o=16383&(e[6]<<8|e[7]))}let d=Date.now(),h=s+1;const f=d-a+(h-s)/1e4;if(f<0&&(u=u+1&16383),(f<0||d>a)&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=d,s=h,o=u,d+=122192928e5;const p=d/4294967296*1e4&268435455;r[n++]=p>>>24&15|16,r[n++]=p>>>16&255,r[n++]=p>>>8&255,r[n++]=255&p;const g=(1e4*(268435455&d)+h)%4294967296;r[n++]=g>>>24&255,r[n++]=g>>>16&255,r[n++]=g>>>8&255,r[n++]=255&g,r[n++]=u>>>8|128,r[n++]=255&u;for(let i=0;i<6;++i)r[10+i]=c[i];return l(r)}async function d(e){return u({random:await(0,r.getRandomValues)(16)})}t.sequentialUuid=u,t.shrinkUuidTo32Bytes=function(e){return e.replace(/\-/g,"")},t.expandUuidTo36Bytes=function(e){return`${e.slice(0,8)}-${e.slice(8,12)}-${e.slice(12,16)}-${e.slice(16,20)}-${e.slice(20)}`},t.generateNewIdAsync=d;const h=[];let f={};async function p(){let e=0;for(;e<1024;e++)h.push(await d())}t.produceIds=p,p(),t.setGenerateIdOption=function(e){return f=e,h.splice(0,h.length),p()},t.generateNewId=function(){if(h.length>0){const e=h.pop();return h.length<128&&p(),e}{const e=new Uint8Array(16);let t=0;do{e[t]=Math.ceil(1e3*Math.random())%128}while(++t<16);return u({random:e})}},t.formUuid=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=t.join("-");if(r.length<=36)return r;const i=function(e){var t,n,r=new Array;t=e.length;for(var i=0;i<t;i++)(n=e.charCodeAt(i))>=65536&&n<=1114111?(r.push(n>>18&7|240),r.push(n>>12&63|128),r.push(n>>6&63|128),r.push(63&n|128)):n>=2048&&n<=65535?(r.push(n>>12&15|224),r.push(n>>6&63|128),r.push(63&n|128)):n>=128&&n<=2047?(r.push(n>>6&31|192),r.push(63&n|128)):r.push(255&n);var o=new Int8Array(r.length);for(i=0;i<=r.length;i++)o[i]=r[i];return o}(r),o=new Array(16);let a=0;do{o[a++]=0}while(a<16);for(a=0;a<i.length;)o[a%16]+=i[a],a++;a=0;do{o[a]=o[a]%256,a++}while(a<16);return l(o)},t.compressTo32=function(e){return e.replace(/-/g,"")},t.decompressFrom32=function(e){return[e.slice(0,8),e.slice(8,12),e.slice(12,16),e.slice(16,20),e.slice(20)].join("-")}},48551:(e,t,n)=>{"use strict";t.SA=t.Ek=t.id=t.SB=t.hz=t.gx=t.js=t.Ac=t.ZD=t.Fr=void 0;const r=n(16269);t.Fr=e=>e&&"string"===typeof e&&/^1[3|4|5|6|7|8|9]\d{9}$/.test(e);t.ZD=e=>"string"===typeof e&&18===e.length&&/^\d{6}(18|19|20)\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(e);t.Ac=e=>"string"===typeof e&&/^([a-zA-z]|[0-9]){5,17}$/.test(e);t.js=e=>"string"===typeof e&&/^([A-Z]\d{6,10}(\(\w{1}\))?)$/.test(e);t.gx=e=>"string"===typeof e&&/^([A-Z]\d{6,10}(\(\w{1}\))?)$/.test(e);t.hz=e=>"string"===typeof e&&/^\d{8}|^[a-zA-Z0-9]{10}|^\d{18}$/.test(e);t.SB=function(e,t,n,i){const o=n.filter((e=>null===t[e]||""===t[e]||void 0===t[e]||(!i&&!t.hasOwnProperty(e)||void 0)));if(o.length>0)throw new r.OakAttrNotNullException(e,o,"error::attributesNull")},t.id=function(e,t,n){const i=n.filter((e=>!t.hasOwnProperty(e)));if(i.length>0)throw new r.OakInputIllegalException(e,i,"error::attributesCantUpdate")};t.Ek=e=>/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(e);t.SA=e=>/^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$|^::([0-9a-fA-F]{1,4}:){0,6}[0-9a-fA-F]{1,4}$|^[0-9a-fA-F]{1,4}::([0-9a-fA-F]{1,4}:){0,5}[0-9a-fA-F]{1,4}$|^([0-9a-fA-F]{1,4}:){1}:([0-9a-fA-F]{1,4}:){0,4}[0-9a-fA-F]{1,4}$|^([0-9a-fA-F]{1,4}:){2}:([0-9a-fA-F]{1,4}:){0,3}[0-9a-fA-F]{1,4}$|^([0-9a-fA-F]{1,4}:){3}:([0-9a-fA-F]{1,4}:){0,2}[0-9a-fA-F]{1,4}$|^([0-9a-fA-F]{1,4}:){4}:([0-9a-fA-F]{1,4}:){0,1}[0-9a-fA-F]{1,4}$|^([0-9a-fA-F]{1,4}:){5}:[0-9a-fA-F]{1,4}$|^([0-9a-fA-F]{1,4}:){1,6}:$/.test(e)},86417:(e,t)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.isVersion=t.compareVersion=void 0,t.compareVersion=function(e,t){const n=e.split("."),r=t.split(".");for(let i=0;i<Math.max(n.length,r.length);i++){const e=i<n.length?parseInt(n[i],10):0,t=i<r.length?parseInt(r[i],10):0;if(e!==t)return e-t}return 0},t.isVersion=function(e){return/([1-9][0-9]*|[0-9])\.([1-9][0-9]*|[0-9])*\.([1-9][0-9]*|[0-9])*(\-[0-9A-Za-z-](\.[0-9A-Za-z-])*)*/g.test(e)}},98955:(e,t,n)=>{"use strict";t.h=void 0;var r=n(21049);Object.defineProperty(t,"h",{enumerable:!0,get:function(){return r.SafeConnector}})},21049:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SafeConnector=void 0;const r=n(37827),i=r.__importDefault(n(9062)),o=r.__importDefault(n(35376)),a=n(8362),s=r.__importDefault(n(87427)),c=r.__importDefault(n(18134)),l=n(96928),u=n(86417);class d extends o.default{generateSign(e,t,n,r){const i=`${n}\n${(0,l.shuffleUint8ArrayToStr)(r,n)}\n${e["oak-cxt"]}\n${e["oak-aspect"]}\n\n${"string"==typeof t?t:""}`;return(0,s.default)(i).toString(c.default)}async makeHeadersAndBody(e,t,n){const{headers:r,body:i}=await super.makeHeadersAndBody(e,t,n),o=Date.now(),s=await(0,a.getRandomValues)(16);return{headers:{"oak-ts":`${o}`,"oak-nonce":(0,l.uint8ArrayToHexStr)(s),"oak-sign":this.generateSign(r,i,o,s),...r},body:i}}parseRequest(e,t,n){const{"oak-cxt":r,"oak-aspect":o,"oak-ts":a,"oak-nonce":s,"oak-sign":c}=e,d=r&&JSON.parse(r),h=d&&d.a,f=d&&d.v,p=parseInt(a,10),g=Date.now()-p;return g>=6e3&&console.error(`\u5f53\u524d\u65f6\u95f4\uff1a${Date.now()}, \u8bf7\u6c42\u65f6\u95f4\uff1a${p}, \u76f8\u5dee\uff1a${g}, \u51fa\u73b0\u7f51\u7edc\u4f20\u8f93\u65f6\u949f\u6f02\u79fb`),(0,i.default)("string"==typeof r||void 0===r),(0,i.default)("string"==typeof o),0===Object.keys(d).length||"requestDeepseek"===o||("SUPER_NATIVE_APPLICATION_ID"===h||"MY_DEV_NATIVE_APPLICATION_ID"===h)&&(0,u.compareVersion)(f,"1.1.4")<=0||(0,i.default)(c===this.generateSign(e,n||JSON.stringify(t),p,(0,l.hexStrToUint8Array)(s)),"\u7b7e\u540d\u5f02\u5e38"),{contextString:r,aspectName:o,data:n?Object.assign({},t,n):t}}getCorsHeader(){return super.getCorsHeader().concat(["oak-ts","oak-nonce","oak-sign"])}}t.SafeConnector=d},96928:(e,t,n)=>{"use strict";var r=n(93325).Buffer;function i(e){return r.from(e).toString("hex")}Object.defineProperty(t,"__esModule",{value:!0}),t.uint8ArrayToHexStr=i,t.hexStrToUint8Array=function(e){return new Uint8Array(r.from(e,"hex"))},t.shuffleUint8ArrayToStr=function(e,t){let n=t%16,r=t;for(;n-- >0;){const t=r%e.length;r=(13*r+32767)%65535;const n=r%e.length;t!==n&&([e[t],e[n]]=[e[n],e[t]]),r=(13*r+32767)%65535}return i(e)}},47356:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,r,i){n=n||"&",r=r||"=";var o={};if("string"!==typeof e||0===e.length)return o;var a=/\+/g;e=e.split(n);var s=1e3;i&&"number"===typeof i.maxKeys&&(s=i.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var l=0;l<c;++l){var u,d,h,f,p=e[l].replace(a,"%20"),g=p.indexOf(r);g>=0?(u=p.substr(0,g),d=p.substr(g+1)):(u=p,d=""),h=decodeURIComponent(u),f=decodeURIComponent(d),t(o,h)?Array.isArray(o[h])?o[h].push(f):o[h]=[o[h],f]:o[h]=f}return o}},75252:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,i){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"===typeof e?Object.keys(e).map((function(i){var o=encodeURIComponent(t(i))+r;return Array.isArray(e[i])?e[i].map((function(e){return o+encodeURIComponent(t(e))})).join(n):o+encodeURIComponent(t(e[i]))})).join(n):i?encodeURIComponent(t(i))+r+encodeURIComponent(t(e)):""}},42392:(e,t,n)=>{"use strict";t.decode=t.parse=n(47356),t.encode=t.stringify=n(75252)},2144:(e,t,n)=>{"use strict";n.d(t,{aF:()=>fe,Kq:()=>g,Ay:()=>pe});var r=n(64467),i=n(89379),o=n(5544),a=n(82284),s=n(48738),c=n.n(s),l=n(46962),u=n(41929),d=n(41594),h=n(53986),f=["children"],p=d.createContext({});function g(e){var t=e.children,n=(0,h.A)(e,f);return d.createElement(p.Provider,{value:n},t)}var y=n(23029),m=n(92901),v=n(85501),b=n(49640);const w=function(e){(0,v.A)(n,e);var t=(0,b.A)(n);function n(){return(0,y.A)(this,n),t.apply(this,arguments)}return(0,m.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);var x=n(14996),S=n(79435),A=n(20490);var k="none",O="appear",_="enter",E="leave",I="none",j="prepare",$="start",T="active",C="end",P="prepared",R=n(3888);function N(e,t){var n={};
2return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var M=function(e,t){var n={animationend:N("Animation","AnimationEnd"),transitionend:N("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}((0,R.A)(),"undefined"!==typeof window?window:{}),F={};if((0,R.A)()){var D=document.createElement("div");F=D.style}var L={};function B(e){if(L[e])return L[e];var t=M[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var o=n[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in F)return L[e]=t[o],L[e]}return""}var U=B("animationend"),W=B("transitionend"),H=!(!U||!W),z=U||"animationend",q=W||"transitionend";function V(e,t){return e?"object"===(0,a.A)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const G=(0,R.A)()?d.useLayoutEffect:d.useEffect;var Y=n(7261);var K=[j,$,T,C],X=[j,P],J=!1;function Q(e){return e===T||e===C}const Z=function(e,t,n){var r=(0,S.A)(I),i=(0,o.A)(r,2),a=i[0],s=i[1],c=function(){var e=d.useRef(null);function t(){Y.A.cancel(e.current)}return d.useEffect((function(){return function(){t()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var o=(0,Y.A)((function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)}));e.current=o},t]}(),l=(0,o.A)(c,2),u=l[0],h=l[1];var f=t?X:K;return G((function(){if(a!==I&&a!==C){var e=f.indexOf(a),t=f[e+1],r=n(a);r===J?s(t,!0):t&&u((function(e){function n(){e.isCanceled()||s(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,a]),d.useEffect((function(){return function(){h()}}),[]),[function(){s(j,!0)},a]};function ee(e,t,n,a){var s=a.motionEnter,c=void 0===s||s,l=a.motionAppear,u=void 0===l||l,h=a.motionLeave,f=void 0===h||h,p=a.motionDeadline,g=a.motionLeaveImmediately,y=a.onAppearPrepare,m=a.onEnterPrepare,v=a.onLeavePrepare,b=a.onAppearStart,w=a.onEnterStart,I=a.onLeaveStart,C=a.onAppearActive,R=a.onEnterActive,N=a.onLeaveActive,M=a.onAppearEnd,F=a.onEnterEnd,D=a.onLeaveEnd,L=a.onVisibleChanged,B=(0,S.A)(),U=(0,o.A)(B,2),W=U[0],H=U[1],V=function(e){var t=d.useReducer((function(e){return e+1}),0),n=(0,o.A)(t,2)[1],r=d.useRef(e);return[(0,A.A)((function(){return r.current})),(0,A.A)((function(e){r.current="function"===typeof e?e(r.current):e,n()}))]}(k),Y=(0,o.A)(V,2),K=Y[0],X=Y[1],ee=(0,S.A)(null),te=(0,o.A)(ee,2),ne=te[0],re=te[1],ie=K(),oe=(0,d.useRef)(!1),ae=(0,d.useRef)(null);function se(){return n()}var ce=(0,d.useRef)(!1);function le(){X(k),re(null,!0)}var ue=(0,x._q)((function(e){var t=K();if(t!==k){var n=se();if(!e||e.deadline||e.target===n){var r,i=ce.current;t===O&&i?r=null===M||void 0===M?void 0:M(n,e):t===_&&i?r=null===F||void 0===F?void 0:F(n,e):t===E&&i&&(r=null===D||void 0===D?void 0:D(n,e)),i&&!1!==r&&le()}}})),de=function(e){var t=(0,d.useRef)();function n(t){t&&(t.removeEventListener(q,e),t.removeEventListener(z,e))}return d.useEffect((function(){return function(){n(t.current)}}),[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(q,e),r.addEventListener(z,e),t.current=r)},n]}(ue),he=(0,o.A)(de,1)[0],fe=function(e){switch(e){case O:return(0,r.A)((0,r.A)((0,r.A)({},j,y),$,b),T,C);case _:return(0,r.A)((0,r.A)((0,r.A)({},j,m),$,w),T,R);case E:return(0,r.A)((0,r.A)((0,r.A)({},j,v),$,I),T,N);default:return{}}},pe=d.useMemo((function(){return fe(ie)}),[ie]),ge=Z(ie,!e,(function(e){if(e===j){var t=pe[j];return t?t(se()):J}var n;ve in pe&&re((null===(n=pe[ve])||void 0===n?void 0:n.call(pe,se(),null))||null);return ve===T&&ie!==k&&(he(se()),p>0&&(clearTimeout(ae.current),ae.current=setTimeout((function(){ue({deadline:!0})}),p))),ve===P&&le(),true})),ye=(0,o.A)(ge,2),me=ye[0],ve=ye[1],be=Q(ve);ce.current=be,G((function(){H(t);var n,r=oe.current;oe.current=!0,!r&&t&&u&&(n=O),r&&t&&c&&(n=_),(r&&!t&&f||!r&&g&&!t&&f)&&(n=E);var i=fe(n);n&&(e||i[j])?(X(n),me()):X(k)}),[t]),(0,d.useEffect)((function(){(ie===O&&!u||ie===_&&!c||ie===E&&!f)&&X(k)}),[u,c,f]),(0,d.useEffect)((function(){return function(){oe.current=!1,clearTimeout(ae.current)}}),[]);var we=d.useRef(!1);(0,d.useEffect)((function(){W&&(we.current=!0),void 0!==W&&ie===k&&((we.current||W)&&(null===L||void 0===L||L(W)),we.current=!0)}),[W,ie]);var xe=ne;return pe[j]&&ve===$&&(xe=(0,i.A)({transition:"none"},xe)),[ie,ve,xe,null!==W&&void 0!==W?W:t]}const te=function(e){var t=e;"object"===(0,a.A)(e)&&(t=e.transitionSupport);var n=d.forwardRef((function(e,n){var a=e.visible,s=void 0===a||a,h=e.removeOnLeave,f=void 0===h||h,g=e.forceRender,y=e.children,m=e.motionName,v=e.leavedClassName,b=e.eventProps,x=function(e,n){return!(!e.motionName||!t||!1===n)}(e,d.useContext(p).motion),S=(0,d.useRef)(),A=(0,d.useRef)();var O=ee(x,s,(function(){try{return S.current instanceof HTMLElement?S.current:(0,l.Ay)(A.current)}catch(e){return null}}),e),_=(0,o.A)(O,4),E=_[0],I=_[1],T=_[2],C=_[3],P=d.useRef(C);C&&(P.current=!0);
2var R,N=d.useCallback((function(e){S.current=e,(0,u.Xf)(n,e)}),[n]),M=(0,i.A)((0,i.A)({},b),{},{visible:s});if(y)if(E===k)R=C?y((0,i.A)({},M),N):!f&&P.current&&v?y((0,i.A)((0,i.A)({},M),{},{className:v}),N):g||!f&&!v?y((0,i.A)((0,i.A)({},M),{},{style:{display:"none"}}),N):null;else{var F;I===j?F="prepare":Q(I)?F="active":I===$&&(F="start");var D=V(m,"".concat(E,"-").concat(F));R=y((0,i.A)((0,i.A)({},M),{},{className:c()(V(m,E),(0,r.A)((0,r.A)({},D,D&&F),m,"string"===typeof m)),style:T}),N)}else R=null;d.isValidElement(R)&&(0,u.f3)(R)&&(R.ref||(R=d.cloneElement(R,{ref:N})));return d.createElement(w,{ref:A},R)}));return n.displayName="CSSMotion",n}(H);var ne=n(58168),re=n(9417),ie="add",oe="keep",ae="remove",se="removed";function ce(e){var t;return t=e&&"object"===(0,a.A)(e)&&"key"in e?e:{key:e},(0,i.A)((0,i.A)({},t),{},{key:String(t.key)})}function le(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ce)}var ue=["component","children","onVisibleChanged","onAllRemoved"],de=["status"],he=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const fe=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te,t=function(t){(0,v.A)(o,t);var n=(0,b.A)(o);function o(){var e;(0,y.A)(this,o);for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return e=n.call.apply(n,[this].concat(a)),(0,r.A)((0,re.A)(e),"state",{keyEntities:[]}),(0,r.A)((0,re.A)(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,i.A)((0,i.A)({},e),{},{status:se})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==se})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return(0,m.A)(o,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,o=r.component,a=r.children,s=r.onVisibleChanged,c=(r.onAllRemoved,(0,h.A)(r,ue)),l=o||d.Fragment,u={};return he.forEach((function(e){u[e]=c[e],delete c[e]})),delete c.keys,d.createElement(l,c,n.map((function(n,r){var o=n.status,c=(0,h.A)(n,de),l=o===ie||o===oe;return d.createElement(e,(0,ne.A)({},u,{key:c.key,visible:l,eventProps:c,onVisibleChanged:function(e){null===s||void 0===s||s(e,{key:c.key}),e||t.removeKey(c.key)}}),(function(e,t){return a((0,i.A)((0,i.A)({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=le(n),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,a=le(e),s=le(t);a.forEach((function(e){for(var t=!1,a=r;a<o;a+=1){var c=s[a];if(c.key===e.key){r<a&&(n=n.concat(s.slice(r,a).map((function(e){return(0,i.A)((0,i.A)({},e),{},{status:ie})}))),r=a),n.push((0,i.A)((0,i.A)({},c),{},{status:oe})),r+=1,t=!0;break}}t||n.push((0,i.A)((0,i.A)({},e),{},{status:ae}))})),r<o&&(n=n.concat(s.slice(r).map((function(e){return(0,i.A)((0,i.A)({},e),{},{status:ie})}))));var c={};return n.forEach((function(e){var t=e.key;c[t]=(c[t]||0)+1})),Object.keys(c).filter((function(e){return c[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ae}))).forEach((function(t){t.key===e&&(t.status=oe)}))})),n}(r,o);return{keyEntities:a.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==se||e.status!==ae}))}}}]),o}(d.Component);return(0,r.A)(t,"defaultProps",{component:"div"}),t}(H),pe=te},5664:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={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"}},14607:(e,t)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.commonLocale=void 0;t.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}},18602:(e,t,n)=>{"use strict";var r=n(24994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(12897)),o=n(14607),a=(0,i.default)((0,i.default)({},o.commonLocale),{},{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",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",yearFormat:"YYYY\u5e74",cellDateFormat:"D",monthBeforeYear:!1});t.default=a}
2,50604:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(41594),i=n.n(r),o=n(63329);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return i().Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(a(e)):(0,o.isFragment)(e)&&e.props?n=n.concat(a(e.props.children,t)):n.push(e))})),n}},3888:(e,t,n)=>{"use strict";function r(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>r})},71642:(e,t,n)=>{"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>r})},28619:(e,t,n)=>{"use strict";n.d(t,{BD:()=>y,m6:()=>g});var r=n(89379),i=n(3888),o=n(71642),a="data-rc-order",s="data-rc-priority",c="rc-util-key",l=new Map;function u(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):c}function d(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function h(e){return Array.from((l.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,i.A)())return null;
2var n=t.csp,r=t.prepend,o=t.priority,c=void 0===o?0:o,l=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),u="prependQueue"===l,f=document.createElement("style");f.setAttribute(a,l),u&&c&&f.setAttribute(s,"".concat(c)),null!==n&&void 0!==n&&n.nonce&&(f.nonce=null===n||void 0===n?void 0:n.nonce),f.innerHTML=e;var p=d(t),g=p.firstChild;if(r){if(u){var y=(t.styles||h(p)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(a)))return!1;var t=Number(e.getAttribute(s)||0);return c>=t}));if(y.length)return p.insertBefore(f,y[y.length-1].nextSibling),f}p.insertBefore(f,g)}else p.appendChild(f);return f}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=d(t);return(t.styles||h(n)).find((function(n){return n.getAttribute(u(t))===e}))}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=p(e,t);n&&d(t).removeChild(n)}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=d(n),a=h(i),s=(0,r.A)((0,r.A)({},n),{},{styles:a});!function(e,t){var n=l.get(e);if(!n||!(0,o.A)(document,n)){var r=f("",t),i=r.parentNode;l.set(e,i),e.removeChild(r)}}(i,s);var c=p(t,s);if(c){var g,y,m;if(null!==(g=s.csp)&&void 0!==g&&g.nonce&&c.nonce!==(null===(y=s.csp)||void 0===y?void 0:y.nonce))c.nonce=null===(m=s.csp)||void 0===m?void 0:m.nonce;return c.innerHTML!==e&&(c.innerHTML=e),c}var v=f(e,s);return v.setAttribute(u(s),t),v}}
2,46962:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,fk:()=>c});var r=n(82284),i=n(41594),o=n.n(i),a=n(75206),s=n.n(a);function c(e){return e instanceof HTMLElement||e instanceof SVGElement}function l(e){var t,n=function(e){return e&&"object"===(0,r.A)(e)&&c(e.nativeElement)?e.nativeElement:c(e)?e:null}(e);return n||(e instanceof o().Component?null===(t=s().findDOMNode)||void 0===t?void 0:t.call(s(),e):null)}},22389:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1}},31147:(e,t,n)=>{"use strict";function r(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function i(e){return function(e){return r(e)instanceof ShadowRoot}(e)?r(e):null}n.d(t,{j:()=>i})},63294:(e,t,n)=>{"use strict";n.d(t,{X:()=>g,v:()=>b});var r,i=n(90675),o=n(10467),a=n(82284),s=n(89379),c=n(75206),l=(0,s.A)({},c),u=l.version,d=l.render,h=l.unmountComponentAtNode;try{Number((u||"").split(".")[0])>=18&&(r=l.createRoot)}catch(x){}function f(e){var t=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,a.A)(t)&&(t.usingClientEntryPoint=e)}var p="__rc_react_root__";function g(e,t){r?function(e,t){f(!0);var n=t[p]||r(t);f(!1),n.render(e),t[p]=n}(e,t):function(e,t){d(e,t)}(e,t)}function y(e){return m.apply(this,arguments)}function m(){return(m=(0,o.A)((0,i.A)().mark((function e(t){return(0,i.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[p])||void 0===e||e.unmount(),delete t[p]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){h(e)}function b(e){return w.apply(this,arguments)}function w(){return(w=(0,o.A)((0,i.A)().mark((function e(t){return(0,i.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===r){e.next=2;break}return e.abrupt("return",y(t));case 2:v(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},20490:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(41594);function i(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}},13511:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,o:()=>a});var r=n(41594),i=(0,n(3888).A)()?r.useLayoutEffect:r.useEffect,o=function(e,t){var n=r.useRef(!0);i((function(){return e(n.current)}),t),i((function(){return n.current=!1,function(){n.current=!0}}),[])},a=function(e,t){o((function(t){if(!t)return e()}),t)};const s=o},86910:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(41594);function i(e,t,n){var i=r.useRef({});return"value"in i.current&&!n(i.current.condition,t)||(i.current.value=e(),i.current.condition=t),i.current.value}},71207:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(5544),i=n(20490),o=n(13511),a=n(79435);function s(e){return void 0!==e}function c(e,t){var n=t||{},c=n.defaultValue,l=n.value,u=n.onChange,d=n.postState,h=(0,a.A)((function(){return s(l)?l:s(c)?"function"===typeof c?c():c:"function"===typeof e?e():e})),f=(0,r.A)(h,2),p=f[0],g=f[1],y=void 0!==l?l:p,m=d?d(y):y,v=(0,i.A)(u),b=(0,a.A)([y]),w=(0,r.A)(b,2),x=w[0],S=w[1];return(0,o.o)((function(){var e=x[0];p!==e&&v(p,e)}),[x]),(0,o.o)((function(){s(l)||g(l)}),[l]),[m,(0,i.A)((function(e,t){g(e,t),S([y],t)}))]}},79435:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(5544),i=n(41594);function o(e){var t=i.useRef(!1),n=i.useState(e),o=(0,r.A)(n,2),a=o[0],s=o[1];return i.useEffect((function(){return t.current=!1,function(){t.current=!0}}
2),[]),[a,function(e,n){n&&t.current||s(e)}]}},14996:(e,t,n)=>{"use strict";n.d(t,{_q:()=>r.A});var r=n(20490);n(71207),n(41929),n(48174),n(99424)},41216:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284),i=n(99424);const o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,a){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=o.has(t);if((0,i.Ay)(!c,"Warning: There may be circular references"),c)return!1;if(t===a)return!0;if(n&&s>1)return!1;o.add(t);var l=s+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var u=0;u<t.length;u++)if(!e(t[u],a[u],l))return!1;return!0}if(t&&a&&"object"===(0,r.A)(t)&&"object"===(0,r.A)(a)){var d=Object.keys(t);return d.length===Object.keys(a).length&&d.every((function(n){return e(t[n],a[n],l)}))}return!1}(e,t)}},15207:(e,t,n)=>{"use strict";function r(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}n.d(t,{A:()=>r})},7261:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=function(e){return+setTimeout(e,16)},i=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},i=function(e){return window.cancelAnimationFrame(e)});var o=0,a=new Map;function s(e){a.delete(e)}var c=function(e){var t=o+=1;return function n(i){if(0===i)s(t),e();else{var o=r((function(){n(i-1)}));a.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};c.cancel=function(e){var t=a.get(e);return s(e),i(t)};const l=c},41929:(e,t,n)=>{"use strict";n.d(t,{K4:()=>c,Xf:()=>s,f3:()=>u,xK:()=>l});var r=n(82284),i=n(41594),o=n(63329),a=n(86910),s=function(e,t){"function"===typeof e?e(t):"object"===(0,r.A)(e)&&e&&"current"in e&&(e.current=t)},c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){s(t,e)}))}},l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.A)((function(){return c.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},u=function(e){var t,n,r=(0,o.isMemo)(e)?e.type.type:e.type;return!!("function"!==typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===o.ForwardRef)&&!!("function"!==typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===o.ForwardRef)};function d(e){return(0,i.isValidElement)(e)&&!(0,o.isFragment)(e)}Number(i.version.split(".")[0])},17394:(e,t,n)=>{"use strict";function r(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null===n||void 0===n)return;n=n[t[r]]}return n}n.d(t,{A:()=>r})},48174:(e,t,n)=>{"use strict";n.d(t,{A:()=>h,h:()=>g});var r=n(82284),i=n(89379),o=n(60436),a=n(96369),s=n(73893),c=n(27800),l=n(76562);var u=n(17394);function d(e,t,n,r){if(!t.length)return n;var u,h,f=(u=t,(0,a.A)(u)||(0,s.A)(u)||(0,c.A)(u)||(0,l.A)()),p=f[0],g=f.slice(1);return h=e||"number"!==typeof p?Array.isArray(e)?(0,o.A)(e):(0,i.A)({},e):[],r&&void 0===n&&1===g.length?delete h[p][g[0]]:h[p]=d(h[p],g,n,r),h}function h(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!(0,u.A)(e,t.slice(0,-1))?e:d(e,t,n,r)}function f(e){return Array.isArray(e)?[]:{}}var p="undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=f(t[0]);return t.forEach((function(e){!function t(n,a){var s,c=new Set(a),l=(0,u.A)(e,n),d=Array.isArray(l);if(d||(s=l,"object"===(0,r.A)(s)&&null!==s&&Object.getPrototypeOf(s)===Object.prototype)){if(!c.has(l)){c.add(l);var g=(0,u.A)(i,n);d?i=h(i,n,[]):g&&"object"===(0,r.A)(g)||(i=h(i,n,f(l))),p(l).forEach((function(e){t([].concat((0,o.A)(n),[e]),c)}))}}else i=h(i,n,l)}([])})),i}},99424:(e,t,n)=>{"use strict";n.d(t,{$e:()=>o,Ay:()=>l});var r={},i=[];function o(e,t){}function a(e,t){}function s(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function c(e,t){s(o,e,t)}c.preMessage=function(e){i.push(e)},c.resetWarned=function(){r={}},c.noteOnce=function(e,t){s(a,e,t)};const l=c},57997:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");function m(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case h:case f:return e;default:switch(e=e&&e.$$typeof){case u:case l:case d:case g:case p:case c:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isFragment=function(e){return m(e)===o},t.isMemo=function(e){return m(e)===p}}
2,63329:(e,t,n)=>{"use strict";e.exports=n(57997)},1352:(e,t,n)=>{"use strict";var r=n(75206);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},70446:function(e,t,n){var r;r=e=>(()=>{var t={
vendor: 1,788 bytes, line 2
2"./node_modules/css-mediaquery/index.js":(e,t)=>{"use strict";t.match=function(e,t){return s(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var i=e.expressions.every((function(e){var n=e.feature,r=e.modifier,i=e.value,o=t[n];if(!o)return!1;switch(n){case"orientation":case"scan":return o.toLowerCase()===i.toLowerCase();case"width":case"height":case"device-width":case"device-height":i=u(i),o=u(o);break;case"resolution":i=l(i),o=l(o);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":i=c(i),o=c(o);break;case"grid":case"color":case"color-index":case"monochrome":i=parseInt(i,10)||1,o=parseInt(o,10)||0}switch(r){case"min":return o>=i;case"max":return o<=i;default:return o===i}}));return i&&!n||!i&&n}))},t.parse=s;var n=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,i=/^(?:(min|max)-)?(.+)/,o=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function s(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(n),o=t[1],a=t[2],s=t[3]||"",c={};return c.inverse=!!o&&"not"===o.toLowerCase(),c.type=a?a.toLowerCase():"all",s=s.match(/\([^\)]+\)/g)||[],c.expressions=s.map((function(e){var t=e.match(r),n=t[1].toLowerCase().match(i);return{modifier:n[1],feature:n[2],value:t[2]}})),c}))}function c(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function l(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function u(e){var t=parseFloat(e);switch(String(e).match(o)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},
vendor: 277 bytes, line 2
2"./node_modules/hyphenate-style-name/index.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=/[A-Z]/g,i=/^ms-/,o={};function a(e){return"-"+e.toLowerCase()}const s=function(e){if(o.hasOwnProperty(e))return o[e];var t=e.replace(r,a);return o[e]=i.test(t)?"-"+t:t}},
vendor: 585 bytes, line 2
2"./node_modules/matchmediaquery/index.js":(e,t,n)=>{"use strict";var r=n("./node_modules/css-mediaquery/index.js").match,i="undefined"!==typeof window?window.matchMedia:null;function o(e,t,n){var o=this;if(i&&!n){var a=i.call(window,e);this.matches=a.matches,this.media=a.media,a.addListener(s)}else this.matches=r(e,t),this.media=e;function s(e){o.matches=e.matches,o.media=e.media}this.addListener=function(e){a&&a.addListener(e)},this.removeListener=function(e){a&&a.removeListener(e)},this.dispose=function(){a&&a.removeListener(s)}}e.exports=function(e,t,n){return new o(e,t,n)}},
vendor: 978 bytes, line 2
2"./node_modules/object-assign/index.js":e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in o=Object(arguments[c]))n.call(o,l)&&(s[l]=o[l]);if(t){a=t(o);for(var u=0;u<a.length;u++)r.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s}},
vendor: 1,246 bytes, line 2
2"./node_modules/prop-types/checkPropTypes.js":(e,t,n)=>{"use strict";var r=function(){},i=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),o={},a=n("./node_modules/prop-types/lib/has.js");function s(e,t,n,s,c){for(var l in e)if(a(e,l)){var u;try{if("function"!==typeof e[l]){var d=Error((s||"React class")+": "+n+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=e[l](t,l,s,n,null,i)}catch(f){u=f}if(!u||u instanceof Error||r((s||"React class")+": type specification of "+n+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in o)){o[u.message]=!0;var h=c?c():"";r("Failed "+n+" type: "+u.message+(null!=h?h:""))}}}r=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(n){}},s.resetWarningCache=function(){o={}},e.exports=s},
vendor: 6,942 bytes, line 2
2"./node_modules/prop-types/factoryWithTypeCheckers.js":(e,t,n)=>{"use strict";var r=n("./node_modules/react-is/index.js"),i=n("./node_modules/object-assign/index.js"),o=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),a=n("./node_modules/prop-types/lib/has.js"),s=n("./node_modules/prop-types/checkPropTypes.js"),c=function(){};function l(){return null}c=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(n){}},e.exports=function(e,t){var n="function"===typeof Symbol&&Symbol.iterator,u="<<anonymous>>",d={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:p(l),arrayOf:function(e){return p((function(t,n,r,i,a){if("function"!==typeof e)return new f("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new f("Invalid "+i+" `"+a+"` of type `"+v(s)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<s.length;c++){var l=e(s,c,r,i,a+"["+c+"]",o);if(l instanceof Error)return l}return null}))},element:p((function(t,n,r,i,o){var a=t[n];return e(a)?null:new f("Invalid "+i+" `"+o+"` of type `"+v(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:p((function(e,t,n,i,o){var a=e[t];return r.isValidElementType(a)?null:new f("Invalid "+i+" `"+o+"` of type `"+v(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return p((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||u;return new f("Invalid "+i+" `"+o+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:p((function(e,t,n,r,i){return m(e[t])?null:new f("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return p((function(t,n,r,i,s){if("function"!==typeof e)return new f("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=t[n],l=v(c);if("object"!==l)return new f("Invalid "+i+" `"+s+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var u in c)if(a(c,u)){var d=e(c,u,r,i,s+"."+u,o);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?p((function(t,n,r,i,o){for(var a=t[n],s=0;s<e.length;s++)if(h(a,e[s]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new f("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+c+".")})):(c(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),l)},oneOfType:function(e){if(!Array.isArray(e))return c("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var t=0;t<e.length;t++){var n=e[t];if("function"!==typeof n)return c("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(n)+" at index "+t+"."),l}return p((function(t,n,r,i,s){for(var c=[],l=0;l<e.length;l++){var u=(0,e[l])(t,n,r,i,s,o);if(null==u)return null;u.data&&a(u.data,"expectedType")&&c.push(u.data.expectedType)}return new f("Invalid "+i+" `"+s+"` supplied to `"+r+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")}))},shape:function(e){return p((function(t,n,r,i,a){var s=t[n],c=v(s);if("object"!==c)return new f("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var l in e){var u=e[l];if("function"!==typeof u)return y(r,i,a,l,b(u));var d=u(s,l,r,i,a+"."+l,o);if(d)return d}return null}))},exact:function(e){return p((function(t,n,r,s,c){var l=t[n],u=v(l);if("object"!==u)return new f("Invalid "+s+" `"+c+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");var d=i({},t[n],e);for(var h in d){var p=e[h];if(a(e,h)&&"function"!==typeof p)return y(r,s,c,h,b(p));if(!p)return new f("Invalid "+s+" `"+c+"` key `"+h+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=p(l,h,r,s,c+"."+h,o);if(g)return g}return null}))}};function h(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function f(e,t){this.message=e,this.data=t&&"object"===typeof t?t:{},this.stack=""}function p(e){var n={},r=0;function i(i,a,s,l,d,h,p){if(l=l||u,h=h||s,p!==o){if(t){var g=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 g.name="Invariant Violation",g}if("undefined"!==typeof console){var y=l+":"+s;!n[y]&&r<3&&(c("You are manually calling a React.PropTypes validation function for the `"+h+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[y]=!0,r++)}}return null==a[s]?i?null===a[s]?new f("The "+d+" `"+h+"` is marked as required in `"+l+"`, but its value is `null`."):new f("The "+d+" `"+h+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(a,s,l,d,h)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function g(e){return p((function(t,n,r,i,o,a){var s=t[n];return v(s)!==e?new f("Invalid "+i+" `"+o+"` of type `"+b(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function y(e,t,n,r,i){return new f((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(m);if(null===t||e(t))return!0;var r=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"===typeof t)return t}(t);if(!r)return!1;var i,o=r.call(t);if(r!==t.entries){for(;!(i=o.next()).done;)if(!m(i.value))return!1}else for(;!(i=o.next()).done;){var a=i.value;if(a&&!m(a[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if("undefined"===typeof e||null===e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,d.checkPropTypes=s,d.resetWarningCache=s.resetWarningCache,d.PropTypes=d,d}},
vendor: 176 bytes, line 2
2"./node_modules/prop-types/index.js":(e,t,n)=>{var r=n("./node_modules/react-is/index.js");e.exports=n("./node_modules/prop-types/factoryWithTypeCheckers.js")(r.isElement,!0)},
vendor: 131 bytes, line 2
2"./node_modules/prop-types/lib/ReactPropTypesSecret.js":e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},
vendor: 106 bytes, line 2
2"./node_modules/prop-types/lib/has.js":e=>{e.exports=Function.call.bind(Object.prototype.hasOwnProperty)},
vendor: 2,480 bytes, line 2
2"./node_modules/react-is/cjs/react-is.development.js":(e,t)=>{"use strict";!function(){var e="function"===typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var f=e.type;switch(f){case l:case u:case i:case a:case o:case h:return f;default:var y=f&&f.$$typeof;switch(y){case c:case d:case g:case p:case s:return y;default:return t}}case r:return t}}}var x=l,S=u,A=c,k=s,O=n,_=d,E=i,I=g,j=p,$=r,T=a,C=o,P=h,R=!1;function N(e){return w(e)===u}t.AsyncMode=x,t.ConcurrentMode=S,t.ContextConsumer=A,t.ContextProvider=k,t.Element=O,t.ForwardRef=_,t.Fragment=E,t.Lazy=I,t.Memo=j,t.Portal=$,t.Profiler=T,t.StrictMode=C,t.Suspense=P,t.isAsyncMode=function(e){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(e)||w(e)===l},t.isConcurrentMode=N,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===p},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===u||e===a||e===o||e===h||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===p||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===m||e.$$typeof===v||e.$$typeof===b||e.$$typeof===y)},t.typeOf=w}()},
vendor: 126 bytes, line 2
2"./node_modules/react-is/index.js":(e,t,n)=>{"use strict";e.exports=n("./node_modules/react-is/cjs/react-is.development.js")},
vendor: 522 bytes, line 2
2"./node_modules/shallow-equal/dist/index.esm.js":(e,t,n)=>{"use strict";function r(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}function i(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}n.r(t),n.d(t,{shallowEqualArrays:()=>i,shallowEqualObjects:()=>r})},
2"./src/Component.ts":function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n("./src/useMediaQuery.ts"));t.default=function(e){var t=e.children,n=e.device,i=e.onChange,a=r(e,["children","device","onChange"]),s=(0,o.default)(a,n,i);return"function"===typeof t?t(s):s?t:null}},
2"./src/Context.ts":(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,n("react").createContext)(void 0);t.default=r},
2"./src/index.ts":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Context=t.toQuery=t.useMediaQuery=t.default=void 0;var i=r(n("./src/useMediaQuery.ts"));t.useMediaQuery=i.default;var o=r(n("./src/Component.ts"));t.default=o.default;var a=r(n("./src/toQuery.ts"));t.toQuery=a.default;var s=r(n("./src/Context.ts"));t.Context=s.default},
vendor: 1,991 bytes, line 2
2"./src/mediaQuery.ts":function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(n("./node_modules/prop-types/index.js")),s=a.default.oneOfType([a.default.string,a.default.number]),c={all:a.default.bool,grid:a.default.bool,aural:a.default.bool,braille:a.default.bool,handheld:a.default.bool,print:a.default.bool,projection:a.default.bool,screen:a.default.bool,tty:a.default.bool,tv:a.default.bool,embossed:a.default.bool},l={orientation:a.default.oneOf(["portrait","landscape"]),scan:a.default.oneOf(["progressive","interlace"]),aspectRatio:a.default.string,deviceAspectRatio:a.default.string,height:s,deviceHeight:s,width:s,deviceWidth:s,color:a.default.bool,colorIndex:a.default.bool,monochrome:a.default.bool,resolution:s,type:Object.keys(c)},u=i(l,["type"]),d=r({minAspectRatio:a.default.string,maxAspectRatio:a.default.string,minDeviceAspectRatio:a.default.string,maxDeviceAspectRatio:a.default.string,minHeight:s,maxHeight:s,minDeviceHeight:s,maxDeviceHeight:s,minWidth:s,maxWidth:s,minDeviceWidth:s,maxDeviceWidth:s,minColor:a.default.number,maxColor:a.default.number,minColorIndex:a.default.number,maxColorIndex:a.default.number,minMonochrome:a.default.number,maxMonochrome:a.default.number,minResolution:s,maxResolution:s},u),h=r(r({},c),d);t.default={all:h,types:c,matchers:l,features:d}},
2"./src/toQuery.ts":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n("./node_modules/hyphenate-style-name/index.js")),o=r(n("./src/mediaQuery.ts"));t.default=function(e){var t=[];return Object.keys(o.default.all).forEach((function(n){var r=e[n];null!=r&&t.push(function(e,t){var n=(0,i.default)(e);return"number"===typeof t&&(t="".concat(t,"px")),!0===t?n:!1===t?"not ".concat(n):"(".concat(n,": ").concat(t,")")}(n,r))})),t.join(" and ")}},
2"./src/useMediaQuery.ts":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n("react"),o=r(n("./node_modules/matchmediaquery/index.js")),a=r(n("./node_modules/hyphenate-style-name/index.js")),s=n("./node_modules/shallow-equal/dist/index.esm.js"),c=r(n("./src/toQuery.ts")),l=r(n("./src/Context.ts")),u=function(e){if(e)return Object.keys(e).reduce((function(t,n){return t[(0,a.default)(n)]=e[n],t}),{})},d=function(){var e=(0,i.useRef)(!1);return(0,i.useEffect)((function(){e.current=!0}),[]),e.current},h=function(e){var t=function(){return function(e){return e.query||(0,c.default)(e)}(e)},n=(0,i.useState)(t),r=n[0],o=n[1];return(0,i.useEffect)((function(){var e=t();r!==e&&o(e)}),[e]),r};t.default=function(e,t,n){var r=function(e){var t=(0,i.useContext)(l.default),n=function(){return u(e)||u(t)},r=(0,i.useState)(n),o=r[0],a=r[1];return(0,i.useEffect)((function(){var e=n();(0,s.shallowEqualObjects)(o,e)||a(e)}),[e,t]),o}(t),a=h(e);if(!a)throw new Error("Invalid or missing MediaQuery!");var c=function(e,t){var n=function(){return(0,o.default)(e,t||{},!!t)},r=(0,i.useState)(n),a=r[0],s=r[1],c=d();return(0,i.useEffect)((function(){if(c){var e=n();return s(e),function(){e&&e.dispose()}}}),[e,t]),a}(a,r),f=function(e){var t=(0,i.useState)(e.matches),n=t[0],r=t[1];return(0,i.useEffect)((function(){var t=function(e){r(e.matches)};return e.addListener(t),r(e.matches),function(){e.removeListener(t)}}),[e]),n}(c),p=d();return(0,i.useEffect)((function(){p&&n&&n(f)}),[f]),(0,i.useEffect)((function(){return function(){c&&c.dispose()}}),[]),f}}
2,react:t=>{"use strict";t.exports=e}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e].call(o.exports,o,o.exports,r),o.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r("./src/index.ts")})(),e.exports=r(n(41594))},86976:(e,t,n)=>{"use strict";n.d(t,{sv:()=>de,qh:()=>he,Ix:()=>fe,BV:()=>pe,V8:()=>ue,zy:()=>q,Zp:()=>G,g:()=>K});var r,i=n(41594);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));function a(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function s(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function c(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var l;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(l||(l={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function u(e,t,n){return void 0===n&&(n="/"),d(e,t,n,!1)}function d(e,t,n,r){let i=O(("string"===typeof t?c(t):t).pathname||"/",n);if(null==i)return null;let o=h(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let a=null;for(let s=0;null==a&&s<o.length;++s){let e=k(i);a=S(o[s],e,r)}return a}function h(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,o)=>{let s={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};s.relativePath.startsWith("/")&&(a(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let c=$([r,s.relativePath]),l=n.concat(s);e.children&&e.children.length>0&&(a(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+c+'".'),h(e.children,t,l,c)),(null!=e.path||e.index)&&t.push({path:c,score:x(c,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of f(e.path))i(e,t,r);else i(e,t)})),t}function f(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=f(r.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const p=/^:[\w-]+$/,g=3,y=2,m=1,v=10,b=-2,w=e=>"*"===e;function x(e,t){let n=e.split("/"),r=n.length;return n.some(w)&&(r+=b),t&&(r+=y),n.filter((e=>!w(e))).reduce(((e,t)=>e+(p.test(t)?g:""===t?m:v)),r)}function S(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let e=r[s],c=s===r.length-1,l="/"===o?t:t.slice(o.length)||"/",u=A({path:e.relativePath,caseSensitive:e.caseSensitive,end:c},l),d=e.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=A({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},l)),!u)return null;
2Object.assign(i,u.params),a.push({params:i,pathname:$([o,u.pathname]),pathnameBase:T($([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=$([o,u.pathnameBase]))}return a}function A(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);s("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=c[n]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const s=c[n];return e[r]=i&&!s?void 0:(s||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function k(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return s(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function O(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function _(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function E(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function I(e,t){let n=E(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function j(e,t,n,r){let i;void 0===r&&(r=!1),"string"===typeof e?i=c(e):(i=o({},e),a(!i.pathname||!i.pathname.includes("?"),_("?","pathname","search",i)),a(!i.pathname||!i.pathname.includes("#"),_("#","pathname","hash",i)),a(!i.search||!i.search.includes("#"),_("#","search","hash",i)));let s,l=""===e||""===i.pathname,u=l?"/":i.pathname;if(null==u)s=n;else{let e=t.length-1;if(!r&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}s=e>=0?t[e]:"/"}let d=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"===typeof e?c(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:C(r),hash:P(i)}}(i,s),h=u&&"/"!==u&&u.endsWith("/"),f=(l||"."===u)&&n.endsWith("/");return d.pathname.endsWith("/")||!h&&!f||(d.pathname+="/"),d}const $=e=>e.join("/").replace(/\/\/+/g,"/"),T=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),C=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",P=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function R(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const N=["post","put","patch","delete"],M=(new Set(N),["get",...N]);new Set(M),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F.apply(this,arguments)}const D=i.createContext(null);const L=i.createContext(null);const B=i.createContext(null);const U=i.createContext(null);const W=i.createContext({outlet:null,matches:[],isDataRoute:!1});const H=i.createContext(null);function z(){return null!=i.useContext(U)}function q(){return z()||a(!1),i.useContext(U).location}function V(e){i.useContext(B).static||i.useLayoutEffect(e)}function G(){let{isDataRoute:e}=i.useContext(W);return e?function(){let{router:e}=ie(ne.UseNavigateStable),t=ae(re.UseNavigateStable),n=i.useRef(!1);return V((()=>{n.current=!0})),i.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,F({fromRouteId:t},i)))}),[e,t])}():function(){z()||a(!1);let e=i.useContext(D),{basename:t,future:n,navigator:r}=i.useContext(B),{matches:o}=i.useContext(W),{pathname:s}=q(),c=JSON.stringify(I(o,n.v7_relativeSplatPath)),l=i.useRef(!1);return V((()=>{l.current=!0}
2)),i.useCallback((function(n,i){if(void 0===i&&(i={}),!l.current)return;if("number"===typeof n)return void r.go(n);let o=j(n,JSON.parse(c),s,"path"===i.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:$([t,o.pathname])),(i.replace?r.replace:r.push)(o,i.state,i)}),[t,r,c,s,e])}()}const Y=i.createContext(null);function K(){let{matches:e}=i.useContext(W),t=e[e.length-1];return t?t.params:{}}function X(e,t,n,o){z()||a(!1);let{navigator:s}=i.useContext(B),{matches:l}=i.useContext(W),d=l[l.length-1],h=d?d.params:{},f=(d&&d.pathname,d?d.pathnameBase:"/");d&&d.route;let p,g=q();if(t){var y;let e="string"===typeof t?c(t):t;"/"===f||(null==(y=e.pathname)?void 0:y.startsWith(f))||a(!1),p=e}else p=g;let m=p.pathname||"/",v=m;if("/"!==f){let e=f.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=u(e,{pathname:v});let w=te(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},h,e.params),pathname:$([f,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:$([f,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,n,o);return t&&w?i.createElement(U.Provider,{value:{location:F({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:r.Pop}},w):w}function J(){let e=function(){var e;let t=i.useContext(H),n=oe(re.UseRouteError),r=ae(re.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=R(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r};return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:o},n):null,null)}const Q=i.createElement(J,null);class Z extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(W.Provider,{value:this.props.routeContext},i.createElement(H.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ee(e){let{routeContext:t,match:n,children:r}=e,o=i.useContext(D);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),i.createElement(W.Provider,{value:t},r)}function te(e,t,n,r){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var s;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(s=r)&&s.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let c=e,l=null==(o=n)?void 0:o.errors;if(null!=l){let e=c.findIndex((e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id])));e>=0||a(!1),c=c.slice(0,Math.min(c.length,e+1))}let u=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let i=0;i<c.length;i++){let e=c[i];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(d=i),e.route.id){let{loaderData:t,errors:r}=n,i=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||i){u=!0,c=d>=0?c.slice(0,d+1):[c[0]];break}}}return c.reduceRight(((e,r,o)=>{let a,s=!1,h=null,f=null;var p;n&&(a=l&&r.route.id?l[r.route.id]:void 0,h=r.route.errorElement||Q,u&&(d<0&&0===o?(p="route-fallback",!1||se[p]||(se[p]=!0),s=!0,f=null):d===o&&(s=!0,f=r.route.hydrateFallbackElement||null)));let g=t.concat(c.slice(0,o+1)),y=()=>{let t;return t=a?h:s?f:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement(ee,{match:r,routeContext:{outlet:e,matches:g,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?i.createElement(Z,{location:n.location,revalidation:n.revalidation,component:h,error:a,children:y(),routeC
2ontext:{outlet:null,matches:g,isDataRoute:!0}}):y()}),null)}var ne=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ne||{}),re=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(re||{});function ie(e){let t=i.useContext(D);return t||a(!1),t}function oe(e){let t=i.useContext(L);return t||a(!1),t}function ae(e){let t=function(){let e=i.useContext(W);return e||a(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||a(!1),n.route.id}const se={};const ce={};const le=(e,t,n)=>{var r;ce[r="\u26a0\ufe0f React Router Future Flag Warning: "+t+". You can use the `"+e+"` future flag to opt-in early. For more information, see "+n+"."]||(ce[r]=!0,console.warn(r))};function ue(e,t){null!=e&&e.v7_startTransition||le("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),null!=e&&e.v7_relativeSplatPath||t&&t.v7_relativeSplatPath||le("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||le("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||le("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||le("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||le("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}i.startTransition;function de(e){return function(e){let t=i.useContext(W).outlet;return t?i.createElement(Y.Provider,{value:e},t):t}(e.context)}function he(e){a(!1)}function fe(e){let{basename:t="/",children:n=null,location:o,navigationType:s=r.Pop,navigator:l,static:u=!1,future:d}=e;z()&&a(!1);let h=t.replace(/^\/*/,"/"),f=i.useMemo((()=>({basename:h,navigator:l,static:u,future:F({v7_relativeSplatPath:!1},d)})),[h,d,l,u]);"string"===typeof o&&(o=c(o));let{pathname:p="/",search:g="",hash:y="",state:m=null,key:v="default"}=o,b=i.useMemo((()=>{let e=O(p,h);return null==e?null:{location:{pathname:e,search:g,hash:y,state:m,key:v},navigationType:s}}),[h,p,g,y,m,v,s]);return null==b?null:i.createElement(B.Provider,{value:f},i.createElement(U.Provider,{children:n,value:b}))}function pe(e){let{children:t,location:n}=e;return X(ge(t),n)}new Promise((()=>{}));i.Component;function ge(e,t){void 0===t&&(t=[]);let n=[];return i.Children.forEach(e,((e,r)=>{if(!i.isValidElement(e))return;let o=[...t,r];if(e.type===i.Fragment)return void n.push.apply(n,ge(e.props.children,o));e.type!==he&&a(!1),e.props.index&&e.props.children&&a(!1);let s={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=ge(e.props.children,o)),n.push(s)})),n}},32654:(e,t,n)=>{"use strict";var r=n(41594),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,o={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!c.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=l,t.jsxs=l}
vendor: 4,183 bytes, line 2
2,44414:(e,t,n)=>{"use strict";e.exports=n(32654)},97614:e=>{"use strict";var t={};function n(e,n,r){r||(r=Error);var i=function(e){var t,r;function i(t,r,i){return e.call(this,function(e,t,r){return"string"===typeof n?n:n(e,t,r)}(t,r,i))||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,n){var i,o,a,s;if("string"===typeof t&&(o="not ",t.substr(!a||a<0?0:+a,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var c=function(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(r(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},47544:(e,t,n)=>{"use strict";var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=l;var i=n(93230),o=n(34306);n(61596)(l,i);for(var a=r(o.prototype),s=0;s<a.length;s++){var c=a[s];l.prototype[c]||(l.prototype[c]=o.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||process.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},32666:(e,t,n)=>{"use strict";e.exports=i;var r=n(15624);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(61596)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},93230:(e,t,n)=>{"use strict";var r;e.exports=k,k.ReadableState=A;n(28981).EventEmitter;var i=function(e,t){return e.listeners(t).length},o=n(44687),a=n(93325).Buffer,s=("undefined"!==typeof n.g?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};var c,l=n(79838);c=l&&l.debuglog?l.debuglog("stream"):function(){};var u,d,h,f=n(94147),p=n(34822),g=n(2809).getHighWaterMark,y=n(97614).F,m=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,b=y.ERR_METHOD_NOT_IMPLEMENT
vendor: 5,877 bytes, line 2
2ED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(61596)(k,o);var x=p.errorOrDestroy,S=["error","close","destroy","pause","resume"];function A(e,t,i){r=r||n(47544),e=e||{},"boolean"!==typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u||(u=n(50923).I),this.decoder=new u(e.encoding),this.encoding=e.encoding)}function k(e){if(r=r||n(47544),!(this instanceof k))return new k(e);var t=this instanceof r;this._readableState=new A(e,this,t),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function O(e,t,n,r,i){c("readableAddChunk",t);var o,l=e._readableState;if(null===t)l.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,$(e)))}(e,l);else if(i||(o=function(e,t){var n;r=t,a.isBuffer(r)||r instanceof s||"string"===typeof t||void 0===t||e.objectMode||(n=new m("chunk",["string","Buffer","Uint8Array"],t));var r;return n}(l,t)),o)x(e,o);else if(l.objectMode||t&&t.length>0)if("string"===typeof t||l.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),r)l.endEmitted?x(e,new w):_(e,l,t,!0);else if(l.ended)x(e,new v);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!n?(t=l.decoder.write(t),l.objectMode||0!==t.length?_(e,l,t,!1):T(e,l)):_(e,l,t,!1)}else r||(l.reading=!1,T(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function _(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&j(e)),T(e,t)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),k.prototype.destroy=p.destroy,k.prototype._undestroy=p.undestroy,k.prototype._destroy=function(e,t){t(e)},k.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"===typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=a.from(e,t),t=""),n=!0),O(this,e,t,!1,n)},k.prototype.unshift=function(e){return O(this,e,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(e){u||(u=n(50923).I);var t=new u(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var E=1073741824;function I(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick($,e))}function $(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,M(e)}function T(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(c("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function P(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function R(e){c("readable nexttick read 0"),e.read(0)}function N(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),M(e),t.flowing&&!t.reading&&e.read(0)}function M(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function F(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function D(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(L,t,e))}function L(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function B(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}k.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?D(this):j(this),null;if(0===(e=I(e,t))&&t.ended)return 0===t.length&&D(this),null;var r,i=t.needReadable;
vendor: 2,057 bytes, line 2
2return c("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&c("length less than watermark",i=!0),t.ended||t.reading?c("reading or ended",i=!1):i&&(c("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=I(n,t))),null===(r=e>0?F(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&D(this)),null!==r&&this.emit("data",r),r},k.prototype._read=function(e){x(this,new b("_read()"))},k.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,c("pipe count=%d opts=%j",r.pipesCount,t);var o=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?s:g;function a(t,i){c("onunpipe"),t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,c("cleanup"),e.removeListener("close",f),e.removeListener("finish",p),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",a),n.removeListener("end",s),n.removeListener("end",g),n.removeListener("data",d),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function s(){c("onend"),e.end()}r.endEmitted?process.nextTick(o):n.once("end",o),e.on("unpipe",a);var l=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,M(e))}}(n);e.on("drain",l);var u=!1;function d(t){c("ondata");var i=e.write(t);c("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==B(r.pipes,e))&&!u&&(c("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function h(t){c("onerror",t),g(),e.removeListener("error",h),0===i(e,"error")&&x(e,t)}function f(){e.removeListener("finish",p),g()}function p(){c("onfinish"),e.removeListener("close",f),g()}function g(){c("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"===typeof e.prependListener)return e.prepe
vendor: 5,927 bytes, line 2
2ndListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",f),e.once("finish",p),e.emit("pipe",n),r.flowing||(c("pipe resume"),n.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=B(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},k.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,c("on readable",r.length,r.reading),r.length?j(this):r.reading||process.nextTick(R,this))),n},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(P,this),n},k.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(P,this),t},k.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(N,e,t))}(this,e)),e.paused=!1,this},k.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(c("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(c("wrapped data"),n.decoder&&(i=n.decoder.write(i)),!n.objectMode||null!==i&&void 0!==i)&&((n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause())))})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<S.length;o++)e.on(S[o],this.emit.bind(this,S[o]));return this._read=function(t){c("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"===typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=n(79733)),d(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),k._fromList=F,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(k.from=function(e,t){return void 0===h&&(h=n(9951)),h(k,e,t)})},15624:(e,t,n)=>{"use strict";e.exports=u;var r=n(97614).F,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,c=n(47544);function l(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);c.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"===typeof e.transform&&(this._transform=e.transform),"function"===typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!==typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(t,n){h(e,t,n)}))}function h(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}n(61596)(u,c),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new i("_transform()"))},u.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},34306:(e,t,n)=>{"use strict";function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=k,k.WritableState=A;var o={deprecate:n(91421)},a=n(44687),s=n(93325).Buffer,c=("undefined"!==typeof n.g?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};var l,u=n(34822),d=n(2809).getHighWaterMark,h=n(97614).F,f=h.ERR_INVALID_ARG_TYPE,p=h.ERR_METHOD_NOT_IMPLEMENT
vendor: 6,844 bytes, line 2
2ED,g=h.ERR_MULTIPLE_CALLBACK,y=h.ERR_STREAM_CANNOT_PIPE,m=h.ERR_STREAM_DESTROYED,v=h.ERR_STREAM_NULL_VALUES,b=h.ERR_STREAM_WRITE_AFTER_END,w=h.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;function S(){}function A(e,t,o){i=i||n(47544),e=e||{},"boolean"!==typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!==typeof i)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(process.nextTick(i,r),process.nextTick($,e,t),e._writableState.errorEmitted=!0,x(e,r)):(i(r),e._writableState.errorEmitted=!0,x(e,r),$(e,t))}(e,n,r,t,i);else{var o=I(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||E(e,n),r?process.nextTick(_,e,n,o,i):_(e,n,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function k(e){var t=this instanceof(i=i||n(47544));if(!t&&!l.call(k,this))return new k(e);this._writableState=new A(e,this,t),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),a.call(this)}function O(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),$(e,t)}function E(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,o=new Array(i),a=t.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)o[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;o.allBuffers=c,O(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,d=n.callback;if(O(e,t,!1,t.objectMode?1:l.length,l,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function I(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final((function(n){t.pendingcb--,n&&x(e,n),t.prefinished=!0,e.emit("prefinish"),$(e,t)}))}function $(e,t){var n=I(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(j,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(61596)(k,a),A.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(A.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===k&&(e&&e._writableState instanceof A)}})):l=function(e){return e instanceof this},k.prototype.pipe=function(){x(this,new y)},k.prototype.write=function(e,t,n){var r,i=this._writableState,o=!1,a=!i.objectMode&&(r=e,s.isBuffer(r)||r instanceof c);return a&&!s.isBuffer(e)&&(e=function(e){return s.from(e)}(e)),"function"===typeof t&&(n=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!==typeof n&&(n=S),i.ending?function(e,t){var n=new b;x(e,n),process.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var i;return null===n?i=new v:"string"===typeof n||t.objectMode||(i=new f("chunk",["string","Buffer"],n)),!i||(x(e,i),process.nextTick(r,i),!1)}(this,i,e,n))&&(i.pendingcb++,o=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=s.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var c=t.objectMode?1:r.length;t.length+=c;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else O(e,t,!1,c,r,i,o);return l}(this,i,a,e,t,n)),o},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||E(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"===typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,n){n(new p("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,n){var r=this._writableState;return"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,$(e,t),n&&(t.finished?process.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=u.destroy,k.prototype._undestroy=u.undestroy,k.prototype._destroy=function(e,t){t(e)}}
vendor: 11,855 bytes, line 2
2,79733:(e,t,n)=>{"use strict";var r;function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(38172),a=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),u=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function f(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var n=e[h].read();null!==n&&(e[u]=null,e[a]=null,e[s]=null,t(f(n,!1)))}}function g(e){process.nextTick(p,e)}var y=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((i(r={get stream(){return this[h]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(f(void 0,!0));if(this[h].destroyed)return new Promise((function(t,n){process.nextTick((function(){e[c]?n(e[c]):t(f(void 0,!0))}))}));var n,r=this[u];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[l]?n(f(void 0,!0)):t[d](n,r)}),r)}}(r,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(f(i,!1));n=new Promise(this[d])}return this[u]=n,n}},Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var e=this;return new Promise((function(t,n){e[h].destroy(null,(function(e){e?n(e):t(f(void 0,!0))}))}))})),r),y);e.exports=function(e){var t,n=Object.create(m,(i(t={},h,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,d,{value:function(e,t){var r=n[h].read();r?(n[u]=null,n[a]=null,n[s]=null,e(f(r,!1))):(n[a]=e,n[s]=t)},writable:!0}),t));return n[u]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[s];return null!==t&&(n[u]=null,n[a]=null,n[s]=null,t(e)),void(n[c]=e)}var r=n[a];null!==r&&(n[u]=null,n[a]=null,n[s]=null,r(f(void 0,!0))),n[l]=!0})),e.on("readable",g.bind(null,n)),n}},94147:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}var c=n(93325).Buffer,l=n(15340).inspect,u=l&&l.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n,r;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t,n,r,i=c.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,n=i,r=a,c.prototype.copy.call(t,n,r),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0===(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:u,value:function(e,t){return l(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},34822:e=>{"use strict";function t(e,t){r(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function r(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var o=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(r,this,e)):process.nextTick(r,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(n,o):(o._writableState.errorEmitted=!0,process.nextTick(t,o,e)):process.nextTick(t,o,e):i?(process.nextTick(n,o),i(e)):process.nextTick(n,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},38172:(e,t,n)=>{"use strict";var r=n(97614).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"===typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(o||i);var a=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,c=function(){t.writable||u()},l=t._writableState&&t._writableState.finished,u=function(){s=!1,l=!0,a||o.call(t)},d=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,d=!0,s||o.call(t)},f=function(e){o.call(t,e)},p=function(){var e;return a&&!d?(t._readableState&&t._readableState.ended||(e=new r),o.call(t,e)):s&&!l?(t._writableState&&t._writableState.ended||(e=new r),o.call(t,e)):void 0},g=function(){t.req.on("finish",u)};return!function(e){return e.setHeader&&"function"===typeof e.abort}(t)?s&&!t._writableState&&(t.on("end",c),t.on("close",c)):(t.on("complete",u),t.on("abort",p),t.req?g():t.on("request",g)),t.on("end",h),t.on("finish",u),!1!==n.error&&t.on("error",f),t.on("close",p),function(){t.removeListener("complete",u),t.removeListener("abort",p),t.removeListener("request",g),t.req&&t.req.removeListener("finish",u),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",u),t.removeListener("end",h),t.removeListener("error",f),t.removeListener("close",p)}}},9951:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},43648:(e,t,n)=>{"use strict";var r;var i=n(97614).F,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var u,d=function(e){return e.length?"function"!==typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var h=t.map((function(e,i){var o=i<t.length-1;return function(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",(function(){s=!0})),void 0===r&&(r=n(38172)),r(e,{readable:t,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var c=!1;return function(t){if(!s&&!c)return c=!0,function(e){return e.setHeader&&"function"===typeof e.abort}(e)?e.abort():"function"===typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}(e,o,i>0,(function(e){u||(u=e),e&&h.forEach(c),o||(h.forEach(c),d(u))}))}));return t.reduce(l)}},2809:(e,t,n)=>{"use strict";var r=n(97614).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},44687:(e,t,n)=>{e.exports=n(28981).EventEmitter},16047:(e,t,n)=>{var r=n(93325),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},38556:(e,t,n)=>{e.exports=i;var r=n(28981).EventEmitter;function i(){r.call(this)}n(61596)(i,r),i.Readable=n(93230),i.Writable=n(34306),i.Duplex=n(47544),i.Transform=n(15624),i.PassThrough=n(32666),i.finished=n(38172),i.pipeline=n(43648),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function l(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}}
vendor: 9,800 bytes, line 2
2,50923:(e,t,n)=>{"use strict";var r=n(16047).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!==typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\ufffd":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if(i=a(t[r]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if(i=a(t[r]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},34016:function(e,t,n){var r;e=n.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof n.g&&n.g;i.global!==i&&i.window!==i&&i.self;var o,a=2147483647,s=36,c=/^xn--/,l=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,f=String.fromCharCode;function p(e){throw RangeError(d[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function y(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(u,".")).split("."),t).join(".")}function m(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function v(e){return g(e,(function(e){var t="";return e>65535&&(t+=f((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=f(e)})).join("")}function b(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?h(e/700):e>>1,e+=h(e/t);e>455;r+=s)e=h(e/35);return h(r+36*e/(e+38))}function x(e){var t,n,r,i,o,c,l,u,d,f,g,y=[],m=e.length,b=0,x=128,S=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&p("not-basic"),y.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<m;){for(o=b,c=1,l=s;i>=m&&p("invalid-input"),((u=(g=e.charCodeAt(i++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:s)>=s||u>h((a-b)/c))&&p("overflow"),b+=u*c,!(u<(d=l<=S?1:l>=S+26?26:l-S));l+=s)c>h(a/(f=s-d))&&p("overflow"),c*=f;S=w(b-o,t=y.length+1,0==o),h(b/t)>a-x&&p("overflow"),x+=h(b/t),b%=t,y.splice(b++,0,x)}return v(y)}function S(e){var t,n,r,i,o,c,l,u,d,g,y,v,x,S,A,k=[];for(v=(e=m(e)).length,t=128,n=0,o=72,c=0;c<v;++c)(y=e[c])<128&&k.push(f(y));for(r=i=k.length,i&&k.push("-");r<v;){for(l=a,c=0;c<v;++c)(y=e[c])>=t&&y<l&&(l=y);for(l-t>h((a-n)/(x=r+1))&&p("overflow"),n+=(l-t)*x,t=l,c=0;c<v;++c)if((y=e[c])<t&&++n>a&&p("overflow"),y==t){for(u=n,d=s;!(u<(g=d<=o?1:d>=o+26?26:d-o));d+=s)A=u-g,S=s-g,k.push(f(b(g+A%S,0))),u=h(A/S);k.push(f(b(u,0))),o=w(n,x,r==i),n=0,++r}++n,++t}return k.join("")}o={version:"1.3.2",ucs2:{decode:m,encode:v},decode:x,encode:S,toASCII:function(e){return y(e,(function(e){return l.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return y(e,(function(e){return c.test(e)?x(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},90625:(e,t,n)=>{var r=n(34016);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=m,t.resolve=function(e,t){return m(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?m(e,!1,!0).resolveObject(t):t},t.format=function(e){v(e)&&(e=m(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(s),l=["%","/","?",";","#"].concat(c),u=["/","?","#"],d=/^[a-z0-9A-Z_-]{0,63}$/,h=/^([a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},p={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(42392);function m(e,t,n){if(e&&b(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}function v(e){return"string"===typeof e}function b(e){return"object"===typeof e&&null!==e}function w(e){return null===e}i.prototype.parse=function(e,t,n){if(!v(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e;i=i.trim();var a=o.exec(i);if(a){var s=(a=a[0]).toLowerCase();this.protocol=s,i=i.substr(a.length)}if(n||a||i.match(/^\/\/[^@\/]+@[^@\/]+/)){var m="//"===i.substr(0,2);!m||a&&p[a]||(i=i.substr(2),this.slashes=!0)}if(!p[a]&&(m||a&&!g[a])){for(var b,w,x=-1,S=0;S<u.length;S++){-1!==(A=i.indexOf(u[S]))&&(-1===x||A<x)&&(x=A)}-1!==(w=-1===x?i.lastIndexOf("@"):i.lastIndexOf("@",x))&&(b=i.slice(0,w),i=i.slice(w+1),this.auth=decodeURIComponent(b)),x=-1;for(S=0;S<l.length;S++){var A;-1!==(A=i.indexOf(l[S]))&&(-1===x||A<x)&&(x=A)}-1===x&&(x=i.length),this.host=i.slice(0,x),i=i.slice(x),this.parseHost(),this.hostname=this.hostname||"";var k="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!k)for(var O=this.hostname.split(/\./),_=(S=0,O.length);S<_;S++){var E=O[S];if(E&&!E.match(d)){for(var I="",j=0,$=E.length;j<$;j++)E.charCodeAt(j)>127?I+="x":I+=E[j];if(!I.match(d)){var T=O.slice(0,S),C=O.slice(S+1),P=E.match(h);P&&(T.push(P[1]),C.unshift(P[2])),C.length&&(i="/"+C.join(".")+i),this.hostname=T.join(".");break}}}if(this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),!k){var R=this.hostname.split("."),N=[];for(S=0;S<R.length;++S){var M=R[S];N.push(M.match(/[^A-Za-z0-9_-]/)?"xn--"+r.encode(M):M)}this.hostname=N.join(".")}var F=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+F,this.href+=this.host,k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==i[0]&&(i="/"+i))}if(!f[s])for(S=0,_=c.length;S<_;S++){var L=c[S],B=encodeURIComponent(L);B===L&&(B=escape(L)),i=i.split(L).join(B)}var U=i.indexOf("#");-1!==U&&(this.hash=i.substr(U),i=i.slice(0,U));var W=i.indexOf("?");if(-1!==W?(this.search=i.substr(W),this.query=i.substr(W+1),t&&(this.query=y.parse(this.query)),i=i.slice(0,W)):t&&(this.search="",this.query={}),i&&(this.pathname=i),g[s]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"",M=this.search||"";this.path=F+M}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&b(this.query)&&Object.keys(this.query).length&&(o=y.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&
2!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(m(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(v(e)){var t=new i;t.parse(e,!1,!0),e=t}var n=new i;if(Object.keys(this).forEach((function(e){n[e]=this[e]}),this),n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol)return Object.keys(e).forEach((function(t){"protocol"!==t&&(n[t]=e[t])})),g[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n;if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol])return Object.keys(e).forEach((function(t){n[t]=e[t]})),n.href=n.format(),n;if(n.protocol=e.protocol,e.host||p[e.protocol])n.pathname=e.pathname;else{for(var r=(e.pathname||"").split("/");r.length&&!(e.host=r.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==r[0]&&r.unshift(""),r.length<2&&r.unshift(""),n.pathname=r.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var o=n.pathname||"",a=n.search||"";n.path=o+a}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var s=n.pathname&&"/"===n.pathname.charAt(0),c=e.host||e.pathname&&"/"===e.pathname.charAt(0),l=c||s||n.host&&e.pathname,u=l,d=n.pathname&&n.pathname.split("/")||[],h=(r=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(h&&(n.hostname="",n.port=null,n.host&&(""===d[0]?d[0]=n.host:d.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===r[0]?r[0]=e.host:r.unshift(e.host)),e.host=null),l=l&&(""===r[0]||""===d[0])),c)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,d=r;else if(r.length)d||(d=[]),d.pop(),d=d.concat(r),n.search=e.search,n.query=e.query;else if(null!=e.search){if(h)n.hostname=n.host=d.shift(),(x=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=x.shift(),n.host=n.hostname=x.shift());return n.search=e.search,n.query=e.query,w(n.pathname)&&w(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!d.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var f=d.slice(-1)[0],y=(n.host||e.host)&&("."===f||".."===f)||""===f,m=0,b=d.length;b>=0;b--)"."==(f=d[b])?d.splice(b,1):".."===f?(d.splice(b,1),m++):m&&(d.splice(b,1),m--);if(!l&&!u)for(;m--;m)d.unshift("..");!l||""===d[0]||d[0]&&"/"===d[0].charAt(0)||d.unshift(""),y&&"/"!==d.join("/").substr(-1)&&d.push("");var x,S=""===d[0]||d[0]&&"/"===d[0].charAt(0);h&&(n.hostname=n.host=S?"":d.length?d.shift():"",(x=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=x.shift(),n.host=n.hostname=x.shift()));return(l=l||n.host&&d.length)&&!S&&d.unshift(""),d.length?n.pathname=d.join("/"):(n.pathname=null,n.path=null),w(n.pathname)&&w(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},91421:(e,t,n)=>{function r(e){try{if(!n.g.localStorage)return!1}catch(r){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}},88078:e=>{var t;t="object"===typeof window&&window,e.exports=function(e,t){var n,r,i,o,a,s,c,l,u,d,h,f,p,g,y,m,v,b,w,x,S,A;if(e)return e.jWeixin?e.jWeixin:(n={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},r=function(){var e,t={};for(e in n)t[n[e]]=e;return t}(),i=e.document,o=i.title,a=navigator.userAgent.toLowerCase(),f=navigator.platform.toLowerCase(),s=!(!f.match("mac")&&!f.match("win")),c=-1!=a.indexOf("wx
2debugger"),l=-1!=a.indexOf("micromessenger"),u=-1!=a.indexOf("android"),d=-1!=a.indexOf("iphone")||-1!=a.indexOf("ipad"),h=(f=a.match(/micromessenger\/(\d+\.\d+\.\d+)/)||a.match(/micromessenger\/(\d+\.\d+)/))?f[1]:"",p={initStartTime:C(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},g={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:d?1:u?2:-1,clientVersion:h,url:encodeURIComponent(location.href)},y={},m={_completes:[]},v={state:0,data:{}},P((function(){p.initEndTime=C()})),b=!1,w=[],x={config:function(t){$("config",y=t);var r=!1!==y.check;P((function(){if(r)k(n.config,{verifyJsApiList:j(y.jsApiList),verifyOpenTagList:j(y.openTagList)},(m._complete=function(e){p.preVerifyEndTime=C(),v.state=1,v.data=e},m.success=function(e){g.isPreVerifyOk=0},m.fail=function(e){m._fail?m._fail(e):v.state=-1},(o=m._completes).push((function(){T()})),m.complete=function(e){for(var t=0,n=o.length;t<n;++t)o[t]();m._completes=[]},m)),p.preVerifyStartTime=C();else{v.state=1;for(var e=m._completes,t=0,i=e.length;t<i;++t)e[t]();m._completes=[]}var o})),x.invoke||(x.invoke=function(t,n,r){e.WeixinJSBridge&&WeixinJSBridge.invoke(t,_(n),r)},x.on=function(t,n){e.WeixinJSBridge&&WeixinJSBridge.on(t,n)})},ready:function(e){(0!=v.state||(m._completes.push(e),!l&&y.debug))&&e()},error:function(e){h<"6.0.2"||(-1==v.state?e(v.data):m._fail=e)},checkJsApi:function(e){k("checkJsApi",{jsApiList:j(e.jsApiList)},(e._complete=function(e){u&&(n=e.checkResult)&&(e.checkResult=JSON.parse(n));var t,n=e,i=n.checkResult;for(t in i){var o=r[t];o&&(i[o]=i[t],delete i[t])}},e))},onMenuShareTimeline:function(e){O(n.onMenuShareTimeline,{complete:function(){k("shareTimeline",{title:e.title||o,desc:e.title||o,img_url:e.imgUrl||"",link:e.link||location.href,type:e.type||"link",data_url:e.dataUrl||""},e)}},e)},onMenuShareAppMessage:function(e){O(n.onMenuShareAppMessage,{complete:function(t){"favorite"===t.scene?k("sendAppMessage",{title:e.title||o,desc:e.desc||"",link:e.link||location.href,img_url:e.imgUrl||"",type:e.type||"link",data_url:e.dataUrl||""}):k("sendAppMessage",{title:e.title||o,desc:e.desc||"",link:e.link||location.href,img_url:e.imgUrl||"",type:e.type||"link",data_url:e.dataUrl||""},e)}},e)},onMenuShareQQ:function(e){O(n.onMenuShareQQ,{complete:function(){k("shareQQ",{title:e.title||o,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},onMenuShareWeibo:function(e){O(n.onMenuShareWeibo,{complete:function(){k("shareWeiboApp",{title:e.title||o,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},onMenuShareQZone:function(e){O(n.onMenuShareQZone,{complete:function(){k("shareQZone",{title:e.title||o,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},updateTimelineShareData:function(e){k("updateTimelineShareData",{title:e.title,link:e.link,imgUrl:e.imgUrl},e)},updateAppMessageShareData:function(e){k("updateAppMessageShareData",{title:e.title,desc:e.desc,link:e.link,imgUrl:e.imgUrl},e)},startRecord:function(e){k("startRecord",{},e)},stopRecord:function(e){k("stopRecord",{},e)},onVoiceRecordEnd:function(e){O("onVoiceRecordEnd",e)},playVoice:function(e){k("playVoice",{localId:e.localId},e)},pauseVoice:function(e){k("pauseVoice",{localId:e.localId},e)},stopVoice:function(e){k("stopVoice",{localId:e.localId},e)},onVoicePlayEnd:function(e){O("onVoicePlayEnd",e)},uploadVoice:function(e){k("uploadVoice",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},downloadVoice:function(e){k("downloadVoice",{serverId:e.serverId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},translateVoice:function(e){k("translateVoice",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},chooseImage:function(e){k("chooseImage",{scene:"1|2",count:e.count||9,sizeType:e.sizeType||["original","compressed"],sourceType:e.sourceType||["album","camera"]},(e._complete=function(e){if(u){var t=e.localIds;try{t&&(e.localIds=JSON.parse(t))}catch(e){}}},e))},getLocation:function(e){e=e||{},k(n.getLocation,{type:e.type||"wgs84"},(e._complete=function(e){delete e.type},e))},previewImage:function(e){k(n.previewImage,{current:e.current,urls:e.urls},e)},uploadImage:function(e){k("uploadImage",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},downloadImage:function(e){k("downloadImage",{serverId:e.serverId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},getLocalImgData:function(e){!1===b?(b=!0,k("getLocalImgData",{localId:e.localId},(e._complete=function(e){var t;b=!1,0<w.length&&(t=w.shift(),wx.getLocalImgData(t))},e))):w.push(e)},getNetworkType:function(e){k("getNetworkType",{},(e._complete=function(e){var t=e,n=(e=t.errMsg,t.errMsg="getNetworkType:ok",t.subtype);if(delete t.subtype,n)t.networkType=n;else{n=e.indexOf(":");var r=e.substring(n+1);switch(r){case"wifi":case"edge":case"wwan":t.networkType=r;break;default:t.errMsg="getNetworkType:fail"}}},e))},openLocation:function(e){k("openLocation",{latitude:e.latitude,longitude:e.longitude,name:e.name||"",address:e.address||"",scale:e.scale||28,infoUrl:e.infoUrl||""},e)},hideOptionMenu:function(e){k("hideOptionMenu",{},e)},showOptionMenu:function(e){k("showOptionMenu",{},e)},closeWindow:function(e){k("closeWindow",{},e=e||{})},hideMenuItems:function(e){k("hideMenuItems",{menuList:e.menuList},e)},showMenuItems:function(e){k("showMenuItems",{menuList:e.menuList},e)},hideAllNonBaseMenuItem:function(e){k("hideAllNonBaseMenuItem",{},e)},showAllNonBaseMenuItem:function(e){k("showAllNonBaseMenuItem",{},e)},scanQRCode:function(e){k("scanQRCode",{needResult:(e=e||{}).needResult||0,scanType:e.scanType||["qrCode","barCode"]},(e._complete=function(e){var t;d&&(t=e.resultStr)&&(t=JSON.parse(t),e.resultStr=t&&t.scan_code&&t.scan_code.scan_result)},e))},openAddress:function(e){k(n.openAddress,{},(e._complete=function(e){e.postalCode=e.addressPostalCode,delete e.addressPostalCode,e.provinceName=e.proviceFirstStageName,delete e.proviceFirstStageName,e.cityName=e.addressCitySecondStageName,delete e.addressCitySecondStageName,e.countryName=e.addressCountiesThirdStageName,delete e.addressCountiesThirdStageName,e.detailInfo=e.addressDetailInfo,delete e.addressDetailInfo},e))},openProductSpecificView:function(e){k(n.openProductSpecificView,{pid:e.productId,view_type:e.viewType||0,ext_info:e.extInfo},e)},addCard:function(e){for(var t=e.cardList,r=[],i=0,o=t.length;i<o;++i){var a={card_id:(a=t[i]).cardId,card_ext:a.cardExt};r.push(a)}k(n.addCard,{card_list:r},(e._complete=function(e){if(t=e.card_list){for(var t,n=0,r=(t=JSON.parse(t)).length;n<r;++n){var i=t[n];i.cardId=i.card_id,i.cardExt=i.card_ext,i.isSuccess=!!i.is_succ,delete i.card_id,delete i.card_ext,delete i.is_succ}e.cardList=t,delete e.card_list}},e))},chooseCard:function(e){k("chooseCard",{app_id:y.appId,location_id:e.shopId||"",sign_type:e.signType||"SHA1",card_id:e.cardId||"",card_type:e.cardType||"",card_sign:e.cardSign,time_stamp:e.timestamp+"",nonce_str:e.nonceStr},(e._complete=function(e){e.cardList=e.choose_card_info,delete e.choose_card_info},e))},openCard:function(e){for(var t=e.cardList,r=[],i=0,o=t.length;i<o;++i){var a={card_id:(a=t[i]).cardId,code:a.code};r.push(a)}k(n.openCard,{card_list:r},e)},consumeAndShareCard:function(e){k(n.consumeAndShareCard,{consumedCardId:e.cardId,consumedCode:e.code},e)},chooseWXPay:function(e){k(n.chooseWXPay,E(e),e),T({jsApiName:"chooseWXPay"})},openEnterpriseRedPacket:function(e){k(n.openEnterpriseRedPacket,E(e),e)},startSearchBeacons:function(e){k(n.startSearchBeacons,{ticket:e.ticket},e)},stopSearchBeacons:function(e){k(n.stopSearchBeacons,{},e)},onSearchBeacons:function(e){O(n.onSearchBeacons,e)},openEnterpriseChat:function(e){k("openEnterpriseChat",{useridlist:e.userIds,chatname:e.groupName},e)},launchMiniProgram:function(e){k("launchMiniProgram",{targetAppId:e.targetAppId,path:function(e){var t;if("string"==typeof e&&0<e.length)return t=e.split("?")[0],t+=".html",void 0!==(e=e.split("?")[1])?t+"?"+e:t}(e.path),envVersion:e.envVersion},e)},openBusinessView:function(e){k("openBusinessView",{businessType:e.businessType,queryString:e.queryString||"",envVersion:e.envVersion},(e._complete=function(e){if(u){var t=e.extraData;if(t)try{e.extraData=JSON.parse(t)}catch(t){e.extraData={}}}},e))},miniProgram:{navigateBack:function(e){e=e||{},P((function(){k("invokeMiniProgramAPI",{name:"navigateBack",arg:{delta:e.delta||1}},e)}))},navigateTo:function(e){P((function(){k("invokeMiniProgramAPI",{name:"navigateTo",arg:{url:e.url}},e)}))},redirectTo:function(e){P((function(){k("invokeMiniProgramAPI",{name:"redirectTo",arg:{url:e.url}},e)}))},switchTab:function(e){P((function(){k("invokeMiniProgramAPI",{name:"switchTab",arg:{url:e.url}},e)}))},reLaunch:function(e){P((function(){k("invokeMiniProgramAPI",{name:"reLaunch",arg:{url:e.url}},e)}))},postMessage:function(e){P((function(){k("invokeMiniProgramAPI",{name:"postMessage",arg:e.data||{}},e)}))},getEnv:function(t){P((function(){t({miniprogram:"miniprogram"===e.__wxjs_environment})}))}}},S=1,A={},i.addEventListener("error",(function(e){var t,n,r;u||(r=(t=e.target).tagName,n=t.src,"IMG"!=r&&"VIDEO"!=r&&"AUDIO"!=r&&"SOURCE"!=r)||-1!=n.indexOf("wxlocalresource://")&&(e.preventDefault(),e.stopPropagation(),(r=t["wx-id"])||(r=S++,t["wx-id"]=r),A[r]||(A[r]=!0,wx.ready((function(){wx.getLocalImgData({localId:n,success:function(e){t.src=e.localData}})}))))}),!0),i.addEventListener("load",(function(e){var t;u||(t=(e=e.target).tagName,e.src,"IMG"!=t&&"VIDEO"!=t&&"AUDIO"!=t&&"SOURCE"!=t)||(t=e["wx-id"])&&(A[t]=!1)}),!0),t&&(e.wx=e.jWeixin=x),x);function k(t,n,r){e.WeixinJSBridge?WeixinJSBridge.invoke(t,_(n),(function(e){I(t,e,r)})):$(t,r)}function O(t,n,r){e.WeixinJSBridge?WeixinJSBridge.on(t,(function(e){r&&r.trigger&&r.trigger(e),I(t,e,n)}
2)):$(t,r||n)}function _(e){return(e=e||{}).appId=y.appId,e.verifyAppId=y.appId,e.verifySignType="sha1",e.verifyTimestamp=y.timestamp+"",e.verifyNonceStr=y.nonceStr,e.verifySignature=y.signature,e}function E(e){return{timeStamp:e.timestamp+"",nonceStr:e.nonceStr,package:e.package,paySign:e.paySign,signType:e.signType||"SHA1"}}function I(e,t,n){"openEnterpriseChat"!=e&&"openBusinessView"!==e||(t.errCode=t.err_code),delete t.err_code,delete t.err_desc,delete t.err_detail;var i=t.errMsg;switch(i||(i=t.err_msg,delete t.err_msg,i=function(e,t){var n,i=r[e];return i&&(e=i),i="ok",t&&(n=t.indexOf(":"),"access denied"!=(i=(i=(i=-1!=(i=-1!=(i="failed"==(i="confirm"==(i=t.substring(n+1))?"ok":i)?"fail":i).indexOf("failed_")?i.substring(7):i).indexOf("fail_")?i.substring(5):i).replace(/_/g," ")).toLowerCase())&&"no permission to execute"!=i||(i="permission denied"),""==(i="config"==e&&"function not exist"==i?"ok":i))&&(i="fail"),e+":"+i}(e,i),t.errMsg=i),(n=n||{})._complete&&(n._complete(t),delete n._complete),i=t.errMsg||"",y.debug&&!n.isInnerInvoke&&alert(JSON.stringify(t)),e=i.indexOf(":"),i.substring(e+1)){case"ok":n.success&&n.success(t);break;case"cancel":n.cancel&&n.cancel(t);break;default:n.fail&&n.fail(t)}n.complete&&n.complete(t)}function j(e){if(e){for(var t=0,r=e.length;t<r;++t){var i=e[t];(i=n[i])&&(e[t]=i)}return e}}function $(e,t){var n;!y.debug||t&&t.isInnerInvoke||((n=r[e])&&(e=n),t&&t._complete&&delete t._complete,console.log('"'+e+'",',t||""))}function T(e){var t;s||c||y.debug||h<"6.0.2"||g.systemType<0||(t=new Image,g.appId=y.appId,g.initTime=p.initEndTime-p.initStartTime,g.preVerifyTime=p.preVerifyEndTime-p.preVerifyStartTime,x.getNetworkType({isInnerInvoke:!0,success:function(n){g.networkType=n.networkType,n="https://open.weixin.qq.com/sdk/report?v="+g.version+"&o="+g.isPreVerifyOk+"&s="+g.systemType+"&c="+g.clientVersion+"&a="+g.appId+"&n="+g.networkType+"&i="+g.initTime+"&p="+g.preVerifyTime+"&u="+g.url+"&jsapi_name="+(e?e.jsApiName:""),t.src=n}}))}function C(){return(new Date).getTime()}function P(t){l&&(e.WeixinJSBridge?t():i.addEventListener&&i.addEventListener("WeixinJSBridgeReady",t,!1))}console.warn("can't use weixin-js-sdk in server side")}(t)},41594:e=>{"use strict";e.exports=React},75206:e=>{"use strict";e.exports=ReactDOM},50477:()=>{},15340:()=>{},79838:()=>{}
2,43693:(e,t,n)=>{var r=n(77736);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},24994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},12897:(e,t,n)=>{var r=n(43693);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},89045:(e,t,n)=>{var r=n(73738).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},77736:(e,t,n)=>{var r=n(73738).default,i=n(89045);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},73738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},48738:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},43145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},96369:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},10467:(e,t,n)=>{"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,c,"next",e)}function c(e){r(a,i,o,s,c,"throw",e)}s(void 0)}))}}n.d(t,{A:()=>i})},23029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(20816);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,r.A)(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},49640:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(53954),i=n(52176),o=n(82284),a=n(9417);function s(e){var t=(0,i.A)();return function(){var n,i=(0,r.A)(e);if(t){var s=(0,r.A)(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==(0,o.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.A)(e)}(this,n)}}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(20816);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})}
2,53954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(63662);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},52176:(e,t,n)=>{"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>r})},73893:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},76562:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},89379:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(64467);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},53986:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{A:()=>r})},90675:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284);function i(){i=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,o=Object.create(i.prototype),s=new C(r||[]);return a(o,"_invoke",{value:I(e,n,s)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var p="suspendedStart",g="suspendedYield",y="executing",m="completed",v={};function b(){}function w(){}function x(){}var S={};d(S,c,(function(){return this}));var A=Object.getPrototypeOf,k=A&&A(A(P([])));k&&k!==n&&o.call(k,c)&&(S=k);var O=x.prototype=b.prototype=Object.create(S);function _(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var l=f(e[i],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==(0,r.A)(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,c)}))}c(l.arg)}var i;a(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}function I(t,n,r){var i=p;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=j(s,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=y;var l=f(t,n,r);if("normal"===l.type){if(i=r.done?m:g,l.arg===v)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=m,r.method="throw",r.arg=l.arg)}}}function j(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&
vendor: 4,264 bytes, line 2
2(n.method="return",n.arg=e,j(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function $(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError((0,r.A)(t)+" is not iterable")}return w.prototype=x,a(O,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:w,configurable:!0}),w.displayName=d(x,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,u,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},_(E.prototype),d(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new E(h(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(O),d(O,u,"Generator"),d(O,c,(function(){return this})),d(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=P,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}}
2,63662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},5544:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(96369);var i=n(27800),o=n(76562);function a(e,t){return(0,r.A)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||(0,i.A)(e,t)||(0,o.A)()}},60436:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(43145);var i=n(73893),o=n(27800);function a(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||(0,i.A)(e)||(0,o.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},20816:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},82284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(43145);function i(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},37827:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>N,__assign:()=>o,__asyncDelegator:()=>O,__asyncGenerator:()=>k,__asyncValues:()=>_,__await:()=>A,__awaiter:()=>p,__classPrivateFieldGet:()=>C,__classPrivateFieldIn:()=>R,__classPrivateFieldSet:()=>P,__createBinding:()=>y,__decorate:()=>s,__disposeResources:()=>F,__esDecorate:()=>l,__exportStar:()=>m,__extends:()=>i,__generator:()=>g,__importDefault:()=>T,__importStar:()=>
2$,__makeTemplateObject:()=>E,__metadata:()=>f,__param:()=>c,__propKey:()=>d,__read:()=>b,__rest:()=>a,__rewriteRelativeImportExtension:()=>D,__runInitializers:()=>u,__setFunctionName:()=>h,__spread:()=>w,__spreadArray:()=>S,__spreadArrays:()=>x,__values:()=>v,default:()=>L});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,r){t(n,r,e)}}function l(e,t,n,r,i,o){function a(e){if(void 0!==e&&"function"!==typeof e)throw new TypeError("Function expected");return e}for(var s,c=r.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!t&&e?r.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),h=!1,f=n.length-1;f>=0;f--){var p={};for(var g in r)p[g]="access"===g?{}:r[g];for(var g in r.access)p.access[g]=r.access[g];p.addInitializer=function(e){if(h)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var y=(0,n[f])("accessor"===c?{get:d.get,set:d.set}:d[l],p);if("accessor"===c){if(void 0===y)continue;if(null===y||"object"!==typeof y)throw new TypeError("Object expected");(s=a(y.get))&&(d.get=s),(s=a(y.set))&&(d.set=s),(s=a(y.init))&&i.unshift(s)}else(s=a(y))&&("field"===c?i.unshift(s):d[l]=s)}u&&Object.defineProperty(u,r.name,d),h=!0}function u(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function d(e){return"symbol"===typeof e?e:"".concat(e)}function h(e,t,n){return"symbol"===typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function f(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function g(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"===typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(c){s=[6,c],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var y=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);
vendor: 4,650 bytes, line 2
2i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function m(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||y(t,e,n)}function v(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function x(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function S(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function A(e){return this instanceof A?(this.v=e,this):new A(e)}function k(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r=Object.create(("function"===typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",(function(e){return function(t){return Promise.resolve(t).then(e,l)}})),r[Symbol.asyncIterator]=function(){return this},r;function a(e,t){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))},t&&(r[e]=t(r[e])))}function s(e,t){try{(n=i[e](t)).value instanceof A?Promise.resolve(n.value.v).then(c,l):u(o[0][2],n)}catch(r){u(o[0][3],r)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function O(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:A(e[r](t)),done:!1}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},j=function(e){return j=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},j(e)};function $(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=j(e),r=0;r<n.length;r++)"default"!==n[r]&&y(t,e,n[r]);return I(t,e),t}function T(e){return e&&e.__esModule?e:{default:e}}function C(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function P(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function R(e,t){if(null===t||"object"!==typeof t&&"function"!==typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof e?t===e:e.has(t)}function N(e,t,n){if(null!==t&&void 0!==t){if("object"!==typeof t&&"function"!==typeof t)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if("function"!==typeof r)throw new TypeError("Object not disposable.");
2i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var M="function"===typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function F(e){function t(t){e.error=e.hasError?new M(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function i(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,(function(e){return t(e),i()}))}else r|=1}catch(a){t(a)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function D(e,t){return"string"===typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,n,r,i,o){return n?t?".jsx":".js":!r||i&&o?r+i+"."+o.toLowerCase()+"js":e})):e}const L={__extends:i,__assign:o,__rest:a,__decorate:s,__param:c,__esDecorate:l,__runInitializers:u,__propKey:d,__setFunctionName:h,__metadata:f,__awaiter:p,__generator:g,__createBinding:y,__exportStar:m,__values:v,__read:b,__spread:w,__spreadArrays:x,__spreadArray:S,__await:A,__asyncGenerator:k,__asyncDelegator:O,__asyncValues:_,__makeTemplateOb
2ject:E,__importStar:$,__importDefault:T,__classPrivateFieldGet:C,__classPrivateFieldSet:P,__classPrivateFieldIn:R,__addDisposableResource:N,__disposeResources:F,__rewriteRelativeImportExtension:D}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+({121:"vendor",264:"antdesign"}[e]||e)+"."+{103:"a82f4d3d",111:"b1ba5add",120:"098cda88",121:"e4288785",142:"da5f165a",190:"44f1fba1",244:"cb65a4b9",264:"03ad0d73",438:"7f86fb00",440:"f1341508",453:"284c6a2d",469:"e4e223b2",536:"4dcf1534",563:"b17c2875",564:"5fecc47c",570:"f88a9b17",588:"261ef52c",623:"78f684fd",626:"e2042f79",640:"b2620b08",652:"0c4c967c",699:"34d48182",717:"480963cb",722:"ac1a1e2d",723:"14a1c4f1",735:"b3ba32ae",740:"61f17be3",747:"80492175",752:"0ae83cde",761:"e24c1d8b",778:"2ac4a068",789:"daa23261",796:"d9b3a335",800:"ebcf5186",809:"82618823",846:"a3235014",850:"0545dee6",906:"d27536ca",926:"bedb3ae1",941:"c26f8270",946:"85cbac2b"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+(121===e?"vendor":e)+"."+{103:"a9c9f0d8",111:"8b8224e0",120:"e4937b73",121:"f872d627",438:"2aa82a77",453:"2d1260b3",469:"be50f228",536:"1e7942d1",563:"7bc58e56",564:"58cf081b",570:"848d3e61",623:"56feae24",626:"879991ea",640:"7d55d7d3",652:"7cce9f3a",717:"b77dbc46",723:"28e81096",735:"ecb9e40e",740:"dd5f96d7",747:"6c296e36",752:"a38ece66",761:"bcb41494",789:"1fe9ca2f",796:"ef9641b5",800:"66ab8b7a",846:"a0c9c54b",850:"cd40633e",906:"d5b34f12",926:"07d2b76c",941:"c025f455",946:"608fdde8"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="jiupai-news:";n.l=(r,i,o,a)=>{if(e[r])e[r].push(i);else{var s,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];var h=(t,n)=>{s.onerror=s.onload=null,clearTimeout(f);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),c&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var i=n.miniCssF(e),o=n.p+i;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var o=document.getElementsByTagName("style");for(r=0;r<o.length;r++){var a;if((i=(a=o[r]).getAttribute("data-href"))===e||i===t)return a}})(i,o))return t();((e,t,r,i,o)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",n.nc&&(a.nonce=n.nc),a.onerror=a.onload=n=>{if(a.onerror=a.onload=null,"load"===n.type)i();else{var r=n&&n.type,s=n&&n.target&&n.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+s+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=r,c.request=s,a.parentNode&&a.parentNode.removeChild(a),o(c)}},a.href=t,r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a)})(e,o,null,t,r)})),t={792:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{103:1,111:1,120:1,121:1,438:1,453:1,469:1,536:1,563:1,564:1,570:1,623:1,626:1,640:1,652:1,717:1,723:1,735:1,740:1,747:1,752:1,761:1,789:1,796:1,800:1,846:1,850:1,906:1,926:1,941:1,946:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={792:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var o=new Promise(((n,r)=>i=e[t]=[n,r]));r.push(i[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var i,o,a=r[0],s=r[1],c=r[2],l=0;if(a.some((t=>0!==e[t]))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(c)c(n)}for(t&&t(r);l<a.length;l++)o=a[l],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunkjiupai_news=self.webpackChunkjiupai_news||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e={};n.r(e),n.d(e,{Decoder:()=>jo,Encoder:()=>Eo,PacketType:()=>Oo,protocol:()=>ko});n(92956);var t,r,i=n(41594),o=n.n(i),a=n(1352),s=n(58168);(r=t||(t={})).Pop="POP",r.Push="PUSH",r.Replace="REPLACE";var c=function(e){return e};var l="beforeunload",u="popstate";function d(e){void 0===e&&(e={});var n=e.window,r=void 0===n?document.defaultView:n,i=r.history;function o(){var e=r.location,t=e.pathname,n=e.search,o=e.hash,a=i.state||{};return[a.idx,c({pathname:t,search:n,hash:o,state:a.usr||null,key:a.key||"default"})]}var a=null;r.addEventListener(u,(function(){if(a)x.call(a),a=null;else{var e=t.Pop,n=o(),r=n[0],i=n[1];if(x.length){if(null!=r){var s=v-r;s&&(a={action:e,location:i,retry:function(){E(-1*s)}},E(s))}}else _(e)}}));var d=t.Pop,m=o(),v=m[0],b=m[1],w=f(),x=f();function S(e){return"string"===typeof e?e:g(e)}function A(e,t){return void 0===t&&(t=null),c((0,s.A)({pathname:b.pathname,hash:"",search:""},"string"===typeof e?y(e):e,{state:t,key:p()}))}function k(e,t){return[{usr:e.state,key:e.key,idx:t},S(e)]}function O(e,t,n){return!x.length||(x.call({action:e,location:t,retry:n}),!1)}function _(e){d=e;var t=o();v=t[0],b=t[1],w.call({action:d,location:b})}function E(e){i.go(e)}null==v&&(v=0,i.replaceState((0,s.A)({},i.state,{idx:v}),""));var I={get action(){return d},get location(){return b},createHref:S,push:function e(n,o){var a=t.Push,s=A(n,o);if(O(a,s,(function(){e(n,o)}))){var c=k(s,v+1),l=c[0],u=c[1];try{i.pushState(l,"",u)}catch(d){r.location.assign(u)}_(a)}},replace:function e(n,r){var o=t.Replace,a=A(n,r);if(O(o,a,(function(){e(n,r)}))){var s=k(a,v),c=s[0],l=s[1];i.replaceState(c,"",l),_(o)}},go:E,back:function(){E(-1)},forward:function(){E(1)},listen:function(e){return w.push(e)},block:function(e){var t=x.push(e);return 1===x.length&&r.addEventListener(l,h),function(){t(),x.length||r.removeEventListener(l,h)}}};return I}function h(e){e.preventDefault(),e.returnValue=""}function f(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}
2))}}}function p(){return Math.random().toString(36).substr(2,8)}function g(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,o=e.hash,a=void 0===o?"":o;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function y(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var m=n(75206),v=n(86976);new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(fs){}new Map;const b=i.startTransition;m.flushSync,i.useId;function w(e){let{basename:t,children:n,future:r,history:o}=e,[a,s]=i.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},l=i.useCallback((e=>{c&&b?b((()=>s(e))):s(e)}),[s,c]);return i.useLayoutEffect((()=>o.listen(l)),[o,l]),i.useEffect((()=>(0,v.V8)(r)),[r]),i.createElement(v.Ix,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement;var x,S,A,k;(S=x||(x={})).UseScrollRestoration="useScrollRestoration",S.UseSubmit="useSubmit",S.UseSubmitFetcher="useSubmitFetcher",S.UseFetcher="useFetcher",S.useViewTransitionState="useViewTransitionState",(k=A||(A={})).UseFetcher="useFetcher",k.UseFetchers="useFetchers",k.UseScrollRestoration="useScrollRestoration";var O=n(48949),_=n(47864),E=n(4159),I=n.n(E),j=(n(33731),n(1681)),$=n(24725),T=n(44414);const C=(0,i.lazy)((()=>Promise.all([n.e(264),n.e(121)]).then(n.bind(n,74433)))),P=e=>{const{children:t}=e;return(0,T.jsxs)(o().Fragment,{children:[(0,T.jsx)(o().Suspense,{fallback:(0,T.jsx)(T.Fragment,{}),children:(0,T.jsx)(C,{})}),t,(0,T.jsx)(o().Suspense,{fallback:(0,T.jsx)(T.Fragment,{}),children:!1})]})};const R=[{path:"/",namespace:"/",Component:o().lazy((()=>n.e(809).then(n.bind(n,7809)))),children:[{path:"app/active/freeCallCredit/detail",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(778),n.e(588),n.e(717)]).then(n.bind(n,4657))))},{path:"app/active/freeCallCredit/end",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(190),n.e(564)]).then(n.bind(n,76013))))},{path:"app/active/freeCallCredit/friendHelp",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(588),n.e(789)]).then(n.bind(n,48343))))},{path:"app/active/freeCallCredit/records",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>n.e(761).then(n.bind(n,63142))))},{path:"app/active/freeCallCredit/reward",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>n.e(563).then(n.bind(n,38563))))},{path:"app/active/freeCallCredit/welcome",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(190),n.e(120)]).then(n.bind(n,12120))))},{path:"app/active/freeZooTickets/detail",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(778),n.e(142),n.e(626)]).then(n.bind(n,30853))))},{path:"app/active/freeZooTickets/end",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(190),n.e(536)]).then(n.bind(n,57041))))},{path:"app/active/freeZooTickets/friendHelp",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>n.e(469).then(n.bind(n,3851))))},{path:"app/active/freeZooTickets/records",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>n.e(850).then(n.bind(n,47850))))},{path:"app/active/freeZooTickets/reward",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(264),n.e(121),n.e(111)]).then(n.bind(n,24111))))},{path:"app/active/freeZooTickets/welcome",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(190),n.e(652)]).then(n.bind(n,75652))))}
2,{path:"app/active/haircut/detail",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(778),n.e(244),n.e(142),n.e(926)]).then(n.bind(n,43076))))},{path:"app/active/haircut/reward",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(264),n.e(121),n.e(800)]).then(n.bind(n,58334))))},{path:"app/active/haircut/welcome",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(190),n.e(103)]).then(n.bind(n,56103))))},{path:"app/active/lottery/welcome/:activityId",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(190),n.e(906)]).then(n.bind(n,86906))))},{path:"app/active/lukedaoMusicFestival/detail",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(778),n.e(244),n.e(640)]).then(n.bind(n,8860))))},{path:"app/active/lukedaoMusicFestival/welcome",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(190),n.e(623)]).then(n.bind(n,90623))))},{path:"app/active/musicFestival/detail",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(778),n.e(244),n.e(747)]).then(n.bind(n,87101))))},{path:"app/active/musicFestival/welcome",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(190),n.e(796)]).then(n.bind(n,60796))))},{path:"app/active/quiz/welcome",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(190),n.e(570)]).then(n.bind(n,29570))))},{path:"app/active/register/welcome/:activityId",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(190),n.e(438)]).then(n.bind(n,36438))))},{path:"app/active/test",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>n.e(752).then(n.bind(n,17752))))},{path:"app/active/worldCup/welcome",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(190),n.e(735)]).then(n.bind(n,6735))))},{path:"app/download",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!1},Component:o().lazy((()=>n.e(453).then(n.bind(n,93453))))},{path:"app/news/detail",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(121),n.e(190),n.e(846)]).then(n.bind(n,88846))))},{path:"app/specTopic/detail",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(190),n.e(723)]).then(n.bind(n,53723))))},{path:"app/topic/detail",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!0},Component:o().lazy((()=>Promise.all([n.e(190),n.e(740)]).then(n.bind(n,97740))))},{path:"home",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!1},Component:o().lazy((()=>n.e(946).then(n.bind(n,77946))))},{path:"privacyAgreement",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!1},Component:o().lazy((()=>n.e(941).then(n.bind(n,56941))))},{path:"result/403",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!1},Component:o().lazy((()=>Promise.all([n.e(121),n.e(722)]).then(n.bind(n,75722))))},{path:"result/404",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!1},Component:o().lazy((()=>Promise.all([n.e(121),n.e(699)]).then(n.bind(n,66699))))},{path:"result/500",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!1},Component:o().lazy((()=>Promise.all([n.e(121),n.e(440)]).then(n.bind(n,53440))))},{path:"home",namespace:"frontendSingle",meta:{oakDisablePulldownRefresh:!1},Component:o().lazy((()=>n.e(946).then(n.bind(n,77946)))),isFirst:!0},{path:"*",namespace:"/",Component:o().lazy((()=>Promise.all([n.e(121),n.e(699)]).then(n.bind(n,66699))))}]}];var N=n(7817),M=n.n(N);const F=(0,i.memo)((()=>((0,i.useEffect)((()=>{M().start()}),[]),(0,i.useEffect)((()=>()=>{M().done()}),[]),null)));var D=n(49315);const L=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return 0===e.length?null:e.map(((e,n)=>{const{Component:r,children:o,namespace:a,meta:s,isFirst:c,customRouter:l}=e;let u=t,d={};return d=c?{index:!0}:{path:e.path},(0,i.createElement)(v.qh,{...d,key:n,element:(0,T.jsx)(B,{Component:r,meta:s,breadcrumb:u,namespace:a,customRouter:l})},L(o,u))}))},B=o().memo((e=>{const{Component:t,namespace:n,meta:r,breadcrumb:i,customRouter:a}=e,s=(0,D.A)(),c=(0,v.zy)(),{pathname:l}=c,u=n?l.slice(n.length):l,d=`jiupai-p-${u.startsWith("/")?u.slice(1).replaceAll(/\//g,"-"):u.replaceAll(/\//g,"-")}`;if(d){const e=s.locales.hasKey(`${d}.pageTitle`);e&&(i.push(e),window.document.title=e)}return t?(0,T.jsx)(o().Suspense,{fallback:(0,T.jsx)(F,{}),children:(0,T.jsx)(t,{oakDisablePulldownRefresh:null===r||void 0===r?void 0:r.oakDisablePulldownRefresh,namespace:n,customRouter:a})}):(0,T.jsx)(v.sv,{})})),U=o().memo((()=>(0,T.jsx)(v.BV,{children:L(R)})));var W=n(37565),H=n(93804),z=n(57323);const q=(0,i.lazy)((()=>n.e(121).then(n.bind(n,76643))));function V(e){const{error:t}=e;return null}const G=function(e){const{error:t}=e;return t instanceof H.OakException?t instanceof H.OakNetworkException?(0,T.jsxs)(q,{code:z.Z.error,title:"\u7f51\u7edc\u5f02\u5e38",desc:"\u62b1\u6b49\uff0c\u7f51\u7edc\u8bbf\u95ee\u5931\u8d25\uff01",children:[(0,T.jsx)(V,{error:t}),(0,T.jsx)(W.Ay,{type:"primary",onClick:async()=>{window.location.reload()},children:"\u68c0\u67e5\u7f51\u7edc"})]}):t instanceof H.OakServerProxyException?(0,T.jsxs)(q,{code:z.Z.error,title:"\u670d\u52a1\u5668\u4ee3\u74
206\u5f02\u5e38",desc:"\u62b1\u6b49\uff0c\u670d\u52a1\u5668\u4ee3\u7406\u51fa\u73b0\u9519\u8bef\uff01",children:[(0,T.jsx)(V,{error:t}),(0,T.jsx)(W.Ay,{type:"primary",onClick:async()=>{window.location.reload()},children:"\u68c0\u67e5\u670d\u52a1\u5668\u4ee3\u7406"})]}):(0,T.jsxs)(q,{code:z.Z.error,title:"\u7cfb\u7edf\u5185\u90e8\u9519\u8bef",desc:"\u62b1\u6b49\uff0c\u7cfb\u7edf\u5185\u90e8\u9519\u8bef\uff0c\u6211\u4eec\u7684\u6280\u672f\u4eba\u5458\u6b63\u5728\u5feb\u9a6c\u52a0\u97ad\u7684\u4fee\u590d",children:[(0,T.jsx)(V,{error:t}),(0,T.jsx)(W.Ay,{type:"primary",onClick:async()=>{window.location.reload()},children:"\u8054\u7cfb\u6211\u4eec"})]}):(0,T.jsxs)(q,{code:z.Z.error,title:"\u6570\u636e\u7f13\u5b58\u5931\u6548",desc:"\u62b1\u6b49\uff0c\u6570\u636e\u7f13\u5b58\u5931\u6548\uff0c\u9700\u8981\u6e05\u9664\u7f13\u5b58\uff0c\u8bf7\u70b9\u51fb\u3010\u6e05\u9664\u7f13\u5b58\u3011",children:[(0,T.jsx)(V,{error:t}),(0,T.jsx)(W.Ay,{type:"primary",onClick:async()=>{n.g.features.localStorage.clear(),window.location.reload()},children:"\u6e05\u9664\u7f13\u5b58"})]})};const Y=function(e){return e.error?(0,T.jsx)(G,{error:e.error}):(0,T.jsx)(P,{children:(0,T.jsx)(U,{})})},K=e=>{e&&e instanceof Function&&n.e(121).then(n.bind(n,88206)).then((t=>{let{getCLS:n,getFID:r,getFCP:i,getLCP:o,getTTFB:a}=t;n(e),r(e),i(e),o(e),a(e)}))};var X=n(16269);class J extends X.OakUserException{constructor(e,t,n,r,i,o,a,s,c){super(a||"error::distinguishUser",s||"oak-general-business",c),this.userId=e,this.useIdCard=n,this.usePassword=t,this.useWechatUser=r,this.useEmail=i,this.useMobile=o}toString(){const e=super.getSerialData();return JSON.stringify({...e,userId:this.userId,useIdCard:this.useIdCard,usePassword:this.usePassword,useWechatUser:this.useWechatUser,useEmail:this.useEmail,useMobile:this.useMobile})}}class Q extends X.OakUserException{constructor(e,t,n,r,i,o,a,s){super(o||"error::changeLoginWay",a||"oak-general-business",s),this.userId=e,this.useIdCard=t,this.useMobile=i,this.useWechatUser=n,this.useEmail=r}toString(){const e=super.getSerialData();return JSON.stringify({...e,userId:this.userId,useIdCard:this.useIdCard,useWechatUser:this.useWechatUser,useEmail:this.useEmail,useMobile:this.useMobile})}}class Z extends X.OakUserException{constructor(e,t,n){super(e||"error::mobileUnset",t||"oak-general-business",n)}}class ee extends X.OakUserException{constructor(e,t,n){super(e||"error::needAuthentication",t||"oak-general-business",n)}}class te extends X.OakUserException{constructor(e,t,n){super(e||"error::userInfoUncompleted",t||"oak-general-business",n)}}class ne extends X.OakUserException{constructor(e,t,n){super(e||"error::userDisabled",t||"oak-general-business",n)}}class re extends X.OakUserException{constructor(e,t,n){super(e||"error::tokenExpired",t||"oak-general-business",n)}}X.OakUserException;class ie extends X.OakException{constructor(e,t,n){super(e||"error::userInfoLoading",t||"oak-general-business",n)}}class oe extends X.OakException{constructor(e,t,n){super(e||"error::applicationLoading",t||"oak-general-business",n)}}class ae extends X.OakUserException{constructor(e,t,n){super(e||"error::uploadFailed",t||"oak-general-business",n)}}class se extends X.OakUserException{constructor(e,t,n){super(e||"error::user.hasToSetPassword",t||"oak-general-business",n)}}class ce extends X.OakUserException{constructor(e,t,n){super(e||"error::user.hasToVerifyPassword",t||"oak-general-business",n)}}class le extends X.OakUserException{constructor(e,t,n){super(e||"error::user.cantChangeVerifiedUser",t||"oak-general-business",n)}}X.OakUserException;function ue(e){const t=(0,H.makeException)(e)||function(e){const{name:t,message:n,opRecords:r,_module:i,params:o}=e;let a;switch(t){case"OakDistinguishUserException":a=new J(e.userId,e.usePassword,e.useIdCard,e.useWechatUser,e.useEmail,e.useMobile,n,i,o);break;case"OakChangeLoginWayException":a=new Q(e.userId,e.useIdCard,e.useWechatUser,e.useEmail,e.useMobile,n,i,o);break;case"OakUserDisabledException":a=new ne(n,i,o);break;case"OakTokenExpiredException":a=new re(n,i,o);break;case"OakMobileUnsetException":a=new Z(n,i,o);break;case"OakAuthenticationException":a=new ee(n,i,o);break;case"OakUserInfoUncompletedException":a=new te(n,i,o);break;case"OakUploadException":a=new ae(n,i,o);break;case"OakPasswordUnset":a=new se(n,i,o);break;case"OakHasToVerifyPassword":a=new ce(n,i,o);break;case"OakCantChangeVerifiedUser":a=new le(n,i,o)}if(a)return a.setOpRecords(r),a}(e);return t}class de extends X.OakException{}class he extends X.OakException{}function fe(e,t,n){const{message:r,_module:i,params:o}=e;if(i)if(null!==r&&void 0!==r&&r.includes("::")){const e=t.locales.t(r,{"#oakModule":i,...o||{}});t.message.setMessage({content:e,type:n||"error"})}else t.message.setMessage({content:r,type:n||"error"});else{if(r==="unknown assertion error")return void t.message.setMessage({content:"\u51fa\u73b0\u4e86\u4e00\u4e2a\u672a\u77e5\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002",type:"error"});if("\u901a\u8fc7id\u67e5\u8be2\u6570\u636e\u7ed3\u679c\u4e3a\u7a7a"===r)return void t.navigator.redirectTo({url:"/result/404"},void 0);t.message.setMessage({content:r,type:"error"})}}var pe=n(61328),ge=n(13095),ye=n(12587);class me extends ye.V{constructor(e,t){super(e),this.subscriber=t.subscriber,this.env=t.environment,this.navigator=t.navigator}async getSerializedData(){return{sid:this.subscriber.getSubscriberId(),be:this.env.getBriefEnv(),ns:this.navigator.getState()}}}class ve extends me{constructor(e,t){super(e,t),this.application=t.application,this.token=t.token}async getSerializedData(){const e=await super.getSerializedData();await(async()=>{const t=(n,r)=>{try{if(!this.application)return void n(void 0);const t=this.application.getApplicationId();(0,ge.v)(t),Object.assign(e,{a:t}),n(void 0)}catch(i){if(i instanceof oe){const e=this.application.subscribe((()=>{e(),t(n,r)}))}else r(i)}};return new Promise(((e,n)=>t(e,n)))})();return await(async()=>{const t=(n,r)=>{try{if(!this.token)return void n(void 0);const t=this.token.getTokenValue();t&&Object.assign(e,{t:t}),n(void 0)}catch(i){if(i instanceof ie){const e=this.token.subscribe((()=>{e(),t(n,r)}))}else r(i)}};return new Promise(((e,n)=>t(e,n)))})(),Object.assign(e,{v:this.application.getVersion()}),e}getApplicationId(){var e;return null===(e=this.application)||void 0===e?void 0:e.getApplicationId()}getSystemId(){var e;const t=null===(e=this.application)||void 0===e?void 0:e.getApplication();return null===t||void 0===t?void 0:t.systemId}getApplication(){var e;return null===(e=this.application)||void 0===e?void 0:e.getApplication()}getTokenValue(){var e;return null===(e=this.token)||void 0===e?void 0:e.getTokenValue()}getToken(e){var t;return null===(t=this.token)||void 0===t?void 0:t.getToken(e)}getCurrentUserId(e){var t;return null===(t=this.token)||void 0===t?void 0:t.getUserId(e)}isRoot(){var e;return(null===(e=this.token)||void 0===e?void 0:e.isRoot())||!1}isReallyRoot(){var e;return(null===(e=this.token)||void 0===e?void 0:e.isReallyRoot())||!1}allowUserUpdate(){var e;const t=null===(e=this.token)||void 0===e?void 0:e.getUserInfo();if(t){const{userState:e}=t;if("disabled"===e)throw new ne("\u60a8\u7684\u5e10\u53f7\u5df2\u7ecf\u88ab\u7981\u7528\uff0c\u8bf7\u8054\u7cfb\u5ba2\u670d");if(["merged"].includes(e))throw new re("\u60a8\u7684\u767b\u5f55\u72b6\u6001\u6709\u5f02\u5e38\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55 ");return(0,ge.v)("normal"===e||"shadow"===e),!0}throw new X.OakUnloggedInException("\u60a8\u5c1a\u672a\u767b\u5f55")}}const be=class extends ve{async toString(){const e=await this.get
2SerializedData();return JSON.stringify(e)}};var we=n(98955),xe=n(79519);const Se=new we.h(xe.Ay,(function(e){const t="string"===typeof e?JSON.parse(e):e,n=ue(t);if(n)return n;const{name:r,message:i,entity:o,opRecords:a,code:s,operation:c}=t;switch(r){case"ExampleException":return new de(i);case"OakUnpermittedUrl":return new he(i);default:throw new X.OakException(`\u4e0d\u53ef\u89e3\u8bfb\u7684exception\u4fe1\u606f\u300c${e}\u300d`)}}));var Ae=n(84189);const ke={attributes:{relationId:{type:"ref",ref:"relation"},pathId:{notNull:!0,type:"ref",ref:"path"},deActions:{notNull:!0,type:"object"}},actionType:"crud",actions:Ae.genericActions,indexes:[{name:"index_relation_path",attributes:[{name:"relationId"},{name:"pathId"}],config:{unique:!0}}]},Oe={attributes:{module:{notNull:!0,type:"varchar",params:{length:64}},position:{notNull:!0,type:"varchar",params:{length:188}},namespace:{notNull:!0,type:"varchar",params:{length:256}},language:{notNull:!0,type:"varchar",params:{length:32}},data:{notNull:!0,type:"object"}},actionType:"crud",actions:Ae.genericActions,indexes:[{name:"namespace_language",attributes:[{name:"namespace"},{name:"language"}],config:{unique:!0}}]},_e={attributes:{entity:{notNull:!0,type:"varchar",params:{length:32}},entityId:{notNull:!0,type:"varchar",params:{length:64}},iState:{notNull:!0,type:"enum",enumeration:["normal","rollbacked"]}},actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","undo","redo"]},Ee={iState:{stm:{apply:["active","applied"],abandon:["active","abandoned"]},is:"active"}},Ie={attributes:{targetEntity:{notNull:!0,type:"varchar",params:{length:32}},entity:{notNull:!0,type:"varchar",params:{length:32},ref:["leaderNewsApplyment","newsApplyment","topicApplyment"]},entityId:{notNull:!0,type:"varchar",params:{length:64}},action:{notNull:!0,type:"varchar",params:{length:24}},data:{notNull:!0,type:"object"},filter:{type:"object"},extra:{type:"object"},iState:{type:"enum",enumeration:["active","applied","abandoned"]}},actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","apply","abandon"],indexes:[{name:"index_state",attributes:[{name:"iState",direction:"ASC"}]}]},je={attributes:{modiId:{notNull:!0,type:"ref",ref:"modi"},entity:{notNull:!0,type:"varchar",params:{length:32}},entityId:{notNull:!0,type:"varchar",params:{length:64}}},actionType:"appendOnly",actions:Ae.appendOnlyActions},$e={iState:{stm:{undo:["normal","rollbacked"],redo:["rollbacked","normal"]},is:"normal"}},Te={attributes:{action:{notNull:!0,type:"varchar",params:{length:24}},data:{notNull:!0,type:"object"},filter:{type:"object"},extra:{type:"object"},operatorId:{type:"ref",ref:"user"},targetEntity:{notNull:!0,type:"varchar",params:{length:32}},bornAt:{type:"datetime"},logId:{type:"ref",ref:"log"},undoData:{type:"object"},iState:{type:"enum",enumeration:["normal","rollbacked"]}},actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","undo","redo"],indexes:[{name:"index_bornAt_operatorId",attributes:[{name:"bornAt",direction:"DESC"},{name:"operatorId"}]}]},Ce={attributes:{operId:{notNull:!0,type:"ref",ref:"oper"},entity:{notNull:!0,type:"varchar",params:{length:32}},entityId:{notNull:!0,type:"varchar",params:{length:64}}},actionType:"appendOnly",actions:Ae.appendOnlyActions},Pe={attributes:{destEntity:{notNull:!0,type:"varchar",params:{length:32}},value:{notNull:!0,type:"varchar",params:{length:256}},recursive:{type:"boolean"},sourceEntity:{notNull:!0,type:"varchar",params:{length:32}},desc:{type:"varchar",params:{length:256}}},actionType:"crud",actions:Ae.genericActions,indexes:[{name:"index_source_dest_path",attributes:[{name:"sourceEntity"},{name:"value"},{name:"destEntity"}],config:{unique:!0}}]},Re={attributes:{entity:{notNull:!0,type:"varchar",params:{length:32},ref:["platform","session","toDo","systemProvider"]},entityId:{type:"varchar",params:{length:64}},name:{type:"varchar",params:{length:32}},display:{type:"varchar",params:{length:32}}},actionType:"crud",actions:Ae.genericActions,indexes:[{name:"index_targetEntity_entityId_name",attributes:[{name:"entity"}
2,{name:"entityId"},{name:"name"}],config:{unique:!0}}]},Ne={attributes:{sourceRelationId:{notNull:!0,type:"ref",ref:"relation"},pathId:{notNull:!0,type:"ref",ref:"path"},destRelationId:{notNull:!0,type:"ref",ref:"relation"}},actionType:"crud",actions:Ae.genericActions,indexes:[{name:"index_entity_relation_path",attributes:[{name:"sourceRelationId"},{name:"pathId"},{name:"destRelationId"}],config:{unique:!0}}]},Me={idState:{stm:{verify:["unverified","verifying"],accept:[["unverified","verifying"],"verified"],reject:[["verifying","verified"],"unverified"]},is:"unverified"},userState:{stm:{activate:["shadow","normal"],disable:[["normal","shadow"],"disabled"],enable:["disabled","normal"],mergeTo:[["normal","shadow"],"merged"],mergeFrom:["normal","normal"]}}},Fe={attributes:{name:{type:"varchar",params:{length:16}},nickname:{type:"varchar",params:{length:64}},password:{type:"text"},refId:{type:"ref",ref:"user"},passwordSha1:{type:"text"},birth:{type:"datetime"},gender:{type:"enum",enumeration:["male","female"]},idCardType:{type:"enum",enumeration:["ID-Card","passport","Mainland-passport"]},idNumber:{type:"varchar",params:{length:32}},isRoot:{type:"boolean"},hasPassword:{type:"boolean"},verifyPasswordAt:{type:"datetime"},idState:{type:"enum",enumeration:["unverified","verified","verifying"]},userState:{type:"enum",enumeration:["shadow","normal","disabled","merged"]}},actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","grant","revoke","activate","disable","enable","mergeTo","mergeFrom","verify","accept","reject","play"],indexes:[{name:"index_birth",attributes:[{name:"birth",direction:"ASC"}]},{name:"index_fulltext",attributes:[{name:"name"},{name:"nickname"}],config:{type:"fulltext",parser:"ngram"}},{name:"index_userState_refId",attributes:[{name:"userState"},{name:"refId"}]}]},De={attributes:{uegId:{notNull:!0,type:"ref",ref:"userEntityGrant"},userId:{notNull:!0,type:"ref",ref:"user"},relationId:{notNull:!0,type:"ref",ref:"relation"},claimEntityId:{notNull:!0,type:"varchar",params:{length:64}},userRelationId:{notNull:!0,type:"ref",ref:"userRelation"}},actionType:"crud",actions:Ae.genericActions},Le={attributes:{relationEntity:{notNull:!0,type:"varchar",params:{length:32}},relationEntityFilter:{notNull:!0,type:"object"},relationIds:{notNull:!0,type:"object"},entity:{notNull:!0,type:"varchar",params:{length:32}},entityId:{notNull:!0,type:"varchar",params:{length:64}},type:{notNull:!0,type:"enum",enumeration:["grant","transfer"]},rule:{notNull:!0,type:"enum",enumeration:["single","all","free"]},ruleOnRow:{notNull:!0,type:"enum",enumeration:["single","all","free"]},multiple:{type:"boolean"},remark:{type:"text"},granterId:{notNull:!0,type:"ref",ref:"user"},qrCodeType:{notNull:!0,type:"enum",enumeration:["wechatPublic","wechatMpDomainUrl","wechatMpWxaCode","wechatPublicForMp","webForWechatPublic"]},expiresAt:{type:"datetime"},expired:{type:"boolean"},redirectTo:{type:"object"},claimUrl:{notNull:!0,type:"varchar",params:{length:128}}},actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","claim","disable"],indexes:[{name:"index_expired_expiredAt",attributes:[{name:"expired"},{name:"expiresAt"}]}]},Be={attributes:{userId:{notNull:!0,type:"ref",ref:"user"},relationId:{notNull:!0,type:"ref",ref:"relation"},entity:{notNull:!0,type:"varchar",params:{length:32},ref:["platform","session","toDo","systemProvider"]},entityId:{notNull:!0,type:"varchar",params:{length:64}}},actionType:"crud",actions:Ae.genericActions,indexes:[{name:"index_user_entity_entityId_relation",attributes:[{name:"userId"},{name:"entity"},{name:"entityId"},{name:"relationId"}],config:{unique:!0}}]},Ue={attributes:{detail:{notNull:!0,type:"varchar",params:{length:32}},areaId:{notNull:!0,type:"ref",ref:"area"},phone:{notNull:!0,type:"varchar",params:{length:12}},name:{notNull:!0,type:"varchar",params:{length:32}},default:{notNull:!0,type:"boolean"},remark:{type:"text"},entity:{type:"varchar",params:{length:32},ref:["user"]},entityId:{type:"varchar",params:{length:64}}},actionType:"crud",actions:Ae.genericActions},We={attributes:{name:{notNull:!0,type:"varchar",params:{length:32}},description:{type:"text"},type:{notNull:!0,type:"enum",enumeration:["web","wechatMp","wechatPublic","native"]},systemId:{notNull:!0,type:"ref",ref:"system"},config:{notNull:!0,type:"object"},style:{type:"object"},dangerousVersions:{notNull:!0,type:"object"},warningVersions:{notNull:!0,type:"object"},soaVersion:{notNull:!0,type:"varchar",params:{length:32}},domainId:{type:"ref",ref:"domain"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},He={attributes:{applicationId:{notNull:!0,type:"ref",ref:"application"},passportId:{notNull:!0,type:"ref",ref:"passport"},isDefault:{notNull:!0,type:"boolean"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},ze={attributes:{name:{notNull:!0,type:"varchar",params:{length:32}},level:{notNull:!0,type:"enum",enumeration:["province","city","district","street","country"]},depth:{notNull:!0,type:"int",params:{width:4}},parentId:{type:"ref",ref:"area"},code:{notNull:!0,type:"varchar",params:{length:12}}
2,center:{notNull:!0,type:"geometry"}},static:!0,actionType:"readOnly",actions:Ae.readOnlyActions},qe={attributes:{name:{notNull:!0,type:"varchar",params:{length:32}},content:{notNull:!0,type:"text"},articleMenuId:{notNull:!0,type:"ref",ref:"articleMenu"}},actionType:"crud",actions:Ae.genericActions},Ve={attributes:{name:{notNull:!0,type:"varchar",params:{length:32}},isArticle:{notNull:!0,type:"boolean"},parentId:{type:"ref",ref:"articleMenu"},isLeaf:{type:"boolean"},entity:{notNull:!0,type:"varchar",params:{length:32}},entityId:{notNull:!0,type:"varchar",params:{length:64}},latestAt:{type:"datetime"}},actionType:"crud",actions:Ae.genericActions},Ge={iState:{stm:{send:["unsent","sending"],success:["sending","sent"],fail:["sending","failure"]},is:"unsent"}},Ye={attributes:{origin:{notNull:!0,type:"enum",enumeration:["mobile","email"]},content:{notNull:!0,type:"varchar",params:{length:32}},code:{notNull:!0,type:"varchar",params:{length:8}},visitorId:{notNull:!0,type:"text"},reason:{type:"text"},env:{notNull:!0,type:"object"},expired:{notNull:!0,type:"boolean"},expiresAt:{notNull:!0,type:"datetime"},type:{notNull:!0,type:"enum",enumeration:["login","changePassword","confirm"]},applicationId:{type:"ref",ref:"application"},iState:{type:"enum",enumeration:["unsent","sending","sent","failure"]}},inModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","send","success","fail"],indexes:[{name:"index_mobile_code",attributes:[{name:"content",direction:"ASC"},{name:"code",direction:"ASC"},{name:"$$createAt$$",direction:"DESC"}]}]},Ke={attributes:{userId:{notNull:!0,type:"ref",ref:"user"},prevPassword:{type:"varchar",params:{length:32}},newPassword:{type:"varchar",params:{length:32}},prevPasswordSha1:{type:"text"},newPasswordSha1:{type:"text"},result:{notNull:!0,type:"enum",enumeration:["success","fail"]}},actionType:"crud",actions:Ae.genericActions},Xe={attributes:{url:{notNull:!0,type:"varchar",params:{length:64}},apiPath:{type:"varchar",params:{length:32}},protocol:{notNull:!0,type:"enum",enumeration:["http:","https:"]},port:{notNull:!0,type:"int",params:{width:2,signed:!0}},systemId:{notNull:!0,type:"ref",ref:"system"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},Je=(0,Ae.makeAbleActionDef)("enabled"),Qe={ableState:Je},Ze={attributes:{email:{notNull:!0,type:"varchar",params:{length:32}},userId:{notNull:!0,type:"ref",ref:"user"},ableState:{type:"enum",enumeration:["enabled","disabled"]}},actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","enable","disable"],indexes:[{name:"index_email_ableState",attributes:[{name:"email",direction:"ASC"},{name:"ableState",direction:"ASC"}]}]},et={attributes:{origin:{notNull:!0,type:"enum",enumeration:["qiniu","wechat","ctyun","aliyun","tencent","local","unknown","s3"]},type:{notNull:!0,type:"enum",enumeration:["image","video","audio","file"]},bucket:{type:"varchar",params:{length:32}},objectId:{type:"varchar",params:{length:64}},tag1:{type:"varchar",params:{length:32}},tag2:{type:"varchar",params:{length:32}},filename:{notNull:!0,type:"varchar",params:{length:256}},md5:{type:"text"},entity:{notNull:!0,type:"varchar",params:{length:32},ref:["article","articleMenu","sessionMessage","user","activity","appVersion","specTopic","topic"]},entityId:{notNull:!0,type:"varchar",params:{length:64}},extra1:{type:"text"},extra2:{type:"object"},extension:{type:"varchar",params:{length:16}},size:{type:"int",params:{width:8,signed:!0}},sort:{type:"decimal",params:{precision:22,scale:10}},fileType:{type:"varchar",params:{length:128}},isBridge:{type:"boolean"},uploadState:{notNull:!0,type:"enum",enumeration:["success","failed","uploading"]},uploadMeta:{type:"object"},applicationId:{notNull:!0,type:"ref",ref:"application"}},inModi:!0,actionType:"crud",actions:Ae.genericActions,indexes:[{name:"objectId_deleteAt",attributes:[{name:"objectId"},{name:"$$deleteAt$$"}]}]},tt={attributes:{title:{notNull:!0,type:"varchar",params:{length:32}},streamTitle:{notNull:!0,type:"varchar",params:{length:32}},liveonly:{notNull:!0,type:"enum",enumeration:["online","offline"]},hub:{notNull:!0,type:"varchar",params:{length:32}},streamKey:{notNull:!0,type:"varchar",params:{length:64}},entity:{notNull:!0,type:"varchar",params:{length:32}},entityId:{notNull:!0,type:"varchar",params:{length:64}},rtmpPushUrl:{notNull:!0,type:"varchar",params:{length:64}},rtmpPlayUrl:{notNull:!0,type:"varchar",params:{length:64}},pcPushUrl:{notNull:!0,type:"varchar",params:{length:64}},expireAt:{notNull:!0,type:"datetime"}},actionType:"crud",actions:Ae.genericActions},nt=(0,Ae.makeAbleActionDef)("enabled"),rt={ableState:nt},it={attributes:{name:{notNull:!0,type:"varchar",params:{length:32}},userId:{notNull:!0,type:"ref",ref:"user"},ableState:{type:"enum",enumeration:["enabled","disabled"]}},actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","enable","disable"],indexes:[{name:"index_name_ableState",attributes:[{name:"name",direction:"ASC"},{name:"ableState",direction:"ASC"}]}]},ot={iState:{stm:{succeed:["sending","success"],fail:["sending","failure"]}},visitState:{stm:{visit:["unvisited","visited"]},is:"unvisited"}},at={attributes:{entity:{notNull:!0,type:"varchar",params:{length:32},ref:["newsApplyment","newsApplymentRecord","specTopic","topic","topicApplyment","topicNewsRelation"]},entityId:{notNull:!0,type:"varchar",params:{length:64}},userId:{notNull:!0,type:"ref",ref:"user"},type:{notNull:!0,type:"varchar",params:{length:64}},weight:{notNull:!0,type:"enum",enumeration:["high","medium","low"]},restriction:{type:"object"},title:{notNull:!0,type:"varchar",params:{length:256}},content:{notNull:!0,type:"text"},data:{type:"object"},router:{type:"object"},platformId:{type:"ref",ref:"platform"},channels:{type:"object"},iState:{type:"enum",enumeration:["sending","success","failure"]},visitState:{type:"enum",enumeration:["unvisited","visited"]}},inModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","succeed","fail","visit"]},st={attributes:{messageId:{notNull:!0,type:"ref",ref:"message"},systemId:{notNull:!0,type:"ref",ref:"system"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},ct={attributes:{type:{notNull:!0,type:"varchar",params:{length:64}}},actionType:"crud",actions:Ae.genericActions},lt={attributes:{type:{notNull:!0,type:"varchar",params:{length:64}},templateId:{notNull:!0,type:"ref",ref:"smsTemplate"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},ut={attributes:{type:{notNull:!0,type:"varchar",params:{length:64}},templateId:{notNull:!0,type:"ref",ref:"wechatTemplate"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},dt=(0,Ae.makeAbleActionDef)("enabled"),ht={ableState:dt},ft={attributes:{mobile:{notNull:!0,type:"varchar",params:{length:16}},userId:{type:"ref",ref:"user"},ableState:{type:"enum",enumeration:["enabled","disabled"]}},actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","enable","disable"],indexes:[{name:"index_mobile_ableState",attributes:[{name:"mobile",direction:"ASC"},{name:"ableState",direction:"ASC"}]}]},pt={iState:{stm:{succeed:["sending","success"],fail:["sending","failure"]},is:"sending"}},gt={attributes:{channel:{notNull:!0,type:"enum",enumeration:["wechatPublic","jPush","jim","wechatMp","sms","email"]},applicationId:{type:"ref",ref:"application"},data:{type:"object"},messageSystemId:{notNull:!0,type:"ref",ref:"messageSystem"},data1:{type:"object"},data2:{type:"object"},templateId:{type:"varchar",params:{length:128}},iState:{type:"enum",enumeration:["sending","success","failure"]}},inModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","succeed","fail"]},yt={attributes:{userId:{notNull:!0,type:"ref",ref:"user"},entity:{notNull:!0,type:"varchar",params:{length:32}},entityId:{notNull:!0,type:"varchar",params:{length:64}},showTip:{type:"boolean"},expiresAt:{notNull:!0,type:"datetime"},expired:{notNull:!0,type:"boolean"},redirectTo:{notNull:!0,type:"object"},multiple:{type:"boolean"},tokenLifeLength:{type:"int",params:{width:4,signed:!0}}},actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","wakeup","cancel","qrcode"]},mt={attributes:{systemId:{notNull:!0,type:"ref",ref:"system"}
2,type:{notNull:!0,type:"enum",enumeration:["password","sms","email","wechatWeb","wechatMp","wechatPublic","wechatPublicForWeb","wechatMpForWeb","wechatNative"]},config:{type:"object"},enabled:{notNull:!0,type:"boolean"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},vt={attributes:{name:{notNull:!0,type:"varchar",params:{length:32}},description:{type:"text"},config:{notNull:!0,type:"object"},oldestVersion:{type:"varchar",params:{length:32}},style:{type:"object"},entity:{type:"varchar",params:{length:32}},entityId:{type:"varchar",params:{length:64}}},inModi:!0,actionType:"crud",actions:Ae.genericActions,relation:["owner","manager"]},bt={attributes:{userId:{notNull:!0,type:"ref",ref:"user"},sessionId:{notNull:!0,type:"ref",ref:"session"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},wt={attributes:{entity:{notNull:!0,type:"varchar",params:{length:32},ref:["application"]},entityId:{notNull:!0,type:"varchar",params:{length:64}},userId:{type:"ref",ref:"user"},lmts:{type:"datetime"},openId:{type:"varchar",params:{length:32}}},inModi:!0,actionType:"crud",actions:Ae.genericActions,relation:["partner"]},xt={attributes:{applicationId:{notNull:!0,type:"ref",ref:"application"},sessionId:{notNull:!0,type:"ref",ref:"session"},userId:{type:"ref",ref:"user"},wechatUserId:{type:"ref",ref:"wechatUser"},createTime:{type:"datetime"},type:{notNull:!0,type:"enum",enumeration:["text","image","voice","video","location","link","event","miniprogrampage"]},text:{type:"text"},link:{type:"varchar",params:{length:128}},aaoe:{type:"boolean"},extra:{type:"object"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},St={attributes:{systemId:{notNull:!0,type:"ref",ref:"system"},origin:{notNull:!0,type:"enum",enumeration:["ali","tencent","ctyun","qiniu"]},templateName:{notNull:!0,type:"text"},templateCode:{notNull:!0,type:"varchar",params:{length:64}},templateContent:{notNull:!0,type:"text"},syncAt:{notNull:!0,type:"datetime"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},At={attributes:{name:{notNull:!0,type:"varchar",params:{length:32}},areaId:{notNull:!0,type:"ref",ref:"area"}},actionType:"crud",actions:Ae.genericActions},kt={attributes:{entity:{notNull:!0,type:"varchar",params:{length:32}},entityId:{notNull:!0,type:"varchar",params:{length:64}},name:{notNull:!0,type:"varchar",params:{length:32}},description:{type:"text"},config:{type:"object"},offset:{type:"int",params:{width:4,signed:!0}}},actionType:"crud",actions:Ae.genericActions,indexes:[{name:"index_name",attributes:[{name:"name"}]},{name:"index_entity",attributes:[{name:"entity"},{name:"entityId"}]}]},Ot={attributes:{name:{notNull:!0,type:"varchar",params:{length:32}},areaId:{notNull:!0,type:"ref",ref:"area"}},actionType:"crud",actions:Ae.genericActions},_t={attributes:{stationId:{notNull:!0,type:"ref",ref:"station"},subwayId:{notNull:!0,type:"ref",ref:"subway"}},actionType:"crud",actions:Ae.genericActions},Et={attributes:{name:{notNull:!0,type:"varchar",params:{length:32}},description:{type:"text"},config:{notNull:!0,type:"object"},platformId:{type:"ref",ref:"platform"},folder:{type:"varchar",params:{length:16}},oldestVersion:{type:"varchar",params:{length:32}},super:{type:"boolean"},style:{type:"object"},entity:{type:"varchar",params:{length:32},ref:["systemProvider"]},entityId:{type:"varchar",params:{length:64}}},inModi:!0,actionType:"crud",actions:Ae.genericActions},It={iState:{stm:{complete:["active","done"]}}},jt={attributes:{title:{notNull:!0,type:"text"},description:{type:"text"},targetEntity:{notNull:!0,type:"varchar",params:{length:32}},targetFilter:{notNull:!0,type:"object"},action:{notNull:!0,type:"varchar",params:{length:32}},redirectTo:{notNull:!0,type:"object"},entity:{notNull:!0,type:"varchar",params:{length:32}},entityId:{notNull:!0,type:"varchar",params:{length:64}},iState:{type:"enum",enumeration:["active","done"]}},actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","complete"],relation:["collaborator"]},$t={ableState:(0,Ae.makeAbleActionDef)("enabled")},Tt={iState:{stm:{success:[["wait","fail"],"success"],fail:[["wait","success"],"fail"]},is:"wait"}},Ct={iState:{stm:{success:[["wait","fail"],"success"],fail:[["wait","success"],"fail"]},is:"wait"}},Pt={iState:{stm:{success:[["wait","fail"],"success"],fail:[["wait","success"],"fail"]},is:"wait"}},Rt={iState:{stm:{offline:["online","offline"],online:["offline","online"]},is:"offline"}},Nt={iState:{stm:{hide:["normal","shadow"],show:["shadow","normal"]},is:"normal"}},Mt={iState:{stm:{accept:["normal","accepted"],reject:["normal","rejected"]},is:"normal"}},Ft={iState:{stm:{offline:[["online","hidden"],"offline"],online:[["offline","hidden"],"online"],hidden:[["offline","online"],"hidden"]},is:"online"}},Dt={iState:{stm:{finish:["draft","normal"],accept:["normal","accepted"],reject:["normal","rejected"],reSubmit:["rejected","normal"],delete:[["rejected","normal","draft"],"deleted"]},is:"normal"}},Lt={iState:{stm:{submitReview:["draft","pending"],withdraw:["pending","draft"],acceptAndSend:["pending","sent"],reject:["pending","rejected"],reSubmit:["rejected","pending"],emergencyRecall:["sent","recalled"],delete:[["draft","rejected"],"deleted"]},is:"draft"}},Bt={iState:{stm:{validate:["normal","abnormal"],makeInvaild:["abnormal","normal"]},is:"normal"}},Ut={iState:{stm:{finish:[["draft","rejected"],"normal"],accept:["normal","accepted"],reject:["normal","rejected"],reSubmit:["rejected","normal"],delete:[["rejected","draft","normal"],"deleted"]},is:"draft"}},Wt={iState:{stm:{approve:["unchecked","approved"],delete:[["approved","unchecked"],"deleted"],recover:["deleted","approved"]},is:"unchecked"}},Ht={actionAuth:ke,i18n:Oe,log:_e,modi:Ie,modiEntity:je,oper:Te,operEntity:Ce,path:Pe,relation:Re,relationAuth:Ne,user:Fe,userEntityClaim:De,userEntityGrant:Le,userRelation:Be,address:Ue,application:We,applicationPassport:He,area:ze,article:qe,articleMenu:Ve,captcha:Ye,changePasswordTemp:Ke,domain:Xe,email:Ze,extraFile:et,livestream:tt,loginName:it,message:at,messageSystem:st,messageType:ct,messageTypeSmsTemplate:lt,messageTypeTemplate:ut,mobile:ft,notification:gt,parasite:yt,passport:mt,platform:vt,readRemark:bt,session:wt,sessionMessage:xt,smsTemplate:St,station:At,subscription:kt,subway:Ot,subwayStation:_t,system:Et,toDo:jt,token:{attributes:{applicationId:{type:"ref",ref:"application"},entity:{notNull:!0,type:"varchar",params:{length:32},ref:["email","loginName","mobile","parasite","wechatLogin","wechatUser"]},entityId:{notNull:!0,type:"varchar",params:{length:64}},userId:{type:"ref",ref:"user"},playerId:{type:"ref",ref:"user"},disablesAt:{type:"datetime"},env:{notNull:!0,type:"object"},refreshedAt:{notNull:!0,type:"datetime"},value:{notNull:!0,type:"varchar",params:{length:64}},oldValue:{type:"varchar",params:{length:64}},ableState:{type:"enum",enumeration:["enabled","disabled"]}},inModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","enable","disable"],indexes:[{name:"index_value",attributes:[{name:"value"},{name:"$$deleteAt$$"}],config:{unique:!0}}]},userSystem:{attributes:{userId:{notNull:!0,type:"ref",ref:"user"},systemId:{notNull:!0,type:"ref",ref:"system"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},userWechatPublicTag:{attributes:{wechatPublicTagId:{notNull:!0,type:"ref",ref:"wechatPublicTag"},wechatUserId:{notNull:!0,type:"ref",ref:"wechatUser"},sync:{notNull:!0,type:"boolean"},syncAt:{notNull:!0,type:"datetime"},iState:{type:"enum",enumeration:["wait","success","fail"]}},inModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","sync","success","fail"]},wechatLogin:{attributes:{userId:{type:"ref",ref:"user"},type:{notNull:!0,type:"enum",enumeration:["bind","login"]},successed:{notNull:!0,type:"boolean"},remark:{type:"text"},qrCodeType:{notNull:!0,type:"enum",enumeration:["wechatPublic","wechatMpDomainUrl","
2wechatMpWxaCode","wechatPublicForMp","webForWechatPublic"]},expiresAt:{type:"datetime"},expired:{type:"boolean"},wechatUserId:{type:"ref",ref:"wechatUser"}},inModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","success"],indexes:[{name:"index_uuid",attributes:[{name:"expired"},{name:"expiresAt"}]}]},wechatMenu:{attributes:{menuId:{type:"int",params:{width:4,signed:!0}},menuConfig:{notNull:!0,type:"object"},applicationId:{notNull:!0,type:"ref",ref:"application"},wechatPublicTagId:{type:"ref",ref:"wechatPublicTag"},iState:{type:"enum",enumeration:["wait","success","fail"]}},inModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","success","fail","publish"]},wechatMpJump:{attributes:{messageId:{type:"ref",ref:"message"},jump_wxa:{type:"object"},openlink:{type:"varchar",params:{length:256}},expireType:{type:"int",params:{width:1,signed:!0}},expireInterval:{type:"int",params:{width:2,signed:!0}},expiresAt:{type:"datetime"},expired:{type:"boolean"}},inModi:!0,actionType:"crud",actions:Ae.genericActions,indexes:[{name:"index_uuid",attributes:[{name:"expired"},{name:"expiresAt"}]}]},wechatPublicAutoReply:{attributes:{content:{notNull:!0,type:"object"},applicationId:{notNull:!0,type:"ref",ref:"application"},type:{notNull:!0,type:"enum",enumeration:["text","image","video","voice"]},event:{notNull:!0,type:"enum",enumeration:["subscribe","unsubscribe","keyword","auto"]}},inModi:!0,actionType:"crud",actions:Ae.genericActions},wechatPublicTag:{attributes:{text:{notNull:!0,type:"varchar",params:{length:32}},applicationId:{notNull:!0,type:"ref",ref:"application"},wechatId:{type:"int",params:{width:4,signed:!1}},sync:{type:"boolean"},syncAt:{type:"datetime"},iState:{type:"enum",enumeration:["wait","success","fail"]}},inModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","sync","success","fail"]},wechatQrCode:{attributes:{entity:{notNull:!0,type:"varchar",params:{length:32},ref:["user","userEntityGrant","wechatLogin"]},entityId:{notNull:!0,type:"varchar",params:{length:64}},type:{notNull:!0,type:"enum",enumeration:["wechatPublic","wechatMpDomainUrl","wechatMpWxaCode","wechatPublicForMp","webForWechatPublic"]},allowShare:{notNull:!0,type:"boolean"},tag:{type:"varchar",params:{length:32}},tag2:{type:"varchar",params:{length:64}},expiresAt:{type:"datetime"},expired:{type:"boolean"},ticket:{type:"text"},url:{type:"varchar",params:{length:256}},permanent:{type:"boolean"},buffer:{type:"text"},applicationId:{notNull:!0,type:"ref",ref:"application"},props:{notNull:!0,type:"object"}},inModi:!0,actionType:"crud",actions:Ae.genericActions,indexes:[{name:"index_entity_entityId_tag",attributes:[{name:"entity"},{name:"entityId"},{name:"tag"}]},{name:"index_expired_expiresAt",attributes:[{name:"expired"},{name:"expiresAt"}]},{name:"index_url",attributes:[{name:"url"}]}]},wechatTemplate:{attributes:{applicationId:{notNull:!0,type:"ref",ref:"application"},wechatId:{notNull:!0,type:"varchar",params:{length:64}},title:{notNull:!0,type:"text"},primaryIndustry:{type:"text"},deputyIndustry:{type:"text"},content:{type:"text"},example:{type:"text"},param:{type:"object"},syncAt:{notNull:!0,type:"datetime"},keywordEnumValueList:{type:"object"},type:{type:"enum",enumeration:["2","3"]}},inModi:!0,actionType:"crud",actions:Ae.genericActions},wechatUser:{attributes:{origin:{notNull:!0,type:"enum",enumeration:["mp","public","web","native"]},openId:{type:"varchar",params:{length:32}},unionId:{type:"varchar",params:{length:32}},sessionKey:{type:"varchar",params:{length:64}},accessToken:{type:"varchar",params:{length:128}},refreshToken:{type:"varchar",params:{length:128}},scope:{type:"varchar",params:{length:64}},atExpiredAt:{type:"datetime"},rtExpiredAt:{type:"datetime"},subscribed:{type:"boolean"},subscribedAt:{type:"datetime"},unsubscribedAt:{type:"datetime"},userId:{type:"ref",ref:"user"},applicationId:{notNull:!0,type:"ref",ref:"application"},nickname:{type:"varchar",params:{length:128}},avatar:{type:"text"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},activity:{attributes:{title:{notNull:!0,type:"varchar",params:{length:64}},url:{type:"varchar",params:{length:256}},picUrl:{type:"varchar",params:{length:256}},modalOpen:{type:"int",params:{width:1,signed:!0}},modalUrl:{type:"varchar",params:{length:256}},buttonText:{type:"varchar",params:{length:16}},channel:{type:"enum",enumeration:["home","worldCup"]},beginTime:{type:"datetime"},endTime:{type:"datetime"},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"},iState:{type:"enum",enumeration:["online","offline"]}},inModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","offline","online"]},activityInviteHelp:{attributes:{activityId:{notNull:!0,type:"ref",ref:"activity"},inviterId:{type:"ref",ref:"user"}
2,inviteeId:{type:"ref",ref:"user"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},activityLotteryDailyQuota:{attributes:{activityId:{notNull:!0,type:"ref",ref:"activity"},dayIndex:{notNull:!0,type:"int",params:{width:4,signed:!0}},tierCode:{notNull:!0,type:"varchar",params:{length:32}},quota:{notNull:!0,type:"int",params:{width:4,signed:!0}}},inModi:!0,actionType:"crud",actions:Ae.genericActions},activityLotteryRecord:{attributes:{activityId:{notNull:!0,type:"ref",ref:"activity"},userId:{notNull:!0,type:"ref",ref:"user"},result:{type:"int",params:{width:1,signed:!0}},activityPrizeId:{type:"ref",ref:"activityPrize"},recordType:{type:"varchar",params:{length:16}},tierCode:{type:"varchar",params:{length:32}},amountYuan:{type:"int",params:{width:4,signed:!0}},probabilitySnapshot:{type:"object"},claimData:{type:"object"},claimStatus:{type:"varchar",params:{length:32}},refUserId:{type:"ref",ref:"user"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},activityLotteryTier:{attributes:{activityId:{notNull:!0,type:"ref",ref:"activity"},tierCode:{notNull:!0,type:"varchar",params:{length:32}},label:{notNull:!0,type:"varchar",params:{length:64}},amountYuan:{notNull:!0,type:"int",params:{width:4,signed:!0}},totalCap:{notNull:!0,type:"int",params:{width:4,signed:!0}},remaining:{type:"int",params:{width:4,signed:!0}},probability:{notNull:!0,type:"varchar",params:{length:32}},sortOrder:{type:"int",params:{width:4,signed:!0}}},inModi:!0,actionType:"crud",actions:Ae.genericActions},activityPrize:{attributes:{name:{notNull:!0,type:"varchar",params:{length:64}},day:{notNull:!0,type:"int",params:{width:4,signed:!0}},winnerId:{type:"ref",ref:"user"},winnerInfo:{type:"object"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},activityUserCode:{attributes:{userId:{notNull:!0,type:"ref",ref:"user"},code:{notNull:!0,type:"varchar",params:{length:64}},acceptCode:{type:"varchar",params:{length:64}},activityId:{notNull:!0,type:"ref",ref:"activity"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},advertisement:{attributes:{property:{notNull:!0,type:"enum",enumeration:["topic","specTopic","news","pic","link"]},entity:{type:"varchar",params:{length:32},ref:["news","specTopic","topic"]},entityId:{type:"varchar",params:{length:64}},type:{notNull:!0,type:"enum",enumeration:["homePage","search","open","hotRank","appBanner"]},title:{type:"varchar",params:{length:64}},picUrl:{type:"varchar",params:{length:256}},sort:{type:"decimal",params:{precision:8,scale:2}},beginTime:{type:"object"},endTime:{type:"object"},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"},creatorId:{notNull:!0,type:"ref",ref:"user"},url:{type:"varchar",params:{length:256}}},inModi:!0,actionType:"crud",actions:Ae.genericActions},appVersion:{attributes:{version:{notNull:!0,type:"varchar",params:{length:16}},majorVersionNumber:{notNull:!0,type:"int",params:{width:8,signed:!0}},minorVersionNumber:{notNull:!0,type:"int",params:{width:8,signed:!0}},revisionNumber:{notNull:!0,type:"int",params:{width:8,signed:!0}},versionCode:{type:"int",params:{width:8,signed:!0}},desc:{notNull:!0,type:"text"},tipFrequency:{notNull:!0,type:"enum",enumeration:["force","everytime","aday","once"]},platform:{notNull:!0,type:"enum",enumeration:["general","android","ios"]},iState:{notNull:!0,type:"enum",enumeration:["online","offline"]},creatorId:{notNull:!0,type:"ref",ref:"user"},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},area2:{attributes:{name:{notNull:!0,type:"varchar",params:{length:64}},parentId:{type:"ref",ref:"area2"},initial:{type:"varchar",params:{length:64}},initials:{type:"varchar",params:{length:64}},pinyin:{type:"varchar",params:{length:64}},extra:{type:"varchar",params:{length:64}},suffix:{type:"varchar",params:{length:64}},code:{type:"varchar",params:{length:64}},areaCode:{type:"varchar",params:{length:64}},order:{type:"varchar",params:{length:64}},status:{type:"varchar",params:{length:64}},path:{type:"varchar",params:{length:64}}},inModi:!0,actionType:"crud",actions:Ae.genericActions},block:{attributes:{name:{type:"varchar",params:{length:64}},sort:{notNull:!0,type:"int",params:{width:4,signed:!0}},specTopicId:{notNull:!0,type:"ref",ref:"specTopic"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},blockNewsRelation:{attributes:{blockId:{notNull:!0,type:"ref",ref:"block"},newsId:{notNull:!0,type:"ref",ref:"news"},sort:{type:"int",params:{width:4,signed:!0}}},inModi:!0,actionType:"crud",actions:Ae.genericActions},category:{attributes:{name:{notNull:!0,type:"varchar",params:{length:64}},level:{notNull:!0,type:"int",params:{width:4,signed:!0}},parentId:{type:"ref",ref:"category"},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},categoryTencent:{attributes:{name:{notNull:!0,type:"varchar",params:{length:64}},level:{notNull:!0,type:"int",params:{width:4,signed:!0}},parentId:{type:"ref",ref:"categoryTencent"},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},column:{attributes:{iState:{type:"enum",enumeration:["normal","shadow"]},name:{notNull:!0,type:"varchar",params:{length:255}},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"},parentId:{type:"ref",ref:"column"},sort:{notNull:!0,type:"int",params:{width:4,signed:!0}}},inModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","hide","show"]},columnEntityRelation:{attributes:{columnId:{notNull:!0,type:"ref",ref:"column"},entity:{notNull:!0,type:"varchar",params:{length:32},ref:["news","specTopic","topic"]},entityId:{notNull:!0,type:"varchar",params:{length:64}},sort:{notNull:!0,type:"int",params:{width:4,signed:!0}},publishTime:{type:"datetime"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},columnNewsApplyment:{attributes:{columnId:{notNull:!0,type:"ref",ref:"column"},newsApplymentId:{notNull:!0,type:"ref",ref:"newsApplyment"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},columnSourceRelation:{attributes:{columnId:{notNull:!0,type:"ref",ref:"column"},sourceId:{notNull:!0,type:"ref",ref:"source"},syncHistoryOnBind:{type:"boolean"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},comment:{attributes:{parentId:{type:"ref",ref:"comment"},contPoolId:{notNull:!0,type:"varchar",params:{length:45}},newsId:{notNull:!0,type:"ref",ref:"news"},userId:{type:"ref",ref:"user"},userLike:{type:"int",params:{width:4,signed:!0}},userNickname:{notNull:!0,type:"varchar",params:{length:255}},userAvatar:{notNull:!0,type:"varchar",params:{length:255}},platform:{notNull:!0,type:"varchar",params:{length:128}},agreeNum:{notNull:!0,type:"int",params:{width:4,signed:!0}},dislikeNum:{type:"int",params:{width:4,signed:!0}},content:{notNull:!0,type:"text"},plainText:{notNull:!0,type:"text"},img:{notNull:!0,type:"object"},video:{notNull:!0,type:"object"},type:{notNull:!0,type:"enum",enumeration:["outstation","localStation"]},publishTime:{notNull:!0,type:"datetime"},checked:{type:"boolean"},sensitiveWord:{type:"varchar",params:{length:255}},sensitiveWordVersion:{type:"datetime"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},dailyChannelTrafficData:{attributes:{channel:{notNull:!0,type:"enum",enumeration:["wuhan","guanzhu"]},browseCount:{type:"int",params:{width:8,signed:!0}},browseUser:{type:"int",params:{width:8,signed:!0}},totalTime:{type:"int",params:{width:8,signed:!0}},avgTime:{type:"int",params:{width:8,signed:!0}},totalReadNum:{type:"int",params:{width:8,signed:!0}},avgReadNum:{type:"int",params:{width:8,signed:!0}}},actionType:"crud",actions:Ae.genericActions},dailyTrafficData:{attributes:{date:{notNull:!0,type:"datetime"},userNum:{type:"int",params:{width:8,signed:!0}},dailyUser:{type:"int",params:{width:8,signed:!0}},monthlyUser:{type:"int",params:{width:8,signed:!0}},subscribeUserNum:{type:"int",params:{width:8,signed:!0}},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"}},inModi:!0,actionType:"crud",actions:Ae.genericActions,indexes:[{name:"index_date_systemProviderId",attributes:[{name:"date"},{name:"systemProviderId"}]}]},field:{attributes:{name:{notNull:!0,type:"varchar",params:{length:255}},isZone:{notNull:!0,type:"boolean"}
2,type:{type:"enum",enumeration:["zone","column","recommend","explore"]},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"},subscribeNum:{type:"int",params:{width:4,signed:!0}},uncheckedNewsNum:{type:"int",params:{width:4,signed:!0}},sort:{type:"int",params:{width:4,signed:!0}},isSystem:{type:"boolean"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},fieldTopicApplyment:{attributes:{topicApplymentId:{notNull:!0,type:"ref",ref:"topicApplyment"},fieldId:{notNull:!0,type:"ref",ref:"field"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},fieldTopicRelation:{attributes:{topicId:{notNull:!0,type:"ref",ref:"topic"},fieldId:{notNull:!0,type:"ref",ref:"field"},top:{type:"boolean"},toppingTime:{type:"datetime"},sort:{type:"decimal",params:{precision:10,scale:6}}},inModi:!0,actionType:"crud",actions:Ae.genericActions},hotRank:{attributes:{date:{notNull:!0,type:"datetime"},platform:{notNull:!0,type:"enum",enumeration:["sina","baidu","toutiao","douyin","pengpai","zhihu","weixin","sina7x24","cailianshe","yangshi_guoji","yangshi_guonei","yangshi_fazhi"]},title:{notNull:!0,type:"text"},rank:{notNull:!0,type:"int",params:{width:4,signed:!0}},score:{type:"varchar",params:{length:64}},tag:{type:"varchar",params:{length:32}},topic_url:{type:"varchar",params:{length:512}},source_url:{type:"varchar",params:{length:512}},updateTime:{notNull:!0,type:"datetime"},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},hotRankNewsRelation:{attributes:{hotRankId:{notNull:!0,type:"ref",ref:"hotRank"},newsId:{notNull:!0,type:"ref",ref:"news"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},invitationCode:{attributes:{code:{notNull:!0,type:"varchar",params:{length:32}},expiresAt:{type:"datetime"},expired:{type:"boolean"},verified:{type:"boolean"},creatorId:{notNull:!0,type:"ref",ref:"user"},verifierId:{type:"ref",ref:"user"},verifyAt:{type:"datetime"},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"}},inModi:!0,actionType:"crud",actions:Ae.genericActions,indexes:[{name:"index_code_unique",attributes:[{name:"code"}],config:{unique:!0}}]},leaderNews:{attributes:{newsId:{type:"ref",ref:"news"},sort:{type:"decimal",params:{precision:10,scale:6}},type:{type:"enum",enumeration:["leader","general"]},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},leaderNewsApplyment:{attributes:{originNewsId:{type:"ref",ref:"news"},destNewsId:{notNull:!0,type:"ref",ref:"news"},submitterId:{notNull:!0,type:"ref",ref:"user"},auditorId:{type:"ref",ref:"user"},leaderNewsId:{type:"ref",ref:"leaderNews"},type:{type:"enum",enumeration:["leader","general"]},sort:{type:"int",params:{width:4,signed:!0}},iState:{type:"enum",enumeration:["normal","rejected","accepted"]}},toModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","accept","reject"]},news:{attributes:{sourceId:{notNull:!0,type:"ref",ref:"source"},sourceAliasName:{type:"varchar",params:{length:256}},contPoolId:{type:"varchar",params:{length:45}},itemType:{notNull:!0,type:"enum",enumeration:["article","svideo","express","gallery"]},title:{notNull:!0,type:"varchar",params:{length:255}},publisher:{type:"varchar",params:{length:45}},summary:{type:"varchar",params:{length:255}},publishTime:{notNull:!0,type:"datetime"},infoUrl:{type:"varchar",params:{length:512}},label:{type:"varchar",params:{length:45}},category:{type:"varchar",params:{length:45}},category_tx:{type:"varchar",params:{length:45}},category_tx_payload:{type:"object"},tag:{type:"object"},poi:{type:"object"},position:{type:"varchar",params:{length:45}},coverImg:{type:"object"},coverImgLarge:{type:"object"},coverImgs:{type:"object"},isRecommend:{type:"boolean"},downTime:{type:"datetime"},importerId:{type:"ref",ref:"user"},lastModifierId:{type:"ref",ref:"user"},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"},sensitiveWord:{type:"varchar",params:{length:255}},sensitiveWordVersion:{type:"datetime"},aliasTitle:{type:"varchar",params:{length:255}},simhash:{type:"varchar",params:{length:128}},refId:{type:"ref",ref:"news"},llmTag:{type:"int",params:{width:4,signed:!0}},hiddenLocation:{notNull:!0,type:"enum",enumeration:["unconfirmed","visible","hidden"]},iState:{type:"enum",enumeration:["online","offline","hidden"]}},inModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","offline","online","hidden","createEvent"],indexes:[{name:"index_fulltext",attributes:[{name:"title"}],config:{type:"fulltext",parser:"ngram"}},{name:"news_iState_spId_pt",attributes:[{name:"iState"},{name:"systemProviderId"},{name:"$$deleteAt$$"},{name:"publishTime"}]},{name:"news_contPoolId",attributes:[{name:"contPoolId"},{name:"$$deleteAt$$"}],config:{unique:!0}}]},newsApplyment:{attributes:{type:{notNull:!0,type:"enum",enumeration:["create","update"]},newsId:{type:"ref",ref:"news"},creatorId:{notNull:!0,type:"ref",ref:"user"},auditorId:{type:"ref",ref:"user"},remark:{type:"text"},title:{type:"varchar",params:{length:256}},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"},changeRecord:{type:"object"},sourceId:{type:"ref",ref:"source"},publishTime:{type:"datetime"},submitTime:{type:"datetime"},columnList:{type:"object"},reason:{type:"varchar",params:{length:256}},iState:{type:"enum",enumeration:["normal","rejected","accepted","deleted","draft"]}},toModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","accept","reject","reSubmit","delete","finish","draft"]},newsApplymentRecord:{attributes:{newsApplymentId:{notNull:!0,type:"ref",ref:"newsApplyment"},type:{notNull:!0,type:"enum",enumeration:["create","update","resubmit","accept","reject"]},creatorId:{notNull:!0,type:"ref",ref:"user"},auditorId:{type:"ref",ref:"user"},title:{type:"varchar",params:{length:256}},remark:{type:"text"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},newsContent:{attributes:{newsId:{notNull:!0,type:"ref",ref:"news"},itemType:{notNull:!0,type:"enum",enumeration:["article","svideo","express","gallery"]},title:{notNull:!0,type:"varchar",params:{length:255}},content:{type:"text"},picUrl:{type:"object"},videoUrl:{type:"object"},carouselImage:{type:"object"},displayType:{type:"enum",enumeration:["carousel","video","map"]}},inModi:!0,actionType:"crud",actions:Ae.genericActions},newsExtra:{attributes:{newsId:{notNull:!0,type:"ref",ref:"news"},isPoiLLMHandle:{type:"boolean"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},newsPosition:{attributes:{newsId:{notNull:!0,type:"ref",ref:"news"},provinceId:{type:"ref",ref:"area"},cityId:{type:"ref",ref:"area"},distinctId:{type:"ref",ref:"area"},detail:{type:"varchar",params:{length:255}},point:{type:"geometry"},gaode_payload:{type:"object"},newsPositionMappingId:{type:"ref",ref:"newsPositionMapping"},gaodeFormateAddress:{type:"varchar",params:{length:512}},llm_payload:{type:"varchar",params:{length:512}},topicIconData:{type:"object"}},inModi:!0,actionType:"crud",actions:Ae.genericActions,indexes:[{name:"position_formateAddress",attributes:[{name:"gaodeFormateAddress"},{name:"$$deleteAt$$"}],config:{unique:!0}}]},newsPositionMapping:{attributes:{gaodeFormateAddress:{notNull:!0,type:"varchar",params:{length:512}},mapAddress:{notNull:!0,type:"varchar",params:{length:512}}},inModi:!0,actionType:"crud",actions:Ae.genericActions,indexes:[{name:"mapping_gaodeFormateAddress",attributes:[{name:"gaodeFormateAddress"},{name:"$$deleteAt$$"}],config:{unique:!0}}]},newsPositionRelation:{attributes:{newsId:{notNull:!0,type:"ref",ref:"news"},positionId:{notNull:!0,type:"ref",ref:"position"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},newsStatistic:{attributes:{newsId:{notNull:!0,type:"ref",ref:"news"},readNum:{type:"int",params:{width:4,signed:!0}},commentNum:{type:"int",params:{width:4,signed:!0}},likeNum:{type:"int",params:{width:4,signed:!0}},forwardNum:{type:"int",params:{width:4,signed:!0}},mediaNum:{type:"int",params:{width:4,signed:!0}}},inModi:!0,actionType:"crud",actions:Ae.genericActions},newsStats:{attributes:{newsId:{notNull:!0,type:"ref",ref:"news"},newsApplymentRecordId:{type:"ref",ref:"newsApplymentRecord"},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},position:{attributes:{provinceId:{type:"ref",ref:"area"},cityId:{type:"ref",ref:"area"},distinctId:{type:"ref",ref:"area"},detail:{type:"varchar",params:{length:255}},point:{type:"geometry"},gaode_payload:{type:"object"},alias:{type:"varchar",params:{length:255}},gaodeFormateAddress:{type:"varchar",params:{length:512}},llm_payload:{type:"varchar",params:{length:512}},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"}},inModi:!0,actionType:"crud",actions:Ae.genericActions,indexes:[{name:"position_formateAddress",attributes:[{name:"gaodeFormateAddress"},{name:"$$deleteAt$$"}],config:{unique:!0}}]},pushTask:{attributes:{title:{notNull:!0,type:"varchar",params:{length:128}},summary:{type:"text"},targetType:{notNull:!0,type:"enum",enumeration:["news","specTopic","topic","activity"]},targetId:{notNull:!0,type:"varchar",params:{length:64}},targetTitle:{type:"varchar",params:{length:256}},timingType:{notNull:!0,type:"enum",enumeration:["immediate","scheduled"]},scheduledAt:{type:"datetime"},audienceType:{notNull:!0,type:"varchar",params:{length:24}},creatorId:{notNull:!0,type:"ref",ref:"user"},auditorId:{type:"ref",ref:"user"},rejectReason:{type:"text"},submitTime:{type:"datetime"},auditTime:{type:"datetime"},sentTime:{type:"datetime"},umengTaskIdAndroid:{type:"varchar",params:{length:64}},umengTaskIdIos:{type:"varchar",params:{length:64}},umengStatus:{type:"int",params:{width:4,signed:!0}},deliveredCount:{type:"int",params:{width:4,signed:!0}},openCount:{type:"int",params:{width:4,signed:!0}},recallType:{type:"enum",enumeration:["none","full","partial"]},recallReason:{type:"text"},recallTime:{type:"datetime"},recallOperatorId:{type:"ref",ref:"user"},outBizNo:{type:"varchar",params:{length:64}},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"},iState:{type:"enum",enumeration:["draft","pending","rejected","sent","recalled","deleted"]}},inModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","submitReview","withdraw","acceptAndSend","reject","reSubmit","emergencyRecall","delete"]},qnaAnswer:{attributes:{qnaQuestionId:{notNull:!0,type:"ref",ref:"qnaQuestion"},content:{notNull:!0,type:"text"},qnaExtraDataId:{notNull:!0,type:"ref",ref:"qnaExtraData"},isReported:{notNull:!0,type:"boolean"},isSelected:{notNull:!0,type:"boolean"},enableSearch:{notNull:!0,type:"boolean"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},qnaExtraData:{attributes:{reference:{type:"object"},reasoning_time:{notNull:!0,type:"int",params:{width:8,signed:!0}},reasoning_content:{notNull:!0,type:"text"},finish_reason:{notNull:!0,type:"varchar",params:{length:64}},prompt_tokens:{notNull:!0,type:"int",params:{width:8,signed:!0}},completion_tokens:{notNull:!0,type:"int",params:{width:8,signed:!0}},total_tokens:{notNull:!0,type:"int",params:{width:8,signed:!0}}},inModi:!0,actionType:"crud",actions:Ae.genericActions},qnaHistory:{attributes:{userId:{notNull:!0,type:"ref",ref:"user"},question:{notNull:!0,type:"varchar",params:{length:255}},answer:{notNull:!0,type:"varchar",params:{length:255}},isLike:{type:"boolean"},reasonsForReporting:{type:"varchar",params:{length:255}}},actionType:"crud",actions:Ae.genericActions},qnaQuestion:{attributes:{sessionId:{notNull:!0,type:"ref",ref:"qnaSession"},content:{notNull:!0,type:"text"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},qnaRecommendQuestion:{attributes:{question:{notNull:!0,type:"varchar",params:{length:256}},sort:{type:"decimal",params:{precision:10,scale:6}},type:{notNull:!0,type:"varchar",params:{length:256}},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},qnaSession:{attributes:{userId:{notNull:!0,type:"ref",ref:"user"},title:{notNull:!0,type:"varchar",params:{length:128}},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"},deleted:{notNull:!0,type:"boolean"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},qnas:{attributes:{question:{notNull:!0,type:"varchar",params:{length:256}},answer:{notNull:!0,type:"varchar",params:{length:256}},questionTypeId:{notNull:!0,type:"ref",ref:"questionType"},isDefault:{notNull:!0,type:"boolean"}},actionType:"crud",actions:Ae.genericActions},questionType:{attributes:{name:{notNull:!0,type:"varchar",params:{length:256}}},actionType:"crud",actions:Ae.genericActions},sensitiveWord:{attributes:{content:{notNull:!0,type:"varchar",params:{length:64}},type:{notNull:!0,type:"varchar",params:{length:128}},status:{notNull:!0,type:"enum",enumeration:["\u6709\u6548","\u65e0\u6548"]},remarks:{type:"varchar",params:{length:256}},createUserId:{notNull:!0,type:"ref",ref:"user"},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},source:{attributes:{name:{notNull:!0,type:"varchar",params:{length:256}},lvluoName:{type:"varchar",params:{length:256}},sourceEntity:{type:"varchar",params:{length:256}},platform:{notNull:!0,type:"varchar",params:{length:128}},url:{type:"varchar",params:{length:512}},type:{type:"enum",enumeration:["orgMedia","weMedia"]},platformType:{notNull:!0,type:"enum",enumeration:["\u5fae\u4fe1\u516c\u4f17\u53f7","\u6296\u97f3","\u5168\u6c11\u5c0f\u89c6\u9891","\u897f\u74dc\u89c6\u9891","\u4eca\u65e5\u5934\u6761","\u767e\u5bb6\u53f7","\u5c0f\u7ea2\u4e66","\u65b0\u95fbAPP","\u4e5d\u6d3e\u65b0\u95fb\u5ba2\u6237\u7aef","\u5927\u6b66\u6c49","\u7f51\u7ad9"]},locationType:{notNull:!0,type:"enum",enumeration:["otherlist","whitelist","blacklist"]},mediaLevel:{type:"int",params:{width:4,signed:!0}},isFreqSampling:{type:"boolean"},provinceId:{type:"ref",ref:"area2"},areaId:{type:"ref",ref:"area2"},cityId:{type:"ref",ref:"area2"},isHighQuality:{type:"boolean"},systemProviderId:{type:"ref",ref:"systemProvider"},sourcePlatformId:{type:"ref",ref:"sourcePlatform"},sourceProvider:{type:"varchar",params:{length:10}},insertionYesterday:{type:"int",params:{width:4,signed:!0}},channel:{notNull:!0,type:"varchar",params:{length:256}},level:{type:"int",params:{width:2,signed:!0}},updateTime:{type:"datetime"},grabState:{type:"enum",enumeration:["stopped","hidden","deleted","started"]},isActive:{type:"boolean"},regionTag:{type:"enum",enumeration:["\u5168\u56fd","\u6e56\u5317","\u6b66\u6c49","\u533a\u7ea7"]},iState:{type:"enum",enumeration:["normal","abnormal"]}},inModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","validate","makeInvaild"],indexes:[{name:"index_name",attributes:[{name:"name"},{name:"$$deleteAt$$"}],config:{unique:!0}}]},sourceFeedback:{attributes:{name:{notNull:!0,type:"varchar",params:{length:256}},platform:{notNull:!0,type:"varchar",params:{length:128}},url:{type:"varchar",params:{length:512}},creatorId:{notNull:!0,type:"ref",ref:"user"},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},sourcePlatform:{attributes:{name:{notNull:!0,type:"varchar",params:{length:256}}},inModi:!0,actionType:"crud",actions:Ae.genericActions,indexes:[{name:"index_name",attributes:[{name:"name"}],config:{unique:!0}}]},sourceTag:{attributes:{name:{notNull:!0,type:"varchar",params:{length:64}},level:{notNull:!0,type:"int",params:{width:4,signed:!0}},parentId:{type:"ref",ref:"sourceTag"},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},sourceTagRelation:{attributes:{sourceId:{notNull:!0,type:"ref",ref:"source"},sourceTagId:{notNull:!0,type:"ref",ref:"sourceTag"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},specTopic:{attributes:{title:{notNull:!0,type:"varchar",params:{length:256}},content:{type:"text"},picUrl:{type:"varchar",params:{length:256}},creatorId:{notNull:!0,type:"ref",ref:"user"},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"},publishTime:{type:"datetime"},type:{type:"enum",enumeration:["byNews","bySource"]},readNum:{type:"int",params:{width:4,signed:!0}},hotness:{ty
2pe:"decimal",params:{precision:10,scale:3}},subscribeNum:{type:"int",params:{width:4,signed:!0}},timerExecuteTime:{type:"datetime"},isDelete:{type:"boolean"},isRecommended:{type:"boolean"}},inModi:!0,actionType:"crud",actions:Ae.genericActions,indexes:[{name:"index_fulltext",attributes:[{name:"title"}],config:{type:"fulltext",parser:"ngram"}}]},sub:{attributes:{title:{notNull:!0,type:"varchar",params:{length:256}},deleted:{notNull:!0,type:"boolean"},creatorId:{notNull:!0,type:"ref",ref:"user"},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"},updateTime:{notNull:!0,type:"datetime"},keywords:{type:"varchar",params:{length:256}},areaList:{type:"object"},areaList2:{type:"object"},categoryList:{type:"object"},categoryList2:{type:"object"},platformTypeList:{type:"object"},sourceList:{type:"object"},beginTime:{type:"datetime"},endTime:{type:"datetime"},levelList:{type:"object"},status:{type:"enum",enumeration:["newCreate","syncing","syncFail","syncSuccess"]}},inModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","share","subscribe","cancelSubscribe","checkUpdate","delete","fetch","display"],indexes:[{name:"index_fulltext",attributes:[{name:"title"}],config:{type:"fulltext",parser:"ngram"}}]},subNews:{attributes:{subId:{notNull:!0,type:"ref",ref:"sub"},newsId:{notNull:!0,type:"ref",ref:"news"}},inModi:!0,actionType:"crud",actions:Ae.genericActions,indexes:[{name:"idx_etc",attributes:[{name:"subId"},{name:"$$deleteAt$$"},{name:"$$createAt$$"}]}]},subSource:{attributes:{subId:{notNull:!0,type:"ref",ref:"sub"},sourceId:{notNull:!0,type:"ref",ref:"source"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},subSourcePlatform:{attributes:{subId:{notNull:!0,type:"ref",ref:"sub"},sourcePlatformId:{notNull:!0,type:"ref",ref:"sourcePlatform"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},subscribe:{attributes:{userId:{notNull:!0,type:"ref",ref:"user"},topicId:{notNull:!0,type:"ref",ref:"topic"},timerExecuteTime:{type:"datetime"}},inModi:!0,actionType:"crud",actions:Ae.genericActions,indexes:[{name:"user_topic",attributes:[{name:"userId"},{name:"topicId"}],config:{unique:!0}}]},systemProvider:{attributes:{name:{notNull:!0,type:"varchar",params:{length:32}},systemId:{notNull:!0,type:"ref",ref:"system"},config:{type:"object"},sensitiveWordVersion:{type:"datetime"}},inModi:!0,actionType:"crud",actions:Ae.genericActions,relation:["owner","manager","auditor","editor","creator","superEditor"]},topic:{attributes:{title:{notNull:!0,type:"varchar",params:{length:256}},content:{type:"text"},beginTime:{type:"datetime"},endTime:{type:"datetime"},picUrl:{type:"varchar",params:{length:256}},uploadedPicUrl:{type:"varchar",params:{length:256}},picUrlType:{type:"enum",enumeration:["uploaded","default"]},fetch:{notNull:!0,type:"boolean"},display:{notNull:!0,type:"boolean"},deleted:{notNull:!0,type:"boolean"},opinion:{type:"varchar",params:{length:256}},sensitiveLevel:{type:"int",params:{width:4,signed:!0}},creatorId:{notNull:!0,type:"ref",ref:"user"},status:{notNull:!0,type:"enum",enumeration:["newCreate","syncing","syncFail","syncSuccess"]},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"},updateTime:{type:"datetime"},readNum:{type:"int",params:{width:4,signed:!0}},hotness:{type:"decimal",params:{precision:10,scale:3}},subscribeNum:{type:"int",params:{width:4,signed:!0}},timerExecuteTime:{type:"datetime"},lastVisitTime:{type:"datetime"},topicRuleId:{type:"ref",ref:"topicRule"},isSystemTopic:{type:"boolean"},summary:{type:"varchar",params:{length:256}},pattern:{type:"enum",enumeration:["intelligent","source"]},type:{type:"enum",enumeration:["news","livelihood","map","service","entertainment","other"]},tags:{type:"object"},titleKeyWords:{type:"object"},extractMode:{type:"enum",enumeration:["baidu","llm"]},platformTypeList:{type:"object"},contentType:{type:"enum",enumeration:["all","article","svideo"]},sourceList:{type:"object"},mustWords:{type:"varchar",params:{length:256}},mustNotWords:{type:"varchar",params:{length:256}},optionalWords:{type:"varchar",params:{length:256}},favor:{type:"boolean"},areaList:{type:"object"},areaList2:{type:"object"},gaodeAreaList:{type:"object"},sortType:{type:"enum",enumeration:["publishTime","correlation"]},newsPublishTime:{type:"datetime"},approvedNewsPublishTime:{type:"datetime"},uncheckedNewsPublishTime:{type:"datetime"},needRefresh:{type:"boolean"},lastUpdateTime:{type:"datetime"},applymentStatus:{type:"enum",enumeration:["normal","rejected","accepted"]},outlineTime:{type:"datetime"},mustNotSourceIdList:{type:"object"},condition:{notNull:!0,type:"int",params:{width:4,signed:!0}},collapse:{type:"boolean"},minNewsScore:{type:"decimal",params:{precision:8,scale:4}},isRuleActive:{type:"boolean"},dataDisplay:{type:"boolean"}},inModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","share","subscribe","cancelSubscribe","checkUpdate","delete","fetch","display"],indexes:[{name:"index_fulltext",attributes:[{name:"title"}],config:{type:"fulltext",parser:"ngram"}}]},topicApplyment:{attributes:{type:{notNull:!0,type:"enum",enumeration:["create","update","newsUpdate","remove"]},topicId:{type:"ref",ref:"topic"},creatorId:{notNull:!0,type:"ref",ref:"user"},auditorId:{type:"ref",ref:"user"},opinion:{type:"text"},name:{type:"varchar",params:{length:64}},picUrl:{type:"text"},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"},cleanTime:{type:"datetime"},changeRecord:{type:"object"},lastSubmitTime:{type:"datetime"},draftStep:{type:"varchar",params:{length:64}},forced:{type:"boolean"},iState:{type:"enum",enumeration:["draft","normal","rejected","accepted","deleted"]}},toModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","finish","accept","reject","reSubmit","delete"]},topicApplymentNews:{attributes:{topicApplymentId:{notNull:!0,type:"ref",ref:"topicApplyment"},topicNewsRelationId:{notNull:!0,type:"ref",ref:"topicNewsRelation"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},topicApplymentRecord:{attributes:{type:{notNull:!0,type:"enum",enumeration:["create","update","newsUpdate","remove"]},operType:{notNull:!0,type:"enum",enumeration:["cr-create","cr-modiName","cr-modiContent","cr-modiTag","cr-addNews","cr-deleteNews","cr-deleteTopic","au-accepted","au-rejected","au-deleteNews","au-modiTag","ma-visible","ma-offline","ma-inVisible"]},operContent:{notNull:!0,type:"object"},auditorId:{type:"ref",ref:"user"},creatorId:{type:"ref",ref:"user"},topicName:{notNull:!0,type:"varchar",params:{length:256}},topicId:{type:"ref",ref:"topic"},result:{type:"enum",enumeration:["accepted","rejected","online","offline"]},remark:{type:"text"},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"},readed:{type:"boolean"},topicApplymentId:{type:"ref",ref:"topicApplyment"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},topicNewsRelation:{attributes:{topicId:{notNull:!0,type:"ref",ref:"topic"},newsId:{notNull:!0,type:"ref",ref:"news"},updateTime:{type:"datetime"},notified:{type:"boolean"},sort:{type:"decimal",params:{precision:10,scale:6}},isTop:{type:"boolean"},rechecked:{notNull:!0,type:"boolean"},iState:{type:"enum",enumeration:["unchecked","approved","deleted"]}},inModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","delete","approve","recover"],indexes:[{name:"idx_etc",attributes:[{name:"topicId"},{name:"$$deleteAt$$"},{name:"$$createAt$$"}]}]},topicPositionRelation:{attributes:{topicId:{notNull:!0,type:"ref",ref:"topic"},positionId:{notNull:!0,type:"ref",ref:"position"},iconUrl:{type:"varchar",params:{length:256}}},inModi:!0,actionType:"crud",actions:Ae.genericActions},topicRule:{attributes:{keywords:{type:"varchar",params:{length:256}},areaList:{type:"object"},areaList2:{type:"object"},categoryList:{type:"object"},categoryList2:{type:"object"},beginTime:{type:"datetime"},endTime:{type:"datetime"},levelList:{type:"object"},platformTypeList:{type:"object"},sourceList:{type:"object"},topicList:{type:"object"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},topicRuleSource:{attributes:{topicRuleId:{notNull:!0,type:"ref",ref:"topicRule"},sourceId:{notNull:!0,type:"ref",ref:"source"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},topicRuleSourcePlatform:{attributes:{topicRuleId:{notNull:!0,type:"ref",ref:"topicRule"},sourcePlatformId:{notNull:!0,type:"ref",ref:"sourcePlatform"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},topicStats:{attributes:{topicId:{notNull:!0,type:"ref",ref:"topic"},readNum:{type:"int",params:{width:4,signed:!0}},hotness:{type:"decimal",params:{precision:10,scale:3}},subscribeNum:{type:"int",params:{width:4,signed:!0}},timerExecuteTime:{type:"datetime"},lastVisitTime:{type:"datetime"},lastAuditTime:{type:"datetime"},topicApplymentRecordId:{type:"ref",ref:"topicApplymentRecord"},lastRecheckTime:{type:"datetime"},recheckTopicApplymentRecordId:{type:"ref",ref:"topicApplymentRecord"}},inModi:!0,actionType:"crud",actions:Ae.genericActions},userAvatar:{attributes:{userId:{notNull:!0,type:"ref",ref:"user"},avatarId:{notNull:!0,type:"int",params:{width:4,signed:!0}}},actionType:"crud",actions:Ae.genericActions,indexes:[{name:"index_user_unique",attributes:[{name:"userId"}],config:{unique:!0}}]},userBehavior:{attributes:{userId:{type:"ref",ref:"user"},entity:{notNull:!0,type:"varchar",params:{length:32},ref:["comment","news","specTopic","subscribe","topic"]},entityId:{type:"varchar",params:{length:64}},device:{type:"varchar",params:{length:64}},action:{notNull:!0,type:"varchar",params:{length:64}},scene:{type:"varchar",params:{length:256}},applicationId:{notNull:!0,type:"ref",ref:"application"},route:{type:"varchar",params:{length:256}},fromRoute:{type:"varchar",params:{length:256}}},inModi:!0,actionType:"crud",actions:Ae.genericActions,indexes:[{name:"index_entity_entityId_action",attributes:[{name:"entity"}
2,{name:"entityId"},{name:"action"}]},{name:"index_entity_entityId_application",attributes:[{name:"entity"},{name:"entityId"},{name:"action"},{name:"applicationId"}]},{name:"index_entity_entityId_action_$$createAt$$",attributes:[{name:"entity"},{name:"entityId"},{name:"action"},{name:"$$createAt$$"}]},{name:"index_entity_action_application_$$createAt$$",attributes:[{name:"entity"},{name:"action"},{name:"applicationId"},{name:"$$createAt$$"}]},{name:"index_userId_entity_entityId_action",attributes:[{name:"userId"},{name:"entity"},{name:"entityId"},{name:"action"}]},{name:"index_userId_entity_entityId_action_$$createAt$$",attributes:[{name:"userId"},{name:"entity"},{name:"entityId"},{name:"action"},{name:"$$createAt$$"}]}]},userDailyPush:{attributes:{userId:{notNull:!0,type:"ref",ref:"user"},date:{notNull:!0,type:"datetime"}},actionType:"crud",actions:Ae.genericActions,indexes:[{name:"index_userId_date",attributes:[{name:"userId"},{name:"date"}]}]},userSetting:{attributes:{userId:{notNull:!0,type:"ref",ref:"user"},dailyEventPush:{type:"boolean"},subscribeEventPush:{type:"boolean"},preferTopicTags:{type:"varchar",params:{length:256}},hasChoosen:{type:"boolean"}},actionType:"crud",actions:Ae.genericActions},welcomePopup:{attributes:{title:{notNull:!0,type:"varchar",params:{length:64}},modalUrl:{type:"varchar",params:{length:256}},buttonText:{type:"varchar",params:{length:16}},url:{type:"varchar",params:{length:256}},beginTime:{type:"datetime"},endTime:{type:"datetime"},systemProviderId:{notNull:!0,type:"ref",ref:"systemProvider"},iState:{type:"enum",enumeration:["online","offline"]}},inModi:!0,actionType:"crud",actions:["count","stat","download","select","aggregate","create","remove","update","offline","online"]}},zt={log:{},modi:Ee,oper:$e,captcha:Ge,email:Qe,loginName:rt,message:ot,mobile:ht,notification:pt,parasite:{},toDo:It,token:$t,user:Me,userEntityGrant:{},userWechatPublicTag:Tt,wechatLogin:{},wechatMenu:Ct,wechatPublicTag:Pt,activity:Rt,column:Nt,leaderNewsApplyment:Mt,news:Ft,newsApplyment:Dt,pushTask:Lt,source:Bt,sub:{},topic:{},topicApplyment:Ut,topicNewsRelation:Wt,welcomePopup:{iState:{stm:{offline:["online","offline"],online:["offline","online"]},is:"offline"}}},qt={log:{icon:{undo:"",redo:""}},modi:{icon:{apply:"",abandon:""},color:{iState:{active:"#0000FF",applied:"#008000",abandoned:"#A9A9A9"}}},oper:{icon:{undo:"",redo:""},color:{iState:{normal:"#229954",rollbacked:"#2C3E50"}}},application:{color:{type:{wechatMp:"#32CD32",web:"#00FF7F",wechatPublic:"#90EE90",native:"#008000"}}},area:{color:{level:{province:"#00FF7F",city:"#1E90FF",district:"#4682B4",street:"#808080",country:"#2F4F4F"}}},captcha:{icon:{send:"",success:"",fail:""},color:{iState:{unsent:"#0000FF",sending:"#FFA500",sent:"#008000",failure:"#A9A9A9"},type:{login:"#0000FF",changePassword:"#FF0000",confirm:"#008000"}}},changePasswordTemp:{color:{result:{success:"#008000",fail:"#FF0000"}}},domain:{color:{protocol:{"http:":"#0000FF","https:":"#4682B4"}}},email:{icon:{enable:"",disable:""},color:{ableState:{enabled:"#008000",disabled:"#A9A9A9"}}},extraFile:{color:{origin:{s3:"#FFA500",qiniu:"#37caff",wechat:"#2aae67",ctyun:"#ff0000",aliyun:"#1677ff",tencent:"#0052d9",local:"#A9A9A9",unknown:"#A9A9A9"},type:{image:"#0000FF",video:"#008000",audio:"#F5DEB3",file:"#EEE8AA"},uploadState:{success:"#008000",failed:"#FF0000",uploading:"#0000FF"}}},livestream:{color:{liveonly:{online:"#008000",offline:"#A9A9A9"}}},loginName:{icon:{enable:"",disable:""},color:{ableState:{enabled:"#008000",disabled:"#A9A9A9"}}},message:{icon:{succeed:"#0000FF",fail:"#FF0000",visit:"#00800"},color:{visitState:{unvisited:"#0000FF",visited:"#ADD8E6"},iState:{sending:"#EEE8AA",success:"#008000",failure:"#FF0000"},weight:{high:"#FF0000",medium:"#0000FF",low:"#A9A9A9"}}},mobile:{icon:{enable:"",disable:""},color:{ableState:{enabled:"#008000",disabled:"#A9A9A9"}}},notification:{icon:{succeed:"#0000FF",fail:"#FF0000"},color:{iState:{sending:"#EEE8AA",success:"#008000",failure:"#9A9A9A"},channel:{wechatMp:"#008000",jPush:"#0000FF",jim:"#0000FF",wechatPublic:"#008000",sms:"#000000",email:"#000000"}}},parasite:{icon:{wakeup:"",cancel:"",qrcode:""}},passport:{color:{type:{password:"#7DC9E7",sms:"#D3DDE6",email:"#F95A37",wechatWeb:"#F298A6",
2wechatPublic:"#D3ADF7",wechatMp:"#ADDCCA",wechatMpForWeb:"#FDC454",wechatPublicForWeb:"#C0A27C",wechatNative:"#C0A27C"}}},smsTemplate:{color:{origin:{ali:"#1677ff",tencent:"#0052d9",ctyun:"#ff0000",qiniu:"#37caff"}}},toDo:{icon:{complete:""},color:{iState:{active:"#0000FF",done:"#008000"}}},token:{icon:{enable:"",disable:""},color:{ableState:{enabled:"#008000",disabled:"#A9A9A9"}}},user:{icon:{verify:"",accept:"",reject:"",activate:"",enable:"",disable:"",mergeTo:"",mergeFrom:"",play:""},color:{userState:{normal:"#0000FF",disabled:"#FF0000",merged:"#9A9A9A",shadow:"#D3D3D3"},idState:{unverified:"#FF0000",verified:"#0000FF",verifying:"#EEE8AA"},gender:{male:"#0000FF",female:"#EE82EE"},idCardType:{"ID-Card":"#E0FFFF","Mainland-passport":"#2E8B57",passport:"#2F4F4F"}}},userEntityGrant:{icon:{claim:"",disable:""},color:{type:{grant:"#0000FF",transfer:"#008000"},qrCodeType:{webForWechatPublic:"#00FF7F",wechatMpDomainUrl:"#008000",wechatMpWxaCode:"#32CD32",wechatPublic:"#90EE90",wechatPublicForMp:"#9ACD32"},rule:{single:"#0000FF",all:"#FF0000",free:"#008000"},ruleOnRow:{single:"#0000FF",all:"#FF0000",free:"#008000"}}},userWechatPublicTag:{icon:{sync:"",success:"",fail:""},color:{iState:{wait:"#0000FF",success:"#008000",fail:"#FF0000"}}},wechatLogin:{icon:{success:""},color:{type:{bind:"#4682B4",login:"#0000FF"},qrCodeType:{webForWechatPublic:"#00FF7F",wechatMpDomainUrl:"#008000",wechatMpWxaCode:"#32CD32",wechatPublic:"#90EE90",wechatPublicForMp:"#9ACD32"}}},wechatMenu:{icon:{publish:"",success:"",fail:""},color:{iState:{wait:"#0000FF",success:"#008000",fail:"#FF0000"}}},wechatPublicTag:{icon:{sync:"",success:"",fail:""},color:{iState:{wait:"#0000FF",success:"#008000",fail:"#FF0000"}}},wechatQrCode:{color:{type:{webForWechatPublic:"#00FF7F",wechatMpDomainUrl:"#008000",wechatMpWxaCode:"#32CD32",wechatPublic:"#90EE90",wechatPublicForMp:"#9ACD32"}}},wechatUser:{color:{origin:{mp:"#32CD32",web:"#00FF7F",public:"#90EE90",native:"#008000"}}},activity:{icon:{offline:"",online:""},color:{iState:{online:"#fff",offline:"#fff"}}},column:{icon:{hide:"",show:""},color:{iState:{normal:"#bd9006",shadow:"#0cbd06"}}},comment:{color:{type:{outstation:"#fff",localStation:"#fff"}}},dailyChannelTrafficData:{color:{channel:{wuhan:"#fff",guanzhu:"#fff"}}},leaderNews:{color:{type:{leader:"#bd9006",general:"#bd9006"}}},leaderNewsApplyment:{icon:{accept:"",reject:""},color:{iState:{normal:"#bd9006",accepted:"#0cbd06",rejected:"#d12b2b"},type:{leader:"#bd9006",general:"#bd9006"}}},news:{icon:{offline:"",online:"",createEvent:""},color:{itemType:{article:"#fff",svideo:"#fff",express:"#fff",gallery:"#fff"},iState:{online:"#fff",offline:"#fff",hidden:"#fff"}}},newsApplyment:{icon:{accept:"",reject:"",reSubmit:""},color:{type:{create:"#fff",update:"#fff"},iState:{normal:"#fff",accepted:"#fff",rejected:"#fff",deleted:"#fff",draft:"#fff"}}},newsContent:{color:{itemType:{article:"#fff",svideo:"#fff",express:"#fff",gallery:"#fff"},displayType:{carousel:"#fff",video:"#fff",map:"#fff"}}},pushTask:{icon:{},color:{targetType:{news:"#1890ff",specTopic:"#722ed1",topic:"#13c2c2",activity:"#fa8c16"},timingType:{immediate:"#1890ff",scheduled:"#722ed1"},audienceType:{all:"#52c41a"},recallType:{none:"#8c8c8c",full:"#52c41a",partial:"#faad14"},iState:{draft:"#8c8c8c",pending:"#faad14",rejected:"#ff4d4f",sent:"#52c41a",recalled:"#722ed1",deleted:"#bfbfbf"}}},sensitiveWord:{color:{status:{"\u6709\u6548":"#fff","\u65e0\u6548":"#fff"}}},source:{icon:{validate:"",makeInvaild:""},color:{type:{orgMedia:"#fff",weMedia:"#fff"},iState:{normal:"#fff",abnormal:"#fff"}}},sub:{icon:{share:"",subscribe:"",cancelSubscribe:"",checkUpdate:"",delete:"",fetch:"",display:""},color:{status:{newCreate:"#fff",syncing:"#fff",syncFail:"#fff",syncSuccess:"#fff"}}},topic:{icon:{share:"",subscribe:"",cancelSubscribe:"",checkUpdate:"",delete:"",fetch:"",display:""},color:{status:{newCreate:"#fff",syncing:"#fff",syncFail:"#fff",syncSuccess:"#fff"}}},topicApplyment:{icon:{accept:"",reject:"",reSubmit:""},color:{type:{create:"#fff",update:"#fff",newsUpdate:"#fff",remove:"#fff"},iState:{draft:"#fff",normal:"#fff",accepted:"#fff",rejected:"#fff",deleted:"#fff"}}},topicApplymentRecord:{color:{type:{create:"#fff",update:"#fff",newsUpdate:"#fff",remove:"#fff"},operType:{"cr-create":"#fff","cr-modiName":"#fff","cr-modiContent":"#fff","cr-modiTag":"#fff","cr-addNews":"#fff","cr-deleteNews":"#fff","cr-deleteTopic":"#fff","au-
2accepted":"#fff","au-rejected":"#fff","au-deleteNews":"#fff","au-modiTag":"#fff","ma-visible":"#fff","ma-inVisible":"#fff","ma-offline":"#fff"}}},topicNewsRelation:{icon:{approve:"",delete:"",recover:""},color:{iState:{unchecked:"#fff",approved:"#fff",deleted:"#fff"}}},welcomePopup:{icon:{offline:"",online:""},color:{iState:{online:"#fff",offline:"#fff"}}}};var Vt=n(60848);const Gt=[{entity:"topicApplyment",type:"logical",action:"create",checker(e,t,n){const{data:r}=e;if(r){const{id:e,iState:t}=r;"normal"===t&&(r.lastSubmitTime=new Date)}}},{entity:"topicApplyment",type:"logical",action:["update","reSubmit","finish"],checker(e,t,n){const{data:r,action:i}=e;if(["reSubmit","finish"].includes(i))r.lastSubmitTime=new Date;else if(r){const{iState:e}=r;"normal"===e&&(r.lastSubmitTime=new Date)}}},{entity:"topicApplyment",type:"logicalData",action:"accept",mt:"apply",checker:(e,t)=>{var n;const{filter:r,data:i}=e;(0,ge.v)(!(i instanceof Array));const o=i.topic;if(!o||null===o||void 0===o||null===(n=o.data)||void 0===n||!n.tags)return(0,Vt.T)((()=>t.select("topicApplyment",{data:{id:1,topicId:1,topic:{id:1,tags:1,type:1},modi$entity:{$entity:"modi",data:{id:1,targetEntity:1,entity:1,entityId:1,action:1,iState:1,data:1,filter:1},filter:{targetEntity:"topic"}}},filter:r},{})),(e=>{var t,n;const[r]=e,{topic:i,modi$entity:o}=r;let a=!1;const s=null===o||void 0===o||null===(t=o[0])||void 0===t?void 0:t.data,c=null===i||void 0===i?void 0:i.tags;a=null!==s&&void 0!==s&&s.tags?(null===s||void 0===s?void 0:s.tags.length)>0:!!(c&&(null===c||void 0===c?void 0:c.length)>0);const l=null!==(n=null===s||void 0===s?void 0:s.type)&&void 0!==n?n:null===i||void 0===i?void 0:i.type;if(!a&&"map"!==l)throw new X.OakPreConditionUnsetException("\u4e3b\u9898\u9700\u81f3\u5c11\u6dfb\u52a0\u4e00\u4e2a\u6807\u7b7e","topicApplyment")}));var a,s,c;if(!((null===o||void 0===o||null===(a=o.data)||void 0===a?void 0:a.tags)&&(null===o||void 0===o||null===(s=o.data)||void 0===s||null===(c=s.tags)||void 0===c?void 0:c.length)>0||!1))throw new X.OakPreConditionUnsetException("\u4e3b\u9898\u9700\u81f3\u5c11\u6dfb\u52a0\u4e00\u4e2a\u6807\u7b7e","topicApplyment")}}],Yt=[{entity:"invitationCode",type:"logical",action:"create",checker(e,t,n){const{data:r}=e;r&&(r.expiresAt=Date.now()+6048e5)}}];var Kt=n(5638);const Xt=[...Gt,...Yt,...[{entity:"block",type:"logical",action:"remove",checker:(e,t,n)=>t.operate("blockNewsRelation",{id:(0,Kt.generateNewId)(),action:"remove",data:{},filter:{block:e.filter}},{})}],...[{entity:"specTopic",type:"logical",action:"remove",checker:(e,t,n)=>t.operate("block",{id:(0,Kt.generateNewId)(),action:"remove",data:{},filter:{specTopic:e.filter}},{})},{entity:"specTopic",type:"logical",action:"remove",checker:(e,t,n)=>t.operate("columnEntityRelation",{id:(0,Kt.generateNewId)(),action:"remove",data:{},filter:{specTopic:e.filter}},{})},{entity:"specTopic",type:"logical",action:"remove",checker:(e,t,n)=>t.operate("extraFile",{id:(0,Kt.generateNewId)(),action:"remove",data:{},filter:{specTopic:e.filter}},{})},{entity:"specTopic",type:"logical",action:"create",checker:(e,t,n)=>{const{data:r}=e;if(r instanceof Array)for(const i of r)void 0==i.isRecommended&&(i.isRecommended=!1);else void 0==(null===r||void 0===r?void 0:r.isRecommended)&&(r.isRecommended=!1)}}],...[{type:"logical",action:"remove",entity:"sourceTag",checker:(e,t,n)=>t.operate("sourceTagRelation",{id:(0,Kt.generateNewId)(),action:"remove",data:{},filter:{sourceTag:e.filter}},{})}]];class Jt{constructor(){this.callbacks=[]}subscribe(e){return this.callbacks.push(e),()=>{(0,pe.pull)(this.callbacks,e)}}publish(e){this.callbacks.forEach((t=>t(e)))}clearSubscribes(){this.callbacks=[]}}class Qt extends X.OakException{constructor(e){super("\u73af\u5883\u521d\u59cb\u5316\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u6388\u6743\u60c5\u51b5"),this.error=e}}X.OakException;class Zt extends Jt{get(e){throw new Error("Method not implemented.")}action(e){throw new Error("Method not implemented.")}constructor(e){super(),this.cache=void 0,this.cache=e}}class en extends Jt{constructor(e,t,n,r){super(),this.cache=void 0,this.token=void 0,this.storage=void 0,this.application=void 0,this.state=void 0,this.moduleName=void 0,this.cache=e,this.token=t,this.storage=n,this.application=r,this.state=void 0,this.moduleName="frontend"}setModuleName(e){this.moduleName=e,this.publish()}getModuleName(){return this.moduleName}async setCollapsed(e){await this.storage.save("console:collapsed",e),this.publish()}async getCollapsed(){return!!await this.storage.load("console:collapsed")}async setUsername(e){await this.storage.save("console:username",e),this.publish()}async getUsername(){return await this.storage.load("console:username")}async setPassword(e){await this.storage.save("console:password",e),this.publish()}async getPassword(){return await this.storage.load("console:password")}async clearPassword(){await this.storage.remove("console:password"),this.publish()}async initialize(){const e=this.getSystemProviderId();
2try{this.token.getUserId(),this.getSystemProvider(e),await this.loadData()}catch(t){if(!(t instanceof ie))throw t}this.setState({mode:"systemProvider",id:e})}async loadData(){const{result:e}=await this.cache.exec("loadRelations",{entities:["systemProvider"]},void 0,!0)}getSystemProviderId(){var e;const t=this.application.getApplication();return null===t||void 0===t||null===(e=t.system)||void 0===e?void 0:e.entityId}async getSystemProvider(e){if(e){const[t]=this.cache.get("systemProvider",{data:{id:1,systemId:1,name:1,sensitiveWordVersion:1},filter:{id:e}});if(t)return t;const{data:n}=await this.cache.refresh("systemProvider",{data:{id:1,systemId:1,name:1,sensitiveWordVersion:1},filter:{id:e}});return n[0]}}getMode(){var e;return null===(e=this.state)||void 0===e?void 0:e.mode}setState(e){this.state=e,this.storage.save("Feature:Console:IState",e),this.publish()}getState(){return this.state}}const tn=[{name:"Monitor",icon:"FundViewOutlined"},{name:"Create",icon:"EditOutlined"},{name:"Manage",icon:"AppstoreOutlined",children:[{name:"ColumnManage"},{name:"PositionManage"}]},{name:"Auditing",icon:"AppstoreOutlined"}],nn=[{name:"topicApplymentUpsert",url:"/topic/applyment/upsert",parent:"Create",entity:"topic",action:"create",paths:["systemProvider"]},{name:"myTopic",url:"/topic/myTopic",parent:"Create",entity:"topic",action:"create",paths:["systemProvider"]},{name:"topicMaintain",url:"/topic/list",parent:"Create",entity:"topic",action:"select",paths:["systemProvider"]}],rn=[{name:"source",url:"/source/list",parent:"Manage",entity:"source",action:"select",paths:["systemProvider"]},{name:"sensitiveWord",url:"/sensitiveWord",parent:"Manage",entity:"sensitiveWord",action:"update",paths:["systemProvider"]},{name:"auth",url:"/userRelation/manage",parent:"Manage",entity:"systemProvider",action:"update",paths:[]},{name:"operRecord",url:"/operRecord",parent:"Manage",entity:"systemProvider",action:"select",paths:[]},{name:"appManage",url:"/",parent:"Manage",entity:"topic",action:"update",paths:["systemProvider"]},{name:"codeManage",url:"/invitationCode/list",parent:"Manage",entity:"invitationCode",action:"create",paths:["systemProvider"]},{name:"topicManage",url:"/topicManage",parent:"Manage",entity:"topic",action:"update",paths:["systemProvider"]},{name:"articleManage",url:"/articleManage",parent:"Manage",entity:"news",action:"update",paths:["systemProvider"]},{name:"pushManage",url:"/pushManage/list",parent:"Manage",entity:"news",action:"update",paths:["systemProvider"]},{name:"pushAudit",url:"/pushAudit/list",parent:"Auditing",entity:"news",action:"update",paths:["systemProvider"]},{name:"NearPositionManage",url:"/news/positionManage",parent:"PositionManage",entity:"news",action:"update",paths:["systemProvider"]},{name:"NearbyManage",url:"/news/position",parent:"PositionManage",entity:"news",action:"update",paths:["systemProvider"]},{name:"newsPositionManage",url:"/newsPosition",parent:"PositionManage",entity:"newsPosition",action:"update",paths:["news.systemProvider"]},{name:"newsChoose",url:"/newsChoose",parent:"ColumnManage",entity:"news",action:"update",paths:["systemProvider"]},{name:"columnEntityRelationList",url:"/columnEntityRelation/list",parent:"ColumnManage",entity:"columnEntityRelation",action:"update",paths:["news.systemProvider"]},{name:"columnList",url:"/column/list",parent:"ColumnManage",entity:"column",action:"update",paths:["systemProvider"]},{name:"specTopicList",url:"/specTopic/list",parent:"ColumnManage",entity:"specTopic",action:"update",paths:["systemProvider"]},{name:"newsApplymentDraft",url:"/newsApplyment/draft",parent:"ColumnManage",entity:"news",action:"update",paths:["systemProvider"]},{name:"news",url:"/news",parent:"Monitor",entity:"news",action:"select",paths:["systemProvider"]},{name:"hot",url:"/hot",parent:"Monitor",entity:"hotRank",action:"select",paths:["systemProvider"]},{name:"pushMonitor",url:"/pushMonitor/list",parent:"Monitor",entity:"news",action:"select",paths:["systemProvider"]},{name:"createByMonitor",url:"/newsApplyment/middle",parent:"Monitor",entity:"newsApplyment",action:"update",paths:["systemProvider"]},{name:"systemProviderList",url:"/systemProvider/list",parent:"System",entity:"systemProvider",action:"create",paths:[]},{name:"topicAuditing2",url:"/topicApplyment/list",parent:"Auditing",entity:"topicApplyment",action:"accept",paths:["systemProvider"]},{name:"topicRecheck",url:"/topicRecheck",parent:"Auditing",entity:"topicApplyment",action:"accept",paths:["systemProvider"]},{name:"leaderNewsApplyment",url:"/leaderNewsApplyment",parent:"Auditing",entity:"leaderNews",action:"update",paths:["systemProvider"]},{name:"newsApplyment",url:"/newsApplyment",parent:"Auditing",entity:"newsApplyment",action:"update",paths:["systemProvider"]}];class on extends Jt{constructor(e,t){super(),this.contextMenuFactory=void 0,this.console=void 0,this.menus=void 0,this.contextMenuFactory=e,this.console=t,this.console.subscribe((()=>{this.refreshMenus()}))}makeMenus(e,t,n){let r=[];if(t&&n){this.contextMenuFactory.setMenus(e);const i=this.contextMenuFactory.getMenusByContext(t,n),o=(0,pe.groupBy)(i,"parent"),a=e=>{const{name:t,icon:n,url:r,children:i}=e;let s={name:t,icon:n,url:r,children:o[t]};for(const o of i||[]){var c;let e=a(o);null!==e&&void 0!==e&&null!==(c=e.children)&&void 0!==c&&c.length&&(s.children||(s.children=[]),s.children.push(e))}return s};r=tn.map((e=>a(e))).filter((e=>!!e.children))}return r}refreshMenus(){const e=this.console.getModuleName(),t=this.console.getState();switch(e){case"frontend":this.menus=this.makeMenus(nn,"systemProvider",null===t||void 0===t?void 0:t.id);break;case"console":this.menus=this.makeMenus(rn,"systemProvider",null===t||void 0===t?void 0:t.id);break;default:this.menus=[]}this.publish()}getMenus(){return this.menus}}const an="Feature:Frontend:IState";class sn extends Jt{constructor(e,t,n,r){super(),this.cache=void 0,this.token=void 0,this.storage=void 0,this.application=void 0,this.state=void 0,this.transparent=void 0,this.cache=e,this.token=t,this.storage=n,this.application=r,this.state=void 0,this.transparent=!1}async getStorage(){const e=await this.storage.load(an);this.state=e}async getSubscribeDate(){const e=await this.storage.load(an);return null===e||void 0===e?void 0:e.readDate}async setSubscribeDate(e){const t=await this.storage.load(an)||{};t.readDate=e,this.storage.save(an,t)}
2setTransparent(e){this.transparent=!0,this.publish()}getTransparent(){return this.transparent}}const cn={},ln=["news","newsContent","newsStatistic","userBehavior","topic","topicStats","topicRule","topicRuleSource","topicRuleSourcePlatform","topicNewsRelation","fieldTopicRelation","qnas","category","field","sourcePlatform","systemProvider","source","area2","categoryTencent","sourceTag","sourceTagRelation","qnaRecommendQuestion","leaderNews","advertisement","invitationCode","newsPosition","newsPositionMapping","column","columnEntityRelation","specTopic","block","blockNewsRelation","position","newsPositionRelation","topicPositionRelation","newsApplyment","activity","activityLotteryTier","activityLotteryDailyQuota","activityInviteHelp","activityLotteryRecord","activityPrize","activityUserCode","welcomePopup","pushTask","appVersion","smsTemplate","userAvatar"],un={topic:["share","subscribe","cancelSubscribe","create","update"],smsTemplate:["create","update"],userAvatar:["create","update"]},dn={attrUpdateMatrix:{},actionDefDict:zt,authDeduceRelationMap:cn,selectFreeEntities:ln,updateFreeDict:un,cacheSavedEntities:[]},hn={styleDict:qt};var fn=n(50598),pn=n(98598),gn=n(65201),yn=n(44139),mn=n(85402),vn=n(25007);class bn extends H.OakException{}function wn(e,t){console.warn(`attribute miss: entity: ${e}, attr: ${t}`)}class xn extends mn.wU{store;seq;activeTxnDict;stat;getNextSeq(e){if(this.seq[e]){const t=this.seq[e];return this.seq[e]++,t}return this.seq[e]=2,1}setMaxSeq(e,t){this.seq[e]?this.seq[e]<t&&(this.seq[e]=t):this.seq[e]=t}supportMultipleCreate(){return!1}supportManyToOneJoin(){return!1}resetInitialData(e,t){this.store={};const n=Date.now(),r=this.getSchema();for(const i in e){if(!r[i])throw new Error(`reset unknown entity:[${i}]`);const{attributes:t}=r[i];this.store[i]={};for(const r of e[i]){for(const e in t)void 0===r[e]&&Object.assign(r,{[e]:null});if(r[fn.CreateAtAttribute]||Object.assign(r,{[fn.CreateAtAttribute]:n}),r[fn.DeleteAtAttribute]||Object.assign(r,{[fn.DeleteAtAttribute]:null}),r[fn.UpdateAtAttribute]||Object.assign(r,{[fn.UpdateAtAttribute]:n}),r[X.SeqAttribute])this.setMaxSeq(i,r[X.SeqAttribute]+1);else{const e=this.getNextSeq(i);Object.assign(r,{[X.SeqAttribute]:e})}(0,ge.v)(r.id&&!r.id.includes(".")),(0,pe.set)(this.store,`${i}.${r.id}.$current`,r)}}t&&(this.stat=t)}getCurrentData(e){const t={};for(const n in this.store)if(!e||e.includes(n)){t[n]=[];for(const e in this.store[n])t[n]?.push(this.store[n][e].$current)}return t}constructor(e){super(e),this.store={},this.activeTxnDict={},this.stat={create:0,update:0,remove:0,commit:0},this.seq={}}constructRow(e,t,n){let r=(0,pe.cloneDeep)(e.$current);return t.getCurrentTxnId()&&e.$txnId===t.getCurrentTxnId()?e.$next?e.$current?Object.assign({},r,e.$next,t instanceof ye.V&&{[fn.UpdateAtAttribute]:1}):Object.assign({},r,e.$next,t instanceof ye.V&&{[fn.CreateAtAttribute]:1,[fn.UpdateAtAttribute]:1}):r&&n?.includedDeleted?Object.assign({},r,{[fn.DeleteAtAttribute]:1}):null:r}testFilterFns(e,t,n,r){const{self:i,otm:o,mto:a}=r;for(const s of i)if(!s(e,t,n))return!1;for(const s of a)if(!s(e,t,n))return!1;for(const s of o)if(!s(e,t,n))return!1;return!0}translateLogicFilter(e,t,n,r,i,o){const a=[],s=[],c=[];switch(r){case"$and":{const l=n[r].map((n=>this.translateFilterInner(e,t,n,i,o)));a.push(...l.map((e=>e.self)).flat()),s.push(...l.map((e=>e.otm)).flat()),c.push(...l.map((e=>e.mto)).flat());break}case"$or":{const l=n[r].map((n=>this.translateFilterInner(e,t,n,i,o)));l.sort(((e,t)=>t.mto.length>0?-1:e.mto.length>0?1:t.otm.length>0?-1:e.otm.length>0?1:0));const u=(e,t,n)=>{for(const r of l)if(this.testFilterFns(e,t,n,r))return!0;return!1},d=l[l.length-1];d.mto.length>0?c.push(u):d.otm.length>0?s.push(u):a.push(u);break}case"$not":{const l=n[r],u=this.translateFilterInner(e,t,l,i,o),d=(e,t,n)=>!this.testFilterFns(e,t,n,u);u.otm.length>0?s.push(d):u.mto.length>0?c.push(d):a.push(d);break}default:(0,ge.v)(!1,`${r}\u7b97\u5b50\u6682\u4e0d\u652f\u6301`)}return{self:a,otm:s,mto:c}}translateExpressionNode(e,t,n,r){if((0,yn.isExpression)(t)){const r=Object.keys(t)[0],i=t[r];
2if((0,yn.opMultipleParams)(r)){const t=i.map((t=>this.translateExpressionNode(e,t,n,i)));return(e,n)=>{let i=!1,o=t.map((t=>{if("function"===typeof t){const r=t(e,n);return"function"===typeof r&&(i=!0),r}return t}));if(!i)return(0,yn.execOp)(r,o);const a=e=>(o=o.map((t=>{if("function"===typeof t){return t(e)}return t})),o.find((e=>"function"===typeof e))?a:(0,yn.execOp)(r,o));return a}}{const t=this.translateExpressionNode(e,i,n,i);return"function"===typeof t?(e,n)=>{let i=t(e,n);if("function"===typeof i){const e=t=>(i=i(t),"function"===typeof i?e:i);return e}return(0,yn.execOp)(r,i)}:()=>(0,yn.execOp)(r,t)}}return(0,pn.isRefAttrNode)(t)?(n,i)=>{if(t.hasOwnProperty("#attr")){const i=n[t["#attr"]];return void 0===i&&r?.warnWhenAttributeMiss&&wn(e,t["#attr"]),i}{(0,ge.v)(t.hasOwnProperty("#refId"));const{"#refId":e,"#refAttr":n}=t;if(i.hasOwnProperty(e))return i[e][n];const r=t=>t.hasOwnProperty(e)?t[e][n]:r;return r}}:t}translateExpression(e,t,n,r){const i=this.translateExpressionNode(e,t,n,r);return(e,t)=>{if("function"!==typeof i)return i;return i(e,t)}}translateFulltext(e,t,n,r){const{[e]:{indexes:i}}=this.getSchema(),o=i.find((e=>e.config&&"fulltext"===e.config.type)),{attributes:a}=o,{$search:s}=t;return t=>{const i=this.constructRow(t,n,r);if(i)for(const n of a){const{name:t}=n,o=i[t];if(void 0===o&&r?.warnWhenAttributeMiss&&wn(e,t),"string"===typeof o&&i[t].includes(s))return!0}return!1}}translatePredicate(e,t,n,r,i){switch(n){case"$gt":return n=>{const o=t?(0,pe.get)(n,t):n;return void 0===o&&i?.warnWhenAttributeMiss&&wn(e,t),["number","string"].includes(typeof o)&&o>r};case"$lt":return n=>{const o=t?(0,pe.get)(n,t):n;return void 0===o&&i?.warnWhenAttributeMiss&&wn(e,t),["number","string"].includes(typeof o)&&o<r};case"$gte":return n=>{const o=t?(0,pe.get)(n,t):n;return void 0===o&&i?.warnWhenAttributeMiss&&wn(e,t),["number","string"].includes(typeof o)&&o>=r};case"$lte":return n=>{const o=t?(0,pe.get)(n,t):n;return void 0===o&&i?.warnWhenAttributeMiss&&wn(e,t),["number","string"].includes(typeof o)&&o<=r};case"$eq":return n=>{const o=t?(0,pe.get)(n,t):n;return void 0===o&&i?.warnWhenAttributeMiss&&wn(e,t),["number","string"].includes(typeof o)&&o===r};case"$ne":return n=>{const o=t?(0,pe.get)(n,t):n;return void 0===o&&i?.warnWhenAttributeMiss&&wn(e,t),["number","string"].includes(typeof o)&&o!==r};case"$between":return n=>{const o=t?(0,pe.get)(n,t):n;return void 0===o&&i?.warnWhenAttributeMiss&&wn(e,t),["number","string"].includes(typeof o)&&o>=r[0]&&o<=r[1]};case"$mod":return n=>{const o=t?(0,pe.get)(n,t):n;return void 0===o&&i?.warnWhenAttributeMiss&&wn(e,t),"number"===typeof o&&o%r[0]===r[1]};case"$startsWith":return n=>{const o=t?(0,pe.get)(n,t):n;return void 0===o&&i?.warnWhenAttributeMiss&&wn(e,t),["string"].includes(typeof o)&&o.startsWith(r)};case"$endsWith":return n=>{const o=t?(0,pe.get)(n,t):n;return void 0===o&&i?.warnWhenAttributeMiss&&wn(e,t),["string"].includes(typeof o)&&o.endsWith(r)};case"$includes":return n=>{const o=t?(0,pe.get)(n,t):n;return void 0===o&&i?.warnWhenAttributeMiss&&wn(e,t),["string"].includes(typeof o)&&o.includes(r)};case"$exists":return(0,ge.v)("boolean"===typeof r),n=>{const o=t?(0,pe.get)(n,t):n;return void 0===o&&i?.warnWhenAttributeMiss&&wn(e,t),r?![null,void 0].includes(o):[null,void 0].includes(o)};case"$in":return(0,ge.v)(r instanceof Array),n=>{const o=(0,pe.get)(n,t);return void 0===o&&i?.warnWhenAttributeMiss&&wn(e,t),r.includes(o)};case"$nin":return(0,ge.v)(r instanceof Array),n=>{const o=(0,pe.get)(n,t);return void 0===o&&i?.warnWhenAttributeMiss&&wn(e,t),!r.includes(o)};case"$contains":{const n=r instanceof Array?r:[r];return r=>{const o=t?(0,pe.get)(r,t):r;return void 0===o&&i?.warnWhenAttributeMiss&&wn(e,t),0===(0,pe.differenceBy)(n,o,(e=>"object"===typeof e?JSON.stringify(e):e)).length}}case"$overlaps":{const n=r instanceof Array?r:[r];return r=>{const o=t?(0,pe.get)(r,t):r;return void 0===o&&i?.warnWhenAttributeMiss&&wn(e,t),(0,pe.intersectionBy)(n,o,(e=>"object"===typeof e?JSON.stringify(e):e)).length>0}}case"$length":{const n=r;return r=>{const o=t?(0,pe.get)(r,t):r;if((0,ge.v)(o instanceof Array,"$length operator can only used on array attribute"),"number"===typeof n)return o.length===n;{const t=Object.keys(n)[0];return this.translatePredicate(e,"length",t,n[t],i)(o)}}}default:throw new Error(`predicate ${n} is not recoganized`)}}
2translateObjectPredicate(e,t){const n=[],r=(t,n,i)=>{if(t instanceof Array)t.forEach(((t,o)=>{const a=`${n}[${o}]`;"object"!==typeof t?[null,void 0].includes(t)||i.push(this.translatePredicate(e,a,"$eq",t)):r(t,a,i)}));else for(const o in t)if("$and"===o)t[o].forEach((e=>r(e,n,i)));else if("$or"===o){const e=[];t[o].forEach((t=>r(t,n,e))),i.push((t=>{for(const n of e)if(n(t))return!0;return!1}))}else if(o.startsWith("$"))(0,ge.v)(1===Object.keys(t).length),i.push(this.translatePredicate(e,n,o,t[o]));else{const a=o.startsWith(".")?o.slice(1):o,s=n?`${n}.${a}`:a;"object"!==typeof t[o]?i.push(this.translatePredicate(e,s,"$eq",t[o])):r(t[o],s,i)}};return r(t,"",n),e=>{for(const t of n)if(!t(e))return!1;return!0}}translateAttribute(e,t,n,r,i){if(["object","array"].includes(this.getSchema()[e].attributes[n]?.type)){if("object"!==typeof t)return(0,ge.v)("string"===typeof t),e=>{const o=this.constructRow(e,r,i);return!!o&&(o.hasOwnProperty(n)&&JSON.stringify(o[n])===t)};{const o=this.translateObjectPredicate(e,t);return e=>{const t=this.constructRow(e,r,i);return!!t&&o(t[n])}}}if("object"!==typeof t)return o=>{const a=this.constructRow(o,r,i);if(a){const r=a[n];return void 0===r&&i?.warnWhenAttributeMiss&&wn(e,n),r===t}return!1};{const o=Object.keys(t)[0];if((0,ge.v)(1===Object.keys(t).length&&o.startsWith("$")),!["$in","$nin"].includes(o)||t[o]instanceof Array){const a=this.translatePredicate(e,n,o,t[o],i);return e=>{const t=this.constructRow(e,r,i);return!!t&&a(t)}}throw new Error("\u5b50\u67e5\u8be2\u5df2\u7ecf\u6539\u7528\u4e00\u5bf9\u591a\u7684\u5916\u952e\u8fde\u
263a5\u65b9\u5f0f")}}translateFilterInner(e,t,n,r,i){const o=[],a=[],s=[];let c;for(const u in n)if("#id"===u)c=n["#id"];else if(["$and","$or","$xor","$not"].includes(u)){const c=this.translateLogicFilter(e,t,n,u,r,i);o.push(...c.self),a.push(...c.otm),s.push(...c.mto)}else if(u.toLowerCase().startsWith(pn.EXPRESSION_PREFIX)){const t=this.translateExpression(e,n[u],r,i);o.push(((e,n,o)=>{const a=this.constructRow(e,r,i);if(!a)return!1;const s=t(a,n);return"function"===typeof s&&o.push(s),!!s}))}else if("$text"===u.toLowerCase())o.push(this.translateFulltext(e,n[u],r,i));else{const c=(0,gn.judgeRelation)(this.getSchema(),e,u);if(1===c)o.push(this.translateAttribute(e,n[u],u,r,i));else if(2===c){const o=this.translateFilter(u,t[u]||{},n[u],r,i);s.push(((t,n,a)=>{const s=this.constructRow(t,r,i);if(!s)return!1;if(void 0===s.entityId||void 0===s.entity)return i?.warnWhenAttributeMiss&&wn(e,"entity/entityId"),!1;if(s.entity!==u)return!1;if(null===s.entityId)return!1;const c=(0,pe.get)(this.store,`${u}.${s.entityId}`);return!!c&&o(c,n,a)}))}else if("string"===typeof c){const o=this.translateFilter(c,t[u]||{},n[u],r,i);s.push(((t,n,a)=>{const s=this.constructRow(t,r,i);if(!s)return!1;if(s[`${u}Id`]){const e=(0,pe.get)(this.store,`${c}.${s[`${u}Id`]}`);return!!e&&o(e,n,a)}return void 0===s[`${u}Id`]&&i?.warnWhenAttributeMiss&&wn(e,`${u}Id`),!1}))}else if(c instanceof Array){const[t,s]=c,d=n[u][pn.SUB_QUERY_PREDICATE_KEYWORD]||"in",h=s||"entityId",f={id:1,[h]:1},p=()=>{a.push(((o,a)=>{const c=this.constructRow(o,r,i);if(!c)return!1;const l=s?(0,pe.cloneDeep)(n[u]):Object.assign({entity:e},(0,pe.cloneDeep)(n[u])),p=["not in","in"].includes(d)?(0,vn.combineFilters)(t,this.getSchema(),[l,{[h]:c.id}]):{$not:l,[h]:c.id},g=this.selectAbjointRow(t,{data:f,filter:p,indexFrom:0,count:1},r,{...i,nodeDict:a,dontCollect:!0,warnWhenAttributeMiss:!1}).map((e=>e[h]));switch(d){case"in":case"not all":return g.length>0;case"not in":case"all":return 0===g.length;default:throw new Error(`illegal sqp: ${d}`)}}))};if(n.id&&"string"===typeof n.id){const a=s?(0,pe.cloneDeep)(n[u]):Object.assign({entity:e},(0,pe.cloneDeep)(n[u])),c=["not in","in"].includes(d)?(0,vn.combineFilters)(t,this.getSchema(),[a,{[h]:n.id}]):{$not:a,[h]:n.id};try{const e=this.selectAbjointRow(t,{data:f,filter:c,indexFrom:0,count:1},r,{...i,dontCollect:!0,warnWhenAttributeMiss:!1}).map((e=>e[h]));o.push((t=>{if(!this.constructRow(t,r,i))return!1;switch(d){case"in":case"not all":return e.length>0;case"not in":case"all":return 0===e.length;default:throw new Error(`illegal sqp: ${d}`)}}))}catch(l){if(!(l instanceof bn))throw l;p()}}else if(i?.disableSubQueryHashjoin)p();else try{const e=this.selectAbjointRow(t,{data:f,filter:n[u]},r,{...i,dontCollect:!0,warnWhenAttributeMiss:!1}),o=(0,pe.groupBy)(e,h);a.push(((e,t)=>{const n=this.constructRow(e,r,i);if(!n)return!1;switch(d){case"in":return o[n.id]?.length>0;case"not in":return!o[n.id]||0===o[n.id].length;case"all":return o[n.id]?.length>0&&1===Object.keys(o).length;case"not all":return Object.keys(o).length>1||!o.hasOwnProperty(n.id);default:(0,ge.v)(!1,`unrecoganized sqp operator: ${d}`)}}))}catch(l){if(!(l instanceof bn))throw l;p()}}else(0,ge.v)(0===c)}return{self:o,otm:a,mto:s,nodeId:c}
2}translateFilter(e,t,n,r,i){const o=this.translateFilterInner(e,t,n,r,i),{nodeId:a}=o;return(e,t,n)=>(a&&((0,ge.v)(!t.hasOwnProperty(a),`Filter\u4e2d\u7684nodeId\u300c${a}\u300d\u51fa\u73b0\u4e86\u591a\u6b21`),Object.assign(t,{[a]:this.constructRow(e,r,i)})),this.testFilterFns(e,t,n,o))}translateSorter(e,t,n,r){const i=(e,t,o,a,s)=>{const c=e,l=t;(0,ge.v)(1===Object.keys(a).length);const u=Object.keys(a)[0],d=(0,gn.judgeRelation)(this.getSchema(),o,u);if(1===d||0===d){const n=e=>1===a[u]?e[u]:((0,ge.v)("string"===typeof a[u]&&a[u].startsWith("$expr")),e[a[u]]),r=e&&n(c),i=t&&n(l);if([null,void 0].includes(r)||[null,void 0].includes(i))return[null,void 0].includes(r)&&[null,void 0].includes(i)?0:[null,void 0].includes(r)?"asc"===s?-1:1:"desc"===s?1:-1;const d=this.getSchema()[o].attributes[u];if("enum"===d?.type){const e=d.enumeration,t=e.indexOf(r),n=e.indexOf(i);return(0,ge.v)(t>=0&&n>=0),"asc"===s?t-n:n-t}if(["$$createAt$$","$$updateAt$$"].includes(u)){if(1===r)return"asc"===s?1:-1;if(1===i)return"asc"===s?-1:1}return r>i?"desc"===s?-1:1:r<i?"desc"===s?1:-1:0}if(2===d){(0,ge.v)(c.entity===l.entity),(0,ge.v)(c.entity===u);const e=this.store[c.entity]&&this.store[c.entity][c.entityId],t=this.store[l.entity]&&this.store[l.entity][l.entityId],o=e&&this.constructRow(e,n,r),d=t&&this.constructRow(t,n,r);return i(o,d,c.entity,a[u],s)}{(0,ge.v)("string"===typeof d);const e=this.store[d]&&this.store[d][c[`${u}Id`]],t=this.store[d]&&this.store[d][l[`${u}Id`]],o=e&&this.constructRow(e,n,r),h=t&&this.constructRow(t,n,r);return i(o,h,d,a[u],s)}};return(n,r)=>{for(const o of t){const{$attr:t,$direction:a}=o,s=i(n,r,e,t,a);if(0!==s)return s}return 0}}getEntityNodes(e,t,n){const{filter:r}=t,i=(0,vn.getRelevantIds)(r);if(this.store[e]){if(i.length>0){const t=(0,pe.pick)(this.store[e],i);return Object.values(t)}return Object.values(this.store[e])}return[]}selectAbjointRow(e,t,n,r){const{data:i,filter:o}=t,a=r?.nodeDict,s=o&&this.translateFilter(e,i,o,n,r),c=this.getEntityNodes(e,t,n),l=[];for(const d of c){if(d.$txnId&&d.$txnId!==n.getCurrentTxnId()&&null===d.$current)continue;(0,ge.v)(!d.$txnId||d.$txnId===n.getCurrentTxnId());const e=[],t={};if(a&&Object.assign(t,a),s?s(d,t,e):this.constructRow(d,n,r)){let n=!0;if(e.length>0)for(const r of e){const e=r(t);if("function"===typeof e)throw new bn;if(!e){n=!1;break}}n&&l.push(d)}}const u=l.map((e=>this.constructRow(e,n,r)));return this.formResult(e,u,t,n,r)}updateAbjointRow(e,t,n,r){const{data:i,action:o,id:a}=t;if("create"===o){const{id:t}=i;if((0,ge.v)(t),this.store[e]&&this.store[e][t]){const i=this.store[e]&&this.store[e][t];throw new H.OakCongruentRowExists(e,this.constructRow(i,n,r))}if(!i.$$seq$$){const t=this.getNextSeq(e);i.$$seq$$=t}const o={$txnId:n.getCurrentTxnId(),$current:null,$next:i,$path:`${e}.${t}`};return this.store[e]||(this.store[e]={}),(0,pe.set)(this.store,`${e}.${t}`,o),this.addToTxnNode(o,n,"create",i[fn.CreateAtAttribute]),1}{const r={data:{id:1},filter:t.filter,indexFrom:t.indexFrom,count:t.count},a=this.selectAbjointRow(e,r,n,{dontCollect:!0}),s=a.map((e=>e.id));for(const t of s){let r=!1;const a=this.store[e][t];(0,ge.v)(a&&(!a.$txnId||a.$txnId==n.getCurrentTxnId())),a.$txnId?((0,ge.v)(a.$txnId===n.getCurrentTxnId()),r=!0):a.$txnId=n.getCurrentTxnId(),a.$path=`${e}.${t}`,"remove"===o?(a.$next=null,r||this.addToTxnNode(a,n,"remove",i[fn.DeleteAtAttribute])):(a.$next=Object.assign(a.$next||{},i),r||this.addToTxnNode(a,n,"update",i[fn.UpdateAtAttribute]))}return a.length}}async selectAbjointRowAsync(e,t,n,r){return this.selectAbjointRow(e,t,n,r)}async updateAbjointRowAsync(e,t,n,r){return this.updateAbjointRow(e,t,n,r)}operateSync(e,t,n,r){return(0,ge.v)(n.getCurrentTxnId()),super.operateSync(e,t,n,r)}async operateAsync(e,t,n,r){return(0,ge.v)(n.getCurrentTxnId()),super.operateAsync(e,t,n,r)}formExprInResult(e,t,n,r,i){const o={};for(const a in t)if(a.startsWith(pn.EXPRESSION_PREFIX)){const s=this.translateExpression(e,t[a],i,{})(n,r);"function"===typeof s?Object.assign(o,{[a]:s}):Object.assign(n,{[a]:s})}else if("#id"===a){const e=t[a];(0,ge.v)(!r.hasOwnProperty(e),`Filter\u4e2d\u7684nodeId\u300c${e}\u300d\u51fa\u73b0\u4e86\u591a\u6b21`),Object.assign(r,{[e]:n})}for(const a in t){const o=this.judgeRelation(e,a);if(1===o);else if(2===o)n[a]&&this.formExprInResult(a,t[a],n[a],r,i);else if("string"===typeof o){if(n[a]){this.formExprInResult(o,t[a],n[a],r,i)}}else o instanceof Array&&(a.endsWith("$$aggr")||n[a]&&n[a]instanceof Array&&n[a].map((e=>this.formExprInResult(o[0],t[a].data,e,r,i))))}for(const a in o){const e=o[a](r);(0,ge.v)("function"!==typeof e,"data\u4e2d\u7684expr\u65e0\u6cd5\u8ba1\u7b97\uff0c\u8bf7\u68c0\u67e5\u547d\u540d\u4e0e\u5f15\u7528\u7684\u4e00\u81f4\u6027"),Object.assign(n,{[a]:e})}}formResult(e,t,n,r,i){const{data:o,sorter:a,indexFrom:s,count:c}
2=n,l=(e,t,n)=>{Object.keys(n).forEach((r=>{if(r.startsWith("$expr")&&"object"===typeof n[r]){const e=(e=>{let t=1;for(;t<20;){const n="$expr"+t++;if(!e.includes(n))return n}(0,ge.v)(!1,"\u627e\u4e0d\u5230\u53ef\u7528\u7684expr\u547d\u540d")})(Object.keys(t));Object.assign(t,{[e]:n[r]}),Object.assign(n,{[r]:e})}const i=(0,gn.judgeRelation)(this.getSchema(),e,r);if(2===i||"string"===typeof i){t[r]||Object.assign(t,{[r]:{}});l("string"===typeof i?i:r,t[r],n[r])}else 1===i&&Object.assign(t,{[r]:1})}))};a&&a.forEach((t=>{l(e,o,t.$attr)}));let u=[];const{data:d}=n;for(const h of t){const t={};for(const n in d){if(1===this.judgeRelation(e,n))if(void 0===h[n])0;else if("number"===typeof d[n])Object.assign(t,{[n]:h[n]});else{Object.assign(t,{[n]:{}});const e=(t,n,r)=>{if(n instanceof Array)(0,ge.v)(t instanceof Array),(0,ge.v)(r instanceof Array),n.forEach(((n,i)=>{"number"===typeof n?t[i]=r[i]:"object"===typeof n&&(t[i]={},e(t[i],n,r[i]))}));else for(const i in n)"number"===typeof n[i]?t[i]=r[i]:"object"===typeof n[i]&&(t[i]=n[i]instanceof Array?[]:{},e(t[i],n[i],r[i]))};e(t[n],d[n],h[n])}}n.distinct||(h[fn.DeleteAtAttribute]&&Object.assign(t,{[fn.DeleteAtAttribute]:h[fn.DeleteAtAttribute]}),h[fn.UpdateAtAttribute]&&Object.assign(t,{[fn.UpdateAtAttribute]:h[fn.UpdateAtAttribute]}),h[fn.CreateAtAttribute]&&Object.assign(t,{[fn.CreateAtAttribute]:h[fn.CreateAtAttribute]})),u.push(t)}if(a){const t=this.translateSorter(e,a,r,i);u.sort(t)}return"number"===typeof s&&(u=u.slice(s,s+c)),n.distinct&&(u=(0,pe.uniqBy)(u,(e=>JSON.stringify(e)))),u}mappingProjectionOnRow(e,t,n){let r="",i={};const o=[],a=(e,t,n,i)=>{const s=Object.keys(n).sort(((e,t)=>e<t?-1:1));for(const c of s){const s=this.judgeRelation(e,c);2===s?(i[c]={},t[c]&&a(c,t[c],n[c],i[c])):"string"===typeof s?(i[c]={},t[c]&&a(s,t[c],n[c],i[c])):((0,ge.v)([0,1].includes(s)),i[c]=t[c],(0,ge.v)(["string","number","boolean"].includes(typeof t[c])||null===t[c]),r+=`${t[c]}`,o.push(t[c]))}};return a(e,t,n,i),{result:i,key:r,values:o}}calcAggregation(e,t,n){const r=Object.keys(n).filter((e=>"#aggr"!==e&&e.startsWith("#"))),i={},o={};for(const s of t)for(const t of r){const{values:r}=this.mappingProjectionOnRow(e,s,n[t]);(0,ge.v)(1===r.length,`\u805a\u5408\u8fd0\u7b97\u4e2d\uff0c${t}\u7684\u76ee\u6807\u5c5e\u6027\u591a\u4e8e1\u4e2a`),o[t]?o[t].push(r[0]):o[t]=[r[0]]}const{distinct:a}=n;for(const s in o)if(s.startsWith("#max"))i[s]=null,o[s].forEach((e=>{![void 0,null].includes(e)&&(null===i[s]||i[s]<e)&&(i[s]=e)}));else if(s.startsWith("#min"))i[s]=null,o[s].forEach((e=>{![void 0,null].includes(e)&&(null===i[s]||i[s]>e)&&(i[s]=e)}));else if(s.startsWith("#sum")){i[s]=0;(a?(0,pe.uniq)(o[s]):o[s]).forEach((e=>{"number"===typeof e&&(i[s]+=e)}))}else if(s.startsWith("#count")){i[s]=0;(a?(0,pe.uniq)(o[s]):o[s]).forEach((e=>{[void 0,null].includes(e)||(i[s]+=1)}))}else if(s.startsWith("#avg")){i[s]=0;const e=(a?(0,pe.uniq)(o[s]):o[s]).filter((e=>![void 0,null].includes(e)));let t=0;e.forEach((e=>{"number"===typeof e&&(i[s]+=e,t+=1)})),i[s]=i[s]/t}return i}formAggregation(e,t,n){const{"#aggr":r}=n;if(r){const i=(0,pe.groupBy)(t,(t=>{const{key:n}=this.mappingProjectionOnRow(e,t,r);return n})),o=Object.keys(i).map((t=>{const o=this.calcAggregation(e,i[t],n),{result:a}=this.mappingProjectionOnRow(e,i[t][0],r);return o["#data"]=a,o}));return o}return[this.calcAggregation(e,t,n)]}selectSync(e,t,n,r){(0,ge.v)(n.getCurrentTxnId());const i=super.selectSync(e,t,n,r);return i.forEach((r=>this.formExprInResult(e,t.data,r,{},n))),i}async selectAsync(e,t,n,r){(0,ge.v)(n.getCurrentTxnId());const i=await super.selectAsync(e,t,n,r);return i.forEach((r=>this.formExprInResult(e,t.data,r,{},n))),i}aggregateAbjointRowSync(e,t,n,r){(0,ge.v)(n.getCurrentTxnId());const{data:i,filter:o,sorter:a,indexFrom:s,count:c}=t,l={};for(const h in i)Object.assign(l,(0,pe.cloneDeep)(i[h]));const u={data:l,filter:o,sorter:a,indexFrom:s,count:c},d=this.cascadeSelect(e,u,n,Object.assign({},r,{dontCollect:!0}));return d.forEach((t=>this.formExprInResult(e,u.data,t,{},n))),this.formAggregation(e,d,t.data)}async aggregateAbjointRowAsync(e,t,n,r){(0,ge.v)(n.getCurrentTxnId());const{data:i,filter:o,sorter:a,indexFrom:s,count:c}=t,l={};for(const h in i)Object.assign(l,(0,pe.cloneDeep)(i[h]));const u={data:l,filter:o,sorter:a,indexFrom:s,count:c};(0,mn.sM)(this.getSchema(),e,u);const d=await this.cascadeSelectAsync(e,u,n,Object.assign({},r,{dontCollect:!0}));return d.forEach((t=>this.formExprInResult(e,u.data,t,{},n))),this.formAggregation(e,d,t.data)}countAbjointRow(e,t,n,r){const i=Object.assign({},t,{data:{id:1}}),o=this.selectAbjointRow(e,i,n,Object.assign({},r,{dontCollect:!0}));return"number"===typeof t.count?Math.min(o.length,t.count):o.length}async countAbjointRowAsync(e,t,n,r){const i=Object.assign({},t,{data:{id:1}}),o=await this.selectAbjointRowAsync(e,i,n,Object.assign({},r,{dontCollect:!0}));return"number"===typeof t.count&&t.count>0?Math.min(o.length,t.count):o.length}addToTxnNode(e,t,n,r){const i=this.activeTxnDict[t.getCurrentTxnId()];(0,ge.v)(i),e.$nextNode||(i.nodeHeader?(e.$nextNode=i.nodeHeader,i.nodeHeader=e):i.nodeHeader=e),i[n]++,i.lastUpdateTs=r}getStat(){return this.stat}beginSync(){const e=`${Math.random()}`;return(0,ge.v)(!this.activeTxnDict.hasOwnProperty(e)),Object.assign(this.activeTxnDict,{[e]:{create:0,update:0,remove:0,waitList:[]}}),e}commitCallbacks=[];onCommit(e){return this.commitCallbacks.push(e),()=>(0,pe.pull)(this.commitCallbacks,e)}addToOperationResult(e,t,n){e[t]?e[t][n]?e[t][n]++:Object.assign(e[t],{[n]:1}):Object.assign(e,{[t]:{[n]:1}})}commitLogic(e){(0,ge.v)(this.activeTxnDict.hasOwnProperty(e),e);let t=this.activeTxnDict[e].nodeHeader;const n={};for(;t;){const r=t.$nextNode;if(t.$txnId===e){(0,ge.v)(t.$path);const e=t.$path?.split(".")[0];t.$next?(t.$current=Object.assign(t.$current||{},t.$next),t.$current?this.addToOperationResult(n,e,"create"):this.addToOperationResult(n,e,"update"),(0,pe.unset)(t,"$txnId"),(0,pe.unset)(t,"$next"),(0,pe.unset)(t,"$path"),(0,pe.unset)(t,"$nextNode")):(this.addToOperationResult(n,e,"remove"),(0,pe.unset)(this.store,t.$path),(0,pe.unset)(t,"$txnId"))}else(0,ge.v)(void 0===t.$txnId);t=r}(this.activeTxnDict[e].create||this.activeTxnDict[e].update||this.activeTxnDict[e].remove)&&(this.stat.create+=this.activeTxnDict[e].create,this.stat.update+=this.activeTxnDict[e].update,this.stat.remove+=this.activeTxnDict[e].remove,this.stat.commit++);for(const r of this.activeTxnDict[e].waitList)r.fn();return(0,pe.unset)(this.activeTxnDict,e),n}commitSync(e){const t=this.commitLogic(e);this.commitCallbacks.forEach((e=>e(t)))}rollbackSync(e){(0,ge.v)(this.activeTxnDict.hasOwnProperty(e));let t=this.activeTxnDict[e].nodeHeader;for(;t;){const n=t.$nextNode;t.$txnId===e?t.$current?((0,pe.unset)(t,"$txnId"),(0,pe.unset)(t,"$next"),(0,pe.unset)(t,"$path"),(0,pe.unset)(t,"$nextNode")):((0,ge.v)(t.$path),(0,pe.unset)(this.store,t.$path),(0,pe.unset)(t,"$txnId")):(0,ge.v)(void 0===t.$txnId),t=n}for(const n of this.activeTxnDict[e].waitList)n.fn();(0,pe.unset)(this.activeTxnDict,e)}async beginAsync(){return this.beginSync()}async commitAsync(e){const t=this.commitLogic(e);for(const n of this.commitCallbacks)await n(t)}async rollbackAsync(e){return this.rollbackSync(e)}sync(e,t,n){const r=Object.assign({},n,{dontCollect:!0,dontCreateOper:!0}),i={};for(const o of e)switch(o.a){case"c":{const{e:e,d:n}=o;if(n instanceof Array)for(const o of n)(0,ge.v)(o[fn.UpdateAtAttribute],`\u83b7\u53d6\u7684${e}\u5bf9\u8c61\u6570\u636e\u6ca1\u6709update\u65f6\u95f4\u6233`),this.store[e]?.[o.id]||(this.updateAbjointRow(e,{id:"dummy",action:"create",data:o},t,r),this.addToOperationResult(i,e,"create"));else(0,ge.v)(n[fn.UpdateAtAttribute],`\u83b7\u53d6\u7684${e}\u5bf9\u8c61\u6570\u636e\u6ca1\u6709update\u65f6\u95f4\u6233`),this.store[e]?.[n.id]||(this.updateAbjointRow(e,{id:"dummy",action:"create",data:n},t,r),this.addToOperationResult(i,e,"create"));break}case"r":{const{e:e,f:n,d:a}=o;this.updateAbjointRow(e,{id:"dummy",action:"remove",data:{},filter:n},t,r),this.addToOperationResult(i,e,"remove");break}case"s":{const{d:e}=o;for(const n in e)for(const o in e[n])if((0,ge.v)(e[n][o][fn.UpdateAtAttribute],`\u83b7\u53d6\u7684${n}\u5bf9\u8c61\u6570\u636e\u6ca1\u6709update\u65f6\u95f4\u6233`),this.store[n]?.[o]){if(this.store[n]?.[o]){this.constructRow(this.store[n][o],t)[fn.UpdateAtAttribute]<=e[n][o][fn.UpdateAtAttribute]&&(this.updateAbjointRow(n,{id:"dummy",action:"update",data:e[n][o],filter:{id:o}},t,r),this.addToOperationResult(i,n,"update"))}}else this.updateAbjointRow(n,{id:"dummy",action:"create",data:e[n][o]},t,r),this.addToOperationResult(i,n,"create");break}default:{const{e:e,d:n,f:a}=o;(0,ge.v)(n[fn.UpdateAtAttribute],`\u83b7\u53d6\u7684${e}\u5bf9\u8c61\u6570\u636e\u6ca1\u6709update\u65f6\u95f4\u6233`),this.updateAbjointRow(e,{id:"dummy",action:"update",data:n,filter:(0,vn.combineFilters)(e,this.get
2Schema(),[a,{[fn.UpdateAtAttribute]:{$lte:n[fn.UpdateAtAttribute]}}])},t,r),this.addToOperationResult(i,e,"update");break}}}getLastUpdateTs(){for(const e in this.activeTxnDict)if(this.activeTxnDict[e].lastUpdateTs)return this.activeTxnDict[e].lastUpdateTs;return this.stat.commit}}var Sn=n(95458);class An{constructor(){this.checkerMap={}}addToCheckerMap(e,t,n,r,i,o,a){if(this.checkerMap[t]&&this.checkerMap[t][e]){let s=0;const c=this.checkerMap[t][e];for(;s<c.length&&!(n<=c[s].priority);s++);c.splice(s,0,{type:o,priority:n,fn:i,when:r,filter:a})}else this.checkerMap[t]?Object.assign(this.checkerMap[t],{[e]:[{type:o,priority:n,fn:i,when:r,filter:a}]}):Object.assign(this.checkerMap,{[t]:{[e]:[{type:o,priority:n,fn:i,when:r,filter:a}]}})}registerChecker(e,t){let{entity:n,action:r,priority:i,type:o,conditionalFilter:a}=e;const{fn:s,when:c}=(0,Sn.translateCheckerInSyncContext)(e,t);r instanceof Array?r.forEach((e=>this.addToCheckerMap(e,n,i||X.CHECKER_PRIORITY_MAP[o],c,s,o,a))):this.addToCheckerMap(r,n,i||X.CHECKER_PRIORITY_MAP[o],c,s,o,a)}check(e,t,n,r,i){const{action:o}=t,a=this.checkerMap[e]&&this.checkerMap[e][o];if(a){const s=a.filter((e=>(!i||i.includes(e.type))&&(!r||e.when===r)));for(const r of s){const{filter:i}=r;if(i){const r="function"===typeof i?i(t,n,{}):i;(0,ge.v)(!(i instanceof Promise),`\u5bf9${e}\u7684\u52a8\u4f5c${o}\u4e0a\u5b9a\u4e49\u7684checker\uff0c\u5176filter\u8fd4\u56de\u4e86Promise\uff0c\u8bf7\u6ce8\u610f\u5c06\u540c\u6b65\u548c\u5f02\u6b65\u7684\u8fd4\u56de\u533a\u5206\u5bf9\u5f85`);const a=(0,vn.checkFilterRepel)(e,n,r,t.filter,!0);if((0,ge.v)("boolean"===typeof a),a)continue}r.fn(t,n,{})}}}}An.All_Checker_Types=["data","logical","row"];class kn extends xn{constructor(e){super(e),this.triggerExecutor=new An}aggregate(e,t,n,r){return this.aggregateSync(e,t,n,r)}cascadeUpdate(e,t,n,r){if((0,ge.v)(n.getCurrentTxnId()),r.blockTrigger||this.triggerExecutor.check(e,t,n,"before",r.checkerTypes),t.data){const i=super.cascadeUpdate(e,t,n,r);return r.blockTrigger||this.triggerExecutor.check(e,t,n,"after",r.checkerTypes),i}return{}}operate(e,t,n,r){(0,ge.v)(n.getCurrentTxnId());return super.operateSync(e,t,n,r)}sync(e,t){(0,ge.v)(t.getCurrentTxnId()),super.sync(e,t,{})}check(e,t,n,r){(0,ge.v)(n.getCurrentTxnId()),this.triggerExecutor.check(e,t,n,void 0,r)}select(e,t,n,r){return(0,ge.v)(n.getCurrentTxnId()),super.selectSync(e,t,n,r)}registerChecker(e){this.triggerExecutor.registerChecker(e,this.getSchema())}count(e,t,n,r){return(0,ge.v)(n.getCurrentTxnId()),super.countSync(e,t,n,r)}begin(e){return super.beginSync()}commit(e){return super.commitSync(e)}rollback(e){return super.rollbackSync(e)}}var On=n(84291);const _n="ofd:f-l-l",En="ofd:f-c-s",In="ofd:f-c-rr";class jn extends Jt{registerSelectionRewriter(e){this.cacheStore.registerSelectionRewriter(e)}registerOperationRewriter(e){this.cacheStore.registerOperationRewriter(e)}constructor(e,t,n,r,i,o){super(),this.executing=0,this.refreshRecords={},this.syncEventsCallbacks=[],this.connector=t,this.cacheStore=new kn(e),this.contextBuilder=()=>n(this.cacheStore),this.savedEntities=["actionAuth","i18n","path",...o.cacheSavedEntities||[]],this.keepFreshPeriod=o.cacheKeepFreshPeriod||6e5,this.localStorage=i,this.attrUpdateMatrix=o.attrUpdateMatrix,this.baseRelationAuth=new On.VB(e,o.authDeduceRelationMap,o.selectFreeEntities,o.updateFreeDict),r.forEach((e=>this.cacheStore.registerChecker(e))),this.initPromise=new Promise((e=>this.initSavedLogic(e))),this.buildEntityGraph(),this.entityActionAuthDict={}}async initSavedLogic(e){const t={};await Promise.all(this.savedEntities.map((async e=>{const n=`${En}:${e}`,r=await this.localStorage.load(n);r&&(t[e]=r);const i=`${In}:${e}`,o=await this.localStorage.load(i);o&&(this.refreshRecords[e]=o)}))),this.cacheStore.resetInitialData(t),this.cacheStore.onCommit((async e=>{const t=Object.keys(e),n=(0,pe.intersection)(t,this.savedEntities);if(n.length>0){const e=this.cacheStore.getCurrentData(n);for(const t in e){const n=`${En}:${t}`;await this.localStorage.save(n,e[t])}}})),e()}async onInitialized(){await this.initPromise}getSchema(){return this.cacheStore.getSchema()}async exec(e,t,n,r,i){try{this.executing++;const{result:o,opRecords:a,message:s}=await this.connector.callAspect(e,t,i?void 0:this.context||this.contextBuilder());return n&&n(o,a),null!==a&&void 0!==a&&a.length&&this.syncInner(a),this.executing--,a&&a.length>0&&!r&&this.publish(),{result:o,message:s}}catch(fs){if(this.executing--,fs instanceof H.OakException){const{opRecords:t}=fs;t.length&&(this.syncInner(t),this.publish())}throw fs}}saveRefreshRecord(e){const t=this.refreshRecords[e];(0,ge.v)(t);const n=`${In}:${e}`;this.localStorage.save(n,t)}addRefreshRecord(e,t,n){const r=this.refreshRecords[e]&&this.refreshRecords[e][t];return this.refreshRecords[e]?Object.assign(this.refreshRecords[e],{[t]:n}):Object.assign(this.refreshRecords,{[e]:{[t]:n}}),r?()=>this.addRefreshRecord(e,t,r):()=>(0,pe.unset)(this.refreshRecords[e],t)}async refresh(e,t,n,r,i){var o;const{dontPublish:a,useLocalCache:s,ignoreContext:c}=i||{},l=null===i||void 0===i||null===(o=i.useLocalCache)||void 0===o?void 0:o.onlyReturnFresh;let u=[];const d=t.filter;if(s){(0,ge.v)(!t.indexFrom&&!t.count,"\u7528cache\u7684\u67e5\u8be2\u4e0d\u80fd\u4f7f\u7528\u5206\u9875"),(0,ge.v)(this.savedEntities.includes(e),`${e}\u4e0d\u5728\u7cfb\u7edf\u8bbe\u7f6e\u7684\u5e94\u7f13\u5b58\u5bf9\u8c61\u5f53\u4e2d`);const{keys:n,gap:r}=s;let i=Number.MAX_SAFE_INTEGER;
2n.forEach((t=>{const n=this.refreshRecords[e]&&this.refreshRecords[e][t];"number"===typeof n?n<i&&(i=n):i=0}));const o=r||this.keepFreshPeriod,a=Date.now();if(i<Number.MAX_SAFE_INTEGER&&i>a-o){if(l)return{data:[]};return{data:this.get(e,t)}}i>0&&(t.filter=t.filter?(0,vn.combineFilters)(e,this.getSchema(),[t.filter,{$$updateAt$$:{$gte:i}}]):{$$updateAt$$:{$gte:i}}),u=n.map((t=>this.addRefreshRecord(e,t,a)))}try{const{result:{data:i,total:o}}=await this.exec("select",{entity:e,selection:t,option:n},r,a,c);let h={id:{$in:Object.keys(i)}};u.length>0&&!l&&(h=d);const f=Object.assign({},t,{filter:h,indexFrom:void 0,count:void 0}),p=this.get(e,f,i);return s&&this.saveRefreshRecord(e),{data:p,total:o}}catch(h){throw u&&u.forEach((e=>e())),h}}async aggregate(e,t,n){const{result:r}=await this.connector.callAspect("aggregate",{entity:e,aggregation:t,option:n},this.context||this.contextBuilder());return r}async operate(e,t,n,r){return await this.exec("operate",{entity:e,operation:t,option:n},r)}async count(e,t,n,r){const{result:i}=await this.exec("count",{entity:e,selection:t,option:n},r);return i}syncInner(e){this.begin();try{this.cacheStore.sync(e,this.context),this.entityActionAuthDict={},this.syncEventsCallbacks.map((t=>t(e))),this.context.commit(),this.context=void 0}catch(t){throw this.context.rollback(),this.context=void 0,t}}sync(e){e.length&&(this.syncInner(e),this.publish())}tryRedoOperations(e){const t=this.begin();try{for(const t of e){const{entity:e,operation:n}=t;this.context.operate(e,n,{dontCollect:!0})}return t(),!0}catch(n){if(t(),!(n instanceof H.OakUserException)&&!(n instanceof H.OakRowUnexistedException))throw n;return n}}
2getLegalUpdateAttrs(e,t,n,r){if(!this.attrUpdateMatrix)return[...n];const i=this.attrUpdateMatrix[e];if(!i)return[...n];const o=[];(0,ge.v)(this.context);for(const a of n){const n=i[a];if(n){const{actions:i,filter:s}=n;if(i&&!i.includes(t))continue;const c="function"===typeof s?s({action:t,data:{[a]:"void"},filter:{id:r}},this.context):s;c&&!this.checkFilterContains(e,c,{id:r},!0)||o.push(a)}}return o}checkOperation(e,t,n,r){const{action:i,data:o,filter:a}=t;let s,c;const l=n?n.join("-"):"$$all";var u,d,h,f;if(!r&&(a&&!o&&"string"===typeof a.id&&(s=a.id,c=this.cacheStore.getLastUpdateTs(),null!==(u=this.entityActionAuthDict[c])&&void 0!==u&&null!==(d=u[e])&&void 0!==d&&null!==(h=d[s])&&void 0!==h&&null!==(f=h[l])&&void 0!==f&&f.hasOwnProperty(i))))return this.entityActionAuthDict[c][e][s][l][i];let p=this.begin(!0);try{return this.cacheStore.check(e,t,this.context,n),p&&p(),null!==n&&void 0!==n&&n.includes("relation")&&(p=this.begin(!0),this.baseRelationAuth.checkRelationSync(e,t,this.context),p&&p()),s&&c&&(0,pe.set)(this.entityActionAuthDict,`${c}.${e}.${s}.${l}.${i}`,!0),!0}catch(g){return p&&p(),g instanceof H.OakRowUnexistedException?(this.fetchRows(g.getRows()),s&&c&&(0,pe.set)(this.entityActionAuthDict,`${c}.${e}.${s}.${l}.${i}`,!1),!1):(s&&c&&(0,pe.set)(this.entityActionAuthDict,`${c}.${e}.${s}.${l}.${i}`,g),g)}}redoOperation(e){(0,ge.v)(this.context),e.forEach((e=>{const{entity:t,operation:n}=e;this.cacheStore.operate(t,n,this.context,{checkerTypes:["logical"],dontCollect:!0})}))}fetchRows(e){this.executing||this.exec("fetchRows",e,(async(t,n)=>{for(const r of n){const{d:t}=r;(0,ge.v)(Object.keys(t).length>0,"\u5728\u901a\u8fc7fetchRow\u53d6\u4e0d\u4e00\u81f4\u6570\u636e\u65f6\u8fd4\u56de\u4e86\u7a7a\u6570\u636e\uff0c\u8bf7\u62ff\u8be5\u7a0b\u5e8f\u5458\u796d\u5929\u3002");for(const n of e)(0,ge.v)(Object.keys(t[n.entity]).length>0,`\u5728\u901a\u8fc7fetchRow\u53d6\u4e0d\u4e00\u81f4\u6570\u636e\u65f6\u8fd4\u56de\u4e86\u7a7a\u6570\u636e\uff0c\u8bf7\u62ff\u8be5\u7a0b\u5e8f\u5458\u796d\u5929\u3002entity\u662f${n.entity}`)}}))}getInner(e,t){const n=this.begin(!0);try{const r=this.cacheStore.select(e,t,this.context,{dontCollect:!0,includedDeleted:!0,warnWhenAttributeMiss:!this.executing&&!1});return n&&n(),r}catch(r){if(n&&n(),r instanceof H.OakRowUnexistedException)return this.fetchRows(r.getRows()),[];throw r}}mergeSelectResult(e,t,n){const r=(e,t,n)=>{for(const i in n)if(i.endsWith("$$aggr"))Object.assign(t,{[i]:n[i]});else if(t[i]){const o=this.judgeRelation(e,i);if(2===o)r(i,t[i],n[i]);else if("string"===typeof o)r(o,t[i],n[i]);else{(0,ge.v)(o instanceof Array),(0,ge.v)(t[i]instanceof Array);const{data:e}=n[i];this.mergeSelectResult(o[0],t[i],e)}}},i=[];t.forEach((t=>{const{id:o}=t;n[o]?r(e,t,n[o]):i.push(t)})),(0,pe.pull)(t,...i)}get(e,t,n){const r=this.getInner(e,t);return n&&this.mergeSelectResult(e,r,n),r}judgeRelation(e,t){return this.cacheStore.judgeRelation(e,t)}bindOnSync(e){this.syncEventsCallbacks.push(e)}unbindOnSync(e){(0,pe.pull)(this.syncEventsCallbacks,e)}getCachedData(){return this.cacheStore.getCurrentData()}getFullData(){return this.connector.getFullData()}makeBridgeUrl(e,t){return this.connector.makeBridgeUrl(e,t)}begin(e){if(!this.context)return this.context=this.contextBuilder(),this.context.begin(),()=>{this.context.rollback(),this.context=void 0};(0,ge.v)(e)}checkFilterContains(e,t,n,r){return(0,ge.v)(this.context),(0,vn.checkFilterContains)(e,this.context,t,n,r)}buildEntityGraph(){const e=this.getSchema(),t=[],n=[],r={},i={},o=["modi","modiEntity","oper","operEntity","relation","relationAuth","actionAuth","userRelation"];for(const u in e){if(o.includes(u))continue;const{attributes:t}=e[u];for(const e in t){var a;const{ref:n}=t[e];n instanceof Array?n.forEach((e=>{var t;e===u||o.includes(e)||null!==(t=r[u])&&void 0!==t&&t.includes(e)||(i[e]?i[e].push(u):i[e]=[u],r[u]?r[u].push(e):r[u]=[e])})):!n||n===u||o.includes(n)||null!==(a=r[u])&&void 0!==a&&a.includes(n)||(i[n]?i[n].push(u):i[n]=[u],r[u]?r[u].push(n):r[u]=[n])}}(0,pe.union)(Object.keys(r),Object.keys(i)).forEach((e=>t.push({name:e})));for(const u in r){var s;const e=r[u].length+(null===(s=i[u])||void 0===s?void 0:s.length)||0;for(const t of r[u]){var c,l;const o=(null===(c=r[t])||void 0===c?void 0:c.length)||0+(null===(l=i[t])||void 0===l?void 0:l.length)||0;n.push({source:u,target:t,value:e+o})}}this.entityGraph={data:t,links:n}}getEntityGraph(){const{data:e,links:t}=this.entityGraph;return{data:e,links:t}}async getRelationIdByName(e,t,n){const r={entity:e,name:t};
2n?r.$or=[{entityId:n},{entityId:{$exists:!1}}]:r.entityId={$exists:!1};const{data:i}=await this.refresh("relation",{data:{id:1,entity:1,entityId:1,name:1,display:1,actionAuth$relation:{$entity:"actionAuth",data:{id:1,pathId:1,deActions:1,path:{id:1,destEntity:1,value:1,sourceEntity:1,recursive:1}}}},filter:r});return 2===i.length?i.find((e=>e.entityId)).id:i[0].id}}class $n extends Jt{constructor(e){super(),this.acceptableLatency=e||1e3}get(){return{latitude:this.latitude,longitude:this.longitude,lastTimestamp:this.lastTimestamp}}async refresh(){{const e=()=>new Promise(((e,t)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition((t=>{const n=t.coords,r={accuracy:n.accuracy,altitude:n.altitude,altitudeAccuracy:n.altitudeAccuracy,heading:n.heading,latitude:n.latitude,longitude:n.longitude,speed:n.speed};e(r)}),(e=>{t(e)}),{enableHighAccuracy:!0,timeout:1e4,maximumAge:3e3}):t("Your browser does not support Geolocation!")})),t=await e();this.lastTimestamp=Date.now(),this.latitude=t.latitude,this.longitude=t.longitude}this.publish()}}var Tn=n(41146);const Cn=":next";function Pn(e,t,n,r){const{action:i,data:o}=r,a=(0,pe.cloneDeep)(n);if((0,ge.v)("create"!==i),"remove"===i){if("create"==n.action)return null;a.action="remove",a.data=(0,pe.cloneDeep)(o)}else{"update"!==i&&("update"===n.action?n.action=i:(0,ge.v)(i===n.action,"\u4e0d\u5e94\u5f53\u6709\u51b2\u7a81\u7684update\u6a21\u5f0f"));const{data:r}=a;for(const n in o){const i=(0,gn.judgeRelation)(e,t,n);if(1===i)r[n]=(0,pe.cloneDeep)(o[n]);else if(2===i)if(r[n]){const t=Pn(e,n,r[n],o[n]);t?r[n]=t:(0,pe.unset)(r,n)}else r[n]=(0,pe.cloneDeep)(o[n]);else if("string"===typeof i)if(r[n]){const t=Pn(e,i,r[n],o[n]);t?r[n]=(0,pe.cloneDeep)(t):(0,pe.unset)(r,n)}else r[n]=o[n];else(0,ge.v)(i instanceof Array),r[n],r[n]=(0,pe.cloneDeep)(o[n])}}return a}class Rn{constructor(e,t,n){this.logs=[],this.schema=e,this.entity=t,this.maxLsn=n||100}mergeOperation(e,t){return Pn(this.schema,this.entity,e,t)}push(e,t){const{action:n,filter:r,data:i}=t;let o="create"===n?[i.id]:(0,vn.getRelevantIds)(r);const a=JSON.stringify(o.length>0?o:r);if(this.logs.length>0){const o=this.logs[this.logs.length-1];if((0,ge.v)(o.lsn<=e),o.lsn===e){const{operations:e}=o;if(e[a]){const n=this.mergeOperation(e[a],t);return void(n?e[a]=n:(0,pe.unset)(e,a))}return void(e[a]={id:(0,Kt.generateNewId)(),action:n,data:i,filter:r})}}this.logs.push({lsn:e,operations:{[a]:{id:(0,Kt.generateNewId)(),action:n,data:i,filter:r}}}),e>this.maxLsn&&(this.maxLsn=e)}undo(e){const t=(0,vn.getRelevantIds)(e),n=JSON.stringify(t.length>0?t:e);this.logs.forEach((e=>{const{operations:t}=e;(0,pe.unset)(t,n)}))}rollback(e){const t=this.logs.filter((t=>t.lsn<=e));this.logs=t,this.maxLsn=e||100}makeOperations(){const e={};for(const t of this.logs){const{operations:n}=t;for(const t in n)if(e[t]){const r=this.mergeOperation(e[t],n[t]);r?e[t]=r:(0,pe.unset)(e,t)}else e[t]=(0,pe.cloneDeep)(n[t])}return Object.values(e)}isEmpty(){return 0===this.logs.length}}class Nn extends Jt{constructor(e){super(),this.zombie=!1,this.count=0,this.executing=!1,this.extraData={},this.refreshing=0,this.refreshCallbacks=[],this.fullPath=e}isInModiNextBranch(){return this.fullPath.includes(Cn)}increaseCount(){return this.count++,this.count}decreaseCount(){return this.count--,this.count}getCount(){return this.count}setZombie(e){this.zombie=e}isZombie(){return this.zombie}isDirty(){return!!this.dirty}isLoading(){return!!this.refreshing}isExecuting(){return this.executing}setExecuting(e){this.executing=e,this.publish()}startRefreshing(e){if(this.refreshing)return new Promise(((e,t)=>{this.refreshCallbacks.push([e,t])}));this.refreshing=e;for(const t in this.children)this.children[t].startRefreshing(e);return e}endRefreshing(e,t){if(this.refreshing===e){this.refreshing=0;for(const r in this.children)this.children[r].endRefreshing(e,t);const n=this.refreshCallbacks;this.refreshCallbacks=[],n.forEach((e=>{let[n,r]=e;t?r(t):n()}))}}saveExtraData(e,t){this.extraData[e]=t}loadExtraData(e){return this.extraData[e]}isStale(){return!!this.stale}}class Mn extends Nn{constructor(e,t,n,r,i,o){super(r),this.entity=e,this.schema=t,this.cache=n,this.projection=i,this.parent=o,this.dirty=void 0,this.executing=!1,this.ulManager=new Rn(this.schema,this.entity)}getEntity(){return this.entity}getSchema(){return this.schema}setDirty(){this.dirty||(this.dirty=!0),this.parent&&this.parent.setDirty(),this.publish()}getParent(){return this.parent}getProjection(){return"function"===typeof this.projection?this.projection():this.projection&&(0,pe.cloneDeep)(this.projection)}setProjection(e){this.projection=e}judgeRelation(e){const t=e.split(":")[0];return(0,gn.judgeRelation)(this.schema,this.entity,t)}}const Fn={currentPage:0,pageSize:20,more:!0,total:void 0,count:0};class Dn extends Mn{setFiltersAndSortedApplied(){this.filters.forEac
2h((e=>e.applied=!0)),this.sorters.forEach((e=>e.applied=!0));for(const e in this.children)this.children[e].setFiltersAndSortedApplied()}startLoading(){const e=Math.random()+1;return this.startRefreshing(e)}checkIfClean(e){if(!this.ulManager.isEmpty())return!1;for(const t in this.children)if(this.children[t]!==e&&this.children[t].isDirty())return!1;return!0}getModiOperations(){if(this.schema[this.entity].toModi){const e=Object.keys(this.sr);if(e.length>0){const t=this.cache.get("modi",{data:{id:1,targetEntity:1,entity:1,entityId:1,iState:1,action:1,data:1,filter:1},filter:{entity:this.entity,entityId:{$in:e},iState:"active"},sorter:[{$attr:{$$createAt$$:1},$direction:"asc"}]});if(t.length>0)return(0,Tn.createOperationsFromModies)(t)}}const e=[];for(const t in this.children){const n=this.children[t].getModiOperations();n&&e.push(...n)}if(e.length>0)return e}onCacheSync(e){if(this.isLoading())return;const t=(e,t)=>{this.sr[e]||t&&!this.cache.checkFilterContains(this.entity,t,{id:e},!0)||(this.sr[e]={},"number"===typeof this.pagination.total&&(this.pagination.total+=1),"number"===typeof this.pagination.count&&(this.pagination.count+=1))};for(const n of e){const{a:e}=n;switch(e){case"c":{const{e:e,d:r}=n;if(e===this.entity){const n=this.constructFilters(!0,!0,!0),i=n&&(0,vn.combineFilters)(e,this.schema,n);r instanceof Array?r.forEach((e=>t(e.id,i))):t(r.id,i)}break}case"r":{const{e:e,f:t}=n;if(e===this.entity)if(t)if(t.id)(0,ge.v)(t.id.$in instanceof Array),t.id.$in.forEach((e=>{this.sr.hasOwnProperty(e)&&((0,pe.unset)(this.sr,e),"number"===typeof this.pagination.total&&(this.pagination.total-=1),"number"===typeof this.pagination.count&&(this.pagination.count-=1))}));else for(const n in this.sr)t&&!this.cache.checkFilterContains(e,t,{id:n},!0)||((0,pe.unset)(this.sr,n),"number"===typeof this.pagination.total&&(this.pagination.total-=1),"number"===typeof this.pagination.count&&(this.pagination.count-=1));else this.sr={},this.pagination.total=0;break}case"s":{const{d:e}=n;for(const n in e)if(n===this.entity){const r=this.constructFilters(!0,!0,!0),i=r&&(0,vn.combineFilters)(n,this.schema,r);for(const o in e[n])t(o,i)}break}
2default:{const{e:e,d:t,f:r}=n;if(e===this.entity){const{id:e}=r,t="string"===typeof e?[e]:e.$in,n=Object.keys(this.sr),i=(0,pe.intersection)(t,n),o=(0,pe.difference)(t,n),a=this.constructFilters(!0,!0,!0);if(i.length){const e=this.cache.get(this.entity,{data:{id:1},filter:(0,vn.combineFilters)(this.entity,this.schema,[...a||[],{id:{$in:i}}])}).map((e=>e.id));(0,pe.difference)(i,e).forEach((e=>{(0,pe.unset)(this.sr,e),this.pagination.total&&this.pagination.total--}))}o.length&&o.forEach((e=>{this.sr[e]={},this.pagination.total&&this.pagination.total++}))}break}}}}destroy(){this.cache.unbindOnSync(this.syncHandler);for(const e in this.children)this.children[e].destroy()}constructor(e,t,n,r,i,o,a,s,c,l,u,d){super(e,t,n,r,i,o),this.children={},this.pagination={...Fn},this.sr={},this.loadingMore=!1,this.filters=s||[],this.sorters=c||[],this.getTotal=l,this.sr={},this.pagination=u?{...u,currentPage:u.currentPage-1,more:!0,total:void 0,count:0,getTotal:l}:{...Fn,getTotal:l},this.stale=d,this.syncHandler=e=>this.onCacheSync(e),this.cache.bindOnSync(this.syncHandler),o&&((0,ge.v)(a),o.addChild(a,this))}getPagination(){return this.pagination}setPagination(e,t){const n=Object.assign(this.pagination,e);this.pagination=n,t||this.refresh(0,!1)}isLoadingMore(){return this.loadingMore}addChild(e,t){(0,ge.v)(!this.children[e]),this.children[e]=t,(0,ge.v)(this.sr),t.saveRefreshResult({[e]:this.sr[e]||{}})}removeChild(e){(0,pe.unset)(this.children,e)}getChild(e){return this.children[e]}getNamedFilters(){return this.filters}getNamedFilterByName(e){return this.filters.find((t=>t["#name"]===e))}setNamedFilters(e,t){this.filters=e.map((e=>Object.assign({},e,{applied:!1}))),t?this.refresh(0,!1):this.publish()}addNamedFilter(e,t){const n=this.filters.findIndex((t=>e["#name"]&&t["#name"]===e["#name"]));n>=0?this.filters.splice(n,1,Object.assign({},e,{applied:!1})):this.filters.push(Object.assign({},e,{applied:!1})),t?this.refresh(0,!1):this.publish()}removeNamedFilter(e,t){const n=this.filters.findIndex((t=>e["#name"]&&t["#name"]===e["#name"]));n>=0&&this.filters.splice(n,1),this.pagination.total=void 0,t?this.refresh(0,!1):this.publish()}removeNamedFilterByName(e,t){const n=this.filters.findIndex((t=>t["#name"]===e));n>=0&&this.filters.splice(n,1),this.pagination.total=void 0,t?this.refresh(0,!1):this.publish()}getNamedSorters(){return this.sorters}getNamedSorterByName(e){return this.sorters.find((t=>t&&t["#name"]===e))}setNamedSorters(e,t){this.sorters=e.map((e=>Object.assign({},e,{applied:!1}))),t?this.refresh(0,!1):this.publish()}addNamedSorter(e,t){const n=this.sorters.findIndex((t=>e["#name"]&&t["#name"]===e["#name"]));n>=0?this.sorters.splice(n,1,Object.assign({},e,{applied:!1})):this.sorters.push(Object.assign({},e,{applied:!1})),t?this.refresh(0,!1):this.publish()}removeNamedSorter(e,t){const n=this.sorters.findIndex((t=>e["#name"]&&t["#name"]===e["#name"]));n>=0&&this.sorters.splice(n,1),t?this.refresh(0,!1):this.publish()}removeNamedSorterByName(e,t){const n=this.sorters.findIndex((t=>t["#name"]===e));n>=0&&this.sorters.splice(n,1),t?this.refresh(0,!1):this.publish()}getFreshValue(){const e=this.isInModiNextBranch(),t=Object.keys(this.sr),n=this.ulManager.makeOperations().filter((e=>"create"===e.action)).map((e=>e.data.id)),{data:r,sorter:i,filter:o}=this.constructSelection(!0,!1,!0,!0),a=t.concat(n),s=e?o:a.length>0?o?(0,vn.combineFilters)(this.entity,this.cache.getSchema(),[o,{id:{$in:a}}]):{id:{$in:a}}:void 0;if(s&&r){let t={...this.sr};n.length&&n.forEach((e=>Object.assign(t,{[e]:{}})));return this.cache.get(this.entity,{data:r,filter:e?o:s,sorter:i},e?void 0:t)}return[]}addItemInner(e,t){for(const i in e)""===e[i]&&Object.assign(e,{[i]:null});const n=e.id||(0,Kt.generateNewId)(),r=Date.now();return this.ulManager.push(t,{action:"create",data:Object.assign(e,{id:n,[X.CreateAtAttribute]:r,[X.UpdateAtAttribute]:r})}),n}addItem(e,t){const n=this.addItemInner(t,e);return this.setDirty(),n}addItems(e,t){const n=t.map((t=>this.addItemInner(t,e)));return this.setDirty(),n}removeItemInner(e,t){this.ulManager.push(t,{action:"remove",data:{[X.DeleteAtAttribute]:Date.now()},filter:{id:e}})}removeItem(e,t){this.removeItemInner(t,e),this.setDirty()}removeItems(e,t){t.forEach((t=>this.removeItemInner(t,e))),this.setDirty()}recoverItemInner(e){this.ulManager.undo({id:e})}recoverItem(e){this.recoverItemInner(e),this.setDirty()}recoverItems(e){e.forEach((e=>this.recoverItemInner(e))),this.setDirty()}resetItem(e){this.ulManager.undo({id:e})}preProcessUpdateData(e){const t=[];for(const n in e)""!==e[n]||this.schema[this.entity].attributes[n].notNull?void 0===e[n]&&t.push(n):Object.assign(e,{[n]:null});t.forEach((t=>(0,pe.unset)(e,t)))}updateItemInner(e,t,n,r){this.ulManager.push(e,{action:r||"update",data:Object.assign({},t,{[X.UpdateAtAttribute]:Date.now()}),filter:{id:n}})}updateItem(e,t,n,r){this.preProcessUpdateData(t),this.updateItemInner(e,t,n,r),this.setDirty()}
2updateItems(e,t,n,r){this.preProcessUpdateData(t),n.forEach((n=>this.updateItemInner(e,t,n,r))),this.setDirty()}composeOperations(e){if(!this.dirty)return;this.getIntrinsticFilters();const t=this.ulManager.maxLsn;null===e||void 0===e||e.shift();for(const r in this.children){const n=this.children[r].composeOperations(e);n&&n.forEach((e=>this.ulManager.push(t+100,e.operation)))}const n=this.ulManager.makeOperations();return this.ulManager.rollback(t),n.map((e=>{const{filter:t,...n}=e;return{entity:this.entity,operation:e}}))}getProjection(){return super.getProjection()}constructFilters(e,t,n,r){const{filters:i}=this,o=i.filter((e=>(!n||!0===e.applied||void 0===e.applied)&&(!r||e.hot))).map((e=>{const{filter:t}=e;return"function"===typeof t?t():t}));if(e&&this.parent&&this.parent instanceof Ln){const e=this.parent.getParentFilter(this,t);if(!e)return;o.push(e)}return(0,pe.cloneDeep)(o)}constructSelection(e,t,n,r){const{sorters:i,getTotal:o}=this,a=this.getProjection(),s=i.length>0?i.filter((e=>!n||e.applied)).map((e=>{const{sorter:t}=e;return"function"===typeof t?t():t})).flat().filter((e=>!!e)):[{$attr:{$$createAt$$:1},$direction:"desc"}],c=this.constructFilters(e,t,n,r),l=null===c||void 0===c?void 0:c.filter((e=>!!e)),u=l?(0,vn.combineFilters)(this.entity,this.schema,l):void 0,{currentPage:d,pageSize:h}=this.pagination;return{data:a,filter:u,sorter:s,total:void 0===this.pagination.total||!!this.filters.find((e=>!e.applied))?o:void 0,indexFrom:d*h,count:h}}saveRefreshResult(e,t,n){const{data:r,total:i}=e;(0,ge.v)(r);const o=Object.keys(r).length,a=this.getTotal;if(this.pagination.more=o===this.pagination.pageSize,"number"!==typeof n||t||(this.pagination.currentPage=n),"number"===typeof i&&(this.pagination.total=i),"number"===typeof a){const e=this.pagination.total||0;if(this.pagination.more&&e<a){const t=Math.floor((e-1)/this.pagination.pageSize)+1;this.pagination.more=this.pagination.currentPage+1<t}}t?(this.pagination.count+=o,this.sr={...this.sr,...r}):(this.pagination.count=o,this.sr=r||{});for(const s in this.children){this.children[s].saveRefreshResult({[s]:this.sr[s]||{}})}}async refresh(e,t,n){n&&(this.pagination.total=void 0);const{entity:r,pagination:i}=this,{currentPage:o,pageSize:a,randomRange:s}=i,c="number"===typeof e?e:o;(0,ge.v)(!s||!c,"list\u5728\u8bbf\u95ee\u6570\u636e\u65f6\uff0c\u5982\u679c\u8bbe\u7f6e\u4e86randomRange\uff0c\u5219\u4e0d\u5e94\u518d\u6709pageNumber");const{data:l,filter:u,sorter:d,total:h}=this.constructSelection(!0,!0);if((!this.getParent()||this.getParent()instanceof Bn||u)&&l){const e=!t&&this.startLoading();if(e instanceof Promise)return e;try{t&&(this.loadingMore=!0),this.publish(),await this.cache.refresh(r,{data:l,filter:u,sorter:d,indexFrom:c*a,count:a,randomRange:s,total:h},void 0,(n=>{"number"===typeof e&&this.endRefreshing(e),this.setFiltersAndSortedApplied(),t&&(this.loadingMore=!1),this.saveRefreshResult(n,t,c)}))}catch(f){throw"number"===typeof e&&this.endRefreshing(e,f),t&&(this.loadingMore=!1),this.publish(),f}}else this.setFiltersAndSortedApplied(),this.sr={},this.publish()}async loadMore(){const{filters:e,sorters:t,pagination:n,entity:r}=this,{pageSize:i,more:o,currentPage:a,count:s}=n;if(!o||this.loadingMore||!s)return;(0,ge.v)(s);const c=s/i;await this.refresh(c,!0)}setCurrentPage(e){this.refresh(e,!1)}clean(e,t){for(const n in this.children)this.children[n].clean(e,!0);this.dirty&&(this.ulManager.rollback(e||0),e||(this.dirty=void 0),t||this.publish())}getIntrinsticFilters(){const e=this.constructFilters(void 0,!0,!0);return(0,vn.combineFilters)(this.entity,this.schema,e||[])}}class Ln extends Mn{constructor(e,t,n,r,i,o,a,s,c,l){super(e,t,n,r,o,a),this.children={},this.sr={},this.filters=c,this.stale=l,a&&((0,ge.v)(i),a.addChild(i,this)),s&&(this.id?(0,ge.v)(s===this.id,"singleNode\u521d\u59cb\u5316\u7684id\u5fc5\u987b\u4e00\u81f4"):this.id=s)}getModiOperations(){if(this.schema[this.entity].toModi){const e=this.cache.get("modi",{data:{id:1,targetEntity:1,entity:1,entityId:1,iState:1,action:1,data:1,filter:1},filter:{entity:this.entity,entityId:this.id,iState:"active"},sorter:[{$attr:{$$createAt$$:1},$direction:"asc"}]});if(e.length>0)return(0,Tn.createOperationsFromModies)(e)}for(const e in this.children){const t=this.children[e];if(t instanceof Ln){const e=t.getModiOperations();if(e)return e}}}setFiltersAndSortedApplied(){for(const e in this.children)this.children[e].setFiltersAndSortedApplied()}
2startLoading(){const e=Math.random()+1;return this.startRefreshing(e)}checkIfClean(e){if(!this.ulManager.isEmpty())return!1;for(const t in this.children)if(this.children[t]!==e&&this.children[t].isDirty())return!1;return!0}destroy(){for(const e in this.children)this.children[e].destroy()}getChild(e){return this.children[e]}setId(e){if(e!==this.id){const t=this.ulManager.makeOperations();(0,ge.v)(t.length<=1);const[n]=t;if("create"===(null===n||void 0===n?void 0:n.action)){if(n.data.id===e)return;this.clean(0,!0)}(0,ge.v)(!this.dirty,"setId\u65f6\u7ed3\u70b9\u662fdirty\uff0c\u5728setId\u4e4b\u524d\u5e94\u5f53\u5904\u7406\u6389\u539f\u6709\u7684update"),this.id=e,this.refreshListChildren(),this.publish()}}unsetId(){this.id&&(this.id=void 0,this.refreshListChildren(),this.publish())}getId(){if(this.id)return this.id;const e=this.ulManager.makeOperations();(0,ge.v)(e.length<=1);const[t]=e;return t&&"create"===(null===t||void 0===t?void 0:t.action)?t.data.id:void 0}getChildren(){return this.children}addChild(e,t){(0,ge.v)(!this.children[e],`\u65e0\u6cd5\u5b9a\u4e49\u76f8\u540c\u8def\u5f84[${e}]\u4e0b\u7684\u5b50\u8282\u70b9`),this.children[e]=t,this.passRsToChild(e)}removeChild(e){(0,pe.unset)(this.children,e)}getFreshValue(){const e=this.isInModiNextBranch(),t=this.getProjection(!1),n=this.getFilter(void 0,!0);if(t&&n){const r=this.getId();return this.cache.get(this.entity,{data:t,filter:n},e?void 0:{[r]:this.sr})[0]}}refreshListChildren(){for(const e in this.children){const t=this.children[e];t instanceof Dn&&t.refresh(0,!1)}}create(e,t){const n=(0,Kt.generateNewId)();(0,ge.v)(!this.id&&!this.dirty,"create\u524d\u8981\u4fdd\u8bc1singleNode\u4e3a\u7a7a");for(const i in t)""===t[i]&&Object.assign(t,{[i]:null});const r=Date.now();this.ulManager.push(e,{action:"create",data:Object.assign({},t,{id:n,[X.CreateAtAttribute]:r,[X.UpdateAtAttribute]:r})}),this.refreshListChildren(),this.setDirty()}update(e,t,n){const r=[];for(const i in t)""!==t[i]||this.schema[this.entity].attributes[i].notNull?void 0===t[i]&&r.push(i):Object.assign(t,{[i]:null});r.forEach((e=>(0,pe.unset)(t,e))),this.ulManager.push(e,{action:n||"update",data:Object.assign({},t,{[X.UpdateAtAttribute]:Date.now()}),filter:{id:this.getId()}}),this.setDirty()}remove(e){const t=this.getId();(0,ge.v)(t,"\u5f53\u524d\u8282\u70b9\u7684remove\u5fc5\u987b\u63d0\u4f9bid"),this.ulManager.push(e,{action:"remove",data:{[X.DeleteAtAttribute]:Date.now()},filter:{id:t}}),this.setDirty()}setDirty(){const e=this.getId();(0,ge.v)(e),this.ulManager.push(this.ulManager.maxLsn,{action:"update",data:{},filter:{id:e}}),super.setDirty()}composeOperations(e){if(this.dirty){const t=this.ulManager.maxLsn,n=null===e||void 0===e?void 0:e.shift();for(const o in this.children){if(n&&n!==o)continue;const r=o.includes(":")?o.slice(0,o.indexOf(":")):o,i=this.children[o],a=i.composeOperations(null!==e&&void 0!==e&&e.length?e:void 0);a&&(i instanceof Ln?((0,ge.v)(1===a.length),this.ulManager.push(t+100,{action:"update",data:{[r]:a[0].operation},filter:{id:this.getId()}})):((0,ge.v)(i instanceof Dn),this.ulManager.push(t+100,{action:"update",data:{[r]:a.map((e=>{let{operation:t}=e;return t}))},filter:{id:this.getId()}})))}const r=this.ulManager.makeOperations();this.ulManager.rollback(t),(0,ge.v)(r.length<=1);const[i]=r;if(i){const{filter:e,...t}=i,n=this.getFilter(!0);return[{entity:this.entity,operation:{...t,filter:n}}]}}}getProjection(e){const t=super.getProjection();if(t&&e)for(const n in this.children)if(t[n],!n.includes(Cn)){const e=this.judgeRelation(n.includes(":")?n.split(":")[0]:n);if(2===e){const e=this.children[n].getProjection(!0);Object.assign(t,{entity:1,entityId:1,[n]:e})}else if("string"===typeof e){const e=this.children[n].getProjection(!0);Object.assign(t,{[`${n}Id`]:1,[n]:e})}else if(!n.endsWith("$$aggr")){const r=this.children[n];(0,ge.v)(e instanceof Array&&r instanceof Dn);const i=r.constructSelection(),o=r.getEntity();Object.assign(t,{[n]:Object.assign(i,{$entity:o})})}}return t}passRsToChild(e){const t=this.getProjection(!0),[n]=this.cache.get(this.entity,{data:t,filter:{id:this.id}},this.sr),r=e?[e]:Object.keys(this.children||{});for(const i of r){const e=this.children[i],t=i.split(":")[0],r=this.judgeRelation(t);2===r?null!==n&&void 0!==n&&n.entityId?((0,ge.v)(e instanceof Ln),(0,ge.v)(n.entity===e.getEntity()),e.saveRefreshResult({[n.entityId]:this.sr[t]||{}})):n&&n.entityId:"string"===typeof r?n&&n[`${t}Id`]?((0,ge.v)(e instanceof Ln),(0,ge.v)(r===e.getEntity()),e.saveRefreshResult({[n[`${t}Id`]]:this.sr[t]||{}})):n&&n[`${t}Id`]:((0,ge.v)(r instanceof Array),(0,ge.v)(e instanceof Dn),this.sr[t]&&e.saveRefreshResult(this.sr[t]))}}saveRefreshResult(e){const t=Object.keys(e);0===t.length&&(0,ge.v)(!this.id,"\u901a\u8fc7id\u67e5\u8be2\u6570\u636e\u7ed3\u679c\u4e3a\u7a7a"),(0,ge.v)(1===t.length,"\u901a\u8fc7id\u67e5\u8be2\u6570\u636e\u7ed3\u679c\u4e0d\u552f\u4e00"),this.setId(t[0]),this.sr=e[t[0]],this.passRsToChild()}async refresh(){const e=this.getProjection(!0),t=this.getFilter(!0);if(e&&t){const r=this.startLoading();if(r instanceof Promise)return r;this.publish();try{await this.cache.refresh(this.entity,{data:e,filter:t},void 0,(e=>{this.saveRefreshResult(e.data),this.setFiltersAndSortedApplied(),this.endRefreshing(r)}))}catch(n){throw this.endRefreshing(r,n),this.publish(),n}}else this.publish()}clean(e,t){for(const n in this.children)this.children[n].clean(e,!0);this.dirty&&(this.ulManager.rollback(e||0),e||(this.dirty=void 0),t||this.publish())}getFilter(e,t){const[n]=this.ulManager.makeOperations();
2if("create"===(null===n||void 0===n?void 0:n.action)){if(e)return;const{id:t}=n.data;return{id:t}}if(this.id){let e={id:this.id};if(this.filters&&(e=(0,vn.combineFilters)(this.entity,this.schema,this.filters.filter((e=>!t||e.hot)).map((e=>"function"===typeof e.filter?e.filter():e.filter)).concat(e))),this.parent&&this.parent instanceof Dn&&this.parent.getEntity()===this.entity){const{filter:t}=this.parent.constructSelection(!0,!0,!0);e=(0,vn.combineFilters)(this.entity,this.schema,[e,t])}return e}}getIntrinsticFilters(){return this.getFilter()}getParentFilter(e,t){const n=this.getFreshValue();if(!(!n||n&&1===n.$$createAt$$&&t))for(const r in this.children)if(e===this.children[r]){const e=this.judgeRelation(r);if((0,ge.v)(e instanceof Array&&!r.endsWith("$$aggr")),e[1]){if(n)return{[e[1]]:n.id};const t=this.getFilter();if(t)return t.id&&1===Object.keys(t).length?{[e[1]]:t.id}:{[e[1].slice(0,e[1].length-2)]:t}}else{if(n)return{entity:this.entity,entityId:n.id};const e=this.getFilter();if(e)return e.id&&1===Object.keys(e).length?{entity:this.entity,entityId:e.id}:{[this.entity]:e}}}}}class Bn extends Nn{constructor(e,t,n,r){super(e),this.refreshing2=!1,this.children={},this.stale=r,n&&(n.addChild(t,this),this.parent=n)}getModiOperations(){for(const e in this.children){const t=this.children[e];if(t instanceof Ln){const e=t.getModiOperations();if(e)return e}}}setDirty(){this.dirty=!0,this.publish()}setFiltersAndSortedApplied(){for(const e in this.children)this.children[e].setFiltersAndSortedApplied()}addChild(e,t){if((0,ge.v)(!this.children[e],`\u65e0\u6cd5\u5b9a\u4e49\u76f8\u540c\u8def\u5f84[${e}]\u4e0b\u7684\u5b50\u8282\u70b9`),this.children[e]=t,t instanceof Ln||t instanceof Dn){const n=t.getEntity();t instanceof Ln?(0,ge.v)(e===n||e.startsWith(`${n}:`),`oakPath\u300c${e}\u300d\u4e0d\u7b26\u5408\u547d\u540d\u89c4\u8303\uff0c\u8bf7\u4ee5\u300c${n}:\u300d\u4e3a\u547d\u540d\u8d77\u59cb\u6807\u8bc6`):(0,ge.v)(e===`${n}s`||e.startsWith(`${n}s:`),`oakPath\u300c${e}\u300d\u4e0d\u7b26\u5408\u547d\u540d\u89c4\u8303\uff0c\u8bf7\u4ee5\u300c${n}s:\u300d\u4e3a\u547d\u540d\u8d77\u59cb\u6807\u8bc6`)}}removeChild(e){(0,pe.unset)(this.children,e)}getChild(e){return this.children[e]}getParent(){return this.parent}destroy(){for(const e in this.children)this.children[e].destroy()}getFreshValue(){}isLoading(){return this.refreshing2}async refresh(){this.refreshing2=!0;const e=Object.keys(this.children).map((e=>this.children[e].refresh()));try{this.publish(),await Promise.all(e),this.refreshing2=!1,this.publish()}catch(t){throw this.refreshing2=!1,this.publish(),t}}composeOperations(e){const t=[],n={},r=null===e||void 0===e?void 0:e.shift();for(const i in this.children){if(r&&r!==i)continue;const t=this.children[i].composeOperations(null!==e&&void 0!==e&&e.length?e:void 0);if(t){const e=-1!==i.indexOf(":")?i.slice(0,i.indexOf(":")):i;n[e]?(0,ge.v)(!1,"\u8fd9\u79cd\u60c5\u51b5\u4e0d\u5e94\u5f53\u518d\u51fa\u73b0"):n[e]=t}}for(const i in n)t.push(...n[i]);return t}clean(e,t){for(const n in this.children)this.children[n].clean(e,!0);e||(this.dirty=!1),t||this.publish()}checkIfClean(e){for(const t in this.children)if(this.children[t]!==e&&this.children[t].isDirty())return!1;return!0}}function Un(e){const t=e.split("."),n=t.length;return{root:t[0],parent:n>1?t.slice(0,n-1).join("."):"",path:t[n-1]}}class Wn extends Jt{constructor(e,t){super(),this.cachedOperations={},this.cachedModis={},this.cache=e,this.schema=t,this.root={},this.logSerailNumber=100,this.cache.bindOnSync((e=>{e.forEach((e=>{const{a:t}=e;switch(t){case"c":{const{e:t}=e;"modi"===t&&this.invalidateCachedModis();break}case"r":{const{e:t}=e;"modi"===t&&this.invalidateCachedModis();break}case"s":{const{d:t}=e;for(const e in t)if("modi"===e){this.invalidateCachedModis();break}break}default:{const{e:t}=e;"modi"===t&&this.invalidateCachedModis();break}}}))}))}createNode(e,t){const{entity:n,pagination:r,path:i,filters:o,sorters:a,projection:s,isList:c,id:l,getTotal:u,zombie:d,stale:h}=e;let f;const{parent:p,path:g}=Un(i),y=p?this.findNode(p):void 0;if(f=this.findNode(i),f)if(f.getCount())if((0,ge.v)(!t||d,"\u6682\u65f6\u5728\u8def\u7531\u4e0a\u53ef\u80fd\u56de\u5f52\u7684\u9875\u9762\u5fc5\u987b\u8bbe\u7f6e\u4e3azombie"),n){if(f instanceof Dn)c&&f.getEntity()===n&&!f.getProjection()&&s&&(f.setProjection(s),o&&f.setNamedFilters(o),a&&f.setNamedSorters(a),r&&f.setPagination(r,!0));else if((0,ge.v)(f instanceof Ln,`\u8282\u70b9[${g}]\u5e94\u4e3aVirtual\u8282\u70b9\uff0c\u4f46\u73b0\u5728\u662f[${n.toString()}]\u8bf7\u68c0\u67e5oakPath\u662f\u5426\u91cd\u590d`),(0,ge.v)(!c&&f.getEntity()===n,`\u8282\u70b9${g}\u7684entity\u4e3a${f.getEntity().toString()}\uff0c\u4f46\u73b0\u5728\u4e3a${n.toString()}\uff0c\u8bf7\u68c0\u67e5oakPath\u662f\u5426\u91cd\u590d`),!f.getProjection()&&s&&(f.setProjection(s),l)){const e=f.getId();(0,ge.v)(l===e,`\u91cd\u7528path[${i}]\u4e0a\u7684singleNode\u65f6\uff0c\u5176\u4e0a\u6ca1\u6709\u7f6e\u6709\u6548id\uff0c\u8fd9\u79cd\u60c5\u51b5id\u5e94\u5f53\u7531\u7236\u7ed3\u70b9\u8bbe\u7f6e`)}}else(0,ge.v)(!1,`\u521b\u5efaVirtual\u8282\u70b9\u65f6\u53d1\u73b0path[${i}]\u5df2\u7ecf\u5b58\u5728\u6709\u6548\u7684\u7ed3\u70b9\uff0c\u8bf7\u68c0\u67e5oakPath\u662f\u5426\u91cd\u590d`);else(f instanceof Ln||f instanceof Dn)&&(0,ge.v)(f.getEntity()===n,"zombie\u7559\u4e0b\u7684node\uff0c entity\u4e0d\u80fd\u53d8\u5316");else{const e=this.begin();y&&(this.redoBranchModis(i),this.redoBranchOperations(i)),n?c?((0,ge.v)(!(y instanceof Dn)),f=new Dn(n,this.schema,this.cache,i,s,y,g,o,a,u,r,h)):f=new Ln(n,this.schema,this.cache,i,g,s,y,l,o,h):((0,ge.v)(!y||y instanceof Bn),f=new Bn(i,g,y,h)),e(),y||((0,ge.v)(!p&&!this.root[g]),this.root[g]=f),f.subscribe((()=>{this.publish(i)}))}return f.increaseCount(),d&&f.setZombie(d),f instanceof Ln&&!f.getId()&&(f.create(this.logSerailNumber,{}),this.invalidateCachedOperations(i)),f}findNode(e){if(this.root[e])return this.root[e];const t=e.split(".");let n=this.root[t[0]],r=1;for(;r<t.length&&n;){if(!n)return;const e=t[r];r++,n=n.getChild(e)}return n}destroyNode(e,t){const n=this.findNode(e);if(!n)return;if(0!==n.decreaseCount())return;if(n.isZombie())return;const r=e.slice(e.lastIndexOf(".")+1),i=n.getParent();i?i.removeChild(r):i||((0,ge.v)(this.root.hasOwnProperty(e)),(0,pe.unset)(this.root,e)),this.invalidateCachedOperations(e),n.destroy(),n.clearSubscribes()}begin(){return this.cache.begin()}getFreshValue(e){const t=this.findNode(e);return t instanceof Dn||t instanceof Ln?t.getFreshValue():void 0}isDirty(e){const t=this.findNode(e);return!!t&&t.isDirty()}addItem(e,t){this.invalidateCachedOperations(e);const n=this.findNode(e);return(0,ge.v)(n instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528addItem"),n.addItem(this.logSerailNumber,t)}addItems(e,t){this.invalidateCachedOperations(e);const n=this.findNode(e);return(0,ge.v)(n instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528addItems"),n.addItems(this.logSerailNumber,t)}removeItem(e,t){this.invalidateCachedOperations(e);const n=this.findNode(e);(0,ge.v)(n instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528removeItem"),n.removeItem(this.logSerailNumber,t)}removeItems(e,t){this.invalidateCachedOperations(e);const n=this.findNode(e);(0,ge.v)(n instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528removeItems"),n.removeItems(this.logSerailNumber,t)}updateItem(e,t,n,r){this.invalidateCachedOperations(e);const i=this.findNode(e);(0,ge.v)(i instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528updateItem"),i.updateItem(this.logSerailNumber,t,n,r)}updateItems(e,t,n,r){this.invalidateCachedOperations(e);const i=this.findNode(e);(0,ge.v)(i instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528updateItems"),i.updateItems(this.logSerailNumber,t,n,r)}recoverItem(e,t){this.invalidateCachedOperations(e);const n=this.findNode(e);(0,ge.v)(n instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528recoverItem"),n.recoverItem(t)}recoverItems(e,t){this.invalidateCachedOperations(e);const n=this.findNode(e);(0,ge.v)(n instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528recoverItems"),n.recoverItems(t)}resetItem(e,t){this.invalidateCachedOperations(e);const n=this.findNode(e);(0,ge.v)(n instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528resetItem"),n.resetItem(t)}create(e,t){this.invalidateCachedOperations(e);const n=this.findNode(e);(0,ge.v)(n instanceof Ln,"\u53ea\u80fd\u5728SingleNode\u4e0a\u8c03\u7528create"),n.create(this.logSerailNumber,t)}update(e,t,n){this.invalidateCachedOperations(e);const r=this.findNode(e);(0,ge.v)(r instanceof Ln,"\u53ea\u80fd\u5728SingleNode\u4e0a\u8c03\u7528update"),r.update(this.logSerailNumber,t,n)}remove(e){this.invalidateCachedOperations(e);const t=this.findNode(e);(0,ge.v)(t instanceof Ln,"\u53ea\u80fd\u5728SingleNode\u4e0a\u8c03\u7528remove"),t.remove(this.logSerailNumber)}isLoading(e){const t=this.findNode(e);return null===t||void 0===t?void 0:t.isLoading()}isLoadingMore(e){const t=this.findNode(e);return t instanceof Dn&&(null===t||void 0===t?void 0:t.isLoadingMore())}isExecuting(e){const t=this.findNode(e);return!!t&&t.isExecuting()}isListChildOrStale(e){const t=this.findNode(e);if(null!==t&&void 0!==t&&t.isStale())return!0;return(null===t||void 0===t?void 0:t.getParent())instanceof Dn}isInModiNextBranch(e){if(!e.includes(Cn))return!1;const t=e.split(".");if(t[0].includes(Cn))return!1;let n=1;for(;n<t.length;){if(t[n].includes(Cn)){const e=t.slice(0,n).join(".")+"."+t[n].replace(Cn,"");if(this.findNode(e))return!0;const r=t.slice(0,n+1).join("."),i=this.findNode(r);if(i instanceof Ln){const e=i.getId(),[t]=this.cache.get("modi",{data:{id:1},filter:{action:"create",targetEntity:i.getEntity(),filter:{id:e}}});if(t)return!0}return!1}n++}return(0,ge.v)(!1),!1}
2async refresh(e,t,n){if(this.isInModiNextBranch(e))return void this.publish(e);const r=this.findNode(e);r instanceof Dn?await r.refresh(t,!1,n):r&&await r.refresh()}async loadMore(e){const t=this.findNode(e);(0,ge.v)(t instanceof Dn),await t.loadMore()}getPagination(e){const t=this.findNode(e);(0,ge.v)(t instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528getPagination");const n=t.getPagination();return{...n,currentPage:n.currentPage+1}}setId(e,t){const n=this.findNode(e);return(0,ge.v)(n instanceof Ln,"\u53ea\u80fd\u5728SingleNode\u4e0a\u8c03\u7528setId"),n.setId(t)}unsetId(e){const t=this.findNode(e);(0,ge.v)(t instanceof Ln,"\u53ea\u80fd\u5728SingleNode\u4e0a\u8c03\u7528unsetId"),t.unsetId()}getId(e){const t=this.findNode(e);return(0,ge.v)(t instanceof Ln,"\u53ea\u80fd\u5728SingleNode\u4e0a\u8c03\u7528getId"),t.getId()}getEntity(e){const t=this.findNode(e);return(0,ge.v)(t instanceof Mn,"\u53ea\u80fd\u5728EntityNode\u4e0a\u8c03\u7528getEntity"),t.getEntity()}setPageSize(e,t){const n=this.findNode(e);return(0,ge.v)(n instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528setPageSize"),n.setPagination({pageSize:t,currentPage:0,total:void 0})}setCurrentPage(e,t){const n=this.findNode(e);return(0,ge.v)(n instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528setCurrentPage"),n.setCurrentPage(t-1)}getNamedFilters(e){const t=this.findNode(e);return(0,ge.v)(t instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528getNamedFilters"),t.getNamedFilters()}getNamedFilterByName(e,t){const n=this.findNode(e);return(0,ge.v)(n instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528getNamedFilterByName"),n.getNamedFilterByName(t)}setNamedFilters(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=this.findNode(e);(0,ge.v)(r instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528setNamedFilters"),r.setNamedFilters(t,n)}addNamedFilter(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.findNode(e);return(0,ge.v)(r instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528addNamedFilter"),r.addNamedFilter(t,n)}removeNamedFilter(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.findNode(e);return(0,ge.v)(r instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528removeNamedFilter"),r.removeNamedFilter(t,n)}removeNamedFilterByName(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.findNode(e);return(0,ge.v)(r instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528removeNamedFilterByName"),r.removeNamedFilterByName(t,n)}getNamedSorters(e){const t=this.findNode(e);return(0,ge.v)(t instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528getNamedSorters"),t.getNamedSorters()}getNamedSorterByName(e,t){const n=this.findNode(e);return(0,ge.v)(n instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528getNamedSorterByName"),n.getNamedSorterByName(t)}setNamedSorters(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=this.findNode(e);return(0,ge.v)(r instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528setNamedSorters"),r.setNamedSorters(t,n)}addNamedSorter(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.findNode(e);return(0,ge.v)(r instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528addNamedSorter"),r.addNamedSorter(t,n)}removeNamedSorter(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.findNode(e);return(0,ge.v)(r instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528removeNamedSorter"),r.removeNamedSorter(t,n)}removeNamedSorterByName(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.findNode(e);return(0,ge.v)(r instanceof Dn,"\u53ea\u80fd\u5728ListNode\u4e0a\u8c03\u7528removeNamedSorterByName"),r.removeNamedSorterByName(t,n)}getIntrinsticFilters(e){const t=this.findNode(e);return(0,ge.v)(t instanceof Dn||t instanceof Ln),t.getIntrinsticFilters()}getOperations(e){const t=this.findNode(e);return null===t||void 0===t?void 0:t.composeOperations()}invalidateCachedOperations(e){const t=[];for(const n in this.cachedOperations)(e.startsWith(n)||n.startsWith(e))&&t.push(n);t.forEach((e=>(0,pe.unset)(this.cachedOperations,e)))}invalidateCachedModis(){this.cachedModis={}}redoBranchOperations(e){const t=e.split("."),n=t.shift(),r=this.cachedOperations[e]||this.root[n].composeOperations(t);r&&(this.cachedOperations[e]||(this.cachedOperations[e]=r),this.cache.redoOperation(r))}redoBranchModis(e){const{root:t}=Un(e),n=this.root[t];if(e.includes(Cn)){const e=this.cachedModis[t]||n.getModiOperations();this.cachedModis[t]||(this.cachedModis[t]=e),e&&this.cache.redoOperation(e)}}async execute(e,t,n){const r=e&&this.findNode(e);r&&r.setExecuting(!0);let i=!1;try{let o=e&&this.getOperations(e)||[];if(n&&o.push(...n),t)if(o.length>0){(0,ge.v)(1===o.length);const[e]=o;t!==e.operation.action&&((0,ge.v)("update"===e.operation.action),e.operation.action=t)}else if(r){(0,ge.v)(r instanceof Ln),r.update(this.logSerailNumber,{},t),i=!0,o=r.composeOperations()||[],(0,ge.v)(1===o.length);const[e]=o;t!==e.operation.action&&((0,ge.v)("update"===e.operation.action),e.operation.action=t)}if(o.length>0){const t=(0,pe.uniq)(o.filter((e=>!!e)).map((e=>e.entity)));(0,ge.v)(1===t.length);return await this.cache.operate(t[0],o.filter((e=>!!e)).map((e=>e.operation)),void 0,(()=>{e&&this.clean(e,void 0,!0),r&&r instanceof Ln&&(0,ge.v)(1===o.length),r&&r.setExecuting(!1)}))}return e&&this.clean(e,void 0,!0),r&&r.setExecuting(!1),{message:"No Operation"}}catch(o){throw r&&r.setExecuting(!1),i&&e&&this.clean(e),o}}savePoint(){const e=this.logSerailNumber;return this.logSerailNumber++,e}clean(e,t,n){let r=this.findNode(e);const{root:i}=Un(e);for(this.invalidateCachedOperations(i);;){var o;const e=null===(o=r)||void 0===o?void 0:o.getParent();if(!(e&&r&&e.checkIfClean(r))){var a;null===(a=r)||void 0===a||a.clean(t,n);break}r=e}}getRoot(){return this.root}saveExtraData(e,t,n){this.findNode(e).saveExtraData(t,n)}loadExtraData(e,t){return this.findNode(e).loadExtraData(t)}}
2var Hn=n(87946),zn=n.n(Hn),qn=n(26094),Vn=n.n(qn),Gn=n(23334),Yn=n.n(Gn),Kn=n(80561),Xn=n.n(Kn);const Jn=(e,t)=>{const n=[],r=[];return n.push(t),t||n.push(e.locale),e.enableFallback&&n.push(e.defaultLocale),n.filter(Boolean).map((e=>e.toString())).forEach((function(t){if(r.includes(t)||r.push(t),!e.enableFallback)return;const n=t.split("-");3===n.length&&r.push(`${n[0]}-${n[1]}`),r.push(n[0])})),Xn()(r)};class Qn{constructor(e){this.i18n=e,this.registry={},this.register("default",Jn)}register(e,t){if("function"!==typeof t){const e=t;t=()=>e}this.registry[e]=t}get(e){let t=this.registry[e]||this.registry[this.i18n.locale]||this.registry.default;return"function"===typeof t&&(t=t(this.i18n,e)),t instanceof Array||(t=[t]),t}}const Zn=function(e){let{pluralizer:t,includeZero:n=!0,ordinal:r=!1}=e;return function(e,i){return[n&&0===i?"zero":"",t(i,r)].filter(Boolean)}}({pluralizer:(e,t)=>{const n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==e&&r?"one":"other"},includeZero:!0});class er{constructor(e){this.i18n=e,this.registry={},this.register("default",Zn)}register(e,t){this.registry[e]=t}get(e){return this.registry[e]||this.registry[this.i18n.locale]||this.registry.default}}var tr=n(56808),nr=n.n(tr);function rr(e){return e?Object.keys(e).reduce(((t,n)=>(t[nr()(n)]=e[n],t)),{}):{}}function ir(e){return void 0!==e&&null!==e}var or=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,ar=Math.ceil,sr=Math.floor,cr="[BigNumber Error] ",lr=cr+"Number primitive has more than 15 significant digits: ",ur=1e14,dr=14,hr=9007199254740991,fr=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],pr=1e7,gr=1e9;function yr(e){var t=0|e;return e>0||e===t?t:t-1}function mr(e){for(var t,n,r=1,i=e.length,o=e[0]+"";r<i;){for(t=e[r++]+"",n=dr-t.length;n--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function vr(e,t){var n,r,i=e.c,o=t.c,a=e.s,s=t.s,c=e.e,l=t.e;if(!a||!s)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-s:a;if(a!=s)return a;if(n=a<0,r=c==l,!i||!o)return r?0:!i^n?1:-1;if(!r)return c>l^n?1:-1;for(s=(c=i.length)<(l=o.length)?c:l,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^n?1:-1;return c==l?0:c>l^n?1:-1}function br(e,t,n,r){if(e<t||e>n||e!==sr(e))throw Error(cr+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function wr(e){var t=e.c.length-1;return yr(e.e/dr)==t&&e.c[t]%2!=0}function xr(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function Sr(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(++t>(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}var Ar=function e(t){var n,r,i,o=b.prototype={constructor:b,toString:null,valueOf:null},a=new b(1),s=20,c=4,l=-7,u=21,d=-1e7,h=1e7,f=!1,p=1,g=0,y={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},m="0123456789abcdefghijklmnopqrstuvwxyz",v=!0;function b(e,t){var n,o,a,l,u,f,p,g,y=this;if(!(y instanceof b))return new b(e,t);if(null==t){if(e&&!0===e._isBigNumber)return y.s=e.s,void(!e.c||e.e>h?y.c=y.e=null:e.e<d?y.c=[y.e=0]:(y.e=e.e,y.c=e.c.slice()));if((f="number"==typeof e)&&0*e==0){if(y.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,u=e;u>=10;u/=10,l++);return void(l>h?y.c=y.e=null:(y.e=l,y.c=[e]))}g=String(e)}else{if(!or.test(g=String(e)))return i(y,g,f);y.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(l=g.indexOf("."))>-1&&(g=g.replace(".","")),(u=g.search(/e/i))>0?(l<0&&(l=u),l+=+g.slice(u+1),g=g.substring(0,u)):l<0&&(l=g.length)}else{if(br(t,2,m.length,"Base"),10==t&&v)return A(y=new b(e),s+y.e+1,c);if(g=String(e),f="number"==typeof e){if(0*e!=0)return i(y,g,f,t);if(y.s=1/e<0?(g=g.slice(1),-1):1,b.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(lr+e)}else y.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(n=m.slice(0,t),l=u=0,p=g.length;u<p;u++)if(n.indexOf(o=g.charAt(u))<0){if("."==o){if(u>l){l=p;continue}}else if(!a&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){a=!0,u=-1,l=0;continue}return i(y,String(e),f,t)}f=!1,(l=(g=r(g,t,10,y.s)).indexOf("."))>-1?g=g.replace(".",""):l=g.length}for(u=0;48===g.charCodeAt(u);u++);for(p=g.length;48===g.charCodeAt(--p););
vendor: 2,248 bytes, line 2
2if(g=g.slice(u,++p)){if(p-=u,f&&b.DEBUG&&p>15&&(e>hr||e!==sr(e)))throw Error(lr+y.s*e);if((l=l-u-1)>h)y.c=y.e=null;else if(l<d)y.c=[y.e=0];else{if(y.e=l,y.c=[],u=(l+1)%dr,l<0&&(u+=dr),u<p){for(u&&y.c.push(+g.slice(0,u)),p-=dr;u<p;)y.c.push(+g.slice(u,u+=dr));u=dr-(g=g.slice(u)).length}else u-=p;for(;u--;g+="0");y.c.push(+g)}}else y.c=[y.e=0]}function w(e,t,n,r){var i,o,a,s,d;if(null==n?n=c:br(n,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)d=mr(e.c),d=1==r||2==r&&(a<=l||a>=u)?xr(d,a):Sr(d,a,"0");else if(o=(e=A(new b(e),t,n)).e,s=(d=mr(e.c)).length,1==r||2==r&&(t<=o||o<=l)){for(;s<t;d+="0",s++);d=xr(d,o)}else if(t-=a,d=Sr(d,o,"0"),o+1>s){if(--t>0)for(d+=".";t--;d+="0");}else if((t+=o-s)>0)for(o+1==s&&(d+=".");t--;d+="0");return e.s<0&&i?"-"+d:d}function x(e,t){for(var n,r,i=1,o=new b(e[0]);i<e.length;i++)(!(r=new b(e[i])).s||(n=vr(o,r))===t||0===n&&o.s===t)&&(o=r);return o}function S(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*dr-1)>h?e.c=e.e=null:n<d?e.c=[e.e=0]:(e.e=n,e.c=t),e}function A(e,t,n,r){var i,o,a,s,c,l,u,f=e.c,p=fr;if(f){e:{for(i=1,s=f[0];s>=10;s/=10,i++);if((o=t-i)<0)o+=dr,a=t,c=f[l=0],u=sr(c/p[i-a-1]%10);else if((l=ar((o+1)/dr))>=f.length){if(!r)break e;for(;f.length<=l;f.push(0));c=u=0,i=1,a=(o%=dr)-dr+1}else{for(c=s=f[l],i=1;s>=10;s/=10,i++);u=(a=(o%=dr)-dr+i)<0?0:sr(c/p[i-a-1]%10)}if(r=r||t<0||null!=f[l+1]||(a<0?c:c%p[i-a-1]),r=n<4?(u||r)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||r||6==n&&(o>0?a>0?c/p[i-a]:0:f[l-1])%10&1||n==(e.s<0?8:7)),t<1||!f[0])return f.length=0,r?(t-=e.e+1,f[0]=p[(dr-t%dr)%dr],e.e=-t||0):f[0]=e.e=0,e;if(0==o?(f.length=l,s=1,l--):(f.length=l+1,s=p[dr-o],f[l]=a>0?sr(c/p[i-a]%p[a])*s:0),r)for(;;){if(0==l){for(o=1,a=f[0];a>=10;a/=10,o++);for(a=f[0]+=s,s=1;a>=10;a/=10,s++);o!=s&&(e.e++,f[0]==ur&&(f[0]=1));break}if(f[l]+=s,f[l]!=ur)break;f[l--]=0,s=1}for(o=f.length;0===f[--o];f.pop());}e.e>h?e.c=e.e=null:e.e<d&&(e.c=[e.e=0])}return e}function k(e){var t,n=e.e;return null===n?e.toString():(t=mr(e.c),t=n<=l||n>=u?xr(t,n):Sr(t,n,"0"),e.s<0?"-"+t:t)}return b.clone=e,b.ROUND_UP=0,b.ROUND_DOWN=1,b.ROUND_CEIL=2,b.ROUND_FLOOR=3,b.ROUND_HALF_UP=4,b.ROUND_HALF_DOWN=5,b.ROUND_HALF_EVEN=6,b.ROUND_HALF_CEIL=7,b.ROUND_HALF_FLOOR=8,b.EUCLI
vendor: 9,951 bytes, line 2
2D=9,b.config=b.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(cr+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(br(n=e[t],0,gr,t),s=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(br(n=e[t],0,8,t),c=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(br(n[0],-gr,0,t),br(n[1],0,gr,t),l=n[0],u=n[1]):(br(n,-gr,gr,t),l=-(u=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)br(n[0],-gr,-1,t),br(n[1],1,gr,t),d=n[0],h=n[1];else{if(br(n,-gr,gr,t),!n)throw Error(cr+t+" cannot be zero: "+n);d=-(h=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(cr+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw f=!n,Error(cr+"crypto unavailable");f=n}else f=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(br(n=e[t],0,9,t),p=n),e.hasOwnProperty(t="POW_PRECISION")&&(br(n=e[t],0,gr,t),g=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(cr+t+" not an object: "+n);y=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(cr+t+" invalid: "+n);v="0123456789"==n.slice(0,10),m=n}}return{DECIMAL_PLACES:s,ROUNDING_MODE:c,EXPONENTIAL_AT:[l,u],RANGE:[d,h],CRYPTO:f,MODULO_MODE:p,POW_PRECISION:g,FORMAT:y,ALPHABET:m}},b.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!b.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-gr&&i<=gr&&i===sr(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%dr)<1&&(t+=dr),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||n>=ur||n!==sr(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(cr+"Invalid BigNumber: "+e)},b.maximum=b.max=function(){return x(arguments,-1)},b.minimum=b.min=function(){return x(arguments,1)},b.random=function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return sr(Math.random()*e)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(e){var n,r,i,o,c,l=0,u=[],d=new b(a);if(null==e?e=s:br(e,0,gr),o=ar(e/dr),f)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(o*=2));l<o;)(c=131072*n[l]+(n[l+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[l]=r[0],n[l+1]=r[1]):(u.push(c%1e14),l+=2);l=o/2}else{if(!crypto.randomBytes)throw f=!1,Error(cr+"crypto unavailable");for(n=crypto.randomBytes(o*=7);l<o;)(c=281474976710656*(31&n[l])+1099511627776*n[l+1]+4294967296*n[l+2]+16777216*n[l+3]+(n[l+4]<<16)+(n[l+5]<<8)+n[l+6])>=9e15?crypto.randomBytes(7).copy(n,l):(u.push(c%1e14),l+=7);l=o/7}if(!f)for(;l<o;)(c=t())<9e15&&(u[l++]=c%1e14);for(o=u[--l],e%=dr,o&&e&&(c=fr[dr-e],u[l]=sr(o/c)*c);0===u[l];u.pop(),l--);if(l<0)u=[i=0];else{for(i=-1;0===u[0];u.splice(0,1),i-=dr);for(l=1,c=u[0];c>=10;c/=10,l++);l<dr&&(i-=dr-l)}return d.e=i,d.c=u,d}}(),b.sum=function(){for(var e=1,t=arguments,n=new b(t[0]);e<t.length;)n=n.plus(t[e++]);return n},r=function(){var e="0123456789";function t(e,t,n,r){for(var i,o,a=[0],s=0,c=e.length;s<c;){for(o=a.length;o--;a[o]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>n-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,o,a,l){var u,d,h,f,p,y,v,w,x=r.indexOf("."),S=s,A=c;for(x>=0&&(f=g,g=0,r=r.replace(".",""),y=(w=new b(i)).pow(r.length-x),g=f,w.c=t(Sr(mr(y.c),y.e,"0"),10,o,e),w.e=w.c.length),h=f=(v=t(r,i,o,l?(u=m,e):(u=e,m))).length;0==v[--f];v.pop());if(!v[0])return u.charAt(0);if(x<0?--h:(y.c=v,y.e=h,y.s=a,v=(y=n(y,w,S,A,o)).c,p=y.r,h=y.e),x=v[d=h+S+1],f=o/2,p=p||d<0||null!=v[d+1],p=A<4?(null!=x||p)&&(0==A||A==(y.s<0?3:2)):x>f||x==f&&(4==A||p||6==A&&1&v[d-1]||A==(y.s<0?8:7)),d<1||!v[0])r=p?Sr(u.charAt(1),-S,u.charAt(0)):u.charAt(0);else{if(v.length=d,p)for(--o;++v[--d]>o;)v[d]=0,d||(++h,v=[1].concat(v));for(f=v.length;!v[--f];);for(x=0,r="";x<=f;r+=u.charAt(v[x++]));r=Sr(r,h,u.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,i,o,a,s=0,c=e.length,l=t%pr,u=t/pr|0;for(e=e.slice();c--;)s=((i=l*(o=e[c]%pr)+(r=u*o+(a=e[c]/pr|0)*l)%pr*pr+s)/n|0)+(r/pr|0)+u*a,e[c]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,o,a,s){var c,l,u,d,h,f,p,g,y,m,v,w,x,S,k,O,_,E=r.s==i.s?1:-1,I=r.c,j=i.c;if(!I||!I[0]||!j||!j[0])return new b(r.s&&i.s&&(I?!j||I[0]!=j[0]:j)?I&&0==I[0]||!j?0*E:E/0:NaN);for(y=(g=new b(E)).c=[],E=o+(l=r.e-i.e)+1,s||(s=ur,l=yr(r.e/dr)-yr(i.e/dr),E=E/dr|0),u=0;j[u]==(I[u]||0);u++);if(j[u]>(I[u]||0)&&l--,E<0)y.push(1),d=!0;else{for(S=I.length,O=j.length,u=0,E+=2,(h=sr(s/(j[0]+1)))>1&&(j=e(j,h,s),I=e(I,h,s),O=j.length,S=I.length),x=O,v=(m=I.slice(0,O)).length;v<O;m[v++]=0);_=j.slice(),_=[0].concat(_),k=j[0],j[1]>=s/2&&k++;do{if(h=0,(c=t(j,m,O,v))<0){if(w=m[0],O!=v&&(w=w*s+(m[1]||0)),(h=sr(w/k))>1)for(h>=s&&(h=s-1),p=(f=e(j,h,s)).length,v=m.length;1==t(f,m,p,v);)h--,n(f,O<p?_:j,p,s),p=f.length,c=1;else 0==h&&(c=h=1),p=(f=j.slice()).length;if(p<v&&(f=[0].concat(f)),n(m,f,v,s),v=m.length,-1==c)for(;t(j,m,O,v)<1;)h++,n(m,O<v?_:j,v,s),v=m.length}else 0===c&&(h++,m=[0]);y[u++]=h,m[0]?m[v++]=I[x]||0:(m=[I[x]],v=1)}while((x++<S||null!=m[0])&&E--);d=null!=m[0],y[0]||y.splice(0,1)}if(s==ur){for(u=1,E=y[0];E>=10;E/=10,u++);A(g,o+(g.e=u+l*dr-1)+1,a,d)}else g.e=l,g.r=+d;return g}}(),i=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,a,s,c){var l,u=s?a:a.replace(i,"");if(r.test(u))o.s=isNaN(u)?null:u<0?-1:1;else{if(!s&&(u=u.replace(e,(function(e,t,n){return l="x"==(n=n.toLowerCase())?16:"b"==n?2:8,c&&c!=l?e:t})),c&&(l=c,u=u.replace(t,"$1").replace(n,"0.$1")),a!=u))return new b(u,l);if(b.DEBUG)throw Error(cr+"Not a"+(c?" base "+c:"")+" number: "+a);o.s=null}o.c=o.e=null}}(),o.absoluteValue=o.abs=function(){var e=new b(this);return e.s<0&&(e.s=1),e},o.comparedTo=function(e,t){return vr(this,new b(e,t))},o.decimalPlaces=o.dp=function(e,t){var n,r,i,o=this;if(null!=e)return br(e,0,gr),null==t?t=c:br(t,0,8),A(new b(o),e+o.e+1,t);if(!(n=o.c))return null;if(r=((i=n.length-1)-yr(this.e/dr))*dr,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},o.dividedBy=o.div=function(e,t){return n(this,new b(e,t),s,c)},o.dividedToIntegerBy=o.idiv=function(e,t){return n(this,new b(e,t),0,1)},o.exponentiatedBy=o.pow=function(e,t){var n,r,i,o,s,l,u,d,h=this;if((e=new b(e)).c&&!e.isInteger())throw Error(cr+"Exponent not an integer: "+k(e));if(null!=t&&(t=new b(t)),s=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return d=new b(Math.pow(+k(h),s?e.s*(2-wr(e)):+k(e))),t?d.mod(t):d;if(l=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new b(NaN);(r=!l&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||s&&h.c[1]>=24e7:h.c[0]<8e13||s&&h.c[0]<=9999975e7)))return o=h.s<0&&wr(e)?-0:0,h.e>-1&&(o=1/o),new b(l?1/o:o);g&&(o=ar(g/dr+2))}for(s?(n=new b(.5),l&&(e.s=1),u=wr(e)):u=(i=Math.abs(+k(e)))%2,d=new b(a);;){if(u){if(!(d=d.times(h)).c)break;o?d.c.length>o&&(d.c.length=o):r&&(d=d.mod(t))}if(i){if(0===(i=sr(i/2)))break;u=i%2}else if(A(e=e.times(n),e.e+1,1),e.e>14)u=wr(e);else{if(0===(i=+k(e)))break;u=i%2}h=h.times(h),o?h.c&&h.c.length>o&&(h.c.length=o):r&&(h=h.mod(t))}return r?d:(l&&(d=a.div(d)),t?d.mod(t):o?A(d,g,c,undefined):d)},o.integerValue=function(e){var t=new b(this);return null==e?e=c:br(e,0,8),A(t,t.e+1,e)},o.isEqualTo=o.eq=function(e,t){return 0===vr(this,new b(e,t))},o.isFinite=function(){return!!this.c},o.isGreaterThan=o.gt=function(e,t){return vr(this,new b(e,t))>0},o.isGreaterThanOrEqualTo=o.gte=function(e,t){return 1===(t=vr(this,new b(e,t)))||0===t},o.isInteger=function(){return!!this.c&&yr(this.e/dr)>this.c.length-2},o.isLessThan=o.lt=function(e,t){return vr(this,new b(e,t))<0},o.isLessThanOrEqualTo=o.lte=function(e,t){return-1===(t=vr(this,new b(e,t)))||0===t},o.isNaN=function(){return!this.s},o.isNegative=function(){return this.s<0},o.isPositive=function(){return this.s>0},o.isZero=function(){return!!this.c&&0==this.c[0]},o.minus=function(e,t){var n,r,i,o,a=this,s=a.s;if(t=(e=new b(e,t)).s,!s||!t)return new b(NaN);if(s!=t)return e.s=-t,a.plus(e);var l=a.e/dr,u=e.e/dr,d=a.c,h=e.c;if(!l||!u){if(!d||!h)return d?(e.s=-t,e):new b(h?a:NaN);if(!d[0]||!h[0])return h[0]?(e.s=-t,e):new b(d[0]?a:3==c?-0:0)}if(l=yr(l),u=yr(u),d=d.slice(),s=l-u){for((o=s<0)?(s=-s,i=d):(u=l,i=h),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(r=(o=(s=d.length)<(t=h.length))?s:t,s=t=0;t<r;t++)if(d[t]!=h[t]){o=d[t]<h[t];break}if(o&&(i=d,d=h,h=i,e.s=-e.s),(t=(r=h.length)-(n=d.length))>0)for(;t--;d[n++]=0);for(t=ur-1;r>s;){if(d[--r]<h[r]){for(n=r;n&&!d[--n];d[n]=t);--d[n],d[r]+=ur}d[r]-=h[r]}for(;0==d[0];d.splice(0,1),--u);return d[0]?S(e,d,u):(e.s=3==c?-1:1,e.c=[e.e=0],e)},o.modulo=o.mod=function(e,t){var r,i,o=this;return e=new b(e,t),!o.c||!e.s||e.c&&!e.c[0]?new b(NaN):!e.c||o.c&&!o.c[0]?new b(o):(9==p?(i=e.s,e.s=1,r=n(o,e,0,3),e.s=i,r.s*=i):r=n(o,e,0,p),(e=o.minus(r.times(e))).c[0]||1!=p||(e.s=o.s),e)},o.multipliedBy=o.times=function(e,t){var n,r,i,o,a,s,c,l,u,d,h,f,p,g,y,m=this,v=m.c,w=(e=new b(e,t)).c;if(!v||!w||!v[0]||!w[0])return!m.s||!e.s||v&&!v[0]&&!w||w&&!w[0]&&!v?e.c=e.e=e.s=null:(e.s*=m.s,v&&w?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=yr(m.e/dr)+yr(e.e/dr),e.s*=m.s,(c=v.length)<(d=w.length)&&(p=v,v=w,w=p,i=c,c=d,d=i),i=c+d,p=[];i--;p.push(0));for(g=ur,y=pr,i=d;--i>=0;){for(n=0,h=w[i]%y,f=w[i]/y|0,o=i+(a=c);o>i;)n=((l=h*(l=v[--a]%y)+(s=f*l+(u=v[a]/y|0)*h)%y*y+p[o]+n)/g|0)+(s/y|0)+f*u,p[o--]=l%g;p[o]=n}return n?++r:p.splice(0,1),S(e,p,r)},o.negated=function(){var e=new b(this);return e.s=-e.s||null,e},o.plus=function(e,t){var n,r=this,i=r.s;if(t=(e=new b(e,t)).s,!i||!t)return new b(NaN);
vendor: 4,363 bytes, line 2
2if(i!=t)return e.s=-t,r.minus(e);var o=r.e/dr,a=e.e/dr,s=r.c,c=e.c;if(!o||!a){if(!s||!c)return new b(i/0);if(!s[0]||!c[0])return c[0]?e:new b(s[0]?r:0*i)}if(o=yr(o),a=yr(a),s=s.slice(),i=o-a){for(i>0?(a=o,n=c):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for((i=s.length)-(t=c.length)<0&&(n=c,c=s,s=n,t=i),i=0;t;)i=(s[--t]=s[t]+c[t]+i)/ur|0,s[t]=ur===s[t]?0:s[t]%ur;return i&&(s=[i].concat(s),++a),S(e,s,a)},o.precision=o.sd=function(e,t){var n,r,i,o=this;if(null!=e&&e!==!!e)return br(e,1,gr),null==t?t=c:br(t,0,8),A(new b(o),e,t);if(!(n=o.c))return null;if(r=(i=n.length-1)*dr+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&o.e+1>r&&(r=o.e+1),r},o.shiftedBy=function(e){return br(e,-9007199254740991,hr),this.times("1e"+e)},o.squareRoot=o.sqrt=function(){var e,t,r,i,o,a=this,l=a.c,u=a.s,d=a.e,h=s+4,f=new b("0.5");if(1!==u||!l||!l[0])return new b(!u||u<0&&(!l||l[0])?NaN:l?a:1/0);if(0==(u=Math.sqrt(+k(a)))||u==1/0?(((t=mr(l)).length+d)%2==0&&(t+="0"),u=Math.sqrt(+t),d=yr((d+1)/2)-(d<0||d%2),r=new b(t=u==1/0?"5e"+d:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+d)):r=new b(u+""),r.c[0])for((u=(d=r.e)+h)<3&&(u=0);;)if(o=r,r=f.times(o.plus(n(a,o,h,1))),mr(o.c).slice(0,u)===(t=mr(r.c)).slice(0,u)){if(r.e<d&&--u,"9999"!=(t=t.slice(u-3,u+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(A(r,r.e+s+2,1),e=!r.times(r).eq(a));break}if(!i&&(A(o,o.e+s+2,0),o.times(o).eq(a))){r=o;break}h+=4,u+=4,i=1}return A(r,r.e+s+1,c,e)},o.toExponential=function(e,t){return null!=e&&(br(e,0,gr),e++),w(this,e,t,1)},o.toFixed=function(e,t){return null!=e&&(br(e,0,gr),e=e+this.e+1),w(this,e,t)},o.toFormat=function(e,t,n){var r,i=this;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=y;else if("object"!=typeof n)throw Error(cr+"Argument not an object: "+n);if(r=i.toFixed(e,t),i.c){var o,a=r.split("."),s=+n.groupSize,c=+n.secondaryGroupSize,l=n.groupSeparator||"",u=a[0],d=a[1],h=i.s<0,f=h?u.slice(1):u,p=f.length;if(c&&(o=s,s=c,c=o,p-=o),s>0&&p>0){for(o=p%s||s,u=f.substr(0,o);o<p;o+=s)u+=l+f.substr(o,s);c>0&&(u+=l+f.slice(o)),h&&(u="-"+u)}r=d?u+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?d.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):u}return(n.prefix||"")+r+(n.suffix||"")},o.toFraction=function(e){var t,r,i,o,s,l,u,d,f,p,g,y,m=this,v=m.c;if(null!=e&&(!(u=new b(e)).isInteger()&&(u.c||1!==u.s)||u.lt(a)))throw Error(cr+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+k(u));if(!v)return new b(m);for(t=new b(a),f=r=new b(a),i=d=new b(a),y=mr(v),s=t.e=y.length-m.e-1,t.c[0]=fr[(l=s%dr)<0?dr+l:l],e=!e||u.comparedTo(t)>0?s>0?t:f:u,l=h,h=1/0,u=new b(y),d.c[0]=0;p=n(u,t,0,1),1!=(o=r.plus(p.times(i))).comparedTo(e);)r=i,i=o,f=d.plus(p.times(o=f)),d=o,t=u.minus(p.times(o=t)),u=o;return o=n(e.minus(r),i,0,1),d=d.plus(o.times(f)),r=r.plus(o.times(i)),d.s=f.s=m.s,g=n(f,i,s*=2,c).minus(m).abs().comparedTo(n(d,r,s,c).minus(m).abs())<1?[f,i]:[d,r],h=l,g},o.toNumber=function(){return+k(this)},o.toPrecision=function(e,t){return null!=e&&br(e,1,gr),w(this,e,t,2)},o.toString=function(e){var t,n=this,i=n.s,o=n.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=l||o>=u?xr(mr(n.c),o):Sr(mr(n.c),o,"0"):10===e&&v?t=Sr(mr((n=A(new b(n),s+o+1,c)).c),n.e,"0"):(br(e,2,m.length,"Base"),t=r(Sr(mr(n.c),o,"0"),10,e,i,!0)),i<0&&n.c[0]&&(t="-"+t)),t},o.valueOf=o.toJSON=function(){return k(this)},o._isBigNumber=!0,o[Symbol.toStringTag]="BigNumber",o[Symbol.for("nodejs.util.inspect.custom")]=o.valueOf,null!=t&&b.set(t),b}();var kr,Or;function _r(e){var t;return null!==(t=kr[e])&&void 0!==t?t:kr.default}(Or=kr||(kr={}))[Or.up=Ar.ROUND_UP]="up",Or[Or.down=Ar.ROUND_DOWN]="down",Or[Or.truncate=Ar.ROUND_DOWN]="truncate",Or[Or.halfUp=Ar.ROUND_HALF_UP]="halfUp",Or[Or.default=Ar.ROUND_HALF_UP]="default",Or[Or.halfDown=Ar.ROUND_HALF_DOWN]="halfDown",Or[Or.halfEven=Ar.ROUND_HALF_EVEN]="halfEven",Or[Or.banker=Ar.ROUND_HALF_EVEN]="banker",Or[Or.ceiling=Ar.ROUND_CEIL]="ceiling",Or[Or.ceil=Ar.ROUND_CEIL]="ceil",Or[Or.floor=Ar.ROUND_FLOOR]="floor";var Er=n(43095),Ir=n.n(Er);function jr(e,t){let{precision:n,significant:r}=t;return r&&null!==n&&n>0?n-function(e){return e.isZero()?1:Math.floor(Math.log10(e.abs().toNumber())+1)}(e):n}function $r(e,t){const n=jr(e,t);if(null===n)return e.toString();const r=_r(t.roundMode);
2if(n>=0)return e.toFixed(n,r);const i=Math.pow(10,Math.abs(n));return(e=new Ar(e.div(i).toFixed(0,r)).times(i)).toString()}function Tr(e,t){var n,r,i;const o=new Ar(e);if(t.raise&&!o.isFinite())throw new Error(`"${e}" is not a valid numeric value`);const a=$r(o,t),s=new Ar(a),c=s.lt(0),l=s.isZero();let[u,d]=a.split(".");const h=[];let f;const p=null!==(n=t.format)&&void 0!==n?n:"%n",g=null!==(r=t.negativeFormat)&&void 0!==r?r:`-${p}`,y=c&&!l?g:p;for(u=u.replace("-","");u.length>0;)h.unshift(u.substr(Math.max(0,u.length-3),3)),u=u.substr(0,u.length-3);return u=h.join(""),f=h.join(t.delimiter),d=t.significant?function(e){let{significand:t,whole:n,precision:r}=e;if("0"===n||null===r)return t;const i=Math.max(0,r-n.length);return(null!==t&&void 0!==t?t:"").substr(0,i)}({whole:u,significand:d,precision:t.precision}):null!==d&&void 0!==d?d:Ir()("0",null!==(i=t.precision)&&void 0!==i?i:0),t.stripInsignificantZeros&&d&&(d=d.replace(/0+$/,"")),o.isNaN()&&(f=e.toString()),d&&o.isFinite()&&(f+=(t.separator||".")+d),function(e,t){let{formattedNumber:n,unit:r}=t;return e.replace("%n",n).replace("%u",r)}(y,{formattedNumber:f,unit:t.unit})}function Cr(e,t,n){let r="";return(t instanceof String||"string"===typeof t)&&(r=t),t instanceof Array&&(r=t.join(e.defaultSeparator)),n.scope&&(r=[n.scope,r].join(e.defaultSeparator)),r}function Pr(e){var t,n;if(null===e)return"null";const r=typeof e;return"object"!==r?r:(null===(n=null===(t=null===e||void 0===e?void 0:e.constructor)||void 0===t?void 0:t.name)||void 0===n?void 0:n.toLowerCase())||"object"}function Rr(e,t,n){n=Object.keys(n).reduce(((t,r)=>(t[e.transformKey(r)]=n[r],t)),{});const r=t.match(e.placeholder);if(!r)return t;for(;r.length;){let i;const o=r.shift(),a=o.replace(e.placeholder,"$1");i=ir(n[a])?n[a].toString().replace(/\$/gm,"_#$#_"):a in n?e.nullPlaceholder(e,o,t,n):e.missingPlaceholder(e,o,t,n);const s=new RegExp(o.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"),"g");t=t.replace(s,i)}return t.replace(/_#\$#_/g,"$")}function Nr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=Object.assign({},n);const r="locale"in n?n.locale:e.locale,i=Pr(r),o=e.locales.get("string"===i?r:typeof r).slice(),a=Cr(e,t,n).split(e.defaultSeparator).map((t=>e.transformKey(t))),s=o.map((t=>a.reduce(((e,t)=>e&&e[t]),e.translations[t])));return s.push(n.defaultValue),s.find((e=>ir(e)))}var Mr=n(21261),Fr=n.n(Mr),Dr=n(45630);const Lr={0:"unit",1:"ten",2:"hundred",3:"thousand",6:"million",9:"billion",12:"trillion",15:"quadrillion","-1":"deci","-2":"centi","-3":"mili","-6":"micro","-9":"nano","-12":"pico","-15":"femto"},Br=n.n(Dr)()(Object.values(Lr),Object.keys(Lr).map((e=>parseInt(e,10))));function Ur(e,t,n){const r={roundMode:n.roundMode,precision:n.precision,significant:n.significant};let i;if("string"===Pr(n.units)){const t=n.units;if(i=Nr(e,t),!i)throw new Error(`The scope "${e.locale}${e.defaultSeparator}${Cr(e,t,{})}" couldn't be found`)}else i=n.units;let o=$r(new Ar(t),r);const a=((e,t)=>{const n=e.isZero()?0:Math.floor(Math.log10(e.abs().toNumber()));return(e=>Fr()(Object.keys(e).map((e=>Br[e])),(e=>-1*e)))(t).find((e=>n>=e))||0})(new Ar(o),i),s=((e,t)=>e[Lr[t.toString()]]||"")(i,a);if(o=$r(new Ar(o).div(Math.pow(10,a)),r),n.stripInsignificantZeros){let[e,t]=o.split(".");t=(t||"").replace(/0+$/,""),o=e,t&&(o+=`${n.separator}${t}`)}return n.format.replace("%n",o||"0").replace("%u",s).trim()}const Wr=["byte","kb","mb","gb","tb","pb","eb"];function Hr(e){if(e instanceof Date)return e;if("number"===typeof e){const t=new Date;return t.setTime(e),t}const t=new String(e).match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})(?:[.,](\d{1,3}))?)?(Z|\+00:?00)?/);if(t){const e=t.slice(1,8).map((e=>parseInt(e,10)||0));e[1]-=1;const[n,r,i,o,a,s,c]=e;return t[8]?new Date(Date.UTC(n,r,i,o,a,s,c)):new Date(n,r,i,o,a,s,c)}if(e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)){(new Date).setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" ")))}const n=new Date;return n.setTime(Date.parse(e)),n}function zr(e){let t,n,{i18n:r,count:i,scope:o,options:a,baseScope:s}=e;if(a=Object.assign({},a),t="object"===typeof o&&o?o:Nr(r,o,a),!t)return r.missingTranslation.get(o,a);const c=r.pluralization.get(a.locale)(r,i),l=[];for(;c.length;){const e=c.shift();if(ir(t[e])){n=t[e];break}l.push(e)}return ir(n)?(a.count=i,r.interpolate(r,n,a)):r.missingTranslation.get(s.split(r.defaultSeparator).concat([l[0]]),a)}
2const qr={meridian:{am:"AM",pm:"PM"},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthNames:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonthNames:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};var Vr=n(39939),Gr=n.n(Vr);const Yr=(e,t,n)=>n>=e&&n<=t;const Kr=function(e,t){t instanceof Array&&(t=t.join(e.defaultSeparator));const n=t.split(e.defaultSeparator).slice(-1)[0];return e.missingTranslationPrefix+n.replace("_"," ").replace(/([a-z])([A-Z])/g,((e,t,n)=>`${t} ${n.toLowerCase()}`))},Xr=(e,t,n)=>{const r=Cr(e,t,n),i="locale"in n?n.locale:e.locale,o=Pr(i);return`[missing "${["string"==o?i:o,r].join(e.defaultSeparator)}" translation]`},Jr=(e,t,n)=>{const r=Cr(e,t,n),i=[e.locale,r].join(e.defaultSeparator);throw new Error(`Missing translation: ${i}`)};class Qr{constructor(e){this.i18n=e,this.registry={},this.register("guess",Kr),this.register("message",Xr),this.register("error",Jr)}register(e,t){this.registry[e]=t}get(e,t){var n;return this.registry[null!==(n=t.missingBehavior)&&void 0!==n?n:this.i18n.missingBehavior](this.i18n,e,t)}}var Zr=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(fs){o(fs)}}function s(e){try{c(r.throw(e))}catch(fs){o(fs)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const ei={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,enableFallback:!1,missingBehavior:"message",missingTranslationPrefix:"",missingPlaceholder:(e,t)=>`[missing "${t}" value]`,nullPlaceholder:(e,t,n,r)=>e.missingPlaceholder(e,t,n,r),transformKey:e=>e};class ti{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._locale=ei.locale,this._defaultLocale=ei.defaultLocale,this._version=0,this.onChangeHandlers=[],this.translations={},this.t=this.translate,this.p=this.pluralize,this.l=this.localize,this.distanceOfTimeInWords=this.timeAgoInWords;const{locale:n,enableFallback:r,missingBehavior:i,missingTranslationPrefix:o,missingPlaceholder:a,nullPlaceholder:s,defaultLocale:c,defaultSeparator:l,placeholder:u,transformKey:d}=Object.assign(Object.assign({},ei),t);this.locale=n,this.defaultLocale=c,this.defaultSeparator=l,this.enableFallback=r,this.locale=n,this.missingBehavior=i,this.missingTranslationPrefix=o,this.missingPlaceholder=a,this.nullPlaceholder=s,this.placeholder=u,this.pluralization=new er(this),this.locales=new Qn(this),this.missingTranslation=new Qr(this),this.transformKey=d,this.interpolate=Rr,this.store(e)}store(e){Yn()(this.translations,e),this.hasChanged()}get locale(){return this._locale||this.defaultLocale||"en"}set locale(e){if("string"!==typeof e)throw new Error(`Expected newLocale to be a string; got ${Pr(e)}`);const t=this._locale!==e;this._locale=e,t&&this.hasChanged()}get defaultLocale(){return this._defaultLocale||"en"}set defaultLocale(e){if("string"!==typeof e)throw new Error(`Expected newLocale to be a string; got ${Pr(e)}`);const t=this._defaultLocale!==e;this._defaultLocale=e,t&&this.hasChanged()}translate(e,t){const n=function(e,t,n){let r=[{scope:t}];if(ir(n.defaults)&&(r=r.concat(n.defaults)),ir(n.defaultValue)){const i="function"===typeof n.defaultValue?n.defaultValue(e,t,n):n.defaultValue;r.push({message:i}),delete n.defaultValue}return r}(this,e,t=Object.assign({},t));let r;return n.some((e=>(ir(e.scope)?r=Nr(this,e.scope,t):ir(e.message)&&(r=e.message),void 0!==r&&null!==r)))?("string"===typeof r?r=this.interpolate(this,r,t):"object"===typeof r&&r&&ir(t.count)&&(r=zr({i18n:this,count:t.count||0,scope:r,options:t,baseScope:Cr(this,e,t)})),t&&r instanceof Array&&(r=r.map((e=>"string"===typeof e?Rr(this,e,t):e))),r):this.missingTranslation.get(e,t)}pluralize(e,t,n){return zr({i18n:this,count:e,scope:t,options:Object.assign({},n),baseScope:Cr(this,t,null!==n&&void 0!==n?n:{})})}localize(e,t,n){if(n=Object.assign({},n),void 0===t||null===t)return"";switch(e){case"currency":return this.numberToCurrency(t);case"number":return Tr(t,Object.assign({delimiter:",",precision:3,separator:".",significant:!1,stripInsignificantZeros:!1},Nr(this,"number.format")));case"percentage":return this.numberToPercentage(t);default:{let r;return r=e.match(/^(date|time)/)?this.toTime(e,t):t.toString(),Rr(this,r,n)}}}toTime(e,t){const n=Hr(t),r=Nr(this,e);return n.toString().match(/invalid/i)?n.toString():r?this.strftime(n,r):n.toString()}numberToCurrency(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Tr(e,Object.assign(Object.assign(Object.assign({delimiter:",",format:"%u%n",precision:2,
2separator:".",significant:!1,stripInsignificantZeros:!1,unit:"$"},rr(this.get("number.format"))),rr(this.get("number.currency.format"))),t))}numberToPercentage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Tr(e,Object.assign(Object.assign(Object.assign({delimiter:"",format:"%n%",precision:3,stripInsignificantZeros:!1,separator:".",significant:!1},rr(this.get("number.format"))),rr(this.get("number.percentage.format"))),t))}numberToHumanSize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t,n){const r=_r(n.roundMode),i=1024,o=new Ar(t).abs(),a=o.lt(i);let s;const c=((e,t)=>{const n=t.length-1,r=new Ar(Math.log(e.toNumber())).div(Math.log(i)).integerValue(Ar.ROUND_DOWN).toNumber();return Math.min(n,r)})(o,Wr);s=a?o.integerValue():new Ar($r(o.div(Math.pow(i,c)),{significant:n.significant,precision:n.precision,roundMode:n.roundMode}));const l=e.translate("number.human.storage_units.format",{defaultValue:"%n %u"}),u=e.translate((d=Wr,`number.human.storage_units.units.${a?"byte":d[c]}`),{count:o.integerValue().toNumber()});var d;let h=s.toFixed(n.precision,r);return n.stripInsignificantZeros&&(h=h.replace(/(\..*?)0+$/,"$1").replace(/\.$/,"")),l.replace("%n",h).replace("%u",u)}(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",precision:3,significant:!0,stripInsignificantZeros:!0,units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},rr(this.get("number.human.format"))),rr(this.get("number.human.storage_units"))),t))}numberToHuman(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ur(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",separator:".",precision:3,significant:!0,stripInsignificantZeros:!0,format:"%n %u",roundMode:"default",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},rr(this.get("number.human.format"))),rr(this.get("number.human.decimal_units"))),t))}numberToRounded(e,t){return Tr(e,Object.assign({unit:"",precision:3,significant:!1,separator:".",delimiter:"",stripInsignificantZeros:!1},t))}numberToDelimited(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){const n=new Ar(e);if(!n.isFinite())return e.toString();if(!t.delimiterPattern.global)throw new Error(`options.delimiterPattern must be a global regular expression; received ${t.delimiterPattern}`);let[r,i]=n.toString().split(".");return r=r.replace(t.delimiterPattern,(e=>`${e}${t.delimiter}`)),[r,i].filter(Boolean).join(t.separator)}(e,Object.assign({delimiterPattern:/(\d)(?=(\d\d\d)+(?!\d))/g,delimiter:",",separator:"."},t))}withLocale(e,t){return Zr(this,void 0,void 0,(function*(){const n=this.locale;try{this.locale=e,yield t()}finally{this.locale=n}}))}strftime(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{abbrDayNames:r,dayNames:i,abbrMonthNames:o,monthNames:a,meridian:s,utc:c}=Object.assign(Object.assign({},qr),n);if(isNaN(e.getTime()))throw new Error("strftime() requires a valid date object, but received an invalid date.");const l=c?e.getUTCDay():e.getDay(),u=c?e.getUTCDate():e.getDate(),d=c?e.getUTCFullYear():e.getFullYear(),h=(c?e.getUTCMonth():e.getMonth())+1,f=c?e.getUTCHours():e.getHours();let p=f;const g=f>11?"pm":"am",y=c?e.getUTCSeconds():e.getSeconds(),m=c?e.getUTCMinutes():e.getMinutes(),v=c?0:e.getTimezoneOffset(),b=Math.floor(Math.abs(v/60)),w=Math.abs(v)-60*b,x=(v>0?"-":"+")+(b.toString().length<2?"0"+b:b)+(w.toString().length<2?"0"+w:w);return p>12?p-=12:0===p&&(p=12),(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%a",r[l])).replace("%A",i[l])).replace("%b",o[h])).replace("%B",a[h])).replace("%d",u.toString().padStart(2,"0"))).replace("%e",u.toString())).replace("%-d",u.toString())).replace("%H",f.toString().padStart(2,"0"))).replace("%-H",f.toString())).replace("%k",f.toString())).replace("%I",p.toString().padStart(2,"0"))).replace("%-I",p.toString())).replace("%l",p.toString())).replace("%m",h.toString().padStart(2,"0"))).replace("%-m",h.toString())).replace("%M",m.toString().padStart(2,"0"))).replace("%-M",m.toString())).replace("%p",s[g])).replace("%P",s[g].toLowerCase())).replace("%S",y.toString().padStart(2,"0"))).replace("%-S",y.toString())).replace("%w",l.toString())).replace("%y",d.toString().padStart(2,"0").substr(-2))).replace("%-y",d.toString().padStart(2,"0").substr(-2).replace(/^0+/,""))).replace("%Y",d.toString())).replace(/%z/i,x)}(e,t,Object.assign(Object.assign(Object.assign({},rr(Nr(this,"date"))),{meridian:{am:Nr(this,"time.am")||"AM",pm:Nr(this,"time.pm")||"PM"}}),n))}update(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{strict:!1};if(n.strict&&!Vn()(this.translations,e))throw new Error(`The path "${e}" is not currently defined`);const r=zn()(this.translations,e),i=Pr(r),o=Pr(t);if(n.strict&&i!==o)throw new Error(`The current type for "${e}" is "${i}", but you're trying to override it with "${o}"`);let a;a="object"===o?Object.assign(Object.assign({},r),t):t;const s=e.split(this.defaultSeparator),c=s.pop();let l=this.translations;for(const u of s)l[u]||(l[u]={}),l=l[u];l[c]=a,this.hasChanged()}toSentence(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{wordsConnector:n,twoWordsConnector:r,lastWordConnector:i}=Object.assign(Object.assign({wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},rr(Nr(this,"support.array"))),t),o=e.length;switch(o){case 0:return"";case 1:return`${e[0]}`;case 2:return e.join(r);default:return[e.slice(0,o-1).join(n),i,e[o-1]].join("")}}timeAgoInWords(e,t){return function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=r.scope||"datetime.distance_in_words",o=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.t(t,{count:n,scope:i})};t=Hr(t),n=Hr(n);let a=t.getTime()/1e3,s=n.getTime()/1e3;a>s&&([t,n,a,s]=[n,t,s,a]);const c=Math.round(s-a),l=Math.round((s-a)/60),u=l/60/24,d=Math.round(l/60),h=Math.round(u),f=Math.round(h/30);if(Yr(0,1,l))return r.includeSeconds?Yr(0,4,c)?o("less_than_x_seconds",5):Yr(5,9,c)?o("less_than_x_seconds",10):Yr(10,19,c)?o("less_than_x_seconds",20):Yr(20,39,c)?o("half_a_minute"):Yr(40,59,c)?o("less_than_x_minutes",1):o("x_minutes",1):0===l?o("less_than_x_minutes",1):o("x_minutes",l);if(Yr(2,44,l))return o("x_minutes",l);if(Yr(45,89,l))return o("about_x_hours",1);if(Yr(90,1439,l))return o("about_x_hours",d);if(Yr(1440,2519,l))return o("x_days",1);if(Yr(2520,43199,l))return o("x_days",h);if(Yr(43200,86399,l))return o("about_x_months",Math.round(l/43200));if(Yr(86400,525599,l))return o("x_months",f);let p=t.getFullYear();t.getMonth()+1>=3&&(p+=1);let g=n.getFullYear();n.getMonth()+1<3&&(g-=1);const y=525600,m=l-1440*(p>g?0:Gr()(p,g).filter((e=>1==new Date(e,1,29).getMonth())).length),v=Math.trunc(m/y),b=parseFloat((m/y-v).toPrecision(3));return b<.25?o("about_x_years",v):b<.75?o("over_x_years",v):o("almost_x_years",v+1)}(this,e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}onChange(e){return this.onChangeHandlers.push(e),()=>{this.onChangeHandlers.splice(this.onChangeHandlers.indexOf(e),1)}}get version(){return this._version}formatNumber(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=Object.assign(Object.assign({delimiter:",",precision:3,separator:".",unit:"",format:"%u%n",significant:!1,stripInsignificantZeros:!1},rr(this.get("number.format"))),t),Tr(e,t)}get(e){return Nr(this,e)}
2runCallbacks(){this.onChangeHandlers.forEach((e=>e(this)))}hasChanged(){this._version+=1,this.runCallbacks()}}class ni extends Jt{async initializeLng(){const e=await this.localStorage.load(_n);e?this.language=e:await this.detectLanguage()}constructor(e,t,n,r){super(),this.cache=e,this.localStorage=t,this.defaultLng=r,this.environment=n,this.language=r,this.initializeLng(),this.i18n=new ti(void 0,{defaultLocale:r,locale:this.language}),this.reloadDataset(),this.i18n.missingBehavior="loadData",this.i18n.missingTranslation.register("loadData",((e,t,n)=>(this.loadData(t),(0,ge.v)("string"===typeof t),t.split(".").pop()))),this.i18n.missingTranslation.register("returnNull",((e,t,n)=>""))}async detectLanguage(){const e=await this.environment.getEnv(),{language:t}=e;this.language=t,await this.localStorage.save(_n,t)}async reloadDataset(){await this.cache.onInitialized();const e=this.cache.get("i18n",{data:{id:1,data:1,namespace:1,language:1,$$updateAt$$:1}}),t={};if(e.forEach((e=>{let{namespace:n,data:r,language:i}=e;t[i]?t[i][n]=r:t[i]={[n]:r}})),this.i18n.store(t),e.length>0){const t=Date.now(),n=e.filter((e=>t-e.$$updateAt$$>ni.REFRESH_STALE_INTERVAL)).map((e=>e.namespace));n.length>0&&await this.loadServerData(n)}}async loadServerData(e){const{data:t}=await this.cache.refresh("i18n",{data:{id:1,data:1,namespace:1,language:1,$$createAt$$:1,$$updateAt$$:1},filter:{namespace:{$in:e}}},void 0,void 0,{dontPublish:!0,useLocalCache:{keys:e,gap:36e5,onlyReturnFresh:!0},ignoreContext:!0});if(t.length>0){const e={};t.forEach((t=>{let{namespace:n,data:r,language:i}=t;e[i]?e[i][n]=r:e[i]={[n]:r}})),this.i18n.store(e),this.publish()}}async loadData(e){(0,ge.v)("string"===typeof e);const[t]=e.split(".");await this.loadServerData([t]),this.hasKey(e)||console.warn(`\u547d\u540d\u7a7a\u95f4${t}\u4e2d\u7684${e}\u7f3a\u5931\u4e14\u53ef\u80fd\u8bf7\u6c42\u4e0d\u5230\u66f4\u65b0\u7684\u6570\u636e`)}loadMissedLocale(e){this.loadData(e)}t(e,t){const n=t["#oakNamespace"],r=t["#oakModule"];let i=e;return i=e.includes("::")?`${r}-l-${e}`.replace("::","."):e.includes(":")?e.replace(":","."):`${n}.${e}`,this.i18n.t(i,t)}getState(){return{lng:this.language,defaultLng:this.defaultLng,dataset:this.i18n.translations,version:this.i18n.version}}hasKey(e,t){this.i18n.missingBehavior="returnNull";const n=this.i18n.t(e,t);return this.i18n.missingBehavior="loadData",n}}ni.REFRESH_STALE_INTERVAL=2592e6;class ri extends Jt{constructor(){super(),this.keys={}}setKey(e){this.keys[e]||(this.keys[e]=!0)}unsetKey(e){this.keys[e]&&(0,pe.unset)(this.keys,e)}async save(e,t){this.setKey(e),localStorage.setItem(e,JSON.stringify(t))}async load(e){this.setKey(e);{const t=localStorage.getItem(e);return t?JSON.parse(t):void 0}}async clear(){this.keys={},localStorage.clear()}async remove(e){this.unsetKey(e),localStorage.removeItem(e)}async loadAll(){const e={};for(const t in this.keys)Object.assign(e,{[t]:await this.load(t)});return e}async resetAll(e){this.clear();for(const t in e)await this.save(t,e[t])}}class ii extends Jt{setNotification(e){this.data=e,this.publish()}consumeNotification(){const e=this.data;return this.data=void 0,e}}const oi=FingerprintJS;var ai=n.n(oi);class si extends Jt{constructor(){super(),this.loading=!1,this.initialize()}async initialize(){this.loading=!0;try{const{fullEnv:e,briefEnv:t}=await async function(){const e=await ai().load(),[t]=await Promise.all([e.get()]),{components:n}=t,r=["platform","timezone","vendor","vendorFlavors"],i=(0,pe.pick)(n,r.concat("osCpu")),o=ai().hashComponents(i),a=Object.assign((0,pe.pick)(n,r),{type:"web",visitorId:o,language:navigator.language});return{fullEnv:a,briefEnv:{system:`${a.platform.value}`,explorer:`${a.vendor.value}/${a.vendorFlavors.value[0]}`}}}();this.loading=!1,this.fullEnv=e,this.briefEnv=t,this.publish()}catch(e){throw new Qt(e)}}async getEnv(){return this.fullEnv?this.fullEnv:((0,ge.v)(this.loading),new Promise(((e,t)=>{const n=this.subscribe((()=>{n(),(0,ge.v)(this.fullEnv),e(this.fullEnv)}))})))}getBriefEnv(){return this.briefEnv}}class ci extends Jt{async setMessage(e){this.data=e,this.publish()}consumeMessage(){const e=this.data;return this.data=void 0,e}}var li=n(17947);class ui extends Jt{constructor(){super(),this.running=!1,this.namespace="",this.base="http://oak-localhost"}setNamespace(e){this.namespace=e,this.publish()}enter(){const e=!this.running;return this.running||(this.running=!0),e}leave(){this.running=!1}getNamespace(){return this.namespace}urlParse(e){return new li.OZ(e,this.base)}urlFormat(e){return new li.OZ(e.toString(),this.base).toString().replace(this.base,"")}constructState(e,t,n){const r=this.constructSearch(n,t),i=new li.Ef(r||"").get("oakFrom");
2return{pathname:e,oakFrom:i?decodeURIComponent(i):void 0}}constructSearch(e,t){const n=new li.Ef(e||"");if(t)for(const i in t)void 0!==t[i]&&"undefined"!==t[i]&&n.set(i,"string"===typeof t[i]?t[i]:JSON.stringify(t[i]));let r=n.toString();return r=decodeURIComponent(r),r}constructUrl(e,t,n){const r=this.urlParse(e),{pathname:i,search:o}=r;let a;a=n?this.getPathname(i):this.getPathname(i,this.namespace);const s=this.constructSearch(o,t);r.pathname=a,r.search=s;return this.urlFormat(r)}constructNamespace(e,t){if(t){const n=this.urlParse(e),{pathname:r}=n;let i=r;i="/"===t?r:"/"===r?t:r===t?r:t+r,n.pathname=i;return this.urlFormat(n)}return e}getPathname(e,t){let n=e;return t?(n=this.constructNamespace(e,t),n):n}}class di extends ui{constructor(){super(),this.history=d()}setHistory(e){this.history=e}getLocation(){const{pathname:e}=this.history.location,t=e.replace(this.namespace,"").replace("//","/");return{...this.history.location,namespace:this.namespace,url:t||"/"}}getState(){const{pathname:e,state:t,search:n}=this.getLocation();return this.constructState(e,t,n)}getUrlAndProps(e,t,n){const{url:r,...i}=e,o=this.constructUrl(r,i,n),{pathname:a}=this.getLocation();return{url:o,props:Object.assign({},t,{oakFrom:a})}}async navigateTo(e,t,n){if(!this.enter())return;const{url:r,props:i}=this.getUrlAndProps(e,t,n);this.history.push(r,i),this.publish(),this.leave()}async redirectTo(e,t,n){if(!this.enter())return;const{url:r,props:i}=this.getUrlAndProps(e,t,n);this.history.replace(r,i),this.publish(),this.leave()}async switchTab(e,t,n){console.error("\u6d4f\u89c8\u5668\u65e0switchTab");const{url:r,props:i}=this.getUrlAndProps(e,t,n);this.history.replace(r,i),this.publish()}async navigateBack(e){this.enter()&&(this.history.go(e?0-e:-1),this.publish(),this.leave())}navigateBackOrRedirectTo(e,t,n){console.error("\u6d4f\u89c8\u5668\u6682\u65e0\u6cd5\u83b7\u5f97history\u5806\u6808"),this.history.back(),this.publish()}}class hi extends Jt{constructor(e){super(),this.cache=e}importEntity(e,t,n,r,i){const o=new FormData;return o.set("entity",e),o.set("id",t),o.set("file",n),o.set("option",JSON.stringify(r)),i&&o.set("s2jOpts",JSON.stringify(i)),this.cache.exec("importEntity",o)}exportEntity(e,t,n,r){return this.cache.exec("exportEntity",{entity:e,id:t,filter:n,properties:r})}getImportationTemplate(e){return this.cache.exec("getImportationTemplate",{id:e})}}class fi extends Jt{constructor(e){super(),this.styleDict=e}getStyleDict(){return this.styleDict}getActionIcon(e,t){var n;const r=null===(n=this.styleDict[e])||void 0===n?void 0:n.icon;return r&&r[t]}getColor(e,t,n){var r;const i=null===(r=this.styleDict[e])||void 0===r?void 0:r.color;return i&&i[t]&&i[t][n]}}const pi=Object.create(null);pi.open="0",pi.close="1",pi.ping="2",pi.pong="3",pi.message="4",pi.upgrade="5",pi.noop="6";const gi=Object.create(null);Object.keys(pi).forEach((e=>{gi[pi[e]]=e}));const yi={type:"error",data:"parser error"},mi="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),vi="function"===typeof ArrayBuffer,bi=e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,wi=(e,t,n)=>{let{type:r,data:i}=e;return mi&&i instanceof Blob?t?n(i):xi(i,n):vi&&(i instanceof ArrayBuffer||bi(i))?t?n(i):xi(new Blob([i]),n):n(pi[r]+(i||""))},xi=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function Si(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Ai;const ki="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Oi="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let n=0;n<64;n++)Oi[ki.charCodeAt(n)]=n;const _i="function"===typeof ArrayBuffer,Ei=(e,t)=>{if("string"!==typeof e)return{type:"message",data:ji(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:Ii(e.substring(1),t)};return gi[n]?e.length>1?{type:gi[n],data:e.substring(1)}:{type:gi[n]}:yi},Ii=(e,t)=>{if(_i){const n=(e=>{let t,n,r,i,o,a=.75*e.length,s=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const l=new ArrayBuffer(a),u=new Uint8Array(l);for(t=0;t<s;t+=4)n=Oi[e.charCodeAt(t)],r=Oi[e.charCodeAt(t+1)],i=Oi[e.charCodeAt(t+2)],o=Oi[e.charCodeAt(t+3)],u[c++]=n<<2|r>>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&o;return l})(e);return ji(n,t)}return{base64:!0,data:e}},ji=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,$i=String.fromCharCode(30);function Ti(){return new TransformStream({transform(e,t){!function(e,t){mi&&e.data instanceof Blob?e.data.arrayBuffer().then(Si).then(t):vi&&
vendor: 4,261 bytes, line 2
2(e.data instanceof ArrayBuffer||bi(e.data))?t(Si(e.data)):wi(e,!1,(e=>{Ai||(Ai=new TextEncoder),t(Ai.encode(e))}))}(e,(n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);const e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!==typeof e.data&&(i[0]|=128),t.enqueue(i),t.enqueue(n)}))}})}let Ci;function Pi(e){return e.reduce(((e,t)=>e+t.length),0)}function Ri(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function Ni(e){if(e)return function(e){for(var t in Ni.prototype)e[t]=Ni.prototype[t];return e}(e)}Ni.prototype.on=Ni.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Ni.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Ni.prototype.off=Ni.prototype.removeListener=Ni.prototype.removeAllListeners=Ni.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},Ni.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},Ni.prototype.emitReserved=Ni.prototype.emit,Ni.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Ni.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Mi="function"===typeof Promise&&"function"===typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Fi="undefined"!==typeof self?self:"undefined"!==typeof window?window:Function("return this")();function Di(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const Li=Fi.setTimeout,Bi=Fi.clearTimeout;function Ui(e,t){t.useNativeTimers?(e.setTimeoutFn=Li.bind(Fi),e.clearTimeoutFn=Bi.bind(Fi)):(e.setTimeoutFn=Fi.setTimeout.bind(Fi),e.clearTimeoutFn=Fi.clearTimeout.bind(Fi))}function Wi(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class Hi extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class zi extends Ni{constructor(e){super(),this.writable=!1,Ui(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved("error",new Hi(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=Ei(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}class qi extends zi{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}
vendor: 5,095 bytes, line 2
2doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split($i),r=[];for(let i=0;i<n.length;i++){const e=Ei(n[i],t);if(r.push(e),"error"===e.type)break}return r})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach(((e,o)=>{wi(e,!1,(e=>{r[o]=e,++i===n&&t(r.join($i))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=Wi()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let Vi=!1;try{Vi="undefined"!==typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(ps){}const Gi=Vi;function Yi(){}class Ki extends qi{constructor(e){if(super(e),"undefined"!==typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!==typeof location&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}class Xi extends Ni{constructor(e,t,n){super(),this.createRequest=e,Ui(this,n),this._opts=n,this._method=n.method||"GET",this._uri=t,this._data=void 0!==n.data?n.data:null,this._create()}_create(){var e;const t=Di(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(t);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this._opts.extraHeaders[e])}}catch(fs){}if("POST"===this._method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(fs){}try{n.setRequestHeader("Accept","*/*")}catch(fs){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(n.getResponseHeader("set-cookie"))),4===n.readyState&&(200===n.status||1223===n.status?this._onLoad():this.setTimeoutFn((()=>{this._onError("number"===typeof n.status?n.status:0)}),0))},n.send(this._data)}catch(fs){return void this.setTimeoutFn((()=>{this._onError(fs)}),0)}"undefined"!==typeof document&&(this._index=Xi.requestsCount++,Xi.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if("undefined"!==typeof this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=Yi,e)try{this._xhr.abort()}catch(fs){}"undefined"!==typeof document&&delete Xi.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(Xi.requestsCount=0,Xi.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",Ji);else if("function"===typeof addEventListener){addEventListener("onpagehide"in Fi?"pagehide":"unload",Ji,!1)}function Ji(){for(let e in Xi.requests)Xi.requests.hasOwnProperty(e)&&Xi.requests[e].abort()}const Qi=function(){const e=Zi({xdomain:!1});return e&&null!==e.responseType}();function Zi(e){const t=e.xdomain;try{if("undefined"!==typeof XMLHttpRequest&&(!t||Gi))return new XMLHttpRequest}catch(fs){}if(!t)try{return new(Fi[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(fs){}}const eo="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class to extends zi{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,n=eo?{}:Di(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(ps){return this.emitReserved("error",ps)}
2this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;wi(n,this.supportsBinary,(e=>{try{this.doWrite(n,e)}catch(fs){}r&&Mi((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){"undefined"!==typeof this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Wi()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const no=Fi.WebSocket||Fi.MozWebSocket;const ro={websocket:class extends to{createSocket(e,t,n){return eo?new no(e,t,n):t?new no(e,t):new no(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends zi{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(ps){return this.emitReserved("error",ps)}this._transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this._transport.ready.then((()=>{this._transport.createBidirectionalStream().then((e=>{const t=function(e,t){Ci||(Ci=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(a,s){for(n.push(a);;){if(0===r){if(Pi(n)<1)break;const e=Ri(n,1);o=128===(128&e[0]),i=127&e[0],r=i<126?3:126===i?1:2}else if(1===r){if(Pi(n)<2)break;const e=Ri(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(Pi(n)<8)break;const e=Ri(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),o=t.getUint32(0);if(o>Math.pow(2,21)-1){s.enqueue(yi);break}i=o*Math.pow(2,32)+t.getUint32(4),r=3}else{if(Pi(n)<i)break;const e=Ri(n,i);s.enqueue(Ei(o?e:Ci.decode(e),t)),r=0}if(0===i||i>e){s.enqueue(yi);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=Ti();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const i=()=>{n.read().then((e=>{let{done:t,value:n}=e;t||(this.onPacket(n),i())})).catch((e=>{}))};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then((()=>this.onOpen()))}))}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;this._writer.write(n).then((()=>{r&&Mi((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}},polling:class extends Ki{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=Qi&&!t}request(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(e,{xd:this.xd},this.opts),new Xi(Zi,this.uri(),e)}}},io=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,oo=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ao(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=io.exec(e||""),o={},a=14;for(;a--;)o[oo[a]]=i[a]||"";return-1!=n&&-1!=r&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,o.path),o.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,o.query),o}const so="function"===typeof addEventListener&&"function"===typeof removeEventListener,co=[];so&&addEventListener("offline",(()=>
2{co.forEach((e=>e()))}),!1);class lo extends Ni{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"===typeof e&&(t=e,e=null),e){const n=ao(e);t.hostname=n.host,t.secure="https"===n.protocol||"wss"===n.protocol,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=ao(t.host).host);Ui(this,t),this.secure=null!=t.secure?t.secure:"undefined"!==typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach((e=>{const t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e})),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let e=n[r].split("=");
vendor: 5,976 bytes, line 2
2t[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}return t}(this.opts.query)),so&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},co.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);const e=this.opts.rememberUpgrade&&lo.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",(e=>this._onClose("transport close",e)))}onOpen(){this.readyState="open",lo.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn((()=>{this._onClose("ping timeout")}),e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const r=this.writeBuffer[n].data;if(r&&(e+="string"===typeof(t=r)?function(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this._maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Mi((()=>{this._onClose("ping timeout")}),this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket("message",e,t,n),this}send(e,t,n){return this._sendPacket("message",e,t,n),this}_sendPacket(e,t,n,r){if("function"===typeof t&&(r=t,t=void 0),"function"===typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}_onError(e){if(lo.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),so&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const e=co.indexOf(this._offlineEventListener);-1!==e&&co.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}lo.protocol=4;class uo extends lo{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;lo.priorWebsocketSuccess=!1;const r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;lo.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{n||"closed"!==this.readyState&&(l(),this.setTransport(t),t.send([{type:"upgrade"}
2]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function i(){n||(n=!0,l(),t.close(),t=null)}const o=e=>{const n=new Error("probe error: "+e);n.transport=t.name,i(),this.emitReserved("upgradeError",n)};function a(){o("transport closed")}function s(){o("socket closed")}function c(e){t&&e.name!==t.name&&i()}const l=()=>{t.removeListener("open",r),t.removeListener("error",o),t.removeListener("close",a),this.off("close",s),this.off("upgrading",c)};t.once("open",r),t.once("error",o),t.once("close",a),this.once("close",s),this.once("upgrading",c),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}class ho extends uo{constructor(e){const t="object"===typeof e?e:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!t.transports||t.transports&&"string"===typeof t.transports[0])&&(t.transports=(t.transports||["polling","websocket","webtransport"]).map((e=>ro[e])).filter((e=>!!e))),super(e,t)}}const fo="function"===typeof ArrayBuffer,po=Object.prototype.toString,go="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===po.call(Blob),yo="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===po.call(File);function mo(e){return fo&&(e instanceof ArrayBuffer||(e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||go&&e instanceof Blob||yo&&e instanceof File}function vo(e,t){if(!e||"object"!==typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(vo(e[t]))return!0;return!1}if(mo(e))return!0;if(e.toJSON&&"function"===typeof e.toJSON&&1===arguments.length)return vo(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&vo(e[n]))return!0;return!1}function bo(e){const t=[],n=e.data,r=e;return r.data=wo(n,t),r.attachments=t.length,{packet:r,buffers:t}}function wo(e,t){if(!e)return e;if(mo(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=wo(e[r],t);return n}if("object"===typeof e&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=wo(e[r],t));return n}return e}function xo(e,t){return e.data=So(e.data,t),delete e.attachments,e}function So(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"===typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=So(e[n],t);else if("object"===typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=So(e[n],t));return e}const Ao=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ko=5;var Oo,_o;(_o=Oo||(Oo={}))[_o.CONNECT=0]="CONNECT",_o[_o.DISCONNECT=1]="DISCONNECT",_o[_o.EVENT=2]="EVENT",_o[_o.ACK=3]="ACK",_o[_o.CONNECT_ERROR=4]="CONNECT_ERROR",_o[_o.BINARY_EVENT=5]="BINARY_EVENT",_o[_o.BINARY_ACK=6]="BINARY_ACK";class Eo{constructor(e){this.replacer=e}encode(e){return e.type!==Oo.EVENT&&e.type!==Oo.ACK||!vo(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===Oo.EVENT?Oo.BINARY_EVENT:Oo.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==Oo.BINARY_EVENT&&e.type!==Oo.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=bo(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function Io(e){return"[object Object]"===Object.prototype.toString.call(e)}class jo extends Ni{constructor(e){super(),this.reviver=e}add(e){let t;if("string"===typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===Oo.BINARY_EVENT;n||t.type===Oo.BINARY_ACK?(t.type=n?Oo.EVENT:Oo.ACK,this.reconstructor=new $o(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!mo(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===Oo[n.type])throw new Error("unknown packet type "+n.type);if(n.type===Oo.BINARY_EVENT||n.type===Oo.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const i=e.substring(r,t);if(i!=Number(i)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(i)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));
2if(!jo.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(fs){return!1}}static isPayloadValid(e,t){switch(e){case Oo.CONNECT:return Io(t);case Oo.DISCONNECT:return void 0===t;case Oo.CONNECT_ERROR:return"string"===typeof t||Io(t);case Oo.EVENT:case Oo.BINARY_EVENT:return Array.isArray(t)&&("number"===typeof t[0]||"string"===typeof t[0]&&-1===Ao.indexOf(t[0]));case Oo.ACK:case Oo.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class $o{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=xo(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function To(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Co=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Po extends Ni{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[To(e,"open",this.onopen.bind(this)),To(e,"packet",this.onpacket.bind(this)),To(e,"error",this.onerror.bind(this)),To(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.unshift("message"),this.emit.apply(this,t),this}emit(e){var t,n,r;if(Co.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(o.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(o),this;const s={type:Oo.EVENT,data:o,options:{}};if(s.options.compress=!1!==this.flags.compress,"function"===typeof o[o.length-1]){const e=this.ids++,t=o.pop();this._registerAckCallback(e,t),s.id=e}const c=null===(n=null===(t=this.io.engine)||void 0===t?void 0:t.transport)||void 0===n?void 0:n.writable,l=this.connected&&!(null===(r=this.io.engine)||void 0===r?void 0:r._hasPingExpired());return this.flags.volatile&&!c||(l?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(e,t){var n,r=this;const i=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===i)return void(this.acks[e]=t);const o=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))}),i),a=function(){r.io.clearTimeoutFn(o);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.apply(r,n)};a.withError=!0,this.acks[e]=a}emitWithAck(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Promise(((t,r)=>{const i=(e,n)=>e?r(e):t(n);i.withError=!0,n.push(i),this.emit(e,...n)}))}_addToQueue(e){var t=this;let n;"function"===typeof e[e.length-1]&&(n=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((function(e){if(r!==t._queue[0])return;if(null!==e)r.tryCount>t._opts.retries&&(t._queue.shift(),n&&n(e));else if(t._queue.shift(),n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];n(null,...o)}return r.pending=!1,t._drainQueue()})),this._queue.push(r),this._drainQueue()}_drainQueue(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.connected||0===this._queue.length)return;const t=this._queue[0];
vendor: 7,681 bytes, line 2
2t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Oo.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{if(!this.sendBuffer.some((t=>String(t.id)===e))){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}}))}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Oo.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Oo.EVENT:case Oo.BINARY_EVENT:this.onevent(e);break;case Oo.ACK:case Oo.BINARY_ACK:this.onack(e);break;case Oo.DISCONNECT:this.ondisconnect();break;case Oo.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"===typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(){if(!n){n=!0;for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];t.packet({type:Oo.ACK,id:e,data:i})}}}onack(e){const t=this.acks[e.id];"function"===typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Oo.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}function Ro(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ro.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},Ro.prototype.reset=function(){this.attempts=0},Ro.prototype.setMin=function(e){this.ms=e},Ro.prototype.setMax=function(e){this.max=e},Ro.prototype.setJitter=function(e){this.jitter=e};class No extends Ni{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&"object"===typeof t&&(n=t,t=void 0),(n=n||{}).path=n.path||"/socket.io",this.opts=n,Ui(this,n),this.reconnection(!1!==n.reconnection),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=n.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new Ro({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==n.timeout?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||e;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==n.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ho(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=To(t,"open",(function(){n.onopen(),e&&e()})),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=To(t,"error",i);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn((()=>{r(),i(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(To(e,"ping",this.onping.bind(this)),To(e,"data",this.ondata.bind(this)),To(e,"error",this.onerror.bind(this)),To(e,"close",this.onclose.bind(this)),To(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(fs){this.onclose("parse error",fs)}}ondecoded(e){Mi((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Po(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const n of t){if(this.nsps[n].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;
2n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),null===(n=this.engine)||void 0===n||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const Mo={};function Fo(e,t){"object"===typeof e&&(t=e,e=void 0);const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=e;n=n||"undefined"!==typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"===typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e="undefined"!==typeof n?n.protocol+"//"+e:"https://"+e),r=ao(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),r=n.source,i=n.id,o=n.path,a=Mo[i]&&o in Mo[i].nsps;let s;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?s=new No(r,t):(Mo[i]||(Mo[i]=new No(r,t)),s=Mo[i]),n.query&&!t.query&&(t.query=n.queryKey),s.socket(n.path,t)}Object.assign(Fo,{Manager:No,Socket:Po,io:Fo,connect:Fo});const Do=Fo;class Lo extends Jt{constructor(e,t,n){super(),this.eventMap={},this.socketState="unconnected",this.eventCallbackMap={connect:[],disconnect:[]},this.cache=e,this.message=t,this.socketPoint=n,this.halted=!1,this.reconnectInterval=1e4,this.reconnectTimer=void 0,this.count=0}on(e,t){this.eventCallbackMap[e].push(t)}off(e,t){(0,pe.pull)(this.eventCallbackMap[e],t)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.eventCallbackMap[e].forEach((e=>e(n)))}async initSocketPoint(){try{const{subscribeUrl:e,path:t}=await this.socketPoint.get();this.url=e,this.path=t}catch(ps){throw this.url=void 0,this.path=void 0,new H.OakSocketConnectException}}async connect(){if(this.halted)return;this.socketState="connecting",this.url||(await this.initSocketPoint(),this.count=0);const e=this.url,t=this.path;this.socket||(this.socket=Do(e,{path:t}));const n=this.socket;return new Promise(((e,t)=>{n.on("connect",(async()=>{this.socketState="connected",this.count=0,this.emit("connect"),n.off("connect"),n.on("disconnect",(()=>{this.socketState="unconnected",this.emit("disconnect"),n.removeAllListeners(),Object.keys(this.eventMap).length>0&&this.connect()})),n.on("data",((e,t)=>{const n=this.eventMap[t];n&&n.callbacks.forEach((n=>n(t,e))),this.cache.sync(e)})),n.on("error",(e=>{console.error(e),this.message.setMessage({type:"error",title:"\u670d\u52a1\u5668subscriber\u629b\u51fa\u5f02\u5e38",content:e})})),Object.keys(this.eventMap).length>0?(n.emit("sub",Object.keys(this.eventMap)),e(void 0)):(e(void 0),n.disconnect())})),n.on("connect_error",(async t=>{this.count++,n.removeAllListeners(),n.disconnect(),this.count>50&&(this.url=void 0,this.socket=void 0),this.count<=10?this.reconnectInterval=1e4:this.count<=20?this.reconnectInterval=3e4:this.count<=30?this.reconnectInterval=6e4:this.count<=40?this.reconnectInterval=9e4:this.reconnectInterval=12e4,this.reconnectTimer=setTimeout((()=>this.connect()),this.reconnectInterval),e(void 0)})),n.connect()}))}async sub(e,t){const n=[];return e.forEach((e=>{const r=this.eventMap[e];r?(t&&r.callbacks.push(t),r.count++):(this.eventMap[e]={callbacks:t?[t]:[],count:1},n.push(e))})),"unconnected"===this.socketState?await this.connect():"connected"===this.socketState&&n.length>0&&await new Promise(((e,t)=>{this.socket.emit("sub",n),e(void 0)})),()=>{this.unsub(e,t)}}async unsub(e,t){const n=[];e.forEach((e=>{const r=this.eventMap[e];(0,ge.v)(r),r.count--,r.count>0?t&&(0,pe.pull)(r.callbacks,t):n.push(e)}
2)),n.forEach((e=>(0,pe.unset)(this.eventMap,e))),"connected"!==this.socketState&&"connecting"!==this.socketState||(this.socket.emit("unsub",e),0===Object.keys(this.eventMap).length&&(this.socket.disconnect(),this.socket.removeAllListeners(),this.socketState="unconnected"))}getSubscriberId(){if(this.socket)return this.socket.id}setHalted(e){this.halted=e,!1===e&&Object.keys(this.eventMap).length>0&&this.connect()}}class Bo{constructor(e){this.getSocketPointFn=e}async init(){try{this.socketPointInfo=await this.getSocketPointFn()}catch(ps){throw new H.OakSocketConnectException}}async get(){return this.socketPointInfo||await this.init(),this.socketPointInfo}}var Uo=n(9062),Wo=n.n(Uo);class Ho extends Jt{constructor(e,t){super(),this.connectQueue=[],this.ioState="unconnected",this.message=e,this.socketPoint=t}async initSocketPoint(){try{const{socketUrl:e,path:t}=await this.socketPoint.get();this.url=e,this.path=t}catch(ps){throw this.url=void 0,this.path=void 0,new H.OakSocketConnectException}}onConnected(){this.io.off("disconnect"),this.io.on("disconnect",(()=>{this.publish({event:"disconnect"}),this.ioState="unconnected",this.io=void 0}))}async connect(){if("connecting"===this.ioState){return new Promise(((e,t)=>{this.connectQueue.push([e,t])}))}return Wo()("unconnected"===this.ioState),this.ioState="connecting",await this.initSocketPoint(),this.io=Do(this.url,{path:this.path}),new Promise(((e,t)=>{this.io.off("connect"),this.io.on("connect",(()=>{this.publish({event:"connect"}),this.ioState="connected",this.connectQueue.forEach((e=>{let[t]=e;return t()})),this.onConnected(),e(void 0)})),this.io.on("connect_error",(e=>{this.message.setMessage({type:"error",title:"connect error",content:e.message}),this.publish({event:"connect_error",reason:e}),this.ioState="unconnected",this.connectQueue.forEach((t=>{let[n,r]=t;return r(e)})),t(e)}))}))}async emit(e,t,n){Wo()(this.io),this.io.emit(e,t,n)}disconnect(){Wo()("connected"===this.ioState),this.io.disconnect()}on(e,t){var n;null===(n=this.io)||void 0===n||n.on(e,t)}off(e,t){var n;null===(n=this.io)||void 0===n||n.off(e,t)}}class zo extends Jt{constructor(e){super(),this.cache=e}setMenus(e){this.menus=e}makeMenuFilters(e,t,n,r){const i=this.cache.getSchema();(0,ge.v)(t.length>0);return t.map((t=>{if(""===t)return n===e?{id:r}:void 0;const o=t.split("."),a=(e,s)=>{const c=o[s],l=(0,gn.judgeRelation)(i,e,c);let u=e;if("string"===typeof l?u=l:2===l?u=c:((0,ge.v)(l instanceof Array),u=l[0]),s!==o.length-1)return a(u,s+1);if("user"===u)return!0;if(u===n){const e={},i=o.slice(0,o.length-1);return 2===l?((0,pe.set)(e,i.concat("entity"),n),(0,pe.set)(e,i.concat("entityId"),r)):"string"===typeof l?(0,pe.set)(e,i.concat(`${c}Id`),r):(0,pe.set)(e,`${t}.id`,r),e}};return a(e,0)})).filter((e=>!!e))}getMenusByContext(e,t){(0,ge.v)(this.menus,"\u5e94\u5f53\u5148\u8c03\u7528setMenus\u624d\u80fd\u52a8\u6001\u5224\u5b9a\u83dc\u5355");return this.menus.filter((n=>{const{entity:r,paths:i,action:o}=n;if(!r||!i)return!0;(0,ge.v)(o);const a=i&&i.length>0?this.makeMenuFilters(r,i,e,t):[{}];if(a.length>0){return a.map((e=>{if(!0===e)return!0;let t=!1;if(o instanceof Array){for(let n=0;n<o.length;n++){const i=this.cache.checkOperation(r,{action:o[n],filter:e},["logical","row","relation"]);if(i){t=!0===i;break}}return t}return this.cache.checkOperation(r,{action:o,filter:e},["logical","row","relation"])})).indexOf(!0)>=0}return!1})).map((e=>(0,pe.omit)(e,["filtersMaker"])))}}class qo extends Jt{constructor(e){super(),this.cache=e}async searchPoi(e,t,n,r,i){const{result:o}=await this.cache.exec("geoService",{api:"geo",params:{name:e,areaId:t,indexFrom:r,count:i}});return o}async regeo(e,t){const{result:n}=await this.cache.exec("geoService",{api:"regeo",params:{longitude:e,latitude:t}});return n}}var Vo=n(77246);function Go(e,t,n,r,i,o){const{actionDefDict:a,attrUpdateMatrix:s}=i,c=(0,Vo.i)(e,a,s),l=r.concat(c),u=function(){const e=new $n,t=new si,n=new ri;return{location:e,environment:t,notification:new ii,message:new ci,localStorage:n,navigator:new di}}(),d=function(e,t,n,r,i,o,a){const{localStorage:s,environment:c,message:l}=e,u=new jn(n,t,r,i,s,o),d=new Wn(u,n),h=new qo(u),f=new hi(u),p=new fi(a.styleDict),g=new ni(u,s,c,"zh-CN"),y=new zo(u),m=new Bo((()=>t.getSocketPoint())),v=new Lo(u,l,m);return{cache:u,socket:new Ho(l,m),runningTree:d,locales:g,port:f,style:p,geo:h,contextMenuFactory:y,subscriber:v}}(u,n,e,t,l,i,o);return{features:Object.assign(u,d)}}var Yo=n(48551);
2const Ko=[{type:"data",action:"update",entity:"address",checker:e=>{if(e.hasOwnProperty("phone")&&!(0,Yo.Fr)(e.phone))throw new X.OakInputIllegalException("address",["phone"],"\u624b\u673a\u53f7\u975e\u6cd5")}}],Xo=[];function Jo(e){const t=e.getApplication(),{config:n}=t.system,{Security:r}=n||{};if(r&&["strong","medium"].includes(r.level)){return{$or:[{verifyPasswordAt:{$gte:Date.now()-r.passwordVerifyGap}},{hasPassword:!1}]}}}const Qo=[{type:"row",action:"remove",entity:"user",filter:{userState:"shadow"}},{type:"logical",action:["remove","disable","enable"],entity:"user",checker:(e,t)=>{if(!t.isRoot())throw new X.OakOperationUnpermittedException("user",{id:"disable",action:"disable",data:{}})}},{type:"data",action:"grant",entity:"user",checker:e=>{if(Object.keys(e).filter((e=>!e.includes("$"))).length>0)throw new X.OakInputIllegalException("user",Object.keys(e),"\u6388\u6743\u4e0d\u5141\u8bb8\u4f20\u5165\u5176\u5b83\u5c5e\u6027")}},{type:"row",action:"disable",entity:"user",filter:{isRoot:!1},errMsg:"\u4e0d\u80fd\u7981\u7528root\u7528\u6237"},{type:"logicalData",action:"verify",entity:"user",checker(e,t){const{data:n,filter:r}=e,{idCardType:i,idNumber:o,extraFile$entity:a,name:s}=n;Wo()("string"===typeof r.id);const c=t.getApplication().system,{config:l}=c;return(0,Vt.T)((()=>t.select("user",{data:{id:1,name:1,idCardType:1,idNumber:1,extraFile$entity:{$entity:"extraFile",data:{id:1,tag1:1,tag2:1}}},filter:{id:r.id}},{})),(e=>{const[t]=e,r=n.idCardType||t.idCardType,i=n.idNumber||t.idNumber,o=n.name||t.name,a=n.extraFile$entity&&n.extraFile$entity.find((e=>"create"===e.action&&e.data.tag1===r&&"file1"===e.data.tag2))||t.extraFile$entity&&t.extraFile$entity.find((e=>e.tag1===r&&"file1"===e.tag2)),s=n.extraFile$entity&&n.extraFile$entity.find((e=>"create"===e.action&&e.data.tag1===r&&"file2"===e.data.tag2))||t.extraFile$entity&&t.extraFile$entity.find((e=>e.tag1===r&&"file2"===e.tag2));if(!o)throw new X.OakInputIllegalException("user",["name"],"error::user.verifyNameEmpty");if(!r)throw new X.OakInputIllegalException("user",["idCardType"],"error::user.verifyIdCardTypeEmpty");if(!i)throw new X.OakInputIllegalException("user",["idNumber"],"error::user.verifyIdNumberTypeEmpty");if(l.App.needUploadIDCardPhoto){if(!a)throw new X.OakInputIllegalException("user",["extraFile$entity"],"error::user.verifyLackOfPhoto1");if(!s)throw new X.OakInputIllegalException("user",["extraFile$entity"],"error::user.verifyLackOfPhoto2")}switch(r){case"ID-Card":if(!(0,Yo.ZD)(i))throw new X.OakInputIllegalException("user",["idNumber"],"error::user.verifyIdNumberIllegal");break;case"Mainland-passport":if(!(0,Yo.js)(i)&&(0,Yo.hz)(i)&&(0,Yo.gx)(i))throw new X.OakInputIllegalException("user",["idNumber"],"error::user.verifyIdNumberIllegal");break;case"passport":if(!(0,Yo.Ac)(i))throw new X.OakInputIllegalException("user",["idNumber"],"error::user.verifyIdNumberIllegal")}}))}},{type:"row",entity:"user",action:"update",filter(e,t){if(t.isRoot())return;const{data:n}=e;return null!==n&&void 0!==n&&n.hasOwnProperty("password")?Jo(t):void 0},err:ce},{type:"row",entity:"user",action:"update",filter(e,t){if(t.isRoot())return;const{data:n}=e;return null!==n&&void 0!==n&&n.hasOwnProperty("name")||null!==n&&void 0!==n&&n.hasOwnProperty("idCardType")||null!==n&&void 0!==n&&n.hasOwnProperty("idNumber")||null!==n&&void 0!==n&&n.hasOwnProperty("gender")||null!==n&&void 0!==n&&n.hasOwnProperty("birth")?{idState:{$nin:["verified"]}}:void 0},err:ce}],Zo=[{type:"data",action:"create",entity:"userEntityGrant",checker:e=>{if(e instanceof Array)e.forEach((e=>{if(!e.relationIds||0===e.relationIds.length)throw new X.OakInputIllegalException("userEntityGrant",["relationIds"],"\u81f3\u5c11\u5e94\u9009\u62e9\u4e00\u4e2a\u5173\u7cfb")}));else if(!e.relationIds||0===e.relationIds.length)throw new X.OakInputIllegalException("userEntityGrant",["relationIds"],"\u81f3\u5c11\u5e94\u9009\u62e9\u4e00\u4e2a\u5173\u7cfb")}},{type:"row",entity:"userEntityGrant",action:"claim",filter:{expired:!1}},{type:"logical",entity:"userEntityGrant",action:"claim",checker:(e,t,n)=>{const{data:r,filter:i}=e;(0,ge.v)(r.hasOwnProperty("userEntityClaim$ueg"));const{userEntityClaim$ueg:o}=r;(0,ge.v)(i.id),(0,ge.v)(o instanceof Array);return(0,Vt.T)((()=>t.select("userEntityGrant",{data:{id:1,relationEntity:1,multiple:1},filter:i},n)),(e=>{let[t]=e;return(e=>{const{relationEntity:t}=e;return o.forEach((e=>{const{action:n,data:r}=e;(0,ge.v)("create"===n);const{userId:i,relationId:o,claimEntityId:a}=r;Object.assign(r,{userRelation:{id:(0,Kt.generateNewId)(),action:"create",data:{id:(0,Kt.generateNewId)(),userId:i,relationId:o,entityId:a,entity:t}}})})),o.length})(t)}))}}],ea=[{type:"data",action:"create",entity:"wechatQrCode",checker:e=>{}}];var ta=n(86417);function na(e){const{dangerousVersions:t,warningVersions:n,soaVersion:r}=e;if(t&&t.find((e=>!(0,ta.isVersion)(e))))throw new X.OakInputIllegalException("application",["dangerousVersions"],"error::illegalVersionData");if(n&&n.find((e=>!(0,ta.isVersion)(e))))throw new X.OakInputIllegalException("application",["warningVersions"],"error::illegalVersionData");if(r&&!(0,ta.isVersion)(r))throw new X.OakInputIllegalException("application",["soaVersion"],"error::illegalVersionData")}const ra=[{type:"data",action:"create",entity:"application",checker:(e,t)=>{const n=e=>{e.config||Object.assign(e,{config:{}})};e instanceof Array?e.forEach((e=>{na(e),(0,Yo.SB)("application",e,["name","type","systemId"]),n(e)})):(na(e),(0,Yo.SB)("application",e,["name","type","systemId"]),n(e))}},{type:"data",action:"update",entity:"application",checker(e){na(e)}}],ia=[...[{type:"data",action:"create",entity:"mobile",checker:e=>{if((0,ge.v)(!(e instanceof Array)),(0,Yo.SB)("mobile",e,["mobile"]),!(0,Yo.Fr)(e.mobile))throw new X.OakInputIllegalException("mobile",["mobile"],"\u624b\u673a\u53f7\u975e\u6cd5")}},{type:"data",action:"update",entity:"mobile",checker:e=>{if((0,ge.v)(!(e instanceof Array)),e.hasOwnProperty("mobile")&&((0,Yo.SB)("mobile",e,["mobile"]),!(0,Yo.Fr)(e.mobile)))throw new X.OakInputIllegalException("mobile",["mobile"],"\u624b\u673a\u53f7\u975e\u6cd5")}},{type:"row",action:"remove",entity:"mobile",filter(e,t){if(t.isRoot())return;const n=Jo(t);return n?{user:n}:void 0},err:ce}],...Ko,...Xo,...Qo,...Zo,...ea,...ra,...[{type:"data",action:"create",entity:"wechatPublicTag",checker:e=>{(0,ge.v)(!(e instanceof Array)),(0,Yo.SB)("wechatPublicTag",e,["applicationId","text"]),(0,Yo.id)("wechatPublicTag",e,["applicationId","id","text"])}}],...[{type:"logical",action:"select",entity:"message",checker:(e,t)=>{const n=t.getSystemId();if(!n)return;if(t.isRoot())return;const r={messageSystem$message:{systemId:n}};e.filter=e.filter?(0,vn.combineFilters)("message",t.getSchema(),[e.filter,r]):r}}],...[{type:"data",action:"create",entity:"parasite",checker:(e,t)=>{if((0,ge.v)(!(e instanceof Array)),(0,Yo.SB)("parasite",e,["expiresAt","tokenLifeLength"]),e.userId){const n=t.select("user",{data:{id:1,userState:1},filter:{id:e.userId}},{dontCollect:!0}),r=e=>{const[n]=e;if("shadow"!==n.userState){const e=new X.OakRowInconsistencyException;throw e.addData("user",[n],t.getSchema()),e}};return n instanceof Promise?n.then((e=>r(e))):r(n)}(0,ge.v)(e.user&&"create"===e.user.action)}},{type:"row",entity:"parasite",action:["cancel"],errMsg:"\u60a8\u6ca1\u6709\u8bbe\u7f6e\u5931\u6548\u7684\u6743\u9650",filter:{expired:!1}},{type:"row",entity:"parasite",action:["qrcode"],errMsg:"\u60a8\u6ca1\u6709\u67e5\u7
270b\u4e8c\u7ef4\u7801\u7684\u6743\u9650",filter:{expired:!1}}],...[{entity:"applicationPassport",type:"logical",action:"create",checker(e,t,n){const{data:r}=e;if(r){const{id:e,applicationId:i,isDefault:o}=r;if(i&&o)return t.operate("applicationPassport",{id:(0,Kt.generateNewId)(),action:"update",data:{isDefault:!1},filter:{applicationId:i,isDefault:!0,id:{$ne:e}}},n)}}},{entity:"applicationPassport",type:"logical",action:"update",checker(e,t,n){const{data:r,filter:i}=e;if(null!==r&&void 0!==r&&r.isDefault)return(0,Vt.T)((()=>t.select("applicationPassport",{data:{id:1,applicationId:1},filter:i},{})),(e=>{(0,ge.v)(1===e.length);const[r]=e,{applicationId:i,id:o}=r;return t.operate("applicationPassport",{id:(0,Kt.generateNewId)(),action:"update",data:{isDefault:!1},filter:{applicationId:i,isDefault:!0,id:{$ne:o}}},n)}))}},{entity:"applicationPassport",type:"logical",action:"remove",checker(e,t,n){const{filter:r}=e;(0,ge.v)(r);const i=t.select("applicationPassport",{data:{id:1,applicationId:1,isDefault:1},filter:r},{forUpdate:!0}),o=(e,r)=>(0,Vt.T)((()=>t.select("applicationPassport",{data:{id:1,applicationId:1,isDefault:1},filter:{id:{$ne:e},isDefault:!1,applicationId:r},indexFrom:0,count:1},{})),(e=>{if(e&&1===e.length)return t.operate("applicationPassport",{id:(0,Kt.generateNewId)(),action:"update",data:{isDefault:!0},filter:{id:e[0].id}},n)}));return i instanceof Promise?i.then((e=>{var t;if(null!==(t=e[0])&&void 0!==t&&t.isDefault)return o(e[0].id,e[0].applicationId)})):null!==(a=i[0])&&void 0!==a&&a.isDefault?o(i[0].id,i[0].applicationId):void 0;var a}}],...[{type:"data",action:"create",entity:"system",checker:e=>{const t=e=>{e.config||Object.assign(e,{config:{}}),e.super||Object.assign(e,{super:!1})};if(e instanceof Array)e.forEach((e=>{if((0,Yo.SB)("system",e,["name","platformId"]),e.oldestVersion&&!(0,ta.isVersion)(e.oldestVersion))throw new X.OakInputIllegalException("system",["oldestVersion"],"error::illegalVersionData","oak-general-business");t(e)}));else{if((0,Yo.SB)("system",e,["name","platformId"]),e.oldestVersion&&!(0,ta.isVersion)(e.oldestVersion))throw new X.OakInputIllegalException("system",["oldestVersion"],"error::illegalVersionData","oak-general-business");t(e)}}},{type:"data",action:"update",entity:"system",checker(e){const{oldestVersion:t}=e;if(t&&!(0,ta.isVersion)(t))throw new X.OakInputIllegalException("system",["oldestVersion"],"error::illegalVersionData")}}],...[{type:"data",action:"create",entity:"platform",checker:e=>{const t=e=>{e.config||Object.assign(e,{config:{}})};if(e instanceof Array)e.forEach((e=>{if((0,Yo.SB)("platform",e,["name"]),e.oldestVersion&&!(0,ta.isVersion)(e.oldestVersion))throw new X.OakInputIllegalException("system",["oldestVersion"],"error::illegalVersionData","oak-general-business");t(e)}));else{if((0,Yo.SB)("platform",e,["name"]),e.oldestVersion&&!(0,ta.isVersion)(e.oldestVersion))throw new X.OakInputIllegalException("system",["oldestVersion"],"error::illegalVersionData","oak-general-business");t(e)}}}],...[{action:"remove",type:"logical",entity:"article",checker(e,t){const{filter:n}=e;return t.operate("extraFile",{id:(0,Kt.generateNewId)(),action:"remove",data:{},filter:{article:n}},{})}}],...[{action:"remove",type:"logical",entity:"articleMenu",checker(e,t){const{filter:n}=e;return t.operate("extraFile",{id:(0,Kt.generateNewId)(),action:"remove",data:{},filter:{articleMenu:n}},{})}},{action:"remove",type:"logical",entity:"articleMenu",checker(e,t){const{filter:n}=e;if(n)return(0,Vt.T)((()=>t.select("articleMenu",{data:{id:1,articleMenu$parent:{$entity:"articleMenu",data:{id:1}}},filter:n},{})),(e=>{const n=e.map((e=>e.articleMenu$parent)).flat(),r=null===n||void 0===n?void 0:n.map((e=>e.id));if(r&&r.length>0)return t.operate("articleMenu",{id:(0,Kt.generateNewId)(),action:"remove",data:{},filter:{id:{$in:r}}},{})}))}},{action:"remove",type:"logical",entity:"articleMenu",checker(e,t){const{filter:n}=e;if(n)return(0,Vt.T)((()=>t.select("articleMenu",{data:{id:1,article$articleMenu:{$entity:"article",data:{id:1}}},filter:n},{})),(e=>{const n=e.map((e=>e.article$articleMenu)).flat(),r=null===n||void 0===n?void 0:n.map((e=>e.id));if(r&&r.length>0)return t.operate("article",{id:(0,Kt.generateNewId)(),action:"remove",data:{},filter:{id:{$in:r}}},{})}))}}]],oa={extraFile:"entity",message:"entity",wechatQrCode:"entity"},aa=["application","domain","area","mobile","wechatQrCode","wechatLogin","messageTypeTemplate","articleMenu","article","userEntityGrant","wechatMpJump","applicationPassport","passport"],sa={userEntityGrant:["claim"]},ca={attrUpdateMatrix:{},actionDefDict:{log:{},modi:{iState:{stm:{apply:["active","applied"],abandon:["active","abandoned"]},is:"active"}}
2,oper:{iState:{stm:{undo:["normal","rollbacked"],redo:["rollbacked","normal"]},is:"normal"}},captcha:{iState:{stm:{send:["unsent","sending"],success:["sending","sent"],fail:["sending","failure"]},is:"unsent"}},email:{ableState:(0,Ae.makeAbleActionDef)("enabled")},loginName:{ableState:(0,Ae.makeAbleActionDef)("enabled")},message:{iState:{stm:{succeed:["sending","success"],fail:["sending","failure"]}},visitState:{stm:{visit:["unvisited","visited"]},is:"unvisited"}},mobile:{ableState:(0,Ae.makeAbleActionDef)("enabled")},notification:{iState:{stm:{succeed:["sending","success"],fail:["sending","failure"]},is:"sending"}},parasite:{},toDo:{iState:{stm:{complete:["active","done"]}}},token:{ableState:(0,Ae.makeAbleActionDef)("enabled")},user:{idState:{stm:{verify:["unverified","verifying"],accept:[["unverified","verifying"],"verified"],reject:[["verifying","verified"],"unverified"]},is:"unverified"},userState:{stm:{activate:["shadow","normal"],disable:[["normal","shadow"],"disabled"],enable:["disabled","normal"],mergeTo:[["normal","shadow"],"merged"],mergeFrom:["normal","normal"]}}},userEntityGrant:{},userWechatPublicTag:{iState:{stm:{success:[["wait","fail"],"success"],fail:[["wait","success"],"fail"]},is:"wait"}},wechatLogin:{},wechatMenu:{iState:{stm:{success:[["wait","fail"],"success"],fail:[["wait","success"],"fail"]},is:"wait"}},wechatPublicTag:{iState:{stm:{success:[["wait","fail"],"success"],fail:[["wait","success"],"fail"]},is:"wait"}}},authDeduceRelationMap:oa,selectFreeEntities:aa,updateFreeDict:sa,cacheSavedEntities:[]},la={styleDict:{log:{icon:{undo:"",redo:""}},modi:{icon:{apply:"",abandon:""},color:{iState:{active:"#0000FF",applied:"#008000",abandoned:"#A9A9A9"}}},oper:{icon:{undo:"",redo:""},color:{iState:{normal:"#229954",rollbacked:"#2C3E50"}}},application:{color:{type:{wechatMp:"#32CD32",web:"#00FF7F",wechatPublic:"#90EE90",native:"#008000"}}},area:{color:{level:{province:"#00FF7F",city:"#1E90FF",district:"#4682B4",street:"#808080",country:"#2F4F4F"}}},captcha:{icon:{send:"",success:"",fail:""},color:{iState:{unsent:"#0000FF",sending:"#FFA500",sent:"#008000",failure:"#A9A9A9"},type:{login:"#0000FF",changePassword:"#FF0000",confirm:"#008000"}}},changePasswordTemp:{color:{result:{success:"#008000",fail:"#FF0000"}}},domain:{color:{protocol:{"http:":"#0000FF","https:":"#4682B4"}}},email:{icon:{enable:"",disable:""},color:{ableState:{enabled:"#008000",disabled:"#A9A9A9"}}},extraFile:{color:{origin:{s3:"#FFA500",qiniu:"#37caff",wechat:"#2aae67",ctyun:"#ff0000",aliyun:"#1677ff",tencent:"#0052d9",local:"#A9A9A9",unknown:"#A9A9A9"},type:{image:"#0000FF",video:"#008000",audio:"#F5DEB3",file:"#EEE8AA"},uploadState:{success:"#008000",failed:"#FF0000",uploading:"#0000FF"}}},livestream:{color:{liveonly:{online:"#008000",offline:"#A9A9A9"}}},loginName:{icon:{enable:"",disable:""},color:{ableState:{enabled:"#008000",disabled:"#A9A9A9"}}},message:{icon:{succeed:"#0000FF",fail:"#FF0000",visit:"#00800"},color:{visitState:{unvisited:"#0000FF",visited:"#ADD8E6"},iState:{sending:"#EEE8AA",success:"#008000",failure:"#FF0000"},weight:{high:"#FF0000",medium:"#0000FF",low:"#A9A9A9"}}},mobile:{icon:{enable:"",disable:""},color:{ableState:{enabled:"#008000",disabled:"#A9A9A9"}}},notification:{icon:{succeed:"#0000FF",fail:"#FF0000"},color:{iState:{sending:"#EEE8AA",success:"#008000",failure:"#9A9A9A"},channel:{wechatMp:"#008000",jPush:"#0000FF",jim:"#0000FF",wechatPublic:"#008000",sms:"#000000",email:"#000000"}}},parasite:{icon:{wakeup:"",cancel:"",qrcode:""}},passport:{color:{type:{password:"#7DC9E7",sms:"#D3DDE6",email:"#F95A37",wechatWeb:"#F298A6",wechatPublic:"#D3ADF7",wechatMp:"#ADDCCA",wechatMpForWeb:"#FDC454",wechatPublicForWeb:"#C0A27C",wechatNative:"#C0A27C"}}},smsTemplate:{color:{origin:{ali:"#1677ff",tencent:"#0052d9",ctyun:"#ff0000",qiniu:"#37caff"}}},toDo:{icon:{complete:""},color:{iState:{active:"#0000FF",done:"#008000"}}},token:{icon:{enable:"",disable:""},color:{ableState:{enabled:"#008000",disabled:"#A9A9A9"}}},user:{icon:{verify:"",accept:"",reject:"",activate:"",enable:"",disable:"",mergeTo:"",mergeFrom:"",play:""},color:{userState:{normal:"#0000FF",disabled:"#FF0000",merged:"#9A9A9A",shadow:"#D3D3D3"},idState:{unverified:"#FF0000",verified:"#0000FF",verifying:"#EEE8AA"},gender:{male:"#0000FF",female:"#EE82EE"},idCardType:{"ID-Card":"#E0FFFF","Mainland-passport":"#2E8B57",passport:"#2F4F4F"}}},userEntityGrant:{icon:{claim:"",disable:""},color:{type:{grant:"#0000FF",transfer:"#008000"},qrCodeType:{webForWechatPublic:"#00FF7F",wechatMpDomainUrl:"#008000",wechatMpWxaCode:"#32CD32",wechatPublic:"#90EE90",wechatPublicForMp:"#9ACD32"},rule:{single:"#0000FF",all:"#FF0000",free:"#008000"},ruleOnRow:{single:"#0000FF",all:"#FF0000",free:"#008000"}}},userWechatPublicTag:{icon:{sync:"",success:"",fail:""},color:{iState:{wait:"#0000FF",success:"#008000",fail:"#FF0000"}}},wechatLogin:{icon:{success:""},color:{type:{bind:"#4682B4",login:"#0000FF"},qrCodeType:{webForWechatPublic:"#00FF7F",wechatMpDomainUrl:"#008000",wechatMpWxaCode:"#32CD32",wechatPublic:"#90EE90",wechatPublicForMp:"#9ACD32"}}},wechatMenu:{icon:{publish:"",success:"",fail:""},color:{iState:{wait:"#0000FF",success:"#008000",fail:"#FF0000"}}},wechatPublicTag:{icon:{sync:"",success:"",fail:""},color:{iState:{wait:"#0000FF",success:"#008000",fail:"#FF0000"}}},wechatQrCode:{color:{type:{webForWechatPublic:"#00FF7F",wechatMpDomainUrl:"#008000",wechatMpWxaCode:"#32CD32",wechatPublic:"#90EE90",wechatPublicForMp:"#9ACD32"}}},wechatUser:{color:{origin:{mp:"#32CD32",web:"#00FF7F",public:"#90EE90",native:"#008000"}}}}},ua={id:1,applicationId:1,userId:1,user:{id:1,nickname:1,name:1,userState:1,refId:1,idState:1,gender:1,birth:1,isRoot:1,hasPassword:1,password:1,verifyPasswordAt:1,extraFile$entity:{$entity:"extraFile",data:{id:1,tag1:1,origin:1,bucket:1,objectId:1,filename:1,extra1:1,type:1,entity:1,entity
2Id:1,extension:1},filter:{tag1:"avatar"},indexFrom:0,count:1},mobile$user:{$entity:"mobile",data:{id:1,mobile:1,userId:1}},email$user:{$entity:"email",data:{id:1,email:1,userId:1}},loginName$user:{$entity:"loginName",data:{id:1,name:1,userId:1}},user$ref:{$entity:"user",data:{id:1,nickname:1,name:1,userState:1,refId:1,idState:1,gender:1,birth:1,isRoot:1,extraFile$entity:{$entity:"extraFile",data:{id:1,tag1:1,origin:1,bucket:1,objectId:1,filename:1,extra1:1,type:1,entity:1,entityId:1,extension:1},filter:{tag1:"avatar"},indexFrom:0,count:1},mobile$user:{$entity:"mobile",data:{id:1,mobile:1,userId:1,user:{id:1,userState:1,refId:1}}},email$user:{$entity:"email",data:{id:1,email:1,userId:1,user:{id:1,userState:1,refId:1}}},loginName$user:{$entity:"loginName",data:{id:1,name:1,userId:1,user:{id:1,userState:1,refId:1}}}}}},ableState:1,playerId:1,player:{id:1,isRoot:1},entity:1,entityId:1,refreshedAt:1,value:1,mobile:{id:1,mobile:1,userId:1,ableState:1,user:{id:1,userState:1,refId:1}},wechatUser:{id:1,userId:1,user:{id:1,userState:1,refId:1},applicationId:1},email:{id:1,email:1,userId:1,ableState:1,user:{id:1,userState:1,refId:1}},loginName:{id:1,name:1,userId:1,ableState:1,user:{id:1,userState:1,refId:1}}},da={id:1,name:1,config:1,type:1,systemId:1,style:1,dangerousVersions:1,warningVersions:1,soaVersion:1,description:1,system:{id:1,name:1,config:1,platformId:1,style:1,oldestVersion:1,super:1,entity:1,entityId:1,platform:{id:1,config:1,style:1,entity:1,oldestVersion:1,entityId:1},domain$system:{$entity:"domain",data:{id:1,systemId:1,url:1,apiPath:1,protocol:1,port:1}}},domainId:1,domain:{id:1,systemId:1,url:1,apiPath:1,protocol:1,port:1}},ha={id:1,origin:1,type:1,bucket:1,objectId:1,tag1:1,tag2:1,filename:1,md5:1,entity:1,entityId:1,extra1:1,extra2:1,extension:1,size:1,sort:1,fileType:1,isBridge:1,uploadState:1,uploadMeta:1,applicationId:1};const fa="ogb:feature-theme-state",pa="ogb:f-token-token";class ga extends Jt{async loadSavedToken(){this.tokenValue=await this.storage.load(pa),await this.refreshTokenData(this.tokenValue),this.publish()}constructor(e,t,n,r){super(),this.cache=e,this.storage=t,this.environment=n,this.application=r,this.tokenValue="",r.subscribe((()=>this.loadSavedToken())),window.addEventListener("storage",(async e=>{e.key===pa&&(this.tokenValue=e.newValue?JSON.parse(e.newValue):void 0,await this.refreshTokenData(this.tokenValue),this.publish())}))}checkNeedSetPassword(){const e=this.getUserInfo(),{system:t}=this.application.getApplication(),{Security:n}=t.config;if("strong"===(null===n||void 0===n?void 0:n.level)&&e&&!e.hasPassword)return Promise.reject(new se)}async refreshTokenData(e){if(!e)return void(this.tokenValue=void 0);const t=await this.environment.getEnv();try{const n=this.application.getApplicationId(),{result:r}=await this.cache.exec("refreshToken",{tokenValue:e,env:t,applicationId:n},void 0,!0,!0);e!==r?r?(this.tokenValue=r,await this.storage.save(pa,r),this.checkNeedSetPassword()):this.removeToken(!0):this.checkNeedSetPassword()}catch(ps){if(console.warn(ps),ps instanceof H.OakNetworkException||ps instanceof H.OakServerProxyException||ps instanceof H.OakRequestTimeoutException||ps instanceof H.OakClockDriftException)return;this.removeToken(!0)}}async loginByMobile(e,t,n){const r=await this.environment.getEnv(),{result:i}=await this.cache.exec("loginByMobile",{mobile:e,captcha:t,disableRegister:n,env:r},void 0,!0);this.tokenValue=i,await this.storage.save(pa,i),this.publish(),this.checkNeedSetPassword()}async loginByEmail(e,t,n){const r=await this.environment.getEnv(),{result:i}=await this.cache.exec("loginByEmail",{email:e,captcha:t,disableRegister:n,env:r},void 0,!0);this.tokenValue=i,await this.storage.save(pa,i),this.publish(),this.checkNeedSetPassword()}async loginByAccount(e,t){const n=await this.environment.getEnv(),{result:r}=await this.cache.exec("loginByAccount",{account:e,password:t,env:n},void 0,!0);this.tokenValue=r,await this.storage.save(pa,r),this.publish(),this.checkNeedSetPassword()}async bindByMobile(e,t){const n=await this.environment.getEnv();await this.cache.exec("bindByMobile",{mobile:e,captcha:t,env:n},void 0,!0),this.publish()}async bindByEmail(e,t){const n=await this.environment.getEnv();await this.cache.exec("bindByEmail",{email:e,captcha:t,env:n},void 0,!0),this.publish()}async loginWebByMpToken(e){const t=await this.environment.getEnv(),{result:n}=await this.cache.exec("loginWebByMpToken",{mpToken:e,env:t},void 0,!0);this.tokenValue=n,await this.storage.save(pa,n),this.publish(),this.checkNeedSetPassword()}async loginByWechatInWebEnv(e){const t=await this.environment.getEnv(),{result:n}=await this.cache.exec("loginByWechat",{env:t,wechatLoginId:e});this.tokenValue=n,await this.storage.save(pa,n),this.publish(),this.checkNeedSetPassword()}async loginWechat(e,t){const n=await this.environment.getEnv(),{result:r}=await this.cache.exec("loginWechat",{code:e,env:n,wechatLoginId:null===t||void 0===t?void 0:t.wechatLoginId});this.tokenValue=r,await this.storage.save(pa,r),this.publish(),this.checkNeedSetPassword()}async loginWechatMp(){const{code:e}=await wx.login(),t=await this.environment.getEnv(),{result:n}=await this.cache.exec("loginWechatMp",{code:e,env:t});this.tokenValue=n,await this.storage.save(pa,n),this.publish(),this.checkNeedSetPassword()}async loginWechatNative(e){const t=await this.environment.getEnv(),{result:n}=await this.cache.exec("loginWechatNative",{code:e,env:t});this.tokenValue=n,await this.storage.save(pa,n),this.publish(),this.checkNeedSetPassword()}async syncUserInfoWechatMp(){const e=await wx.getUserProfile({desc:"\u540c\u6b65\u5fae\u4fe1\u6635\u79f0\u548c\u5934\u50cf\u4fe1\u606f"}),{userInfo:{nickName:t,avatarUrl:n},encryptedData:r,signature:i,iv:o}=e;await this.cache.exec("syncUserInfoWechatMp",{nickname:t,avatarUrl:n,encryptedData:r,signature:i,iv:o}),this.publish()}async logout(e){await this.cache.exec("logout",{tokenValue:this.tokenValue},void 0,void 0,!0),this.removeToken(e)}removeToken(e){this.tokenValue=void 0,this.storage.remove(pa),e||this.publish()}getTokenValue(){if(""===this.tokenValue)throw new ie;return this.tokenValue}getToken(e){if(""===this.tokenValue)throw new ie;if(this.tokenValue){const t=this.cache.get("token",{data:(0,pe.cloneDeep)(ua),filter:{value:this.tokenValue}})[0];if(!t){if(e)return;throw new ie}return t}if(!e)throw new H.OakUnloggedInException}getUserId(e){const t=this.getToken(e);if(null!==t&&void 0!==t&&t.userId)return t.userId}getUserInfo(){const e=this.getToken(!0);if(null!==e&&void 0!==e&&e.user)return e.user}isRoot(){var e;const t=this.getToken(!0);return!(null===t||void 0===t||null===(e=t.user)||void 0===e||!e.isRoot)}isReallyRoot(){var e;const t=this.getToken(!0);return!(null===t||void 0===t||null===(e=t.player)||void 0===e||!e.isRoot)}isSelf(){const e=this.getToken();return(null===e||void 0===e?void 0:e.playerId)===(null===e||void 0===e?void 0:e.userId)}async sendCaptcha(e,t,n){const r=await this.environment.getEnv();if("mobile"===e){const{result:e}=await this.cache.exec("sendCaptchaByMobile",{mobile:t,env:r,type:n});return e}{const{result:e}=await this.cache.exec("sendCaptchaByEmail",{email:t,env:r,type:n});return e}}async switchTo(e){if(this.getUserId()===e)throw new H.OakPreConditionUnset
2Exception("\u60a8\u5df2\u7ecf\u662f\u5f53\u524d\u7528\u6237");await this.cache.exec("switchTo",{userId:e}),this.publish()}async refreshWechatPublicUserInfo(){await this.cache.exec("refreshWechatPublicUserInfo",{})}async getWechatMpUserPhoneNumber(e){const t=await this.environment.getEnv();await this.cache.exec("getWechatMpUserPhoneNumber",{code:e,env:t})}async wakeupParasite(e){const t=await this.environment.getEnv(),{result:n}=await this.cache.exec("wakeupParasite",{id:e,env:t});this.tokenValue=n,await this.storage.save(pa,n),this.publish()}needVerifyPassword(){const e=this.getUserInfo(),{system:t}=this.application.getApplication(),{Security:n}=t.config;if(n&&["strong","medium"].includes(n.level)){const t=Date.now()-n.passwordVerifyGap;return(null===e||void 0===e?void 0:e.hasPassword)&&e.verifyPasswordAt<t}}async verifyPassword(e){const t=this.environment.getEnv();await this.cache.exec("verifyPassword",{password:e,env:t})}}class ya{async uploadFile(e,t,n,r,i,o){let a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"POST";const s="PUT"===a;if(o)return new Promise(((i,c)=>{const l=new XMLHttpRequest;let u=0;if(l.upload.addEventListener("progress",(e=>{e.lengthComputable&&(u=Math.round(e.loaded/e.total*100),o(u))})),l.onload=()=>{if(l.status>=200&&l.status<300)if(204===l.status)i({status:204});else try{const e=JSON.parse(l.responseText);i(e)}catch{i({status:l.status,raw:l.responseText})}else c(new Error(`HTTP Error: ${l.status}`))},l.onerror=()=>c(new Error("Network Error")),l.open(a,n),s)e instanceof File&&l.setRequestHeader("Content-Type",e.type||"application/octet-stream"),l.send(e);else{const n=new FormData;Object.entries(r).forEach((e=>{let[t,r]=e;n.append(t,r)}
2)),n.append(t||"file",e),l.send(n)}}));if(s){const t={};e instanceof File&&(t["Content-Type"]=e.type||"application/octet-stream");return await fetch(n,{method:"PUT",headers:t,body:e})}{const i=new FormData;for(const e of Object.keys(r))i.append(e,r[e]);i.append(t||"file",e);return await fetch(n,{method:a,body:i})}}}const ma={unknown:new class{constructor(){this.name="unknown"}autoInform(){return!1}getConfig(e){return{}}formKey(e){const{id:t,extension:n,objectId:r}=e;return(0,ge.v)(r),`extraFile/${r}${n?"."+n:""}`}async upload(e,t,n){throw new ae("unknown\u672a\u5b9e\u73b0\u4e0a\u4f20")}composeFileUrl(e,t,n){return t.extra1}}};function va(e){return(0,ge.v)(ma.hasOwnProperty(e)),ma[e]}class ba extends Jt{constructor(e,t){super(),this.cache=e,this.application=t,this.files={}}registerCos(e){e.forEach((e=>function(e){const t=new e;ma[t.name]=t}(e)))}addLocalFile(e,t){(0,ge.v)(!this.files[e]),this.files[e]={file:t,state:"local"},this.publish()}removeLocalFiles(e){e.forEach((e=>(0,pe.unset)(this.files,e))),this.publish()}async upload(e){let t="";const n=(()=>{const[n]=this.cache.get("extraFile",{data:ha,filter:{id:e}});if(n)return n;const[r]=this.cache.get("modi",{data:{id:1,data:1,entity:1,entityId:1},filter:{targetEntity:"extraFile",action:"create",filter:{id:e}}});return t=r.entityId,r.data})();(0,ge.v)(n&&"uploading"===n.uploadState);const r=this.files[e];(0,ge.v)(r);const{file:i,state:o}=r;(0,ge.v)(["local","failed"].includes(o)),r.state="uploading",r.percentage=0;const a=new ya,s=va(n.origin);try{await s.upload(n,a.uploadFile,i,this.uploadToAspect.bind(this))}catch(ps){throw r.state="failed",r.percentage=void 0,this.publish(),ps}if(!s.autoInform()){const t=async()=>{const t={id:await(0,Kt.generateNewIdAsync)(),action:"update",data:{uploadState:"success"},filter:{id:e}};await this.cache.exec("operate",{entity:"extraFile",operation:t})};await t()}r.state="uploaded",r.percentage=void 0,this.publish()}getUrl(e,t){if(!e)return"";if(null!==e&&void 0!==e&&e.isBridge&&null!==e&&void 0!==e&&e.extra1)return this.cache.makeBridgeUrl(null===e||void 0===e?void 0:e.extra1);const{id:n}=e;if(this.files[n]){const{file:e}=this.files[n];if("string"===typeof e)return e;if(e instanceof File)return function(e){let t="";return void 0!==window.createObjectURL?t=window.createObjectURL(e):void 0!==window.URL?t=window.URL.createObjectURL(e):void 0!==window.webkitURL&&(t=window.webkitURL.createObjectURL(e)),t}(e);(0,ge.v)(!1,"the incoming file is not supported")}const{origin:r,extra1:i}=e;return va(r).composeFileUrl(this.application.getApplication(),e,t)}getFileState(e){if(this.files[e])return this.files[e]}getFileName(e){return e.filename+(e.extension?`.${e.extension}`:"")}formatBytes(e){return function(e){let t="";t=e<102.4?e.toFixed(2)+"B":e<104857.6?(e/1024).toFixed(2)+"KB":e<107374182.4?(e/1048576).toFixed(2)+"MB":(e/1073741824).toFixed(2)+"GB";let n=t+"",r=n.indexOf(".");return"00"==n.substring(r+1,2)?n.substring(0,r)+n.substring(r+3,2):n}(e)}async autoUpload(e,t,n,r){const i=e.id||(0,Kt.generateNewId)(),o=e.applicationId||this.application.getApplicationId();await this.cache.operate("extraFile",{action:"create",data:Object.assign(e,{id:i,applicationId:o}),id:await(0,Kt.generateNewIdAsync)()});const[a]=this.cache.get("extraFile",{data:ha,filter:{id:i}}),s=new ya;try{const e=va(a.origin);return await e.upload(a,s.uploadFile,t,this.uploadToAspect.bind(this),r),e.autoInform()||await this.cache.exec("operate",{entity:"extraFile",operation:{id:await(0,Kt.generateNewIdAsync)(),action:"update",data:{uploadState:"success"},filter:{id:i}}}),this.publish(),this.getUrl(a,n)}catch(ps){throw await this.cache.operate("extraFile",{action:"remove",data:{},filter:{id:i},id:await(0,Kt.generateNewIdAsync)()}),this.publish(),ps}}async uploadToAspect(e,t,n,r,i){const o=new FormData;for(const s of Object.keys(r))o.append(s,r[s]);
2o.append(t||"file",e);const{result:a}=await this.cache.exec(n,o);return a}}var wa,xa=n(2972);class Sa extends Jt{constructor(e,t,n){super(),this.sensitiveEntities=[],this.cache=e,this.version=n,this.storage=t,this.projection=(0,pe.cloneDeep)(da),(0,xa.traverseProjection)("application",this.cache.getSchema(),this.projection,(e=>this.sensitiveEntities.push(e))),this.cache.bindOnSync((e=>{for(const t of e)if("s"!==t.a)if(this.sensitiveEntities.includes(t.e))this.application=void 0;else{const{d:e}=t;for(const t in e)this.sensitiveEntities.includes(t)&&(this.application=void 0)}}))}getApplicationFromCache(){if(this.application)return this.application;const e=this.cache.get("application",{data:this.projection,filter:{id:this.applicationId}});return(0,ge.v)(1===e.length,`cache:applicationId${this.applicationId}\u6ca1\u6709\u53d6\u5230\u6709\u6548\u6570\u636e`),this.application=e[0],this.application}async loadApplicationInfo(e,t){let n,r="web";{const e=new URL(window.location.href).searchParams.get("appType");/MicroMessenger/i.test(window.navigator.userAgent)&&(r=e||"wechatPublic")}const{result:i}=await this.cache.exec("getApplication",{version:e,type:r,domain:t,data:this.projection,appId:this.applicationId},void 0,!0,!0);n=i,this.applicationId=n,this.getApplicationFromCache(),this.publish()}async initialize(e,t,n,r){return this.version=e,this.projection=(0,pe.merge)(this.projection,r),await this.loadApplicationInfo(e,t)}getApplication(){if(void 0===this.applicationId)throw new oe;return this.getApplicationFromCache()}getApplicationId(e){if(void 0===this.applicationId&&!e)throw new oe;return this.applicationId}async uploadWechatMedia(e){const{applicationId:t,type:n,file:r,description:i,isPermanent:o=!1}=e,a=new FormData;a.append("applicationId",t),a.append("type",n),a.append("file",r),i&&a.append("description",JSON.stringify(i)),o&&a.append("isPermanent",`${o}`);return(await this.cache.exec("uploadWechatMedia",a)).result}getVersion(){return this.version}}class Aa extends Jt{constructor(e){super(),this.cache=e}async updateConfig(e,t,n){await this.cache.exec("updateConfig",{entity:e,entityId:t,config:n}),this.publish()}async updateApplicationConfig(e,t,n){await this.cache.exec("updateApplicationConfig",{entity:e,entityId:t,config:n}),this.publish()}async updateStyle(e,t,n){await this.cache.exec("updateStyle",{entity:e,entityId:t,style:n}),this.publish()}}class ka extends Jt{constructor(e){super(),this.cache=e,this.messageTypes=[]}async getMessageType(){return await this.cache.exec("getMessageType",{})}async syncMessageTemplate(e){await this.cache.exec("syncMessageTemplate",{applicationId:e});this.publish()}async syncSmsTemplate(e,t){await this.cache.exec("syncSmsTemplate",{systemId:e,origin:t});this.publish()}}const Oa=window&&/iPhone|iPad|iPod/i.test(navigator.userAgent),_a=(window&&/Android/i.test(navigator.userAgent),window&&/Windows Phone/i.test(navigator.userAgent),window&&(/Win|Mac|X11|Linux/i.test(navigator.platform)||/Win|Mac|X11|Linux/i.test(null===(wa=navigator.userAgentData)||void 0===wa?void 0:wa.platform)),window&&navigator.userAgent.match(/(Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone)/i),window&&/MicroMessenger/i.test(navigator.userAgent)),Ea=window&&/wechatdevtools/i.test(navigator.userAgent);window&&"miniprogram"===window.__wxjs_environment||navigator&&/miniProgram/i.test(navigator.userAgent);var Ia,ja,$a=n(88078),Ta=n.n($a);class Ca extends Jt{constructor(e,t,n){super(),this.initedApiList=[],this.cache=e,this.storage=t,this.landingUrl=void 0,this.environment=n}async signatureJsSDK(e){const t=await this.environment.getEnv(),{result:n}=await this.cache.exec("signatureJsSDK",{url:e,env:t});return n}async getConfig(e){return new Promise(((t,n)=>{Ta().config(e),Ta().ready((()=>{console.log("\u8c03\u7528wx.config\u901a\u8fc7"),t("")})),Ta().error((e=>{const t=`\u8c03\u7528wx.config\u51fa\u9519: ${JSON.stringify(e)}\uff0c\u8bf7\u91cd\u65b0\u5c1d\u8bd5`;n(t)}))}))}setLandingUrl(e){Oa&&_a&&(this.landingUrl=e)}async init(e){if(!_a)return void console.warn("\u53ea\u80fd\u5728\u5fae\u4fe1\u5ba2\u6237\u7aef\u521d\u59cb\u5316JSSDK");const{name:t}=e||{};let n=window.location.href;if(Oa&&!Ea&&this.landingUrl&&(n=this.landingUrl),this.initedApiList.includes(t)&&this.lastConfigUrl===n)return;const r=n.split("#")[0],i=await this.signatureJsSDK(r),o=(0,pe.uniq)(this.initedApiList.length>0?this.initedApiList.concat([t]):["updateAppMessageShareData","updateTimelineShareData","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","getLocation","chooseWXPay","scanQRCode","openLocation","chooseImage","previewImage","uploadImage","downloadImage"].concat([t]));await this.getConfig({debug:!1,appId:i.appId,timestamp:i.timestamp,nonceStr:i.noncestr,signature:i.signature,jsApiList:o,openTagList:["wx-open-launch-weapp","wx-open-launch-app","wx-open-subscribe","wx-open-audio"]}),this.initedApiList=o,this.lastConfigUrl=n}async loadWxAPi(e,t){await this.init({name:e});const n=(r=Ta()[e],function(e){return new Promise(((t,n)=>{e.success=function(e){t(e)},e.fail=function(e){n(e)},e.cancel=function(){n({errMsg:"request:cancel"})},r(e)}))});var r;return await n(t)}async subscribeMpMessage(e,t,n){return console.error("native\u65e0\u9700\u8be5\u64cd\u4f5c"),!0}}class Pa extends Jt{constructor(e,t){super(),this.cache=e,this.storage=t}async getCurrentMenu(e){const{result:t}=await this.cache.exec("getCurrentMenu",e);return t}async getMenu(e){const{result:t}=await this.cache.exec("getMenu",e);return t}async createMenu(e){const{result:t}=await this.cache.exec("createMenu",e);return t}async createConditionalMenu(e){const{result:t}=await this.cache.exec("createConditionalMenu",e);return t}async deleteConditionalMenu(e){const{result:t}=await this.cache.exec("deleteConditionalMenu",e);return t}async deleteMenu(e){const{result:t}=await this.cache.exec("deleteMenu",e);return t}async batchGetArticle(e){const{result:t}=await this.cache.exec("batchGetArticle",e);return t}async getArticle(e){const{result:t}=await this.cache.exec("getArticle",e);return t}async createMaterial(e){const{applicationId:t,type:n,file:r,description:i,isPermanent:o=!1}=e,a=new FormData;a.append("applicationId",t),a.append("type",n),a.append("file",r),i&&a.append("description",JSON.stringify(i)),o&&a.append("isPermanent",`${o}`);const{result:s}=await this.cache.exec("uploadWechatMedia",a);return s}async batchGetMaterialList(e){const{result:t}=await this.cache.exec("batchGetMaterialList",e);return t}async getMaterial(e){const{result:t}=await this.cache.exec("getMaterial",e);return t}}class Ra extends Jt{constructor(e,t){super(),this.cache=e,this.storage=t}async createTag(e){return(await this.cache.exec("createTag",e)).result}async getTags(e){return(await this.cache.exec("getTags",e)).result}async editTag(e){return(await this.cache.exec("editTag",e)).result}async deleteTag(e){return(await this.cache.exec("deleteTag",e)).result}async syncTag(e){return(await this.cache.exec("syncTag",e)).result}async oneKeySync(e){return(await this.cache.exec("oneKeySync",e)).result}}class Na extends Jt{constructor(e,t){super(),this.cache=e,this.storage=t}async getTagUsers(e){return(await this.cache.exec("getTagUsers",e)).result}async batchtagging(e){return(await this.cache.exec("batchtagging",e)).result}async batchuntagging(e){return(await this.cache.exec("batchuntagging",e)).result}async getUserTags(e){return(await this.cache.exec("getUserTags",e)).result}async getUsers(e){return(await this.cache.exec("getUsers",e)).result}async tagging(e){return(await this.cache.exec("tagging",e)).result}async syncToLocale(e){return(await this.cache.exec("syncToLocale",e)).result}async syncToWechat(e){return(await this.cache.exec("syncToWechat",e)).result}}(ja=Ia||(Ia={})).light="light",ja.dark="dark";const Ma={setting:!1,themeMode:Ia.light,systemTheme:!1,color:"#0052d9"};class Fa extends Jt{async loadSavedState(){const e=await this.storage.load(fa);this.themeState=e}constructor(e){super(),this.storage=e,this.themeState=Ma,this.switchThemeMode(this.themeState.themeMode),this.switchColor(this.themeState.color)}get(){return this.themeState}set(e){this.themeState=e,this.storage.save(fa,e),this.publish()}toggleSetting(){const e=this.themeState;e.setting=!e.setting,this.set(e)}switchThemeMode(e){const t=this.themeState;t.themeMode=e,t.systemTheme=!1,document.documentElement.setAttribute("theme-mode",e),this.set(t)}openSystemTheme(){const e=this.themeState,t=window.matchMedia("(prefers-color-scheme:dark)");if(t.matches){const n=t.matches?Ia.dark:Ia.light;e.themeMode=n,e.systemTheme=!0,document.documentElement.setAttribute("theme-mode",n),this.set(e)}}getColor(){return this.themeState.color}switchColor(e,t){const n=this.themeState;e&&(n.color=e,this.insertThemeStylesheet(e,n.themeMode,t),t&&document.documentElement.setAttribute("theme-color",t),this.set(n))}insertThemeStylesheet(e,t,n){const r="dark"===t?n?`:root[theme-color='${n}'][theme-mode='dark']`:":root[theme-mode='dark']":n?`:root[theme-color='${n}']`:":root",i=document.createElement("style");i.type="text/css",i.innerText=`${r}{\n --oak-color-primary: ${e};\n }`,document.head.appendChild(i)}}
2function Da(e,t,n){const r={},i=e=>{r.$or?r.$and?r.$and.push({$or:e}):Object.assign({$and:[{$or:e}]}):Object.assign(r,{$or:e})};for(const a in n)if(a.startsWith("#")||"$text"===a||a.toLowerCase().startsWith(X.EXPRESSION_PREFIX))r[a]=n[a];else if(["$and","$or"].includes(a))r[a]=n[a].map((n=>Da(e,t,n)));else if("$not"===a)Object.assign(r,{$not:Da(e,t,n[a])});else{var o;if(a.endsWith("Id")&&"entityId"!==a&&"ref"===(null===(o=e[t].attributes[a])||void 0===o?void 0:o.type)){"user"===(0,gn.judgeRelation)(e,t,a.slice(0,a.length-2))?i([{[a]:n[a]},{[a.slice(0,a.length-2)]:{userState:"merged",refId:n[a]}}]):r[a]=n[a]}else if("entity"===a&&"user"===n[a])(0,ge.v)(n.entityId),i([{entityId:n.entityId},{user:{userState:"merged",refId:n.entityId}}]);else{const i=(0,gn.judgeRelation)(e,t,a);if(2===i){const t=Da(e,a,n[a]);"user"===a?Object.assign(r,{[a]:{$or:[t,{userState:"merged",ref:t}]}}):Object.assign(r,{[a]:t})}else if("string"===typeof i){const t=Da(e,i,n[a]);"user"===i?Object.assign(r,{[a]:{$or:[t,{userState:"merged",ref:t}]}}):Object.assign(r,{[a]:t})}else if(i instanceof Array){const[t]=i;(0,ge.v)("user"!==t,"\u4f1a\u51fa\u73b0\u4e00\u5bf9\u591auser\u7684\u60c5\u51b5\u4e48"),Object.assign(r,{[a]:Da(e,t,n[a])})}else(0,ge.v)(1===i),r[a]=n[a]}}return r}function La(e,t,n,r,i,o){const{filter:a,data:s}=n;if(a&&!a["#oak-general-business--rewrited"]){const r=Da(e,t,a);Object.assign(r,{"#oak-general-business--rewrited":!0}),n.filter=r}const c=(t,n)=>{for(const a in n){const s=(0,gn.judgeRelation)(e,t,a);2===s?c(a,n[a]):"string"===typeof s?c(s,n[a]):"object"===typeof s&&s instanceof Array&&La(e,s[0],n[a],r,i,o)}};o||c(t,s)}function Ba(e,t,n){const{filter:r}=n;if(r&&!r["#oak-general-business--rewrited"]){const i=Da(e,t,r);Object.assign(i,{"#oak-general-business--rewrited":!0}),n.filter=i}}var Ua=n(69093),Wa=n(21381),Ha=n(52289);function za(e,t){const{props:n,state:r}=this,{oakPath:i,oakId:o,oakFilters:a,oakZombie:s,oakStale:c}=n,{zombie:l,entity:u,path:d,projection:h,isList:f,filters:p,sorters:g,pagination:y,getTotal:m,stale:v}=e,{features:b}=this;(0,ge.v)(t||void 0===l,"zombie\u53ea\u5728\u9875\u9762\u7ea7\u522b\u58f0\u660e"),(0,ge.v)(t||void 0===d,"path\u53ea\u5728\u9875\u9762\u7ea7\u522b\u81ea\u52a8\u58f0\u660e"),(0,ge.v)(i||d);let w=i||d;if(o&&t&&(w+=`-${o}`),u){const n=u instanceof Function?u.call(this):u,r="function"===typeof h?()=>h.call(this):h;let i=null===p||void 0===p?void 0:p.map((e=>{const{filter:t,"#name":n,hot:r}=e;return{filter:"function"===typeof t?()=>t.call(this):t,"#name":n,hot:r}}));a&&(i=i?i.concat(a):a);const d=null===g||void 0===g?void 0:g.map((e=>{const{sorter:t,"#name":n}=e;return{sorter:"function"===typeof t?()=>t.call(this):t,"#name":n}}));(0,ge.v)(w,"\u6ca1\u6709\u6b63\u786e\u7684path\u4fe1\u606f\uff0c\u8bf7\u68c0\u67e5\u662f\u5426\u914d\u7f6e\u6b63\u786e");const{actions:x,cascadeActions:S}=e;let A,k;if(m){const{width:e}=this.props;if("object"===typeof m){const{max:t,deviceWidth:n}=m;switch(n){case"all":A=t;break;case"mobile":"xs"===e&&(A=t);break;default:"xs"!==e&&(A=t)}}else"xs"!==e&&(A=m)}else{const{width:e}=this.props;"xs"!==e&&(A=100)}if(y)if(y instanceof Array){const{width:e}=this.props;k=y.find((t=>"xs"===e&&"mobile"===t.deviceWidth||"xs"!==e&&"pc"===t.deviceWidth))}else k=y;return b.runningTree.createNode({path:w,entity:n,isList:f,projection:r,pagination:k,filters:i,sorters:d,id:o,getTotal:A,zombie:t?!!l:!!s,stale:!!c||!!v},t),this.addFeatureSub("runningTree",(e=>{var t;null!==(t=this.state.oakFullpath)&&void 0!==t&&t.includes(e)&&this.reRender()})),{oakEntity:n,oakFullpath:w}}return b.runningTree.createNode({path:w,zombie:t?!!l:!!s},t),this.addFeatureSub("runningTree",(e=>{var t;null!==(t=this.state.oakFullpath)&&void 0!==t&&t.includes(e)&&this.reRender()})),{oakFullpath:w}}function qa(e,t,n,r){if("string"===typeof n)return n;const{attrs:i}=n;if(!i)return n;const o=i.indexOf("#all");o>=0&&i.splice(o,1,...Object.keys(e.getSchema()[t].attributes));const a=e.getLegalUpdateAttrs(t,n.action,i,r);return{...n,attrs:a}}function Va(e,t){const n=["relation","row","logical"],r=this.props.oakActions?JSON.parse(this.props.oakActions):"function"===typeof t.actions?t.actions.call(this):t.actions,i=[],o=[];if(r){o.push(this.state.oakEntity);for(const o of r)if(e instanceof Array){(0,ge.v)(t.isList);const r=this.features.runningTree.getIntrinsticFilters(this.state.oakFullpath);if("create"===o||"object"===typeof o&&"create"===o.action){const e="object"===typeof o?(0,pe.cloneDeep)(o.data):void 0;!0===this.checkOperation(this.state.oakEntity,{action:"create",data:e,filter:r},n)&&i.push(e?qa(this.features.cache,this.state.oakEntity,o,e.id):o)}else{const t="object"===typeof o?o.action:o;r&&!0===this.checkOperation(this.state.oakEntity,{action:t,filter:r},n)?e.forEach((e=>{e["#oakLegalActions"]?e["#oakLegalActions"].push(qa(this.features.cache,this.state.oakEntity,o,e.id)):Object.assign(e,{"#oakLegalActions":[qa(this.features.cache,this.state.oakEntity,o,e.id)]})})):e.forEach((e=>{const{id:r}=e;!0===this.checkOperation(this.state.oakEntity,{action:t,filter:{id:r}},n)&&(e["#oakLegalActions"]?e["#oakLegalActions"].push(qa(this.features.cache,this.state.oakEntity,o,e.id)):Object.assign(e,{"#oakLegalActions":[qa(this.features.cache,this.state.oakEntity,o,e.id)]}))}))}}else if((0,ge.v)(!t.isList),"create"===o||"object"===typeof o&&"create"===o.action){if(1===e.$$createAt$$){const[{operation:t}]=this.features.runningTree.getOperations(this.state.oakFullpath);!0===this.checkOperation(this.state.oakEntity,{action:"create",data:t.data},n)&&(i.push(qa(this.features.cache,this.state.oakEntity,o,e.id)),e["#oakLegalActions"]?e["#oakLegalActions"].push(o):Object.assign(e,{"#oakLegalActions":[o]}))}}else{var a;const r="object"===typeof o?o.action:o,s=("object"===typeof o&&o.data,"object"===typeof o?o.filter:void 0),c=this.features.runningTree.getIntrinsticFilters(this.state.oakFullpath),l=s&&c?(0,vn.combineFilters)(this.state.oakEntity,this.features.cache.getSchema(),[s,c]):s||c;if(l&&!0===this.checkOperation(this.state.oakEntity,{action:r,filter:l},n,(null===(a=t.cacheInsensativeActions)||void 0===a?void 0:a.includes(r))||void 0)){const t=qa(this.features.cache,this.state.oakEntity,o,e.id);i.push(t),e["#oakLegalActions"]?e["#oakLegalActions"].push(t):Object.assign(e,{"#oakLegalActions":[t]})}}}const s=this.props.oakCascadeActions?JSON.parse(this.props.oakCascadeActions):t.cascadeActions&&t.cascadeActions.call(this);if(s){const t=(e,t,n,r)=>{t["#oakLegalCascadeActions"]?t["#oakLegalCascadeActions"][n]?t["#oakLegalCascadeActions"][n].push(qa(this.features.cache,e,r,t.id)):Object.assign(t["#oakLegalCascadeActions"],{[n]:[qa(this.features.cache,e,r,t.id)]}):Object.assign(t,{"#oakLegalCascadeActions":{[n]:[qa(this.features.cache,e,r,t.id)]}})};for(const r in s){const i=s[r];if(i){const a=(0,gn.judgeRelation)(this.features.cache.getSchema(),this.state.oakEntity,r);(0,ge.v)(a instanceof Array,`${this.state.oakFullpath}\u4e0a\u6240\u5b9a\u4e49\u7684cascadeAction\u4e2d\u7684\u952e\u503c${r}\u4e0d\u662f\u4e00\u5bf9\u591a\u6620\u5c04`),o.push(a[0]);for(const o of i)if(e instanceof Array)if("create"===o||"object"===typeof o&&"create"===o.action)e.forEach((e=>{const i=a[1]?{id:(0,Kt.generateNewId)(),[a[1]]:e.id}:{id:(0,Kt.generateNewId)(),entity:this.state.oakEntity,entityId:e.id};"object"===typeof o&&Object.assign(i,o.data),!0===this.checkOperation(a[0],{action:"create",data:i},n)&&t(a[0],e,r,o)}));else{const i="object"===typeof o?o.action:o,s="object"===typeof o?o.filter:void 0,c=a[1]?{[a[1].slice(0,a[1].length-2)]:this.features.runningTree.getIntrinsticFilters(this.state.oakFullpath)}:{[this.state.oakEntity]:this.features.runningTree.getIntrinsticFilters(this.state.oakFullpath)},l=(0,vn.combineFilters)(a[0],this.features.cache.getSchema(),[s,c]);!0===this.checkOperation(a[0],{action:i,filter:l},n)?e.forEach((e=>t(a[0],e,r,o))):e.forEach((e=>{const{id:c}=e;let l=a[1]?{[a[1]]:c}:{entity:this.state.oakEntity,entityId:e.id};s&&(l=(0,vn.combineFilters)(a[0],this.features.cache.getSchema(),[s,l])),!0===this.checkOperation(a[0],{action:i,filter:l},n)&&t(a[0],e,r,o)}))}else if("create"===o||"object"===typeof o&&"create"===o.action){const i=a[1]?{id:(0,Kt.generateNewId)(),[a[1]]:e.id}:{id:(0,Kt.generateNewId)(),entity:this.state.oakEntity,entityId:e.id};"object"===typeof o&&Object.assign(i,o.data),!0===this.checkOperation(a[0],{action:"create",data:i},n)&&t(a[0],e,r,o)}else{const i="object"===typeof o?o.action:o,s="object"===typeof o?o.filter:void 0,c=a[1]?{[a[1]]:e.id}:{entity:this.state.oakEntity,entityId:e.id},l=(0,vn.combineFilters)(a[0],this.features.cache.getSchema(),[s,c]);!0===this.checkOperation(a[0],{action:i,filter:l},n)&&t(a[0],e,r,o)}}}}return o.length>0&&this.features.cache.refresh("actionAuth",{data:{id:1,relationId:1,path:{id:1,sourceEntity:1,destEntity:1,value:1,recursive:1},deActions:1,pathId:1},filter:{path:{destEntity:{$in:o}}}},void 0,void 0,{useLocalCache:{keys:o,gap:12e5,onlyReturnFresh:!0},dontPublish:!0}).then((e=>{let{data:t}=e;t.length>0&&this.reRender()})),i}function Ga(e,t){const{features:n}=this,{formData:r}=e,i=n.locales.getState(),o=this.state.oakFullpath&&this.features.runningTree.isDirty(this.state.oakFullpath);if(this.state.oakEntity&&this.state.oakFullpath){const a=this.features.runningTree.isLoadingMore(this.state.oakFullpath),s=!a&&this.features.runningTree.isLoading(this.state.oakFullpath),c=this.features.runningTree.isExecuting(this.state.oakFullpath);let l=this.features.runningTree.begin();try{this.features.runningTree.redoBranchModis(this.state.oakFullpath);const u=o&&this.features.runningTree.getFreshValue(this.state.oakFullpath),d=u?Va.call(this,u,e):void 0;this.features.runningTree.redoBranchOperations(this.state.oakFullpath);const h=this.features.runningTree.getFreshValue(this.state.oakFullpath),f=h&&Va.call(this,h,e);l(),l=()=>{};let p=!1;if(o){const e=this.features.cache.getSchema(),t=this.features.runningTree.getEntity(this.state.oakFullpath);p=!u||(h instanceof Array?!(0,Ha.fz)(e,t,h,u):!(0,Ha.us)(e,t,h,u))}let g=r&&h?r.call(this,{data:h,origin:u,features:n,props:this.props,legalActions:f,originLegalA
2ctions:d,dirty:!!o,modified:p}):{};if(Object.assign(g,{oakLegalActions:f,oakLocales:i.dataset,oakLocalesVersion:i.version,oakLng:i.lng,oakDefaultLng:i.defaultLng}),e.isList){const e=this.getPagination();Object.assign(g,{oakPagination:e})}for(const e in g)void 0===g[e]&&Object.assign(g,{[e]:null});Object.assign(g,{oakDirty:o,oakLoading:s,oakLoadingMore:a,oakExecuting:c}),t&&Object.assign(g,t),this.setState(g)}catch(ps){throw l(),ps}}else{const e=r?r.call(this,{features:n,props:this.props}):{};if(t&&Object.assign(e,t),this.state.oakFullpath){const t=this.features.runningTree.isDirty(this.state.oakFullpath),n=this.features.runningTree.isExecuting(this.state.oakFullpath),r=this.features.runningTree.isLoading(this.state.oakFullpath);Object.assign(e,{oakDirty:t,oakExecuting:n,oakLoading:r})}Object.assign(e,{oakLocales:i.dataset,oakLocalesVersion:i.version,oakLng:i.lng,oakDefaultLng:i.defaultLng,__time:Date.now()}),this.setState(e)}}async function Ya(e,t){this.state.oakFullpath&&await this.features.runningTree.refresh(this.state.oakFullpath,e,t)}async function Ka(){if(this.state.oakEntity&&this.state.oakFullpath)try{await this.features.runningTree.loadMore(this.state.oakFullpath)}catch(ps){this.setMessage({type:"error",content:ps.message})}}async function Xa(e,t,n,r){if(this.state.oakExecuting)throw new Error("\u8bf7\u4ed4\u7ec6\u8bbe\u8ba1\u6309\u94ae\u72b6\u6001\uff0c\u4e0d\u8981\u5141\u8bb8\u91cd\u590d\u70b9\u51fb\uff01");const i=t||this.state.oakFullpath,{message:o}=await this.features.runningTree.execute(i,e,r);if(!1!==n){const e={type:"success",content:o||"\u64cd\u4f5c\u6210\u529f"};"object"===typeof n&&Object.assign(e,n),this.setMessage(e)}}function Ja(e,t){this.features.runningTree.destroyNode(t,e),(0,pe.unset)(this.state,["oakFullpath","oakEntity"])}function Qa(e){const{oakFullpath:t}=this.state;(0,ge.v)(t);const n=e?function(e,t){if(".."===t){const t=e.split(".");return t.pop(),t.join(".")}return`${e}.${t}`}(t,e):t,r=this.features.runningTree.begin();try{this.features.runningTree.redoBranchModis(n),this.features.runningTree.redoBranchOperations(n);const e=this.features.runningTree.getFreshValue(n);return r(),e}catch(ps){r(),console.error(ps),(0,ge.v)(!1)}}function Za(e,t){const n=this.features.runningTree.begin();try{const r=this.state.oakFullpath;this.features.runningTree.redoBranchModis(`${r}.any:next`),this.features.runningTree.redoBranchOperations(r);const i=this.features.cache.get(e,t);return n(),i}catch(ps){n(),console.error(ps),(0,ge.v)(!1)}}class es extends o().PureComponent{constructor(){super(...arguments),this.oakFullpath="",this.featuresSubscribed=[]}addFeatureSub(e,t){const n=this.features[e].subscribe(t);this.featuresSubscribed.push({name:e,callback:t,unsubHandler:n})}removeFeatureSub(e,t){const n=this.featuresSubscribed.find((n=>n.callback===t&&n.name===e));(0,pe.pull)(this.featuresSubscribed,n),n.unsubHandler&&n.unsubHandler()}unsubscribeAll(){this.featuresSubscribed.forEach((e=>{e.unsubHandler&&(e.unsubHandler(),e.unsubHandler=void 0)}))}subscribeAll(){this.featuresSubscribed.forEach((e=>{e.unsubHandler||(e.unsubHandler=this.features[e.name].subscribe(e.callback))}))}save(e,t){return this.features.localStorage.save(e,t)}load(e){return this.features.localStorage.load(e)}clear(e){return e?this.features.localStorage.remove(e):this.features.localStorage.clear()}setNotification(e){this.features.notification.setNotification(e)}consumeNotification(){return this.features.notification.consumeNotification()}setMessage(e){return this.features.message.setMessage(e)}consumeMessage(){return this.features.message.consumeMessage()}reRender(e){return Ga.call(this,this.oakOption,e)}navigateTo(e,t,n){return this.features.navigator.navigateTo(e,t,n)}navigateBack(e){return this.features.navigator.navigateBack(e)}redirectTo(e,t,n){return this.features.navigator.redirectTo(e,t,n)}addItem(e,t){const n=t?`${this.state.oakFullpath}.${t}`:this.state.oakFullpath;return this.features.runningTree.addItem(n,e)}addItems(e,t){const n=t?`${this.state.oakFullpath}.${t}`:this.state.oakFullpath;return this.features.runningTree.addItems(n,e)}removeItem(e,t){const n=t?`${this.state.oakFullpath}.${t}`:this.state.oakFullpath;this.features.runningTree.removeItem(n,e)}removeItems(e,t){const n=t?`${this.state.oakFullpath}.${t}`:this.state.oakFullpath;this.features.runningTree.removeItems(n,e)}updateItem(e,t,n,r){const i=r?`${this.state.oakFullpath}.${r}`:this.state.oakFullpath;this.features.runningTree.updateItem(i,e,t,n)}updateItems(e,t,n,r){const i=r?`${this.state.oakFullpath}.${r}`:this.state.oakFullpath;this.features.runningTree.updateItems(i,e,t,n)}recoverItem(e,t){const n=t?`${this.state.oakFullpath}.${t}`:this.state.oakFullpath;this.features.runningTree.recoverItem(n,e)}recoverItems(e,t){const n=t?`${this.state.oakFullpath}.${t}`:this.state.oakFullpath;this.features.runningTree.recoverItems(n,e)}resetItem(e,t){const n=t?`${this.state.oakFullpath}.${t}`:this.state.oakFullpath;this.features.runningTree.resetItem(n,e)}update(e,t,n){const r=n?`${this.state.oakFullpath}.${n}`:this.state.oakFullpath;this.features.runningTree.update(r,e,t)}create(e,t){const n=t?`${this.state.oakFullpath}.${t}`:this.state.oakFullpath;this.features.runningTree.create(n,e)}remove(e){const t=e?`${this.state.oakFullpath}.${e}`:this.state.oakFullpath;this.features.runningTree.remove(t)}isCreation(e){const t=this.getFreshValue(e);return(0,ge.v)(!(t instanceof Array)),1===(null===t||void 0===t?void 0:t.$$createAt$$)}clean(e,t,n){const r=n?`${this.state.oakFullpath}.${n}`:this.state.oakFullpath;this.features.runningTree.clean(r,e,t)}savePoint(){return this.features.runningTree.savePoint()}t(e,t){return this.features.locales.t(e,t)}execute(e,t,n,r){return Xa.call(this,e,n,t,r)}isDirty(e){return this.features.runningTree.isDirty(e||this.state.oakFullpath)}getFreshValue(e){return Qa.call(this,e)}select(e,t){return Za.call(this,e,t)}checkOperation(e,t,n,r){return this.features.cache.checkOperation(e,t,n,r)}tryExecute(e,t){const n=e?`${this.state.oakFullpath}.${e}`:this.state.oakFullpath,r=this.features.runningTree.getOperations(n);if(null!==r&&void 0!==r&&r.length){for(const e of r){const{entity:n,operation:r}=e,i=t?{...r,action:t}:r,o=this.checkOperation(n,i);if(!0!==o)return o}return!0}return!1}getOperations(e){const t=e?`${this.state.oakFullpath}.${e}`:this.state.oakFullpath;return this.features.runningTree.getOperations(t)}refresh(e,t){return Ya.call(this,e,t)}loadMore(){return Ka.call(this)}setId(e,t){const n=t?`${this.state.oakFullpath}.${t}`:this.state.oakFullpath;return this.features.runningTree.setId(n,e)}unsetId(){return this.features.runningTree.unsetId(this.state.oakFullpath)}getId(e){const t=e?`${this.state.oakFullpath}.${e}`:this.state.oakFullpath;return this.features.runningTree.getId(t)}setFilters(e,t){const n=t?`${this.state.oakFullpath}.${t}`:this.state.oakFullpath;this.features.runningTree.setNamedFilters(n,e)}setNamedFilters(e,t,n){const r=n?`${this.state.oakFullpath}.${n}`:this.state.oakFullpath;this.features.runningTree.setNamedFilters(r,e,t)}getFilters(e){if(this.state.oakFullpath){const t=e?`${this.state.oakFullpath}.${e}`:this.state.oakFullpath;return this.features.runningTree.getNamedFilters(t).map((e=>{let{filter:t}=e;return"function"===typeof t?t():t}))}}getFilterByName(e,t){if(this.state.oakFullpath){const n=t?`${this.state.oakFullpath}.${t}`:this.state.oakFullpath,r=this.features.runningTree.getNamedFilterByName(n,e);if(null!==r&&void 0!==r&&r.filter)return"function"===typeof r.filter?r.filter():r.filter}}addNamedFilter(e,t,n){const r=n?`${this.state.oakFullpath}.${n}`:this.state.oakFullpath;this.features.runningTree.addNamedFilter(r,e,t)}removeNamedFilter(e,t,n){const r=n?`${this.state.oakFullpath}.${n}`:this.state.oakFullpath;this.features.runningTree.removeNamedFilter(r,e,t)}removeNamedFilterByName(e,t,n){const r=n?`${this.state.oakFullpath}.${n}`:this.state.oakFullpath;this.features.runningTree.removeNamedFilterByName(r,e,t)}setNamedSorters(e,t,n){const r=n?`${this.state.oakFullpath}.${n}`:this.state.oakFullpath;this.features.runningTree.setNamedSorters(r,e,t)}getSorters(e){if(this.state.oakFullpath){const t=e?`${this.state.oakFullpath}.${e}`:this.state.oakFullpath;return this.features.runningTree.getNamedSorters(t).map((e=>{let{sorter:t}=e;return"function"===typeof t?t():t})).filter((e=>!!e))}}getSorterByName(e,t){if(this.state.oakFullpath){const n=t?`${this.state.oakFullpath}.${t}`:this.state.oakFullpath,r=this.features.runningTree.getNamedSorterByName(n,e);if(null!==r&&void 0!==r&&r.sorter)return"function"===typeof r.sorter?r.sorter():r.sorter}}addNamedSorter(e,t,n){const r=n?`${this.state.oakFullpath}.${n}`:this.state.oakFullpath;this.features.runningTree.addNamedSorter(r,e,t)}removeNamedSorter(e,t,n){const r=n?`${this.state.oakFullpath}.${n}`:this.state.oakFullpath;this.features.runningTree.removeNamedSorter(r,e,t)}removeNamedSorterByName(e,t,n){const r=n?`${this.state.oakFullpath}.${n}`:this.state.oakFullpath;this.features.runningTree.removeNamedSorterByName(r,e,t)}getPagination(e){if(this.state.oakFullpath){const t=e?`${this.state.oakFullpath}.${e}`:this.state.oakFullpath;return this.features.runningTree.getPagination(t)}}setPageSize(e,t){if(this.state.oakFullpath){const n=t?`${this.state.oakFullpath}.${t}`:this.state.oakFullpath;this.features.runningTree.setPageSize(n,e)}}setCurrentPage(e,t){if((0,ge.v)(0!==e),this.state.oakEntity&&this.state.oakFullpath){const n=t?`${this.state.oakFullpath}.${t}`:this.state.oakFullpath;this.features.runningTree.setCurrentPage(n,e)}}subDataEvents(e,t){return this.features.subscriber.sub(e,t)}}function ts(e,t){const{data:n,methods:r,lifetimes:i,getRender:o,path:a,listeners:s}=e,{fn:c}=function(e){return{fn(t,n){const{state:r,props:i}=this;for(const o in e){const a=o.split(",").map((e=>e.trim()));let s=!1;for(const e of a){if(e.includes("*"))throw new Error("web\u6a21\u5f0f\u4e0b\u5e26*\u7684observer\u901a\u914d\u7b26\u6682\u4e0d\u652f\u6301");if((0,pe.get)(i,e)!==(0,pe.get)(t,e)||(0,pe.get)(r,e)!==(0,pe.get)(n,e)){s=!0;break}}const c={},l={};if(s){for(const e of a)l[e]=void 0===(0,pe.get)(i,e)?(0,pe.get)(r,e):(0,pe.get)(i,e),c[e]=void 0===(0,pe.get)(t,e)?(0,pe.get)(n,e):(0,pe.get)(t,e);e&&e[o]&&e[o].call(this,c,l)}}}}}(s);return class extends es{constructor(o){var a;super(o),a=this,this.features=t,this.oakOption=e,this.oakLifetime="born",this.isReachBottom=!1;const s={t:(e,t)=>this.t(e,t),execute:(e,t,n,r)=>this.execute(e,t,n,r),isDirty:e=>this.isDirty(e),aggregate:e=>this.features.cache.aggregate(this.state.oakEntity,e),refresh:()=>this.refresh(),setNotification:e=>this.setNotification(e),setMessage:e=>this.setMessage(e),navigateTo:(e,t,n)=>this.navigateTo(e,t,n),navigateBack:e=>this.navigateBack(e),redirectTo:(e,t,n)=>this.redirectTo(e,t,n),clean:(e,t,n)=>this.clean(e,t,n),checkOperation:(e,t,n)=>this.checkOperation(e,t,n)};if(Object.assign(s,{addItem:(e,t)=>
2this.addItem(e,t),addItems:(e,t)=>this.addItems(e,t),removeItem:(e,t)=>this.removeItem(e,t),removeItems:(e,t)=>this.removeItems(e,t),updateItem:(e,t,n,r)=>this.updateItem(e,t,n,r),updateItems:(e,t,n,r)=>this.updateItems(e,t,n,r),setFilters:(e,t)=>this.setFilters(e,t),setNamedFilters:(e,t,n)=>this.setNamedFilters(e,t,n),addNamedFilter:(e,t,n)=>this.addNamedFilter(e,t,n),removeNamedFilter:(e,t,n)=>this.removeNamedFilter(e,t,n),removeNamedFilterByName:(e,t,n)=>this.removeNamedFilterByName(e,t,n),setNamedSorters:(e,t,n)=>this.setNamedSorters(e,t,n),addNamedSorter:(e,t,n)=>this.addNamedSorter(e,t,n),removeNamedSorter:(e,t,n)=>this.removeNamedSorter(e,t,n),removeNamedSorterByName:(e,t,n)=>this.removeNamedSorterByName(e,t,n),setPageSize:(e,t)=>this.setPageSize(e,t),setCurrentPage:(e,t)=>this.setCurrentPage(e,t),loadMore:()=>this.loadMore(),recoverItem:(e,t)=>this.recoverItem(e,t),recoverItems:(e,t)=>this.recoverItems(e,t),resetItem:(e,t)=>this.resetItem(e,t),setId:e=>this.setId(e),getId:e=>this.getId(),unsetId:()=>this.unsetId()}),Object.assign(s,{update:(e,t,n)=>this.update(e,t,n),create:(e,t)=>this.create(e,t),remove:e=>this.remove(e),isCreation:e=>this.isCreation(e),getId:e=>this.getId(e),setId:(e,t)=>this.setId(e,t)}),r)for(const e in r)Object.assign(this,{[e]:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return r[e].call(a,...n)}}),Object.assign(s,{[e]:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return r[e].call(a,...n)}});const c="function"===typeof n?n.call(this):n;for(const e in c)"function"===typeof c[e]&&(c[e]=c[e].bind(this));this.state=Object.assign({},c,{oakLoading:!!e.entity&&!!e.projection,oakLoadingMore:!1,oakPullDownRefreshLoading:!1,oakExecuting:!1,oakDirty:!1}),this.methodProps=s,this.defaultProperties={};const{properties:l}=e;if(l)for(const e in l)this.defaultProperties[e]=l[e];const u=(null===i||void 0===i?void 0:i.created)&&i.created.call(this);(0,ge.v)(!(u instanceof Promise),"created\u65b9\u6cd5\u4e0d\u80fd\u662f\u5f02\u6b65"),this.oakLifetime="created"}iAmThePage(){return!!this.oakOption.path}isMobile(){return"xs"===this.props.width}supportPullDownRefresh(){const{oakDisablePulldownRefresh:e=!1}=this.props;return this.isMobile()&&this.iAmThePage()&&!e}async componentDidMount(){this.addFeatureSub("locales",(()=>this.reRender())),e.entity&&this.addFeatureSub("cache",(()=>this.reRender())),(null===i||void 0===i?void 0:i.attached)&&i.attached.call(this),e.features&&e.features.forEach((e=>{if("string"===typeof e)this.addFeatureSub(e,(()=>this.reRender()));else{(0,ge.v)("object"===typeof e);const{feature:t,behavior:n,callback:r}=e;this.addFeatureSub(t,(()=>{if(n)return"reRender"===n?void this.reRender():((0,ge.v)("refresh"===n),void this.refresh(void 0,!0));r?r.call(this):this.reRender()}))}})),this.oakLifetime="attached";const{oakPath:t}=this.props;if(t||a){const e=za.call(this,this.oakOption,this.iAmThePage());this.oakFullpath=e.oakFullpath,this.setState(e,(async()=>{if("detached"!==this.oakLifetime){try{const{oakFullpath:e}=this.state;if(e&&!this.features.runningTree.isListChildOrStale(e)?(await this.refresh(),(null===i||void 0===i?void 0:i.mature)&&i.mature.call(this)):this.reRender(),"detached"===this.oakLifetime)return;(null===i||void 0===i?void 0:i.ready)&&await i.ready.call(this)}catch(ps){throw ps instanceof X.OakException&&(ps.tag2=!0),ps}"detached"!==this.oakLifetime&&((null===i||void 0===i?void 0:i.show)&&i.show.call(this),this.oakLifetime="ready")}}))}else this.oakOption.entity||((null===i||void 0===i?void 0:i.ready)&&await i.ready.call(this),(null===i||void 0===i?void 0:i.show)&&i.show.call(this),this.reRender(),this.oakLifetime="ready")}componentWillUnmount(){this.unsubscribeAll(),this.oakFullpath&&Ja.call(this,this.iAmThePage(),this.oakFullpath),(null===i||void 0===i?void 0:i.detached)&&i.detached.call(this),this.oakLifetime="detached"}async componentDidUpdate(e,t){if(e.oakPath!==this.props.oakPath){(0,ge.v)(this.props.oakPath&&this.oakOption.entity);const t=za.call(this,this.oakOption,this.iAmThePage());t.oakFullpath&&(this.oakFullpath=t.oakFullpath),this.setState(t,(async()=>
2{if("detached"===this.oakLifetime)return;void 0===e.oakPath&&(console.warn("\u53d1\u751f\u4e86\u7ed3\u70b9\u5148\u5f62\u6210\u518d\u914d\u7f6eoakPath\u7684\u60c5\u51b5\uff0c\u8bf7\u68c0\u67e5\u4ee3\u7801\u4fee\u6b63"),(null===i||void 0===i?void 0:i.ready)&&i.ready.call(this),(null===i||void 0===i?void 0:i.show)&&i.show.call(this));const{oakFullpath:t}=this.state;t&&!this.features.runningTree.isListChildOrStale(t)?(await this.refresh(),(null===i||void 0===i?void 0:i.mature)&&i.mature.call(this)):this.reRender()}))}else this.props.oakId!==e.oakId&&(this.props.oakId?this.setId(this.props.oakId):this.unsetId());c&&c.call(this,e,t)}render(){const e=this.props["#resetRender"]?this.props["#resetRender"].call(this):o.call(this);return!this.props.oakPath&&!a||this.state.oakFullpath?this.oakOption.entity&&!this.state.oakFullpath?null:(0,T.jsx)(e,{methods:this.methodProps,data:{...this.defaultProperties,...this.state,...this.props}}):null}}}const{features:ns}=function(){const e=(0,pe.mergeConcatMany)([Xt,ia]),t=(0,pe.mergeConcatMany)([dn,ca]),n=(0,pe.mergeConcatMany)([hn,la]),r={},{features:i}=Go(Ht,(e=>new be(e,r)),Se,e,t,n);Object.assign(r,i);const o=function(e){const t=new Sa(e.cache,e.localStorage,"1.1.3"),n=new ga(e.cache,e.localStorage,e.environment,t),r=new Pa(e.cache,e.localStorage),i=new Ra(e.cache,e.localStorage),o=new Na(e.cache,e.localStorage);return{token:n,extraFile:new ba(e.cache,t),application:t,config:new Aa(e.cache),template:new ka(e.cache),wechatSdk:new Ca(e.cache,e.localStorage,e.environment),theme:new Fa(e.localStorage),wechatMenu:r,wechatPublicTag:i,userWechatPublicTag:o}}(r);Object.assign(r,o);const a=function(e){const{cache:t,localStorage:n,location:r,token:i,application:o,contextMenuFactory:a}=e,s=new Zt(t),c=new en(t,i,n,o);return{sample:s,console:c,menu:new on(a,c),frontend:new sn(t,i,n,o)}}(r);return Object.assign(r,a),{features:r}}();Object.assign(n.g,{features:ns,OakComponent:e=>function(e,t){const n=ts(e,t);return(0,Ua.A)(class extends n{constructor(e){super(e),this.scrollEvent=()=>{this.checkReachBottom()},this.handleResize=this.handleResize.bind(this),this.scrollEvent=this.scrollEvent.bind(this)}handleResize(){const e={size:{windowHeight:window.innerHeight,windowWidth:window.innerWidth}},{resize:t}=this.oakOption.lifetimes||{};t&&t.call(this,e)}registerResize(){window.addEventListener("resize",this.handleResize)}unregisterResize(){window.removeEventListener("resize",this.handleResize)}registerPageScroll(){window.addEventListener("scroll",this.scrollEvent)}unregisterPageScroll(){window.removeEventListener("scroll",this.scrollEvent)}checkReachBottom(){if(!this.supportPullDownRefresh())return;const t=document.body.scrollHeight-(window.innerHeight+window.scrollY)<=50;if(!this.isReachBottom&&t&&e.isList)return this.isReachBottom=!0,void this.loadMore();this.isReachBottom=t}async componentDidMount(){this.registerResize(),this.registerPageScroll(),await super.componentDidMount()}componentWillUnmount(){this.unregisterResize(),this.unregisterPageScroll(),super.componentWillUnmount()}render(){const{oakPullDownRefreshLoading:e}=this.state,t=super.render();return this.supportPullDownRefresh()?(0,T.jsx)(Wa.A,{onRefresh:async()=>{try{this.setState({oakPullDownRefreshLoading:!0}),await this.refresh(),this.setState({oakPullDownRefreshLoading:!1})}catch(ps){throw this.setState({oakPullDownRefreshLoading:!1}),ps}},refreshing:e,distanceToRefresh:50,indicator:{activate:this.t("common::ptrActivate",{"#oakModule":"oak-frontend-base"}),deactivate:this.t("common::ptrDeactivate",{"#oakModule":"oak-frontend-base"}),release:this.t("common::ptrRelease",{"#oakModule":"oak-frontend-base"}),finish:this.t("common::ptrFinish",{"#oakModule":"oak-frontend-base"})},children:t}):t}},e)}(e,ns)});let rs=Date.now(),is=null,os=null,as=!1;const ss=()=>Date.now(),cs=()=>{if(!is)return;const e=(()=>{const e=ss()-rs;return e>0?e:0})();if(!e)return;const t=is.pageName;var n;n={action:"aplus.sendPV",arguments:[{is_auto:!1},{page_name:t,duration:e}]},"undefined"!==typeof window&&(window.aplus_queue||(window.aplus_queue=[]),window.aplus_queue.push(n))};class ls{constructor(){this.name="ctyun"}autoInform(){return!1}getConfig(e){var t,n,r;const{system:i}=e,{config:o}=i,a=null===(t=o.Cos)||void 0===t?void 0:t.ctyun;(0,ge.v)(a);const{accessKey:s}=a,c=null===(n=o.Account)||void 0===n||null===(r=n.ctyun)||void 0===r?void 0:r.find((e=>e.accessKey===s));return(0,ge.v)(c),{config:a,account:c}}formKey(e){const{id:t,extension:n,objectId:r}=e;return(0,ge.v)(r),`extraFile/${r}${n?"."+n:""}`}async upload(e,t,n,r,i){const o=e.uploadMeta;let a;try{a=await t(n,"file",o.uploadHost,{key:o.key,Policy:o.policy,AWSAccessKeyId:o.accessKey,signature:o.signature},!0,i)}catch(ps){throw new H.OakNetworkException("\u7f51\u7edc\u5f02\u5e38\uff0c\u8bf7\u6c42\u5931\u8d25")}let s=!1;if(s=!(204!==a.status),!s)throw new ae("\u6587\u4ef6\u4e0a\u4f20\u5929\u7ffc\u4e91\u5931\u8d25")}composeFileUrl(e,t,n){const{config:r}=this.getConfig(e);
2if(r){let e=r.buckets.find((e=>e.name===t.bucket));if(e){const{domain:r,protocol:i}=e;let o=i;if(i instanceof Array){const e=i.includes("https:")?i.findIndex((e=>"https:"===e)):0;o=i[e]}return`${o}//${r}/${this.formKey(t)}${n||""}`}}return""}}async function us(e){await async function(e,t,n,r){e.cache.registerSelectionRewriter(La),e.cache.registerOperationRewriter(Ba),await e.application.initialize("1.1.3",t.http.hostname,void 0,null===n||void 0===n?void 0:n.applicationExtraProjection),e.wechatSdk.setLandingUrl(window.location.href),r&&e.extraFile.registerCos(r)}(e,xe.Ay,{applicationExtraProjection:{applicationPassport$application:{$entity:"applicationPassport",data:{id:1,passportId:1,passport:{id:1,config:1,type:1},applicationId:1}}}},[ls])}I().locale("zh-cn"),window.addEventListener("unhandledrejection",(async e=>{const{reason:t}=e,n=await(async(e,t)=>{if(e instanceof H.OakException){if(e instanceof H.OakUnloggedInException){fe(e,t),t.token.removeToken(!0);const{pathname:n}=t.navigator.getLocation();if(n.includes("/login"))return;console.log("navigate to login:",Date.now()),t.navigator.navigateTo({url:"/login",backUrl:"/guide"},{isGoBack:!0})}else if(e instanceof re){fe(e,t),t.token.removeToken(!0);const{pathname:n}=t.navigator.getLocation();if(n.includes("/login"))return;t.navigator.navigateTo({url:"/login"},{isGoBack:!0})}else if(e instanceof Z)t.navigator.navigateTo({url:"/mobile/me"});else if(e instanceof te){const e=t.token.getUserId();t.navigator.navigateTo({url:"/user/manager/upsert",oakId:e})}else if(e instanceof H.OakInputIllegalException)fe(e,t);else if(e instanceof H.OakAttrNotNullException)fe(e,t);else if(e instanceof ie||e instanceof oe)console.warn(e);else if(e instanceof he){const{pathname:e}=t.navigator.getLocation();if(e.includes("/result/404"))return;t.navigator.navigateTo({url:"/result/404"},{isGoBack:!0})}else e instanceof de?console.log("\u5728\u6b64\u5904\u7406ExampleException"):(console.warn(e),fe(e,t));return!0}return fe(e,t),!1})(t,ns);n&&e.preventDefault()})),window.addEventListener("beforeunload",(async()=>{const e="1.1.3",t=await ns.localStorage.load("version");console.log(e,t),e&&t!==e&&(await ns.cache.refresh("i18n",{data:{id:1,module:1,position:1,namespace:1,language:1,data:1,$$createAt$$:1,$$updateAt$$:1}}),await ns.localStorage.save("version",e))}));const ds=a.createRoot(document.getElementById("root")),hs=d();ns.navigator.setHistory(hs),(e=>{(()=>{if(as||"undefined"===typeof document)return;document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&cs()})),as=!0})();is={pageName:e.location.pathname+e.location.search},rs=ss(),os&&(os(),os=null),os=e.listen((e=>{let{location:t}=e;cs(),rs=ss(),is={pageName:t.pathname+t.search}}))})(hs);(async()=>{let e;try{await us(ns)}catch(ps){e=ps}ds.render((0,T.jsx)(w,{history:hs,basename:void 0,children:(0,T.jsx)($.OH,{children:(0,T.jsx)($.hf,{features:ns,children:(0,T.jsx)(O.Ay,{locale:j.A,theme:{token:{colorPrimary:"#4880FF"},components:{Table:{headerBg:"#F1F4F9",headerColor:"#1D1D1D",colorText:"#1D1D1D",headerSplitColor:"transparent",headerBorderRadius:8,cellPaddingBlock:12,cellPaddingInline:24,borderColor:"#E7E7E7"}}},children:(0,T.jsx)(_.N7,{hashPriority:"high",transformers:[_.NZ],children:(0,T.jsx)(Y,{error:e})})})})})}))})(),K()})()})(); 3//# sourceMappingURL=main.702eb3ae.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.