@nocobase/app 2.0.0-alpha.2 → 2.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ "use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[157],{44416:function(dn,_r,X){X.r(_r),X.d(_r,{SHOW_ALL:function(){return br},SHOW_CHILD:function(){return xe},SHOW_PARENT:function(){return Cr},TreeNode:function(){return pr},default:function(){return tn}});function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Le.apply(null,arguments)}function or(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function zr(e){if(Array.isArray(e))return or(e)}function qr(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ir(e,r){if(e){if(typeof e=="string")return or(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?or(e,r):void 0}}function et(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function re(e){return zr(e)||qr(e)||ir(e)||et()}function ue(e){"@babel/helpers - typeof";return ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ue(e)}function rt(e,r){if(ue(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(ue(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function tt(e){var r=rt(e,"string");return ue(r)=="symbol"?r:r+""}function Mr(e,r,t){return(r=tt(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function wr(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,n)}return t}function D(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?wr(Object(t),!0).forEach(function(n){Mr(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):wr(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function nt(e){if(Array.isArray(e))return e}function at(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,l,o,a,u=[],i=!0,s=!1;try{if(o=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;i=!1}else for(;!(i=(n=o.call(t)).done)&&(u.push(n.value),u.length!==r);i=!0);}catch(d){s=!0,l=d}finally{try{if(!i&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw l}}return u}}function lt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B(e,r){return nt(e)||at(e,r)||ir(e,r)||lt()}function ut(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function Lr(e,r){if(e==null)return{};var t,n,l=ut(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)===-1&&{}.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}var Rr=X(44898),ot=X(88708),cr=X(17341);function it(e){if(Array.isArray(e))return e}function ct(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,l,o,a,u=[],i=!0,s=!1;try{if(o=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;i=!1}else for(;!(i=(n=o.call(t)).done)&&(u.push(n.value),u.length!==r);i=!0);}catch(d){s=!0,l=d}finally{try{if(!i&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw l}}return u}}function Pr(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function st(e,r){if(e){if(typeof e=="string")return Pr(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Pr(e,r):void 0}}function ft(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sr(e,r){return it(e)||ct(e,r)||st(e,r)||ft()}var c=X(67294);function fr(e){var r=c.useRef();r.current=e;var t=c.useCallback(function(){for(var n,l=arguments.length,o=new Array(l),a=0;a<l;a++)o[a]=arguments[a];return(n=r.current)===null||n===void 0?void 0:n.call.apply(n,[r].concat(o))},[]);return t}function dt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var xr=dt()?c.useLayoutEffect:c.useEffect,vt=function(r,t){var n=c.useRef(!0);xr(function(){return r(n.current)},t),xr(function(){return n.current=!1,function(){n.current=!0}},[])},Dr=function(r,t){vt(function(n){if(!n)return r()},t)},vn=null;function Kr(e){var r=c.useRef(!1),t=c.useState(e),n=sr(t,2),l=n[0],o=n[1];c.useEffect(function(){return r.current=!1,function(){r.current=!0}},[]);function a(u,i){i&&r.current||o(u)}return[l,a]}function dr(e){return e!==void 0}function kr(e,r){var t=r||{},n=t.defaultValue,l=t.value,o=t.onChange,a=t.postState,u=Kr(function(){return dr(l)?l:dr(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),i=sr(u,2),s=i[0],d=i[1],S=l!==void 0?l:s,_=a?a(S):S,N=fr(o),P=Kr([S]),L=sr(P,2),A=L[0],K=L[1];Dr(function(){var k=A[0];s!==k&&N(s,k)},[A]),Dr(function(){dr(l)||d(l)},[l]);var J=fr(function(k,z){d(k,z),K([S],z)});return[_,J]}var vr={},ht=[],yt=function(r){ht.push(r)};function pt(e,r){if(!1)var t}function gt(e,r){if(!1)var t}function mt(){vr={}}function Vr(e,r,t){!r&&!vr[t]&&(e(!1,t),vr[t]=!0)}function Re(e,r){Vr(pt,e,r)}function St(e,r){Vr(gt,e,r)}Re.preMessage=yt,Re.resetWarned=mt,Re.noteOnce=St;var Pe=Re,Et=function(e){var r=c.useRef({valueLabels:new Map});return c.useMemo(function(){var t=r.current.valueLabels,n=new Map,l=e.map(function(o){var a=o.value,u=o.label,i=u??t.get(a);return n.set(a,i),D(D({},o),{},{label:i})});return r.current.valueLabels=n,[l]},[e])},bt=function(r,t,n,l){return c.useMemo(function(){var o=function(N){return N.map(function(P){var L=P.value;return L})},a=o(r),u=o(t),i=a.filter(function(_){return!l[_]}),s=a,d=u;if(n){var S=(0,cr.S)(a,!0,l);s=S.checkedKeys,d=S.halfCheckedKeys}return[Array.from(new Set([].concat(re(i),re(s)))),d]},[r,t,n,l])},Ct=bt,At=X(1089),Tt=function(e,r){return c.useMemo(function(){var t=(0,At.I8)(e,{fieldNames:r,initWrapper:function(l){return D(D({},l),{},{valueEntities:new Map})},processEntity:function(l,o){var a=l.node[r.value];if(!1)var u;o.valueEntities.set(a,l)}});return t},[e,r])};function hr(e){"@babel/helpers - typeof";return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},hr(e)}var Nt=Symbol.for("react.element"),It=Symbol.for("react.transitional.element"),Ot=Symbol.for("react.fragment");function _t(e){return e&&hr(e)==="object"&&(e.$$typeof===Nt||e.$$typeof===It)&&e.type===Ot}function yr(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[];return c.Children.forEach(e,function(n){n==null&&!r.keepEmpty||(Array.isArray(n)?t=t.concat(yr(n)):_t(n)&&n.props?t=t.concat(yr(n.props.children,r)):t.push(n))}),t}var Mt=function(){return null},pr=Mt,wt=["children","value"];function Hr(e){return yr(e).map(function(r){if(!c.isValidElement(r)||!r.type)return null;var t=r,n=t.key,l=t.props,o=l.children,a=l.value,u=Lr(l,wt),i=D({key:n,value:a},u),s=Hr(o);return s.length&&(i.children=s),i}).filter(function(r){return r})}function gr(e){if(!e)return e;var r=D({},e);return"props"in r||Object.defineProperty(r,"props",{get:function(){return Pe(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),r}}),r}function Lt(e,r,t,n,l,o){var a=null,u=null;function i(){function s(d){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(N,P){var L="".concat(S,"-").concat(P),A=N[o.value],K=t.includes(A),J=s(N[o.children]||[],L,K),k=c.createElement(pr,N,J.map(function(W){return W.node}));if(r===A&&(a=k),K){var z={pos:L,node:k,children:J};return _||u.push(z),z}return null}).filter(function(N){return N})}u||(u=[],s(n),u.sort(function(d,S){var _=d.node.props.value,N=S.node.props.value,P=t.indexOf(_),L=t.indexOf(N);return P-L}))}Object.defineProperty(e,"triggerNode",{get:function(){return Pe(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),i(),a}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return Pe(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),i(),l?u:u.map(function(d){var S=d.node;return S})}})}var Rt=function(r,t,n){var l=n.fieldNames,o=n.treeNodeFilterProp,a=n.filterTreeNode,u=l.children;return c.useMemo(function(){if(!t||a===!1)return r;var i=typeof a=="function"?a:function(d,S){return String(S[o]).toUpperCase().includes(t.toUpperCase())},s=function d(S){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return S.reduce(function(N,P){var L=P[u],A=_||i(t,gr(P)),K=d(L||[],A);return(A||K.length)&&N.push(D(D({},P),{},Mr({isLeaf:void 0},u,K))),N},[])};return s(r)},[r,t,u,o,a])},Pt=Rt;function Ur(e){var r=c.useRef();r.current=e;var t=c.useCallback(function(){return r.current.apply(r,arguments)},[]);return t}function xt(e,r){var t=r.id,n=r.pId,l=r.rootPId,o=new Map,a=[];return e.forEach(function(u){var i=u[t],s=D(D({},u),{},{key:u.key||i});o.set(i,s)}),o.forEach(function(u){var i=u[n],s=o.get(i);s?(s.children=s.children||[],s.children.push(u)):(i===l||l===null)&&a.push(u)}),a}function Dt(e,r,t){return c.useMemo(function(){if(e){if(t){var n=D({id:"id",pId:"pId",rootPId:null},ue(t)==="object"?t:{});return xt(e,n)}return e}return Hr(r)},[r,t,e])}var Kt=c.createContext(null),Fr=Kt;function kt(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=ir(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,l=function(){};return{s:l,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(s){throw s},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
5
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var s=t.next();return a=s.done,s},e:function(s){u=!0,o=s},f:function(){try{a||t.return==null||t.return()}finally{if(u)throw o}}}}var Wr=X(99814),f={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(r){var t=r.keyCode;if(r.altKey&&!r.ctrlKey||r.metaKey||t>=f.F1&&t<=f.F12)return!1;switch(t){case f.ALT:case f.CAPS_LOCK:case f.CONTEXT_MENU:case f.CTRL:case f.DOWN:case f.END:case f.ESC:case f.HOME:case f.INSERT:case f.LEFT:case f.MAC_FF_META:case f.META:case f.NUMLOCK:case f.NUM_CENTER:case f.PAGE_DOWN:case f.PAGE_UP:case f.PAUSE:case f.PRINT_SCREEN:case f.RIGHT:case f.SHIFT:case f.UP:case f.WIN_KEY:case f.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(r){if(r>=f.ZERO&&r<=f.NINE||r>=f.NUM_ZERO&&r<=f.NUM_MULTIPLY||r>=f.A&&r<=f.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&r===0)return!0;switch(r){case f.SPACE:case f.QUESTION_MARK:case f.NUM_PLUS:case f.NUM_MINUS:case f.NUM_PERIOD:case f.NUM_DIVISION:case f.SEMICOLON:case f.DASH:case f.EQUALS:case f.COMMA:case f.PERIOD:case f.SLASH:case f.APOSTROPHE:case f.SINGLE_QUOTE:case f.OPEN_SQUARE_BRACKET:case f.BACKSLASH:case f.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ve=f;function jr(e,r,t){var n=c.useRef({});return(!("value"in n.current)||t(n.current.condition,r))&&(n.current.value=e(),n.current.condition=r),n.current.value}var Vt=c.createContext(null),$r=Vt,Ht=function(r){return Array.isArray(r)?r:r!==void 0?[r]:[]},Ut=function(r){var t=r||{},n=t.label,l=t.value,o=t.children;return{_title:n?[n]:["title","label"],value:l||"value",key:l||"value",children:o||"children"}},mr=function(r){return!r||r.disabled||r.disableCheckbox||r.checkable===!1},Ft=function(r,t){var n=[],l=function o(a){a.forEach(function(u){var i=u[t.children];i&&(n.push(u[t.value]),o(i))})};return l(r),n},Gr=function(r){return r==null},hn=X(59864),Wt=Number(c.version.split(".")[0]),jt=function(r,t){typeof r=="function"?r(t):_typeof(r)==="object"&&r&&"current"in r&&(r.current=t)},$t=function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];var l=t.filter(Boolean);return l.length<=1?l[0]:function(o){t.forEach(function(a){jt(a,o)})}},yn=function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return useMemo(function(){return $t.apply(void 0,t)},t,function(l,o){return l.length!==o.length||l.every(function(a,u){return a!==o[u]})})},Gt=function(r){var t,n;if(!r)return!1;if(Sr(r)&&Wt>=19)return!0;var l=isMemo(r)?r.type.type:r.type;return!(typeof l=="function"&&!((t=l.prototype)!==null&&t!==void 0&&t.render)&&l.$$typeof!==ForwardRef||typeof r=="function"&&!((n=r.prototype)!==null&&n!==void 0&&n.render)&&r.$$typeof!==ForwardRef)};function Sr(e){return isValidElement(e)&&!isFragment(e)}var pn=function(r){return Sr(r)&&Gt(r)},gn=function(r){if(r&&Sr(r)){var t=r;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Br(e,r,t,n){if(!r.length)return t;var l=_toArray(r),o=l[0],a=l.slice(1),u;return!e&&typeof o=="number"?u=[]:Array.isArray(e)?u=_toConsumableArray(e):u=_objectSpread({},e),n&&t===void 0&&a.length===1?delete u[o][a[0]]:u[o]=Br(u[o],a,t,n),u}function Er(e,r,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return r.length&&n&&t===void 0&&!get(e,r.slice(0,-1))?e:Br(e,r,t,n)}function Bt(e){return _typeof(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Yr(e){return Array.isArray(e)?[]:{}}var Yt=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function mn(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Yr(r[0]);return r.forEach(function(l){function o(a,u){var i=new Set(u),s=get(l,a),d=Array.isArray(s);if(d||Bt(s)){if(!i.has(s)){i.add(s);var S=get(n,a);d?n=Er(n,a,[]):(!S||_typeof(S)!=="object")&&(n=Er(n,a,Yr(s))),Yt(s).forEach(function(_){o([].concat(_toConsumableArray(a),[_]),i)})}}else n=Er(n,a,s)}o([])}),n}var Qt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Zt=function(r,t){var n=(0,Rr.useBaseProps)(),l=n.prefixCls,o=n.multiple,a=n.searchValue,u=n.toggleOpen,i=n.open,s=n.notFoundContent,d=c.useContext($r),S=d.virtual,_=d.listHeight,N=d.listItemHeight,P=d.listItemScrollOffset,L=d.treeData,A=d.fieldNames,K=d.onSelect,J=d.dropdownMatchSelectWidth,k=d.treeExpandAction,z=d.treeTitleRender,W=d.onPopupScroll,R=d.leftMaxCount,De=d.leafCountOnly,te=d.valueEntities,T=c.useContext(Fr),oe=T.checkable,V=T.checkedKeys,Ke=T.halfCheckedKeys,ie=T.treeExpandedKeys,ke=T.treeDefaultExpandAll,Ve=T.treeDefaultExpandedKeys,Ce=T.onTreeExpand,He=T.treeIcon,Ue=T.showTreeIcon,Fe=T.switcherIcon,We=T.treeLine,je=T.treeNodeFilterProp,$e=T.loadData,Ae=T.treeLoadedKeys,Ge=T.treeMotion,Be=T.onTreeLoad,Ye=T.keyEntities,ce=c.useRef(),se=jr(function(){return L},[i,L],function(p,h){return h[0]&&p[1]!==h[1]}),Qe=c.useMemo(function(){return oe?{checked:V,halfChecked:Ke}:null},[oe,V,Ke]);c.useEffect(function(){if(i&&!o&&V.length){var p;(p=ce.current)===null||p===void 0||p.scrollTo({key:V[0]})}},[i]);var he=function(h){h.preventDefault()},ye=function(h,w){var C=w.node;oe&&mr(C)||(K(C.key,{selected:!V.includes(C.key)}),o||u(!1))},Ze=c.useState(Ve),Te=B(Ze,2),pe=Te[0],Xe=Te[1],q=c.useState(null),Ne=B(q,2),Je=Ne[0],ze=Ne[1],fe=c.useMemo(function(){return ie?re(ie):a?Je:pe},[pe,Je,ie,a]),ge=function(h){Xe(h),ze(h),Ce&&Ce(h)},Ie=String(a).toLowerCase(),j=function(h){return Ie?String(h[je]).toLowerCase().includes(Ie):!1};c.useEffect(function(){a&&ze(Ft(L,A))},[a]);var Ar=c.useState(function(){return new Map}),Oe=B(Ar,2),Q=Oe[0],Tr=Oe[1];c.useEffect(function(){R&&Tr(new Map)},[R]);function ee(p){var h=p[A.value];if(!Q.has(h)){var w=te.get(h),C=(w.children||[]).length===0;if(C)Q.set(h,!1);else{var I=w.children.filter(function(U){return!U.node.disabled&&!U.node.disableCheckbox&&!V.includes(U.node[A.value])}),G=I.length;Q.set(h,G>R)}}return Q.get(h)}var M=fr(function(p){var h=p[A.value];return V.includes(h)||R===null?!1:R<=0?!0:De&&R?ee(p):!1}),Nr=function p(h){var w=kt(h),C;try{for(w.s();!(C=w.n()).done;){var I=C.value;if(!(I.disabled||I.selectable===!1)){if(a){if(j(I))return I}else return I;if(I[A.children]){var G=p(I[A.children]);if(G)return G}}}}catch(U){w.e(U)}finally{w.f()}return null},qe=c.useState(null),_e=B(qe,2),me=_e[0],er=_e[1],$=Ye[me];c.useEffect(function(){if(i){var p=null,h=function(){var C=Nr(se);return C?C[A.value]:null};!o&&V.length&&!a?p=V[0]:p=h(),er(p)}},[i,a]),c.useImperativeHandle(t,function(){var p;return{scrollTo:(p=ce.current)===null||p===void 0?void 0:p.scrollTo,onKeyDown:function(w){var C,I=w.which;switch(I){case ve.UP:case ve.DOWN:case ve.LEFT:case ve.RIGHT:(C=ce.current)===null||C===void 0||C.onKeyDown(w);break;case ve.ENTER:{if($){var G=M($.node),U=($==null?void 0:$.node)||{},tr=U.selectable,ne=U.value,nr=U.disabled;tr!==!1&&!nr&&!G&&ye(null,{node:{key:me},selected:!V.includes(ne)})}break}case ve.ESC:u(!1)}},onKeyUp:function(){}}});var rr=jr(function(){return!a},[a,ie||pe],function(p,h){var w=B(p,1),C=w[0],I=B(h,2),G=I[0],U=I[1];return C!==G&&!!(G||U)}),x=rr?$e:null;if(se.length===0)return c.createElement("div",{role:"listbox",className:"".concat(l,"-empty"),onMouseDown:he},s);var H={fieldNames:A};return Ae&&(H.loadedKeys=Ae),fe&&(H.expandedKeys=fe),c.createElement("div",{onMouseDown:he},$&&i&&c.createElement("span",{style:Qt,"aria-live":"assertive"},$.node.value),c.createElement(Wr.UnstableContext.Provider,{value:{nodeDisabled:M}},c.createElement(Wr.default,Le({ref:ce,focusable:!1,prefixCls:"".concat(l,"-tree"),treeData:se,height:_,itemHeight:N,itemScrollOffset:P,virtual:S!==!1&&J!==!1,multiple:o,icon:He,showIcon:Ue,switcherIcon:Fe,showLine:We,loadData:x,motion:Ge,activeKey:me,checkable:oe,checkStrictly:!0,checkedKeys:Qe,selectedKeys:oe?[]:V,defaultExpandAll:ke,titleRender:z},H,{onActiveChange:er,onSelect:ye,onCheck:ye,onExpand:ge,onLoad:Be,filterTreeNode:j,expandAction:k,onScroll:W}))))},Xt=c.forwardRef(Zt),Jt=Xt,br="SHOW_ALL",Cr="SHOW_PARENT",xe="SHOW_CHILD";function Qr(e,r,t,n){var l=new Set(e);return r===xe?e.filter(function(o){var a=t[o];return!a||!a.children||!a.children.some(function(u){var i=u.node;return l.has(i[n.value])})||!a.children.every(function(u){var i=u.node;return mr(i)||l.has(i[n.value])})}):r===Cr?e.filter(function(o){var a=t[o],u=a?a.parent:null;return!u||mr(u.node)||!l.has(u.key)}):e}function Sn(e){var r=e.searchPlaceholder,t=e.treeCheckStrictly,n=e.treeCheckable,l=e.labelInValue,o=e.value,a=e.multiple,u=e.showCheckedStrategy,i=e.maxCount;warning(!r,"`searchPlaceholder` has been removed."),t&&l===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(l||t)&&warning(toArray(o).every(function(s){return s&&_typeof(s)==="object"&&"value"in s}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),t||a||n?warning(!o||Array.isArray(o),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(o),"`value` should not be array when `TreeSelect` is single mode."),i&&(u==="SHOW_ALL"&&!t||u==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var En=null,zt=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function qt(e){return!e||ue(e)!=="object"}var en=c.forwardRef(function(e,r){var t=e.id,n=e.prefixCls,l=n===void 0?"rc-tree-select":n,o=e.value,a=e.defaultValue,u=e.onChange,i=e.onSelect,s=e.onDeselect,d=e.searchValue,S=e.inputValue,_=e.onSearch,N=e.autoClearSearchValue,P=N===void 0?!0:N,L=e.filterTreeNode,A=e.treeNodeFilterProp,K=A===void 0?"value":A,J=e.showCheckedStrategy,k=e.treeNodeLabelProp,z=e.multiple,W=e.treeCheckable,R=e.treeCheckStrictly,De=e.labelInValue,te=e.maxCount,T=e.fieldNames,oe=e.treeDataSimpleMode,V=e.treeData,Ke=e.children,ie=e.loadData,ke=e.treeLoadedKeys,Ve=e.onTreeLoad,Ce=e.treeDefaultExpandAll,He=e.treeExpandedKeys,Ue=e.treeDefaultExpandedKeys,Fe=e.onTreeExpand,We=e.treeExpandAction,je=e.virtual,$e=e.listHeight,Ae=$e===void 0?200:$e,Ge=e.listItemHeight,Be=Ge===void 0?20:Ge,Ye=e.listItemScrollOffset,ce=Ye===void 0?0:Ye,se=e.onDropdownVisibleChange,Qe=e.dropdownMatchSelectWidth,he=Qe===void 0?!0:Qe,ye=e.treeLine,Ze=e.treeIcon,Te=e.showTreeIcon,pe=e.switcherIcon,Xe=e.treeMotion,q=e.treeTitleRender,Ne=e.onPopupScroll,Je=Lr(e,zt),ze=(0,ot.ZP)(t),fe=W&&!R,ge=W||R,Ie=R||De,j=ge||z,Ar=kr(a,{value:o}),Oe=B(Ar,2),Q=Oe[0],Tr=Oe[1],ee=c.useMemo(function(){return W?J||xe:br},[J,W]),M=c.useMemo(function(){return Ut(T)},[JSON.stringify(T)]),Nr=kr("",{value:d!==void 0?d:S,postState:function(v){return v||""}}),qe=B(Nr,2),_e=qe[0],me=qe[1],er=function(v){me(v),_==null||_(v)},$=Dt(V,Ke,oe),rr=Tt($,M),x=rr.keyEntities,H=rr.valueEntities,p=c.useCallback(function(y){var v=[],g=[];return y.forEach(function(m){H.has(m)?g.push(m):v.push(m)}),{missingRawValues:v,existRawValues:g}},[H]),h=Pt($,_e,{fieldNames:M,treeNodeFilterProp:K,filterTreeNode:L}),w=c.useCallback(function(y){if(y){if(k)return y[k];for(var v=M._title,g=0;g<v.length;g+=1){var m=y[v[g]];if(m!==void 0)return m}}},[M,k]),C=c.useCallback(function(y){var v=Ht(y);return v.map(function(g){return qt(g)?{value:g}:g})},[]),I=c.useCallback(function(y){var v=C(y);return v.map(function(g){var m=g.label,Y=g.value,O=g.halfChecked,E,b=H.get(Y);if(b){var F;m=q?q(b.node):(F=m)!==null&&F!==void 0?F:w(b.node),E=b.node.disabled}else if(m===void 0){var ae=C(Q).find(function(Me){return Me.value===Y});m=ae.label}return{label:m,value:Y,halfChecked:O,disabled:E}})},[H,w,C,Q]),G=c.useMemo(function(){return C(Q===null?[]:Q)},[C,Q]),U=c.useMemo(function(){var y=[],v=[];return G.forEach(function(g){g.halfChecked?v.push(g):y.push(g)}),[y,v]},[G]),tr=B(U,2),ne=tr[0],nr=tr[1],Zr=c.useMemo(function(){return ne.map(function(y){return y.value})},[ne]),nn=Ct(ne,nr,fe,x),Xr=B(nn,2),Se=Xr[0],ar=Xr[1],an=c.useMemo(function(){var y=Qr(Se,ee,x,M),v=y.map(function(O){var E,b;return(E=(b=x[O])===null||b===void 0||(b=b.node)===null||b===void 0?void 0:b[M.value])!==null&&E!==void 0?E:O}),g=v.map(function(O){var E=ne.find(function(F){return F.value===O}),b=De?E==null?void 0:E.label:q==null?void 0:q(E);return{value:O,label:b}}),m=I(g),Y=m[0];return!j&&Y&&Gr(Y.value)&&Gr(Y.label)?[]:m.map(function(O){var E;return D(D({},O),{},{label:(E=O.label)!==null&&E!==void 0?E:O.value})})},[M,j,Se,ne,I,ee,x]),ln=Et(an),un=B(ln,1),Ir=un[0],Jr=c.useMemo(function(){return j&&(ee==="SHOW_CHILD"||R||!W)?te:null},[te,j,R,ee,W]),lr=Ur(function(y,v,g){var m=Qr(y,ee,x,M);if(!(Jr&&m.length>Jr)){var Y=I(y);if(Tr(Y),P&&me(""),u){var O=y;fe&&(O=m.map(function(Z){var le=H.get(Z);return le?le.node[M.value]:Z}));var E=v||{triggerValue:void 0,selected:void 0},b=E.triggerValue,F=E.selected,ae=O;if(R){var Me=nr.filter(function(Z){return!O.includes(Z.value)});ae=[].concat(re(ae),re(Me))}var we=I(ae),de={preValue:ne,triggerValue:b},Ee=!0;(R||g==="selection"&&!F)&&(Ee=!1),Lt(de,b,y,$,Ee,M),ge?de.checked=F:de.selected=F;var ur=Ie?we:we.map(function(Z){return Z.value});u(j?ur:ur[0],Ie?null:we.map(function(Z){return Z.label}),de)}}}),Or=c.useCallback(function(y,v){var g,m=v.selected,Y=v.source,O=x[y],E=O==null?void 0:O.node,b=(g=E==null?void 0:E[M.value])!==null&&g!==void 0?g:y;if(!j)lr([b],{selected:!0,triggerValue:b},"option");else{var F=m?[].concat(re(Zr),[b]):Se.filter(function(le){return le!==b});if(fe){var ae=p(F),Me=ae.missingRawValues,we=ae.existRawValues,de=we.map(function(le){return H.get(le).key}),Ee;if(m){var ur=(0,cr.S)(de,!0,x);Ee=ur.checkedKeys}else{var Z=(0,cr.S)(de,{checked:!1,halfCheckedKeys:ar},x);Ee=Z.checkedKeys}F=[].concat(re(Me),re(Ee.map(function(le){return x[le].node[M.value]})))}lr(F,{selected:m,triggerValue:b},Y||"option")}m||!j?i==null||i(b,gr(E)):s==null||s(b,gr(E))},[p,H,x,M,j,Zr,lr,fe,i,s,Se,ar,te]),on=c.useCallback(function(y){if(se){var v={};Object.defineProperty(v,"documentClickClose",{get:function(){return Pe(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),se(y,v)}},[se]),cn=Ur(function(y,v){var g=y.map(function(m){return m.value});if(v.type==="clear"){lr(g,{},"selection");return}v.values.length&&Or(v.values[0].value,{selected:!1,source:"selection"})}),sn=c.useMemo(function(){return{virtual:je,dropdownMatchSelectWidth:he,listHeight:Ae,listItemHeight:Be,listItemScrollOffset:ce,treeData:h,fieldNames:M,onSelect:Or,treeExpandAction:We,treeTitleRender:q,onPopupScroll:Ne,leftMaxCount:te===void 0?null:te-Ir.length,leafCountOnly:ee==="SHOW_CHILD"&&!R&&!!W,valueEntities:H}},[je,he,Ae,Be,ce,h,M,Or,We,q,Ne,te,Ir.length,ee,R,W,H]),fn=c.useMemo(function(){return{checkable:ge,loadData:ie,treeLoadedKeys:ke,onTreeLoad:Ve,checkedKeys:Se,halfCheckedKeys:ar,treeDefaultExpandAll:Ce,treeExpandedKeys:He,treeDefaultExpandedKeys:Ue,onTreeExpand:Fe,treeIcon:Ze,treeMotion:Xe,showTreeIcon:Te,switcherIcon:pe,treeLine:ye,treeNodeFilterProp:K,keyEntities:x}},[ge,ie,ke,Ve,Se,ar,Ce,He,Ue,Fe,Ze,Xe,Te,pe,ye,K,x]);return c.createElement($r.Provider,{value:sn},c.createElement(Fr.Provider,{value:fn},c.createElement(Rr.BaseSelect,Le({ref:r},Je,{id:ze,prefixCls:l,mode:j?"multiple":void 0,displayValues:Ir,onDisplayValuesChange:cn,searchValue:_e,onSearch:er,OptionList:Jt,emptyOptions:!$.length,onDropdownVisibleChange:on,dropdownMatchSelectWidth:he}))))}),be=en;be.TreeNode=pr,be.SHOW_ALL=br,be.SHOW_PARENT=Cr,be.SHOW_CHILD=xe;var rn=be,tn=rn}}]);
@@ -0,0 +1,35 @@
1
+ "use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[5046],{50344:function(w,r,e){e.d(r,{Z:function(){return t}});var a=e(67294),u=e(59864);function t(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=[];return a.Children.forEach(i,function(n){n==null&&!o.keepEmpty||(Array.isArray(n)?c=c.concat(t(n)):(0,u.isFragment)(n)&&n.props?c=c.concat(t(n.props.children,o)):c.push(n))}),c}},64019:function(w,r,e){e.d(r,{Z:function(){return u}});var a=e(73935);function u(t,i,o,c){var n=a.unstable_batchedUpdates?function(M){a.unstable_batchedUpdates(o,M)}:o;return t!=null&&t.addEventListener&&t.addEventListener(i,n,c),{remove:function(){t!=null&&t.removeEventListener&&t.removeEventListener(i,n,c)}}}},27678:function(w,r,e){e.d(r,{g1:function(){return d},os:function(){return y}});var a=/margin|padding|width|height|max|min|offset/,u={left:!0,top:!0},t={cssFloat:1,styleFloat:1,float:1};function i(f){return f.nodeType===1?f.ownerDocument.defaultView.getComputedStyle(f,null):{}}function o(f,v,h){if(v=v.toLowerCase(),h==="auto"){if(v==="height")return f.offsetHeight;if(v==="width")return f.offsetWidth}return v in u||(u[v]=a.test(v)),u[v]?parseFloat(h)||0:h}function c(f,v){var h=arguments.length,E=i(f);return v=t[v]?"cssFloat"in f.style?"cssFloat":"styleFloat":v,h===1?E:o(f,v,E[v]||f.style[v])}function n(f,v,h){var E=arguments.length;if(v=t[v]?"cssFloat"in f.style?"cssFloat":"styleFloat":v,E===3)return typeof h=="number"&&a.test(v)&&(h="".concat(h,"px")),f.style[v]=h,h;for(var s in v)v.hasOwnProperty(s)&&n(f,s,v[s]);return i(f)}function m(f){return f===document.body?document.documentElement.clientWidth:f.offsetWidth}function M(f){return f===document.body?window.innerHeight||document.documentElement.clientHeight:f.offsetHeight}function l(){var f=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),v=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:f,height:v}}function d(){var f=document.documentElement.clientWidth,v=window.innerHeight||document.documentElement.clientHeight;return{width:f,height:v}}function p(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function y(f){var v=f.getBoundingClientRect(),h=document.documentElement;return{left:v.left+(window.pageXOffset||h.scrollLeft)-(h.clientLeft||document.body.clientLeft||0),top:v.top+(window.pageYOffset||h.scrollTop)-(h.clientTop||document.body.clientTop||0)}}},34203:function(w,r,e){e.d(r,{S:function(){return t},Z:function(){return i}});var a=e(67294),u=e(73935);function t(o){return o instanceof HTMLElement||o instanceof SVGElement}function i(o){return t(o)?o:o instanceof a.Component?u.findDOMNode(o):null}},88603:function(w,r,e){e.d(r,{tS:function(){return i}});var a=e(74902),u=e(5110);function t(l){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,u.Z)(l)){var p=l.nodeName.toLowerCase(),y=["input","select","textarea","button"].includes(p)||l.isContentEditable||p==="a"&&!!l.getAttribute("href"),f=l.getAttribute("tabindex"),v=Number(f),h=null;return f&&!Number.isNaN(v)?h=v:y&&h===null&&(h=0),y&&l.disabled&&(h=null),h!==null&&(h>=0||d&&h<0)}return!1}function i(l){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p=(0,a.Z)(l.querySelectorAll("*")).filter(function(y){return t(y,d)});return t(l,d)&&p.unshift(l),p}var o=null;function c(){o=document.activeElement}function n(){o=null}function m(){if(o)try{o.focus()}catch{}}function M(l,d){if(d.keyCode===9){var p=i(l),y=p[d.shiftKey?0:p.length-1],f=y===document.activeElement||l===document.activeElement;if(f){var v=p[d.shiftKey?p.length-1:0];v.focus(),d.preventDefault()}}}},5110:function(w,r){r.Z=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var a=e.getBBox(),u=a.width,t=a.height;if(u||t)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,c=i.height;if(o||c)return!0}}return!1}},27571:function(w,r,e){e.d(r,{A:function(){return t}});function a(i){var o;return i==null||(o=i.getRootNode)===null||o===void 0?void 0:o.call(i)}function u(i){return a(i)instanceof ShadowRoot}function t(i){return u(i)?a(i):null}},15105:function(w,r){var e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(u){var t=u.keyCode;if(u.altKey&&!u.ctrlKey||u.metaKey||t>=e.F1&&t<=e.F12)return!1;switch(t){case e.ALT:case e.CAPS_LOCK:case e.CONTEXT_MENU:case e.CTRL:case e.DOWN:case e.END:case e.ESC:case e.HOME:case e.INSERT:case e.LEFT:case e.MAC_FF_META:case e.META:case e.NUMLOCK:case e.NUM_CENTER:case e.PAGE_DOWN:case e.PAGE_UP:case e.PAUSE:case e.PRINT_SCREEN:case e.RIGHT:case e.SHIFT:case e.UP:case e.WIN_KEY:case e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(u){if(u>=e.ZERO&&u<=e.NINE||u>=e.NUM_ZERO&&u<=e.NUM_MULTIPLY||u>=e.A&&u<=e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&u===0)return!0;switch(u){case e.SPACE:case e.QUESTION_MARK:case e.NUM_PLUS:case e.NUM_MINUS:case e.NUM_PERIOD:case e.NUM_DIVISION:case e.SEMICOLON:case e.DASH:case e.EQUALS:case e.COMMA:case e.PERIOD:case e.SLASH:case e.APOSTROPHE:case e.SINGLE_QUOTE:case e.OPEN_SQUARE_BRACKET:case e.BACKSLASH:case e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};r.Z=e},74204:function(w,r,e){e.d(r,{o:function(){return i}});var a;function u(o){if(typeof document>"u")return 0;if(o||a===void 0){var c=document.createElement("div");c.style.width="100%",c.style.height="200px";var n=document.createElement("div"),m=n.style;m.position="absolute",m.top="0",m.left="0",m.pointerEvents="none",m.visibility="hidden",m.width="200px",m.height="150px",m.overflow="hidden",n.appendChild(c),document.body.appendChild(n);var M=c.offsetWidth;n.style.overflow="scroll";var l=c.offsetWidth;M===l&&(l=n.clientWidth),document.body.removeChild(n),a=M-l}return a}function t(o){var c=o.match(/^(.*)px$/),n=Number(c==null?void 0:c[1]);return Number.isNaN(n)?u():n}function i(o){if(typeof document>"u"||!o||!(o instanceof Element))return{width:0,height:0};var c=getComputedStyle(o,"::-webkit-scrollbar"),n=c.width,m=c.height;return{width:t(n),height:t(m)}}},7028:function(w,r,e){var a,u=e(97685),t=e(1413),i=e(67294);function o(){var M=(0,t.Z)({},a||(a=e.t(i,2)));return M.useId}var c=0;function n(){}var m=o();r.Z=m?function(l){var d=m();return l||d}:function(l){var d=i.useState("ssr-id"),p=(0,u.Z)(d,2),y=p[0],f=p[1];return i.useEffect(function(){var v=c;c+=1,f("rc_unique_".concat(v))},[]),l||y}},31131:function(w,r){r.Z=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))}},98423:function(w,r,e){e.d(r,{Z:function(){return u}});var a=e(1413);function u(t,i){var o=(0,a.Z)({},t);return Array.isArray(i)&&i.forEach(function(c){delete o[c]}),o}},64217:function(w,r,e){e.d(r,{Z:function(){return m}});var a=e(1413),u=`accept acceptCharset accessKey action allowFullScreen allowTransparency
2
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
3
+ charSet checked classID className colSpan cols content contentEditable contextMenu
4
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
5
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
6
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
7
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
8
+ mediaGroup method min minLength multiple muted name noValidate nonce open
9
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
10
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
11
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
12
+ summary tabIndex target title type useMap value width wmode wrap`,t=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
13
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
14
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
15
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
16
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
17
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
18
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,i="".concat(u," ").concat(t).split(/[\s\n]+/),o="aria-",c="data-";function n(M,l){return M.indexOf(l)===0}function m(M){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d;l===!1?d={aria:!0,data:!0,attr:!0}:l===!0?d={aria:!0}:d=(0,a.Z)({},l);var p={};return Object.keys(M).forEach(function(y){(d.aria&&(y==="role"||n(y,o))||d.data&&n(y,c)||d.attr&&i.includes(y))&&(p[y]=M[y])}),p}},75164:function(w,r){var e=function(n){return+setTimeout(n,16)},a=function(n){return clearTimeout(n)};typeof window<"u"&&"requestAnimationFrame"in window&&(e=function(n){return window.requestAnimationFrame(n)},a=function(n){return window.cancelAnimationFrame(n)});var u=0,t=new Map;function i(c){t.delete(c)}var o=function(n){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;u+=1;var M=u;function l(d){if(d===0)i(M),n();else{var p=e(function(){l(d-1)});t.set(M,p)}}return l(m),M};o.cancel=function(c){var n=t.get(c);return i(c),a(n)},r.Z=o},45598:function(w,r,e){var a=e(64836).default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;var u=a(e(67294)),t=e(59864);function i(o){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return u.default.Children.forEach(o,function(m){m==null&&!c.keepEmpty||(Array.isArray(m)?n=n.concat(i(m)):(0,t.isFragment)(m)&&m.props?n=n.concat(i(m.props.children,c)):n.push(m))}),n}},19158:function(w,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=e;function e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}},32191:function(w,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=e;function e(a,u){if(!a)return!1;if(a.contains)return a.contains(u);for(var t=u;t;){if(t===a)return!0;t=t.parentNode}return!1}},93399:function(w,r,e){var a=e(64836).default;Object.defineProperty(r,"__esModule",{value:!0}),r.clearContainerCache=h,r.injectCSS=p,r.removeCSS=f,r.updateCSS=E;var u=a(e(19158)),t=a(e(32191)),i="data-rc-order",o="data-rc-priority",c="rc-util-key",n=new Map;function m(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=s.mark;return g?g.startsWith("data-")?g:"data-".concat(g):c}function M(s){if(s.attachTo)return s.attachTo;var g=document.querySelector("head");return g||document.body}function l(s){return s==="queue"?"prependQueue":s?"prepend":"append"}function d(s){return Array.from((n.get(s)||s).children).filter(function(g){return g.tagName==="STYLE"})}function p(s){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,u.default)())return null;var _=g.csp,S=g.prepend,C=g.priority,T=C===void 0?0:C,R=l(S),N=R==="prependQueue",b=document.createElement("style");b.setAttribute(i,R),N&&T&&b.setAttribute(o,"".concat(T)),_!=null&&_.nonce&&(b.nonce=_==null?void 0:_.nonce),b.innerHTML=s;var O=M(g),D=O.firstChild;if(S){if(N){var P=d(O).filter(function(A){if(!["prepend","prependQueue"].includes(A.getAttribute(i)))return!1;var L=Number(A.getAttribute(o)||0);return T>=L});if(P.length)return O.insertBefore(b,P[P.length-1].nextSibling),b}O.insertBefore(b,D)}else O.appendChild(b);return b}function y(s){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=M(g);return d(_).find(function(S){return S.getAttribute(m(g))===s})}function f(s){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=y(s,g);if(_){var S=M(g);S.removeChild(_)}}function v(s,g){var _=n.get(s);if(!_||!(0,t.default)(document,_)){var S=p("",g),C=S.parentNode;n.set(s,C),s.removeChild(S)}}function h(){n.clear()}function E(s,g){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},S=M(_);v(S,_);var C=y(g,_);if(C){var T,R;if((T=_.csp)!==null&&T!==void 0&&T.nonce&&C.nonce!==((R=_.csp)===null||R===void 0?void 0:R.nonce)){var N;C.nonce=(N=_.csp)===null||N===void 0?void 0:N.nonce}return C.innerHTML!==s&&(C.innerHTML=s),C}var b=p(s,_);return b.setAttribute(m(_),g),b}},63298:function(w,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getShadowRoot=u,r.inShadow=a;function e(t){var i;return t==null||(i=t.getRootNode)===null||i===void 0?void 0:i.call(t)}function a(t){return e(t)instanceof ShadowRoot}function u(t){return a(t)?e(t):null}},18475:function(w,r,e){var a=e(64836).default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;var u=a(e(42122));function t(i,o){var c=(0,u.default)({},i);return Array.isArray(o)&&o.forEach(function(n){delete c[n]}),c}},30339:function(w,r,e){var a=e(64836).default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=M;var u=a(e(42122)),t=`accept acceptCharset accessKey action allowFullScreen allowTransparency
19
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
20
+ charSet checked classID className colSpan cols content contentEditable contextMenu
21
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
22
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
23
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
24
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
25
+ mediaGroup method min minLength multiple muted name noValidate nonce open
26
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
27
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
28
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
29
+ summary tabIndex target title type useMap value width wmode wrap`,i=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
30
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
31
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
32
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
33
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
34
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
35
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,o="".concat(t," ").concat(i).split(/[\s\n]+/),c="aria-",n="data-";function m(l,d){return l.indexOf(d)===0}function M(l){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p;d===!1?p={aria:!0,data:!0,attr:!0}:d===!0?p={aria:!0}:p=(0,u.default)({},d);var y={};return Object.keys(l).forEach(function(f){(p.aria&&(f==="role"||m(f,c))||p.data&&m(f,n)||p.attr&&o.includes(f))&&(y[f]=l[f])}),y}},45520:function(w,r){Object.defineProperty(r,"__esModule",{value:!0}),r.call=c,r.default=void 0,r.note=i,r.noteOnce=m,r.preMessage=void 0,r.resetWarned=o,r.warning=t,r.warningOnce=n;var e={},a=[],u=r.preMessage=function(d){a.push(d)};function t(l,d){if(!1)var p}function i(l,d){if(!1)var p}function o(){e={}}function c(l,d,p){!d&&!e[p]&&(l(!1,p),e[p]=!0)}function n(l,d){c(t,l,d)}function m(l,d){c(i,l,d)}n.preMessage=u,n.resetWarned=o,n.noteOnce=m;var M=r.default=n},79221:function(w,r,e){var a=e(64836).default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=c;var u=a(e(18698)),t=Symbol.for("react.element"),i=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function c(n){return n&&(0,u.default)(n)==="object"&&(n.$$typeof===t||n.$$typeof===i)&&n.type===o}},84313:function(w,r,e){var a=e(75263).default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;var u=a(e(67294));function t(i,o,c){var n=u.useRef({});return(!("value"in n.current)||c(n.current.condition,o))&&(n.current.value=i(),n.current.condition=o),n.current.value}},53434:function(w,r,e){var a,u=e(64836).default;a={value:!0},a=a=a=a=a=r.sQ=void 0;var t=u(e(18698)),i=e(67294),o=e(59864),c=u(e(84313)),n=u(e(79221)),m=Number(i.version.split(".")[0]),M=a=function(E,s){typeof E=="function"?E(s):(0,t.default)(E)==="object"&&E&&"current"in E&&(E.current=s)},l=r.sQ=function(){for(var E=arguments.length,s=new Array(E),g=0;g<E;g++)s[g]=arguments[g];var _=s.filter(Boolean);return _.length<=1?_[0]:function(S){s.forEach(function(C){M(C,S)})}},d=a=function(){for(var E=arguments.length,s=new Array(E),g=0;g<E;g++)s[g]=arguments[g];return(0,c.default)(function(){return l.apply(void 0,s)},s,function(_,S){return _.length!==S.length||_.every(function(C,T){return C!==S[T]})})},p=a=function(E){var s,g;if(!E)return!1;if(y(E)&&m>=19)return!0;var _=(0,o.isMemo)(E)?E.type.type:E.type;return!(typeof _=="function"&&!((s=_.prototype)!==null&&s!==void 0&&s.render)&&_.$$typeof!==o.ForwardRef||typeof E=="function"&&!((g=E.prototype)!==null&&g!==void 0&&g.render)&&E.$$typeof!==o.ForwardRef)};function y(h){return(0,i.isValidElement)(h)&&!(0,n.default)(h)}var f=a=function(E){return y(E)&&p(E)},v=a=function(E){if(E&&y(E)){var s=E;return s.props.propertyIsEnumerable("ref")?s.props.ref:s.ref}return null}}}]);