onchain-uikit 3.9.4-alpha24 → 3.9.4-alpha25
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.
- package/dist/index.cjs.js +32 -32
- package/dist/index.es.js +25 -6
- package/dist/index.umd.js +95 -95
- package/lib/src/components/OnChainPopupSelect/index.d.ts +3 -1
- package/lib/src/components/OnChainResourceTree/index.d.ts +2 -2
- package/lib/src/components/OnChainTable/index.d.ts +2 -2
- package/lib/src/components/OnChainTable/useCopy.d.ts +1 -2
- package/lib/src/components/OnChainTable/usePaste.d.ts +1 -2
- package/lib/src/components/OnChainTableSelection/index.d.ts +3 -2
- package/lib/src/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var vP=Object.defineProperty;var bP=(e,t,r)=>t in e?vP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Tt=(e,t,r)=>bP(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("react"),
|
|
1
|
+
"use strict";var vP=Object.defineProperty;var bP=(e,t,r)=>t in e?vP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Tt=(e,t,r)=>bP(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("react"),X=require("antd"),zl=require("react-dom");function yP(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ee=yP(F);var Un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _P(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var yd={exports:{}},Eu={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -34,10 +34,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
34
34
|
* Released under MIT license <https://lodash.com/license>
|
|
35
35
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
36
36
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
37
|
-
*/var NP=xl.exports,l2;function IP(){return l2||(l2=1,function(e,t){(function(){var r,n="4.17.21",a=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,m="__lodash_placeholder__",p=1,g=2,y=4,x=1,E=2,k=1,T=2,w=4,S=8,f=16,h=32,v=64,_=128,R=256,C=512,P=30,M="...",U=800,L=16,N=1,j=2,O=3,I=1/0,z=9007199254740991,B=17976931348623157e292,H=NaN,q=4294967295,J=q-1,re=q>>>1,ne=[["ary",_],["bind",k],["bindKey",T],["curry",S],["curryRight",f],["flip",C],["partial",h],["partialRight",v],["rearg",R]],se="[object Arguments]",ce="[object Array]",le="[object AsyncFunction]",ye="[object Boolean]",we="[object Date]",Ee="[object DOMException]",Le="[object Error]",he="[object Function]",qe="[object GeneratorFunction]",oe="[object Map]",De="[object Number]",Je="[object Null]",Ct="[object Object]",Et="[object Promise]",Fe="[object Proxy]",We="[object RegExp]",Ne="[object Set]",Oe="[object String]",at="[object Symbol]",Pr="[object Undefined]",Wr="[object WeakMap]",Tc="[object WeakSet]",si="[object ArrayBuffer]",ui="[object DataView]",Ao="[object Float32Array]",Ro="[object Float64Array]",Qs="[object Int8Array]",eu="[object Int16Array]",tu="[object Int32Array]",ru="[object Uint8Array]",nu="[object Uint8ClampedArray]",au="[object Uint16Array]",iu="[object Uint32Array]",ou=/\b__p \+= '';/g,Oc=/\b(__p \+=) '' \+/g,li=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Po=/&(?:amp|lt|gt|quot|#39);/g,Do=/[&<>"']/g,Ac=RegExp(Po.source),Yh=RegExp(Do.source),Rc=/<%-([\s\S]+?)%>/g,Gh=/<%([\s\S]+?)%>/g,su=/<%=([\s\S]+?)%>/g,Pc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kh=/^\w*$/,Xh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mo=/[\\^$.*+?()[\]{}|]/g,Dc=RegExp(Mo.source),uu=/^\s+/,Zh=/\s/,Jh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Qh=/\{\n\/\* \[wrapped with (.+)\] \*/,K=/,? & /,ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xe=/[()=,{}\[\]\/\s]/,Ue=/\\(\\)?/g,ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,et=/^0b[01]+$/i,lr=/^\[object .+?Constructor\]$/,$t=/^0o[0-7]+$/i,Ht=/^(?:0|[1-9]\d*)$/,Dr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,An=/($^)/,Sa=/['\n\r\u2028\u2029\\]/g,Jt="\\ud800-\\udfff",lu="\\u0300-\\u036f",e0="\\ufe20-\\ufe2f",t0="\\u20d0-\\u20ff",xb=lu+e0+t0,Sb="\\u2700-\\u27bf",Cb="a-z\\xdf-\\xf6\\xf8-\\xff",hk="\\xac\\xb1\\xd7\\xf7",pk="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mk="\\u2000-\\u206f",gk=" \\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",Eb="A-Z\\xc0-\\xd6\\xd8-\\xde",kb="\\ufe0e\\ufe0f",Tb=hk+pk+mk+gk,r0="['’]",vk="["+Jt+"]",Ob="["+Tb+"]",Mc="["+xb+"]",Ab="\\d+",bk="["+Sb+"]",Rb="["+Cb+"]",Pb="[^"+Jt+Tb+Ab+Sb+Cb+Eb+"]",n0="\\ud83c[\\udffb-\\udfff]",yk="(?:"+Mc+"|"+n0+")",Db="[^"+Jt+"]",a0="(?:\\ud83c[\\udde6-\\uddff]){2}",i0="[\\ud800-\\udbff][\\udc00-\\udfff]",Fo="["+Eb+"]",Mb="\\u200d",Fb="(?:"+Rb+"|"+Pb+")",_k="(?:"+Fo+"|"+Pb+")",Nb="(?:"+r0+"(?:d|ll|m|re|s|t|ve))?",Ib="(?:"+r0+"(?:D|LL|M|RE|S|T|VE))?",Lb=yk+"?",jb="["+kb+"]?",wk="(?:"+Mb+"(?:"+[Db,a0,i0].join("|")+")"+jb+Lb+")*",xk="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$b=jb+Lb+wk,Ck="(?:"+[bk,a0,i0].join("|")+")"+$b,Ek="(?:"+[Db+Mc+"?",Mc,a0,i0,vk].join("|")+")",kk=RegExp(r0,"g"),Tk=RegExp(Mc,"g"),o0=RegExp(n0+"(?="+n0+")|"+Ek+$b,"g"),Ok=RegExp([Fo+"?"+Rb+"+"+Nb+"(?="+[Ob,Fo,"$"].join("|")+")",_k+"+"+Ib+"(?="+[Ob,Fo+Fb,"$"].join("|")+")",Fo+"?"+Fb+"+"+Nb,Fo+"+"+Ib,Sk,xk,Ab,Ck].join("|"),"g"),Ak=RegExp("["+Mb+Jt+xb+kb+"]"),Rk=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pk=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Dk=-1,Ft={};Ft[Ao]=Ft[Ro]=Ft[Qs]=Ft[eu]=Ft[tu]=Ft[ru]=Ft[nu]=Ft[au]=Ft[iu]=!0,Ft[se]=Ft[ce]=Ft[si]=Ft[ye]=Ft[ui]=Ft[we]=Ft[Le]=Ft[he]=Ft[oe]=Ft[De]=Ft[Ct]=Ft[We]=Ft[Ne]=Ft[Oe]=Ft[Wr]=!1;var Pt={};Pt[se]=Pt[ce]=Pt[si]=Pt[ui]=Pt[ye]=Pt[we]=Pt[Ao]=Pt[Ro]=Pt[Qs]=Pt[eu]=Pt[tu]=Pt[oe]=Pt[De]=Pt[Ct]=Pt[We]=Pt[Ne]=Pt[Oe]=Pt[at]=Pt[ru]=Pt[nu]=Pt[au]=Pt[iu]=!0,Pt[Le]=Pt[he]=Pt[Wr]=!1;var Mk={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Fk={"&":"&","<":"<",">":">",'"':""","'":"'"},Nk={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ik={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Lk=parseFloat,jk=parseInt,zb=typeof Un=="object"&&Un&&Un.Object===Object&&Un,$k=typeof self=="object"&&self&&self.Object===Object&&self,cr=zb||$k||Function("return this")(),s0=t&&!t.nodeType&&t,Bi=s0&&!0&&e&&!e.nodeType&&e,Bb=Bi&&Bi.exports===s0,u0=Bb&&zb.process,fn=function(){try{var Q=Bi&&Bi.require&&Bi.require("util").types;return Q||u0&&u0.binding&&u0.binding("util")}catch{}}(),Hb=fn&&fn.isArrayBuffer,Ub=fn&&fn.isDate,qb=fn&&fn.isMap,Wb=fn&&fn.isRegExp,Vb=fn&&fn.isSet,Yb=fn&&fn.isTypedArray;function Vr(Q,ue,ae){switch(ae.length){case 0:return Q.call(ue);case 1:return Q.call(ue,ae[0]);case 2:return Q.call(ue,ae[0],ae[1]);case 3:return Q.call(ue,ae[0],ae[1],ae[2])}return Q.apply(ue,ae)}function zk(Q,ue,ae,Se){for(var Ve=-1,gt=Q==null?0:Q.length;++Ve<gt;){var Qt=Q[Ve];ue(Se,Qt,ae(Qt),Q)}return Se}function hn(Q,ue){for(var ae=-1,Se=Q==null?0:Q.length;++ae<Se&&ue(Q[ae],ae,Q)!==!1;);return Q}function Bk(Q,ue){for(var ae=Q==null?0:Q.length;ae--&&ue(Q[ae],ae,Q)!==!1;);return Q}function Gb(Q,ue){for(var ae=-1,Se=Q==null?0:Q.length;++ae<Se;)if(!ue(Q[ae],ae,Q))return!1;return!0}function ci(Q,ue){for(var ae=-1,Se=Q==null?0:Q.length,Ve=0,gt=[];++ae<Se;){var Qt=Q[ae];ue(Qt,ae,Q)&&(gt[Ve++]=Qt)}return gt}function Fc(Q,ue){var ae=Q==null?0:Q.length;return!!ae&&No(Q,ue,0)>-1}function l0(Q,ue,ae){for(var Se=-1,Ve=Q==null?0:Q.length;++Se<Ve;)if(ae(ue,Q[Se]))return!0;return!1}function Lt(Q,ue){for(var ae=-1,Se=Q==null?0:Q.length,Ve=Array(Se);++ae<Se;)Ve[ae]=ue(Q[ae],ae,Q);return Ve}function di(Q,ue){for(var ae=-1,Se=ue.length,Ve=Q.length;++ae<Se;)Q[Ve+ae]=ue[ae];return Q}function c0(Q,ue,ae,Se){var Ve=-1,gt=Q==null?0:Q.length;for(Se&>&&(ae=Q[++Ve]);++Ve<gt;)ae=ue(ae,Q[Ve],Ve,Q);return ae}function Hk(Q,ue,ae,Se){var Ve=Q==null?0:Q.length;for(Se&&Ve&&(ae=Q[--Ve]);Ve--;)ae=ue(ae,Q[Ve],Ve,Q);return ae}function d0(Q,ue){for(var ae=-1,Se=Q==null?0:Q.length;++ae<Se;)if(ue(Q[ae],ae,Q))return!0;return!1}var Uk=f0("length");function qk(Q){return Q.split("")}function Wk(Q){return Q.match(ge)||[]}function Kb(Q,ue,ae){var Se;return ae(Q,function(Ve,gt,Qt){if(ue(Ve,gt,Qt))return Se=gt,!1}),Se}function Nc(Q,ue,ae,Se){for(var Ve=Q.length,gt=ae+(Se?1:-1);Se?gt--:++gt<Ve;)if(ue(Q[gt],gt,Q))return gt;return-1}function No(Q,ue,ae){return ue===ue?nT(Q,ue,ae):Nc(Q,Xb,ae)}function Vk(Q,ue,ae,Se){for(var Ve=ae-1,gt=Q.length;++Ve<gt;)if(Se(Q[Ve],ue))return Ve;return-1}function Xb(Q){return Q!==Q}function Zb(Q,ue){var ae=Q==null?0:Q.length;return ae?p0(Q,ue)/ae:H}function f0(Q){return function(ue){return ue==null?r:ue[Q]}}function h0(Q){return function(ue){return Q==null?r:Q[ue]}}function Jb(Q,ue,ae,Se,Ve){return Ve(Q,function(gt,Qt,Rt){ae=Se?(Se=!1,gt):ue(ae,gt,Qt,Rt)}),ae}function Yk(Q,ue){var ae=Q.length;for(Q.sort(ue);ae--;)Q[ae]=Q[ae].value;return Q}function p0(Q,ue){for(var ae,Se=-1,Ve=Q.length;++Se<Ve;){var gt=ue(Q[Se]);gt!==r&&(ae=ae===r?gt:ae+gt)}return ae}function m0(Q,ue){for(var ae=-1,Se=Array(Q);++ae<Q;)Se[ae]=ue(ae);return Se}function Gk(Q,ue){return Lt(ue,function(ae){return[ae,Q[ae]]})}function Qb(Q){return Q&&Q.slice(0,ny(Q)+1).replace(uu,"")}function Yr(Q){return function(ue){return Q(ue)}}function g0(Q,ue){return Lt(ue,function(ae){return Q[ae]})}function cu(Q,ue){return Q.has(ue)}function ey(Q,ue){for(var ae=-1,Se=Q.length;++ae<Se&&No(ue,Q[ae],0)>-1;);return ae}function ty(Q,ue){for(var ae=Q.length;ae--&&No(ue,Q[ae],0)>-1;);return ae}function Kk(Q,ue){for(var ae=Q.length,Se=0;ae--;)Q[ae]===ue&&++Se;return Se}var Xk=h0(Mk),Zk=h0(Fk);function Jk(Q){return"\\"+Ik[Q]}function Qk(Q,ue){return Q==null?r:Q[ue]}function Io(Q){return Ak.test(Q)}function eT(Q){return Rk.test(Q)}function tT(Q){for(var ue,ae=[];!(ue=Q.next()).done;)ae.push(ue.value);return ae}function v0(Q){var ue=-1,ae=Array(Q.size);return Q.forEach(function(Se,Ve){ae[++ue]=[Ve,Se]}),ae}function ry(Q,ue){return function(ae){return Q(ue(ae))}}function fi(Q,ue){for(var ae=-1,Se=Q.length,Ve=0,gt=[];++ae<Se;){var Qt=Q[ae];(Qt===ue||Qt===m)&&(Q[ae]=m,gt[Ve++]=ae)}return gt}function Ic(Q){var ue=-1,ae=Array(Q.size);return Q.forEach(function(Se){ae[++ue]=Se}),ae}function rT(Q){var ue=-1,ae=Array(Q.size);return Q.forEach(function(Se){ae[++ue]=[Se,Se]}),ae}function nT(Q,ue,ae){for(var Se=ae-1,Ve=Q.length;++Se<Ve;)if(Q[Se]===ue)return Se;return-1}function aT(Q,ue,ae){for(var Se=ae+1;Se--;)if(Q[Se]===ue)return Se;return Se}function Lo(Q){return Io(Q)?oT(Q):Uk(Q)}function Rn(Q){return Io(Q)?sT(Q):qk(Q)}function ny(Q){for(var ue=Q.length;ue--&&Zh.test(Q.charAt(ue)););return ue}var iT=h0(Nk);function oT(Q){for(var ue=o0.lastIndex=0;o0.test(Q);)++ue;return ue}function sT(Q){return Q.match(o0)||[]}function uT(Q){return Q.match(Ok)||[]}var lT=function Q(ue){ue=ue==null?cr:jo.defaults(cr.Object(),ue,jo.pick(cr,Pk));var ae=ue.Array,Se=ue.Date,Ve=ue.Error,gt=ue.Function,Qt=ue.Math,Rt=ue.Object,b0=ue.RegExp,cT=ue.String,pn=ue.TypeError,Lc=ae.prototype,dT=gt.prototype,$o=Rt.prototype,jc=ue["__core-js_shared__"],$c=dT.toString,kt=$o.hasOwnProperty,fT=0,ay=function(){var o=/[^.]+$/.exec(jc&&jc.keys&&jc.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),zc=$o.toString,hT=$c.call(Rt),pT=cr._,mT=b0("^"+$c.call(kt).replace(Mo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bc=Bb?ue.Buffer:r,hi=ue.Symbol,Hc=ue.Uint8Array,iy=Bc?Bc.allocUnsafe:r,Uc=ry(Rt.getPrototypeOf,Rt),oy=Rt.create,sy=$o.propertyIsEnumerable,qc=Lc.splice,uy=hi?hi.isConcatSpreadable:r,du=hi?hi.iterator:r,Hi=hi?hi.toStringTag:r,Wc=function(){try{var o=Yi(Rt,"defineProperty");return o({},"",{}),o}catch{}}(),gT=ue.clearTimeout!==cr.clearTimeout&&ue.clearTimeout,vT=Se&&Se.now!==cr.Date.now&&Se.now,bT=ue.setTimeout!==cr.setTimeout&&ue.setTimeout,Vc=Qt.ceil,Yc=Qt.floor,y0=Rt.getOwnPropertySymbols,yT=Bc?Bc.isBuffer:r,ly=ue.isFinite,_T=Lc.join,wT=ry(Rt.keys,Rt),er=Qt.max,br=Qt.min,xT=Se.now,ST=ue.parseInt,cy=Qt.random,CT=Lc.reverse,_0=Yi(ue,"DataView"),fu=Yi(ue,"Map"),w0=Yi(ue,"Promise"),zo=Yi(ue,"Set"),hu=Yi(ue,"WeakMap"),pu=Yi(Rt,"create"),Gc=hu&&new hu,Bo={},ET=Gi(_0),kT=Gi(fu),TT=Gi(w0),OT=Gi(zo),AT=Gi(hu),Kc=hi?hi.prototype:r,mu=Kc?Kc.valueOf:r,dy=Kc?Kc.toString:r;function W(o){if(Ut(o)&&!Ye(o)&&!(o instanceof ot)){if(o instanceof mn)return o;if(kt.call(o,"__wrapped__"))return f_(o)}return new mn(o)}var Ho=function(){function o(){}return function(d){if(!zt(d))return{};if(oy)return oy(d);o.prototype=d;var b=new o;return o.prototype=r,b}}();function Xc(){}function mn(o,d){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=r}W.templateSettings={escape:Rc,evaluate:Gh,interpolate:su,variable:"",imports:{_:W}},W.prototype=Xc.prototype,W.prototype.constructor=W,mn.prototype=Ho(Xc.prototype),mn.prototype.constructor=mn;function ot(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function RT(){var o=new ot(this.__wrapped__);return o.__actions__=Mr(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=Mr(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=Mr(this.__views__),o}function PT(){if(this.__filtered__){var o=new ot(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function DT(){var o=this.__wrapped__.value(),d=this.__dir__,b=Ye(o),A=d<0,$=b?o.length:0,V=q7(0,$,this.__views__),G=V.start,X=V.end,te=X-G,de=A?X:G-1,fe=this.__iteratees__,me=fe.length,_e=0,Re=br(te,this.__takeCount__);if(!b||!A&&$==te&&Re==te)return Ny(o,this.__actions__);var $e=[];e:for(;te--&&_e<Re;){de+=d;for(var Ze=-1,ze=o[de];++Ze<me;){var tt=fe[Ze],lt=tt.iteratee,Xr=tt.type,Er=lt(ze);if(Xr==j)ze=Er;else if(!Er){if(Xr==N)continue e;break e}}$e[_e++]=ze}return $e}ot.prototype=Ho(Xc.prototype),ot.prototype.constructor=ot;function Ui(o){var d=-1,b=o==null?0:o.length;for(this.clear();++d<b;){var A=o[d];this.set(A[0],A[1])}}function MT(){this.__data__=pu?pu(null):{},this.size=0}function FT(o){var d=this.has(o)&&delete this.__data__[o];return this.size-=d?1:0,d}function NT(o){var d=this.__data__;if(pu){var b=d[o];return b===u?r:b}return kt.call(d,o)?d[o]:r}function IT(o){var d=this.__data__;return pu?d[o]!==r:kt.call(d,o)}function LT(o,d){var b=this.__data__;return this.size+=this.has(o)?0:1,b[o]=pu&&d===r?u:d,this}Ui.prototype.clear=MT,Ui.prototype.delete=FT,Ui.prototype.get=NT,Ui.prototype.has=IT,Ui.prototype.set=LT;function Ca(o){var d=-1,b=o==null?0:o.length;for(this.clear();++d<b;){var A=o[d];this.set(A[0],A[1])}}function jT(){this.__data__=[],this.size=0}function $T(o){var d=this.__data__,b=Zc(d,o);if(b<0)return!1;var A=d.length-1;return b==A?d.pop():qc.call(d,b,1),--this.size,!0}function zT(o){var d=this.__data__,b=Zc(d,o);return b<0?r:d[b][1]}function BT(o){return Zc(this.__data__,o)>-1}function HT(o,d){var b=this.__data__,A=Zc(b,o);return A<0?(++this.size,b.push([o,d])):b[A][1]=d,this}Ca.prototype.clear=jT,Ca.prototype.delete=$T,Ca.prototype.get=zT,Ca.prototype.has=BT,Ca.prototype.set=HT;function Ea(o){var d=-1,b=o==null?0:o.length;for(this.clear();++d<b;){var A=o[d];this.set(A[0],A[1])}}function UT(){this.size=0,this.__data__={hash:new Ui,map:new(fu||Ca),string:new Ui}}function qT(o){var d=ld(this,o).delete(o);return this.size-=d?1:0,d}function WT(o){return ld(this,o).get(o)}function VT(o){return ld(this,o).has(o)}function YT(o,d){var b=ld(this,o),A=b.size;return b.set(o,d),this.size+=b.size==A?0:1,this}Ea.prototype.clear=UT,Ea.prototype.delete=qT,Ea.prototype.get=WT,Ea.prototype.has=VT,Ea.prototype.set=YT;function qi(o){var d=-1,b=o==null?0:o.length;for(this.__data__=new Ea;++d<b;)this.add(o[d])}function GT(o){return this.__data__.set(o,u),this}function KT(o){return this.__data__.has(o)}qi.prototype.add=qi.prototype.push=GT,qi.prototype.has=KT;function Pn(o){var d=this.__data__=new Ca(o);this.size=d.size}function XT(){this.__data__=new Ca,this.size=0}function ZT(o){var d=this.__data__,b=d.delete(o);return this.size=d.size,b}function JT(o){return this.__data__.get(o)}function QT(o){return this.__data__.has(o)}function e7(o,d){var b=this.__data__;if(b instanceof Ca){var A=b.__data__;if(!fu||A.length<a-1)return A.push([o,d]),this.size=++b.size,this;b=this.__data__=new Ea(A)}return b.set(o,d),this.size=b.size,this}Pn.prototype.clear=XT,Pn.prototype.delete=ZT,Pn.prototype.get=JT,Pn.prototype.has=QT,Pn.prototype.set=e7;function fy(o,d){var b=Ye(o),A=!b&&Ki(o),$=!b&&!A&&bi(o),V=!b&&!A&&!$&&Vo(o),G=b||A||$||V,X=G?m0(o.length,cT):[],te=X.length;for(var de in o)(d||kt.call(o,de))&&!(G&&(de=="length"||$&&(de=="offset"||de=="parent")||V&&(de=="buffer"||de=="byteLength"||de=="byteOffset")||Aa(de,te)))&&X.push(de);return X}function hy(o){var d=o.length;return d?o[D0(0,d-1)]:r}function t7(o,d){return cd(Mr(o),Wi(d,0,o.length))}function r7(o){return cd(Mr(o))}function x0(o,d,b){(b!==r&&!Dn(o[d],b)||b===r&&!(d in o))&&ka(o,d,b)}function gu(o,d,b){var A=o[d];(!(kt.call(o,d)&&Dn(A,b))||b===r&&!(d in o))&&ka(o,d,b)}function Zc(o,d){for(var b=o.length;b--;)if(Dn(o[b][0],d))return b;return-1}function n7(o,d,b,A){return pi(o,function($,V,G){d(A,$,b($),G)}),A}function py(o,d){return o&&ra(d,ar(d),o)}function a7(o,d){return o&&ra(d,Nr(d),o)}function ka(o,d,b){d=="__proto__"&&Wc?Wc(o,d,{configurable:!0,enumerable:!0,value:b,writable:!0}):o[d]=b}function S0(o,d){for(var b=-1,A=d.length,$=ae(A),V=o==null;++b<A;)$[b]=V?r:np(o,d[b]);return $}function Wi(o,d,b){return o===o&&(b!==r&&(o=o<=b?o:b),d!==r&&(o=o>=d?o:d)),o}function gn(o,d,b,A,$,V){var G,X=d&p,te=d&g,de=d&y;if(b&&(G=$?b(o,A,$,V):b(o)),G!==r)return G;if(!zt(o))return o;var fe=Ye(o);if(fe){if(G=V7(o),!X)return Mr(o,G)}else{var me=yr(o),_e=me==he||me==qe;if(bi(o))return jy(o,X);if(me==Ct||me==se||_e&&!$){if(G=te||_e?{}:n_(o),!X)return te?N7(o,a7(G,o)):F7(o,py(G,o))}else{if(!Pt[me])return $?o:{};G=Y7(o,me,X)}}V||(V=new Pn);var Re=V.get(o);if(Re)return Re;V.set(o,G),D_(o)?o.forEach(function(ze){G.add(gn(ze,d,b,ze,o,V))}):R_(o)&&o.forEach(function(ze,tt){G.set(tt,gn(ze,d,b,tt,o,V))});var $e=de?te?U0:H0:te?Nr:ar,Ze=fe?r:$e(o);return hn(Ze||o,function(ze,tt){Ze&&(tt=ze,ze=o[tt]),gu(G,tt,gn(ze,d,b,tt,o,V))}),G}function i7(o){var d=ar(o);return function(b){return my(b,o,d)}}function my(o,d,b){var A=b.length;if(o==null)return!A;for(o=Rt(o);A--;){var $=b[A],V=d[$],G=o[$];if(G===r&&!($ in o)||!V(G))return!1}return!0}function gy(o,d,b){if(typeof o!="function")throw new pn(s);return Su(function(){o.apply(r,b)},d)}function vu(o,d,b,A){var $=-1,V=Fc,G=!0,X=o.length,te=[],de=d.length;if(!X)return te;b&&(d=Lt(d,Yr(b))),A?(V=l0,G=!1):d.length>=a&&(V=cu,G=!1,d=new qi(d));e:for(;++$<X;){var fe=o[$],me=b==null?fe:b(fe);if(fe=A||fe!==0?fe:0,G&&me===me){for(var _e=de;_e--;)if(d[_e]===me)continue e;te.push(fe)}else V(d,me,A)||te.push(fe)}return te}var pi=Uy(ta),vy=Uy(E0,!0);function o7(o,d){var b=!0;return pi(o,function(A,$,V){return b=!!d(A,$,V),b}),b}function Jc(o,d,b){for(var A=-1,$=o.length;++A<$;){var V=o[A],G=d(V);if(G!=null&&(X===r?G===G&&!Kr(G):b(G,X)))var X=G,te=V}return te}function s7(o,d,b,A){var $=o.length;for(b=Ke(b),b<0&&(b=-b>$?0:$+b),A=A===r||A>$?$:Ke(A),A<0&&(A+=$),A=b>A?0:F_(A);b<A;)o[b++]=d;return o}function by(o,d){var b=[];return pi(o,function(A,$,V){d(A,$,V)&&b.push(A)}),b}function dr(o,d,b,A,$){var V=-1,G=o.length;for(b||(b=K7),$||($=[]);++V<G;){var X=o[V];d>0&&b(X)?d>1?dr(X,d-1,b,A,$):di($,X):A||($[$.length]=X)}return $}var C0=qy(),yy=qy(!0);function ta(o,d){return o&&C0(o,d,ar)}function E0(o,d){return o&&yy(o,d,ar)}function Qc(o,d){return ci(d,function(b){return Ra(o[b])})}function Vi(o,d){d=gi(d,o);for(var b=0,A=d.length;o!=null&&b<A;)o=o[na(d[b++])];return b&&b==A?o:r}function _y(o,d,b){var A=d(o);return Ye(o)?A:di(A,b(o))}function Sr(o){return o==null?o===r?Pr:Je:Hi&&Hi in Rt(o)?U7(o):r9(o)}function k0(o,d){return o>d}function u7(o,d){return o!=null&&kt.call(o,d)}function l7(o,d){return o!=null&&d in Rt(o)}function c7(o,d,b){return o>=br(d,b)&&o<er(d,b)}function T0(o,d,b){for(var A=b?l0:Fc,$=o[0].length,V=o.length,G=V,X=ae(V),te=1/0,de=[];G--;){var fe=o[G];G&&d&&(fe=Lt(fe,Yr(d))),te=br(fe.length,te),X[G]=!b&&(d||$>=120&&fe.length>=120)?new qi(G&&fe):r}fe=o[0];var me=-1,_e=X[0];e:for(;++me<$&&de.length<te;){var Re=fe[me],$e=d?d(Re):Re;if(Re=b||Re!==0?Re:0,!(_e?cu(_e,$e):A(de,$e,b))){for(G=V;--G;){var Ze=X[G];if(!(Ze?cu(Ze,$e):A(o[G],$e,b)))continue e}_e&&_e.push($e),de.push(Re)}}return de}function d7(o,d,b,A){return ta(o,function($,V,G){d(A,b($),V,G)}),A}function bu(o,d,b){d=gi(d,o),o=s_(o,d);var A=o==null?o:o[na(bn(d))];return A==null?r:Vr(A,o,b)}function wy(o){return Ut(o)&&Sr(o)==se}function f7(o){return Ut(o)&&Sr(o)==si}function h7(o){return Ut(o)&&Sr(o)==we}function yu(o,d,b,A,$){return o===d?!0:o==null||d==null||!Ut(o)&&!Ut(d)?o!==o&&d!==d:p7(o,d,b,A,yu,$)}function p7(o,d,b,A,$,V){var G=Ye(o),X=Ye(d),te=G?ce:yr(o),de=X?ce:yr(d);te=te==se?Ct:te,de=de==se?Ct:de;var fe=te==Ct,me=de==Ct,_e=te==de;if(_e&&bi(o)){if(!bi(d))return!1;G=!0,fe=!1}if(_e&&!fe)return V||(V=new Pn),G||Vo(o)?e_(o,d,b,A,$,V):B7(o,d,te,b,A,$,V);if(!(b&x)){var Re=fe&&kt.call(o,"__wrapped__"),$e=me&&kt.call(d,"__wrapped__");if(Re||$e){var Ze=Re?o.value():o,ze=$e?d.value():d;return V||(V=new Pn),$(Ze,ze,b,A,V)}}return _e?(V||(V=new Pn),H7(o,d,b,A,$,V)):!1}function m7(o){return Ut(o)&&yr(o)==oe}function O0(o,d,b,A){var $=b.length,V=$,G=!A;if(o==null)return!V;for(o=Rt(o);$--;){var X=b[$];if(G&&X[2]?X[1]!==o[X[0]]:!(X[0]in o))return!1}for(;++$<V;){X=b[$];var te=X[0],de=o[te],fe=X[1];if(G&&X[2]){if(de===r&&!(te in o))return!1}else{var me=new Pn;if(A)var _e=A(de,fe,te,o,d,me);if(!(_e===r?yu(fe,de,x|E,A,me):_e))return!1}}return!0}function xy(o){if(!zt(o)||Z7(o))return!1;var d=Ra(o)?mT:lr;return d.test(Gi(o))}function g7(o){return Ut(o)&&Sr(o)==We}function v7(o){return Ut(o)&&yr(o)==Ne}function b7(o){return Ut(o)&&gd(o.length)&&!!Ft[Sr(o)]}function Sy(o){return typeof o=="function"?o:o==null?Ir:typeof o=="object"?Ye(o)?ky(o[0],o[1]):Ey(o):W_(o)}function A0(o){if(!xu(o))return wT(o);var d=[];for(var b in Rt(o))kt.call(o,b)&&b!="constructor"&&d.push(b);return d}function y7(o){if(!zt(o))return t9(o);var d=xu(o),b=[];for(var A in o)A=="constructor"&&(d||!kt.call(o,A))||b.push(A);return b}function R0(o,d){return o<d}function Cy(o,d){var b=-1,A=Fr(o)?ae(o.length):[];return pi(o,function($,V,G){A[++b]=d($,V,G)}),A}function Ey(o){var d=W0(o);return d.length==1&&d[0][2]?i_(d[0][0],d[0][1]):function(b){return b===o||O0(b,o,d)}}function ky(o,d){return Y0(o)&&a_(d)?i_(na(o),d):function(b){var A=np(b,o);return A===r&&A===d?ap(b,o):yu(d,A,x|E)}}function ed(o,d,b,A,$){o!==d&&C0(d,function(V,G){if($||($=new Pn),zt(V))_7(o,d,G,b,ed,A,$);else{var X=A?A(K0(o,G),V,G+"",o,d,$):r;X===r&&(X=V),x0(o,G,X)}},Nr)}function _7(o,d,b,A,$,V,G){var X=K0(o,b),te=K0(d,b),de=G.get(te);if(de){x0(o,b,de);return}var fe=V?V(X,te,b+"",o,d,G):r,me=fe===r;if(me){var _e=Ye(te),Re=!_e&&bi(te),$e=!_e&&!Re&&Vo(te);fe=te,_e||Re||$e?Ye(X)?fe=X:Wt(X)?fe=Mr(X):Re?(me=!1,fe=jy(te,!0)):$e?(me=!1,fe=$y(te,!0)):fe=[]:Cu(te)||Ki(te)?(fe=X,Ki(X)?fe=N_(X):(!zt(X)||Ra(X))&&(fe=n_(te))):me=!1}me&&(G.set(te,fe),$(fe,te,A,V,G),G.delete(te)),x0(o,b,fe)}function Ty(o,d){var b=o.length;if(b)return d+=d<0?b:0,Aa(d,b)?o[d]:r}function Oy(o,d,b){d.length?d=Lt(d,function(V){return Ye(V)?function(G){return Vi(G,V.length===1?V[0]:V)}:V}):d=[Ir];var A=-1;d=Lt(d,Yr(je()));var $=Cy(o,function(V,G,X){var te=Lt(d,function(de){return de(V)});return{criteria:te,index:++A,value:V}});return Yk($,function(V,G){return M7(V,G,b)})}function w7(o,d){return Ay(o,d,function(b,A){return ap(o,A)})}function Ay(o,d,b){for(var A=-1,$=d.length,V={};++A<$;){var G=d[A],X=Vi(o,G);b(X,G)&&_u(V,gi(G,o),X)}return V}function x7(o){return function(d){return Vi(d,o)}}function P0(o,d,b,A){var $=A?Vk:No,V=-1,G=d.length,X=o;for(o===d&&(d=Mr(d)),b&&(X=Lt(o,Yr(b)));++V<G;)for(var te=0,de=d[V],fe=b?b(de):de;(te=$(X,fe,te,A))>-1;)X!==o&&qc.call(X,te,1),qc.call(o,te,1);return o}function Ry(o,d){for(var b=o?d.length:0,A=b-1;b--;){var $=d[b];if(b==A||$!==V){var V=$;Aa($)?qc.call(o,$,1):N0(o,$)}}return o}function D0(o,d){return o+Yc(cy()*(d-o+1))}function S7(o,d,b,A){for(var $=-1,V=er(Vc((d-o)/(b||1)),0),G=ae(V);V--;)G[A?V:++$]=o,o+=b;return G}function M0(o,d){var b="";if(!o||d<1||d>z)return b;do d%2&&(b+=o),d=Yc(d/2),d&&(o+=o);while(d);return b}function Qe(o,d){return X0(o_(o,d,Ir),o+"")}function C7(o){return hy(Yo(o))}function E7(o,d){var b=Yo(o);return cd(b,Wi(d,0,b.length))}function _u(o,d,b,A){if(!zt(o))return o;d=gi(d,o);for(var $=-1,V=d.length,G=V-1,X=o;X!=null&&++$<V;){var te=na(d[$]),de=b;if(te==="__proto__"||te==="constructor"||te==="prototype")return o;if($!=G){var fe=X[te];de=A?A(fe,te,X):r,de===r&&(de=zt(fe)?fe:Aa(d[$+1])?[]:{})}gu(X,te,de),X=X[te]}return o}var Py=Gc?function(o,d){return Gc.set(o,d),o}:Ir,k7=Wc?function(o,d){return Wc(o,"toString",{configurable:!0,enumerable:!1,value:op(d),writable:!0})}:Ir;function T7(o){return cd(Yo(o))}function vn(o,d,b){var A=-1,$=o.length;d<0&&(d=-d>$?0:$+d),b=b>$?$:b,b<0&&(b+=$),$=d>b?0:b-d>>>0,d>>>=0;for(var V=ae($);++A<$;)V[A]=o[A+d];return V}function O7(o,d){var b;return pi(o,function(A,$,V){return b=d(A,$,V),!b}),!!b}function td(o,d,b){var A=0,$=o==null?A:o.length;if(typeof d=="number"&&d===d&&$<=re){for(;A<$;){var V=A+$>>>1,G=o[V];G!==null&&!Kr(G)&&(b?G<=d:G<d)?A=V+1:$=V}return $}return F0(o,d,Ir,b)}function F0(o,d,b,A){var $=0,V=o==null?0:o.length;if(V===0)return 0;d=b(d);for(var G=d!==d,X=d===null,te=Kr(d),de=d===r;$<V;){var fe=Yc(($+V)/2),me=b(o[fe]),_e=me!==r,Re=me===null,$e=me===me,Ze=Kr(me);if(G)var ze=A||$e;else de?ze=$e&&(A||_e):X?ze=$e&&_e&&(A||!Re):te?ze=$e&&_e&&!Re&&(A||!Ze):Re||Ze?ze=!1:ze=A?me<=d:me<d;ze?$=fe+1:V=fe}return br(V,J)}function Dy(o,d){for(var b=-1,A=o.length,$=0,V=[];++b<A;){var G=o[b],X=d?d(G):G;if(!b||!Dn(X,te)){var te=X;V[$++]=G===0?0:G}}return V}function My(o){return typeof o=="number"?o:Kr(o)?H:+o}function Gr(o){if(typeof o=="string")return o;if(Ye(o))return Lt(o,Gr)+"";if(Kr(o))return dy?dy.call(o):"";var d=o+"";return d=="0"&&1/o==-1/0?"-0":d}function mi(o,d,b){var A=-1,$=Fc,V=o.length,G=!0,X=[],te=X;if(b)G=!1,$=l0;else if(V>=a){var de=d?null:$7(o);if(de)return Ic(de);G=!1,$=cu,te=new qi}else te=d?[]:X;e:for(;++A<V;){var fe=o[A],me=d?d(fe):fe;if(fe=b||fe!==0?fe:0,G&&me===me){for(var _e=te.length;_e--;)if(te[_e]===me)continue e;d&&te.push(me),X.push(fe)}else $(te,me,b)||(te!==X&&te.push(me),X.push(fe))}return X}function N0(o,d){return d=gi(d,o),o=s_(o,d),o==null||delete o[na(bn(d))]}function Fy(o,d,b,A){return _u(o,d,b(Vi(o,d)),A)}function rd(o,d,b,A){for(var $=o.length,V=A?$:-1;(A?V--:++V<$)&&d(o[V],V,o););return b?vn(o,A?0:V,A?V+1:$):vn(o,A?V+1:0,A?$:V)}function Ny(o,d){var b=o;return b instanceof ot&&(b=b.value()),c0(d,function(A,$){return $.func.apply($.thisArg,di([A],$.args))},b)}function I0(o,d,b){var A=o.length;if(A<2)return A?mi(o[0]):[];for(var $=-1,V=ae(A);++$<A;)for(var G=o[$],X=-1;++X<A;)X!=$&&(V[$]=vu(V[$]||G,o[X],d,b));return mi(dr(V,1),d,b)}function Iy(o,d,b){for(var A=-1,$=o.length,V=d.length,G={};++A<$;){var X=A<V?d[A]:r;b(G,o[A],X)}return G}function L0(o){return Wt(o)?o:[]}function j0(o){return typeof o=="function"?o:Ir}function gi(o,d){return Ye(o)?o:Y0(o,d)?[o]:d_(yt(o))}var A7=Qe;function vi(o,d,b){var A=o.length;return b=b===r?A:b,!d&&b>=A?o:vn(o,d,b)}var Ly=gT||function(o){return cr.clearTimeout(o)};function jy(o,d){if(d)return o.slice();var b=o.length,A=iy?iy(b):new o.constructor(b);return o.copy(A),A}function $0(o){var d=new o.constructor(o.byteLength);return new Hc(d).set(new Hc(o)),d}function R7(o,d){var b=d?$0(o.buffer):o.buffer;return new o.constructor(b,o.byteOffset,o.byteLength)}function P7(o){var d=new o.constructor(o.source,bt.exec(o));return d.lastIndex=o.lastIndex,d}function D7(o){return mu?Rt(mu.call(o)):{}}function $y(o,d){var b=d?$0(o.buffer):o.buffer;return new o.constructor(b,o.byteOffset,o.length)}function zy(o,d){if(o!==d){var b=o!==r,A=o===null,$=o===o,V=Kr(o),G=d!==r,X=d===null,te=d===d,de=Kr(d);if(!X&&!de&&!V&&o>d||V&&G&&te&&!X&&!de||A&&G&&te||!b&&te||!$)return 1;if(!A&&!V&&!de&&o<d||de&&b&&$&&!A&&!V||X&&b&&$||!G&&$||!te)return-1}return 0}function M7(o,d,b){for(var A=-1,$=o.criteria,V=d.criteria,G=$.length,X=b.length;++A<G;){var te=zy($[A],V[A]);if(te){if(A>=X)return te;var de=b[A];return te*(de=="desc"?-1:1)}}return o.index-d.index}function By(o,d,b,A){for(var $=-1,V=o.length,G=b.length,X=-1,te=d.length,de=er(V-G,0),fe=ae(te+de),me=!A;++X<te;)fe[X]=d[X];for(;++$<G;)(me||$<V)&&(fe[b[$]]=o[$]);for(;de--;)fe[X++]=o[$++];return fe}function Hy(o,d,b,A){for(var $=-1,V=o.length,G=-1,X=b.length,te=-1,de=d.length,fe=er(V-X,0),me=ae(fe+de),_e=!A;++$<fe;)me[$]=o[$];for(var Re=$;++te<de;)me[Re+te]=d[te];for(;++G<X;)(_e||$<V)&&(me[Re+b[G]]=o[$++]);return me}function Mr(o,d){var b=-1,A=o.length;for(d||(d=ae(A));++b<A;)d[b]=o[b];return d}function ra(o,d,b,A){var $=!b;b||(b={});for(var V=-1,G=d.length;++V<G;){var X=d[V],te=A?A(b[X],o[X],X,b,o):r;te===r&&(te=o[X]),$?ka(b,X,te):gu(b,X,te)}return b}function F7(o,d){return ra(o,V0(o),d)}function N7(o,d){return ra(o,t_(o),d)}function nd(o,d){return function(b,A){var $=Ye(b)?zk:n7,V=d?d():{};return $(b,o,je(A,2),V)}}function Uo(o){return Qe(function(d,b){var A=-1,$=b.length,V=$>1?b[$-1]:r,G=$>2?b[2]:r;for(V=o.length>3&&typeof V=="function"?($--,V):r,G&&Cr(b[0],b[1],G)&&(V=$<3?r:V,$=1),d=Rt(d);++A<$;){var X=b[A];X&&o(d,X,A,V)}return d})}function Uy(o,d){return function(b,A){if(b==null)return b;if(!Fr(b))return o(b,A);for(var $=b.length,V=d?$:-1,G=Rt(b);(d?V--:++V<$)&&A(G[V],V,G)!==!1;);return b}}function qy(o){return function(d,b,A){for(var $=-1,V=Rt(d),G=A(d),X=G.length;X--;){var te=G[o?X:++$];if(b(V[te],te,V)===!1)break}return d}}function I7(o,d,b){var A=d&k,$=wu(o);function V(){var G=this&&this!==cr&&this instanceof V?$:o;return G.apply(A?b:this,arguments)}return V}function Wy(o){return function(d){d=yt(d);var b=Io(d)?Rn(d):r,A=b?b[0]:d.charAt(0),$=b?vi(b,1).join(""):d.slice(1);return A[o]()+$}}function qo(o){return function(d){return c0(U_(H_(d).replace(kk,"")),o,"")}}function wu(o){return function(){var d=arguments;switch(d.length){case 0:return new o;case 1:return new o(d[0]);case 2:return new o(d[0],d[1]);case 3:return new o(d[0],d[1],d[2]);case 4:return new o(d[0],d[1],d[2],d[3]);case 5:return new o(d[0],d[1],d[2],d[3],d[4]);case 6:return new o(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new o(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var b=Ho(o.prototype),A=o.apply(b,d);return zt(A)?A:b}}function L7(o,d,b){var A=wu(o);function $(){for(var V=arguments.length,G=ae(V),X=V,te=Wo($);X--;)G[X]=arguments[X];var de=V<3&&G[0]!==te&&G[V-1]!==te?[]:fi(G,te);if(V-=de.length,V<b)return Xy(o,d,ad,$.placeholder,r,G,de,r,r,b-V);var fe=this&&this!==cr&&this instanceof $?A:o;return Vr(fe,this,G)}return $}function Vy(o){return function(d,b,A){var $=Rt(d);if(!Fr(d)){var V=je(b,3);d=ar(d),b=function(X){return V($[X],X,$)}}var G=o(d,b,A);return G>-1?$[V?d[G]:G]:r}}function Yy(o){return Oa(function(d){var b=d.length,A=b,$=mn.prototype.thru;for(o&&d.reverse();A--;){var V=d[A];if(typeof V!="function")throw new pn(s);if($&&!G&&ud(V)=="wrapper")var G=new mn([],!0)}for(A=G?A:b;++A<b;){V=d[A];var X=ud(V),te=X=="wrapper"?q0(V):r;te&&G0(te[0])&&te[1]==(_|S|h|R)&&!te[4].length&&te[9]==1?G=G[ud(te[0])].apply(G,te[3]):G=V.length==1&&G0(V)?G[X]():G.thru(V)}return function(){var de=arguments,fe=de[0];if(G&&de.length==1&&Ye(fe))return G.plant(fe).value();for(var me=0,_e=b?d[me].apply(this,de):fe;++me<b;)_e=d[me].call(this,_e);return _e}})}function ad(o,d,b,A,$,V,G,X,te,de){var fe=d&_,me=d&k,_e=d&T,Re=d&(S|f),$e=d&C,Ze=_e?r:wu(o);function ze(){for(var tt=arguments.length,lt=ae(tt),Xr=tt;Xr--;)lt[Xr]=arguments[Xr];if(Re)var Er=Wo(ze),Zr=Kk(lt,Er);if(A&&(lt=By(lt,A,$,Re)),V&&(lt=Hy(lt,V,G,Re)),tt-=Zr,Re&&tt<de){var Vt=fi(lt,Er);return Xy(o,d,ad,ze.placeholder,b,lt,Vt,X,te,de-tt)}var Mn=me?b:this,Da=_e?Mn[o]:o;return tt=lt.length,X?lt=n9(lt,X):$e&&tt>1&<.reverse(),fe&&te<tt&&(lt.length=te),this&&this!==cr&&this instanceof ze&&(Da=Ze||wu(Da)),Da.apply(Mn,lt)}return ze}function Gy(o,d){return function(b,A){return d7(b,o,d(A),{})}}function id(o,d){return function(b,A){var $;if(b===r&&A===r)return d;if(b!==r&&($=b),A!==r){if($===r)return A;typeof b=="string"||typeof A=="string"?(b=Gr(b),A=Gr(A)):(b=My(b),A=My(A)),$=o(b,A)}return $}}function z0(o){return Oa(function(d){return d=Lt(d,Yr(je())),Qe(function(b){var A=this;return o(d,function($){return Vr($,A,b)})})})}function od(o,d){d=d===r?" ":Gr(d);var b=d.length;if(b<2)return b?M0(d,o):d;var A=M0(d,Vc(o/Lo(d)));return Io(d)?vi(Rn(A),0,o).join(""):A.slice(0,o)}function j7(o,d,b,A){var $=d&k,V=wu(o);function G(){for(var X=-1,te=arguments.length,de=-1,fe=A.length,me=ae(fe+te),_e=this&&this!==cr&&this instanceof G?V:o;++de<fe;)me[de]=A[de];for(;te--;)me[de++]=arguments[++X];return Vr(_e,$?b:this,me)}return G}function Ky(o){return function(d,b,A){return A&&typeof A!="number"&&Cr(d,b,A)&&(b=A=r),d=Pa(d),b===r?(b=d,d=0):b=Pa(b),A=A===r?d<b?1:-1:Pa(A),S7(d,b,A,o)}}function sd(o){return function(d,b){return typeof d=="string"&&typeof b=="string"||(d=yn(d),b=yn(b)),o(d,b)}}function Xy(o,d,b,A,$,V,G,X,te,de){var fe=d&S,me=fe?G:r,_e=fe?r:G,Re=fe?V:r,$e=fe?r:V;d|=fe?h:v,d&=~(fe?v:h),d&w||(d&=-4);var Ze=[o,d,$,Re,me,$e,_e,X,te,de],ze=b.apply(r,Ze);return G0(o)&&u_(ze,Ze),ze.placeholder=A,l_(ze,o,d)}function B0(o){var d=Qt[o];return function(b,A){if(b=yn(b),A=A==null?0:br(Ke(A),292),A&&ly(b)){var $=(yt(b)+"e").split("e"),V=d($[0]+"e"+(+$[1]+A));return $=(yt(V)+"e").split("e"),+($[0]+"e"+(+$[1]-A))}return d(b)}}var $7=zo&&1/Ic(new zo([,-0]))[1]==I?function(o){return new zo(o)}:lp;function Zy(o){return function(d){var b=yr(d);return b==oe?v0(d):b==Ne?rT(d):Gk(d,o(d))}}function Ta(o,d,b,A,$,V,G,X){var te=d&T;if(!te&&typeof o!="function")throw new pn(s);var de=A?A.length:0;if(de||(d&=-97,A=$=r),G=G===r?G:er(Ke(G),0),X=X===r?X:Ke(X),de-=$?$.length:0,d&v){var fe=A,me=$;A=$=r}var _e=te?r:q0(o),Re=[o,d,b,A,$,fe,me,V,G,X];if(_e&&e9(Re,_e),o=Re[0],d=Re[1],b=Re[2],A=Re[3],$=Re[4],X=Re[9]=Re[9]===r?te?0:o.length:er(Re[9]-de,0),!X&&d&(S|f)&&(d&=-25),!d||d==k)var $e=I7(o,d,b);else d==S||d==f?$e=L7(o,d,X):(d==h||d==(k|h))&&!$.length?$e=j7(o,d,b,A):$e=ad.apply(r,Re);var Ze=_e?Py:u_;return l_(Ze($e,Re),o,d)}function Jy(o,d,b,A){return o===r||Dn(o,$o[b])&&!kt.call(A,b)?d:o}function Qy(o,d,b,A,$,V){return zt(o)&&zt(d)&&(V.set(d,o),ed(o,d,r,Qy,V),V.delete(d)),o}function z7(o){return Cu(o)?r:o}function e_(o,d,b,A,$,V){var G=b&x,X=o.length,te=d.length;if(X!=te&&!(G&&te>X))return!1;var de=V.get(o),fe=V.get(d);if(de&&fe)return de==d&&fe==o;var me=-1,_e=!0,Re=b&E?new qi:r;for(V.set(o,d),V.set(d,o);++me<X;){var $e=o[me],Ze=d[me];if(A)var ze=G?A(Ze,$e,me,d,o,V):A($e,Ze,me,o,d,V);if(ze!==r){if(ze)continue;_e=!1;break}if(Re){if(!d0(d,function(tt,lt){if(!cu(Re,lt)&&($e===tt||$($e,tt,b,A,V)))return Re.push(lt)})){_e=!1;break}}else if(!($e===Ze||$($e,Ze,b,A,V))){_e=!1;break}}return V.delete(o),V.delete(d),_e}function B7(o,d,b,A,$,V,G){switch(b){case ui:if(o.byteLength!=d.byteLength||o.byteOffset!=d.byteOffset)return!1;o=o.buffer,d=d.buffer;case si:return!(o.byteLength!=d.byteLength||!V(new Hc(o),new Hc(d)));case ye:case we:case De:return Dn(+o,+d);case Le:return o.name==d.name&&o.message==d.message;case We:case Oe:return o==d+"";case oe:var X=v0;case Ne:var te=A&x;if(X||(X=Ic),o.size!=d.size&&!te)return!1;var de=G.get(o);if(de)return de==d;A|=E,G.set(o,d);var fe=e_(X(o),X(d),A,$,V,G);return G.delete(o),fe;case at:if(mu)return mu.call(o)==mu.call(d)}return!1}function H7(o,d,b,A,$,V){var G=b&x,X=H0(o),te=X.length,de=H0(d),fe=de.length;if(te!=fe&&!G)return!1;for(var me=te;me--;){var _e=X[me];if(!(G?_e in d:kt.call(d,_e)))return!1}var Re=V.get(o),$e=V.get(d);if(Re&&$e)return Re==d&&$e==o;var Ze=!0;V.set(o,d),V.set(d,o);for(var ze=G;++me<te;){_e=X[me];var tt=o[_e],lt=d[_e];if(A)var Xr=G?A(lt,tt,_e,d,o,V):A(tt,lt,_e,o,d,V);if(!(Xr===r?tt===lt||$(tt,lt,b,A,V):Xr)){Ze=!1;break}ze||(ze=_e=="constructor")}if(Ze&&!ze){var Er=o.constructor,Zr=d.constructor;Er!=Zr&&"constructor"in o&&"constructor"in d&&!(typeof Er=="function"&&Er instanceof Er&&typeof Zr=="function"&&Zr instanceof Zr)&&(Ze=!1)}return V.delete(o),V.delete(d),Ze}function Oa(o){return X0(o_(o,r,m_),o+"")}function H0(o){return _y(o,ar,V0)}function U0(o){return _y(o,Nr,t_)}var q0=Gc?function(o){return Gc.get(o)}:lp;function ud(o){for(var d=o.name+"",b=Bo[d],A=kt.call(Bo,d)?b.length:0;A--;){var $=b[A],V=$.func;if(V==null||V==o)return $.name}return d}function Wo(o){var d=kt.call(W,"placeholder")?W:o;return d.placeholder}function je(){var o=W.iteratee||sp;return o=o===sp?Sy:o,arguments.length?o(arguments[0],arguments[1]):o}function ld(o,d){var b=o.__data__;return X7(d)?b[typeof d=="string"?"string":"hash"]:b.map}function W0(o){for(var d=ar(o),b=d.length;b--;){var A=d[b],$=o[A];d[b]=[A,$,a_($)]}return d}function Yi(o,d){var b=Qk(o,d);return xy(b)?b:r}function U7(o){var d=kt.call(o,Hi),b=o[Hi];try{o[Hi]=r;var A=!0}catch{}var $=zc.call(o);return A&&(d?o[Hi]=b:delete o[Hi]),$}var V0=y0?function(o){return o==null?[]:(o=Rt(o),ci(y0(o),function(d){return sy.call(o,d)}))}:cp,t_=y0?function(o){for(var d=[];o;)di(d,V0(o)),o=Uc(o);return d}:cp,yr=Sr;(_0&&yr(new _0(new ArrayBuffer(1)))!=ui||fu&&yr(new fu)!=oe||w0&&yr(w0.resolve())!=Et||zo&&yr(new zo)!=Ne||hu&&yr(new hu)!=Wr)&&(yr=function(o){var d=Sr(o),b=d==Ct?o.constructor:r,A=b?Gi(b):"";if(A)switch(A){case ET:return ui;case kT:return oe;case TT:return Et;case OT:return Ne;case AT:return Wr}return d});function q7(o,d,b){for(var A=-1,$=b.length;++A<$;){var V=b[A],G=V.size;switch(V.type){case"drop":o+=G;break;case"dropRight":d-=G;break;case"take":d=br(d,o+G);break;case"takeRight":o=er(o,d-G);break}}return{start:o,end:d}}function W7(o){var d=o.match(Qh);return d?d[1].split(K):[]}function r_(o,d,b){d=gi(d,o);for(var A=-1,$=d.length,V=!1;++A<$;){var G=na(d[A]);if(!(V=o!=null&&b(o,G)))break;o=o[G]}return V||++A!=$?V:($=o==null?0:o.length,!!$&&gd($)&&Aa(G,$)&&(Ye(o)||Ki(o)))}function V7(o){var d=o.length,b=new o.constructor(d);return d&&typeof o[0]=="string"&&kt.call(o,"index")&&(b.index=o.index,b.input=o.input),b}function n_(o){return typeof o.constructor=="function"&&!xu(o)?Ho(Uc(o)):{}}function Y7(o,d,b){var A=o.constructor;switch(d){case si:return $0(o);case ye:case we:return new A(+o);case ui:return R7(o,b);case Ao:case Ro:case Qs:case eu:case tu:case ru:case nu:case au:case iu:return $y(o,b);case oe:return new A;case De:case Oe:return new A(o);case We:return P7(o);case Ne:return new A;case at:return D7(o)}}function G7(o,d){var b=d.length;if(!b)return o;var A=b-1;return d[A]=(b>1?"& ":"")+d[A],d=d.join(b>2?", ":" "),o.replace(Jh,`{
|
|
37
|
+
*/var NP=xl.exports,l2;function IP(){return l2||(l2=1,function(e,t){(function(){var r,n="4.17.21",a=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,m="__lodash_placeholder__",p=1,g=2,y=4,x=1,E=2,k=1,T=2,w=4,S=8,f=16,h=32,v=64,_=128,R=256,C=512,P=30,M="...",U=800,L=16,N=1,j=2,O=3,I=1/0,z=9007199254740991,B=17976931348623157e292,H=NaN,q=4294967295,J=q-1,re=q>>>1,ne=[["ary",_],["bind",k],["bindKey",T],["curry",S],["curryRight",f],["flip",C],["partial",h],["partialRight",v],["rearg",R]],se="[object Arguments]",ce="[object Array]",le="[object AsyncFunction]",ye="[object Boolean]",we="[object Date]",Ee="[object DOMException]",Le="[object Error]",he="[object Function]",qe="[object GeneratorFunction]",oe="[object Map]",De="[object Number]",Je="[object Null]",Ct="[object Object]",Et="[object Promise]",Fe="[object Proxy]",We="[object RegExp]",Ne="[object Set]",Oe="[object String]",at="[object Symbol]",Pr="[object Undefined]",Wr="[object WeakMap]",Tc="[object WeakSet]",si="[object ArrayBuffer]",ui="[object DataView]",Ao="[object Float32Array]",Ro="[object Float64Array]",Qs="[object Int8Array]",eu="[object Int16Array]",tu="[object Int32Array]",ru="[object Uint8Array]",nu="[object Uint8ClampedArray]",au="[object Uint16Array]",iu="[object Uint32Array]",ou=/\b__p \+= '';/g,Oc=/\b(__p \+=) '' \+/g,li=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Po=/&(?:amp|lt|gt|quot|#39);/g,Do=/[&<>"']/g,Ac=RegExp(Po.source),Yh=RegExp(Do.source),Rc=/<%-([\s\S]+?)%>/g,Gh=/<%([\s\S]+?)%>/g,su=/<%=([\s\S]+?)%>/g,Pc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kh=/^\w*$/,Xh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mo=/[\\^$.*+?()[\]{}|]/g,Dc=RegExp(Mo.source),uu=/^\s+/,Zh=/\s/,Jh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Qh=/\{\n\/\* \[wrapped with (.+)\] \*/,K=/,? & /,ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xe=/[()=,{}\[\]\/\s]/,Ue=/\\(\\)?/g,ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,et=/^0b[01]+$/i,lr=/^\[object .+?Constructor\]$/,$t=/^0o[0-7]+$/i,Ht=/^(?:0|[1-9]\d*)$/,Dr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,An=/($^)/,Sa=/['\n\r\u2028\u2029\\]/g,Jt="\\ud800-\\udfff",lu="\\u0300-\\u036f",e0="\\ufe20-\\ufe2f",t0="\\u20d0-\\u20ff",xb=lu+e0+t0,Sb="\\u2700-\\u27bf",Cb="a-z\\xdf-\\xf6\\xf8-\\xff",hk="\\xac\\xb1\\xd7\\xf7",pk="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mk="\\u2000-\\u206f",gk=" \\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",Eb="A-Z\\xc0-\\xd6\\xd8-\\xde",kb="\\ufe0e\\ufe0f",Tb=hk+pk+mk+gk,r0="['’]",vk="["+Jt+"]",Ob="["+Tb+"]",Mc="["+xb+"]",Ab="\\d+",bk="["+Sb+"]",Rb="["+Cb+"]",Pb="[^"+Jt+Tb+Ab+Sb+Cb+Eb+"]",n0="\\ud83c[\\udffb-\\udfff]",yk="(?:"+Mc+"|"+n0+")",Db="[^"+Jt+"]",a0="(?:\\ud83c[\\udde6-\\uddff]){2}",i0="[\\ud800-\\udbff][\\udc00-\\udfff]",Fo="["+Eb+"]",Mb="\\u200d",Fb="(?:"+Rb+"|"+Pb+")",_k="(?:"+Fo+"|"+Pb+")",Nb="(?:"+r0+"(?:d|ll|m|re|s|t|ve))?",Ib="(?:"+r0+"(?:D|LL|M|RE|S|T|VE))?",Lb=yk+"?",jb="["+kb+"]?",wk="(?:"+Mb+"(?:"+[Db,a0,i0].join("|")+")"+jb+Lb+")*",xk="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$b=jb+Lb+wk,Ck="(?:"+[bk,a0,i0].join("|")+")"+$b,Ek="(?:"+[Db+Mc+"?",Mc,a0,i0,vk].join("|")+")",kk=RegExp(r0,"g"),Tk=RegExp(Mc,"g"),o0=RegExp(n0+"(?="+n0+")|"+Ek+$b,"g"),Ok=RegExp([Fo+"?"+Rb+"+"+Nb+"(?="+[Ob,Fo,"$"].join("|")+")",_k+"+"+Ib+"(?="+[Ob,Fo+Fb,"$"].join("|")+")",Fo+"?"+Fb+"+"+Nb,Fo+"+"+Ib,Sk,xk,Ab,Ck].join("|"),"g"),Ak=RegExp("["+Mb+Jt+xb+kb+"]"),Rk=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pk=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Dk=-1,Ft={};Ft[Ao]=Ft[Ro]=Ft[Qs]=Ft[eu]=Ft[tu]=Ft[ru]=Ft[nu]=Ft[au]=Ft[iu]=!0,Ft[se]=Ft[ce]=Ft[si]=Ft[ye]=Ft[ui]=Ft[we]=Ft[Le]=Ft[he]=Ft[oe]=Ft[De]=Ft[Ct]=Ft[We]=Ft[Ne]=Ft[Oe]=Ft[Wr]=!1;var Pt={};Pt[se]=Pt[ce]=Pt[si]=Pt[ui]=Pt[ye]=Pt[we]=Pt[Ao]=Pt[Ro]=Pt[Qs]=Pt[eu]=Pt[tu]=Pt[oe]=Pt[De]=Pt[Ct]=Pt[We]=Pt[Ne]=Pt[Oe]=Pt[at]=Pt[ru]=Pt[nu]=Pt[au]=Pt[iu]=!0,Pt[Le]=Pt[he]=Pt[Wr]=!1;var Mk={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Fk={"&":"&","<":"<",">":">",'"':""","'":"'"},Nk={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ik={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Lk=parseFloat,jk=parseInt,zb=typeof Un=="object"&&Un&&Un.Object===Object&&Un,$k=typeof self=="object"&&self&&self.Object===Object&&self,cr=zb||$k||Function("return this")(),s0=t&&!t.nodeType&&t,Bi=s0&&!0&&e&&!e.nodeType&&e,Bb=Bi&&Bi.exports===s0,u0=Bb&&zb.process,fn=function(){try{var Q=Bi&&Bi.require&&Bi.require("util").types;return Q||u0&&u0.binding&&u0.binding("util")}catch{}}(),Hb=fn&&fn.isArrayBuffer,Ub=fn&&fn.isDate,qb=fn&&fn.isMap,Wb=fn&&fn.isRegExp,Vb=fn&&fn.isSet,Yb=fn&&fn.isTypedArray;function Vr(Q,ue,ae){switch(ae.length){case 0:return Q.call(ue);case 1:return Q.call(ue,ae[0]);case 2:return Q.call(ue,ae[0],ae[1]);case 3:return Q.call(ue,ae[0],ae[1],ae[2])}return Q.apply(ue,ae)}function zk(Q,ue,ae,Se){for(var Ve=-1,gt=Q==null?0:Q.length;++Ve<gt;){var Qt=Q[Ve];ue(Se,Qt,ae(Qt),Q)}return Se}function hn(Q,ue){for(var ae=-1,Se=Q==null?0:Q.length;++ae<Se&&ue(Q[ae],ae,Q)!==!1;);return Q}function Bk(Q,ue){for(var ae=Q==null?0:Q.length;ae--&&ue(Q[ae],ae,Q)!==!1;);return Q}function Gb(Q,ue){for(var ae=-1,Se=Q==null?0:Q.length;++ae<Se;)if(!ue(Q[ae],ae,Q))return!1;return!0}function ci(Q,ue){for(var ae=-1,Se=Q==null?0:Q.length,Ve=0,gt=[];++ae<Se;){var Qt=Q[ae];ue(Qt,ae,Q)&&(gt[Ve++]=Qt)}return gt}function Fc(Q,ue){var ae=Q==null?0:Q.length;return!!ae&&No(Q,ue,0)>-1}function l0(Q,ue,ae){for(var Se=-1,Ve=Q==null?0:Q.length;++Se<Ve;)if(ae(ue,Q[Se]))return!0;return!1}function Lt(Q,ue){for(var ae=-1,Se=Q==null?0:Q.length,Ve=Array(Se);++ae<Se;)Ve[ae]=ue(Q[ae],ae,Q);return Ve}function di(Q,ue){for(var ae=-1,Se=ue.length,Ve=Q.length;++ae<Se;)Q[Ve+ae]=ue[ae];return Q}function c0(Q,ue,ae,Se){var Ve=-1,gt=Q==null?0:Q.length;for(Se&>&&(ae=Q[++Ve]);++Ve<gt;)ae=ue(ae,Q[Ve],Ve,Q);return ae}function Hk(Q,ue,ae,Se){var Ve=Q==null?0:Q.length;for(Se&&Ve&&(ae=Q[--Ve]);Ve--;)ae=ue(ae,Q[Ve],Ve,Q);return ae}function d0(Q,ue){for(var ae=-1,Se=Q==null?0:Q.length;++ae<Se;)if(ue(Q[ae],ae,Q))return!0;return!1}var Uk=f0("length");function qk(Q){return Q.split("")}function Wk(Q){return Q.match(ge)||[]}function Kb(Q,ue,ae){var Se;return ae(Q,function(Ve,gt,Qt){if(ue(Ve,gt,Qt))return Se=gt,!1}),Se}function Nc(Q,ue,ae,Se){for(var Ve=Q.length,gt=ae+(Se?1:-1);Se?gt--:++gt<Ve;)if(ue(Q[gt],gt,Q))return gt;return-1}function No(Q,ue,ae){return ue===ue?nT(Q,ue,ae):Nc(Q,Xb,ae)}function Vk(Q,ue,ae,Se){for(var Ve=ae-1,gt=Q.length;++Ve<gt;)if(Se(Q[Ve],ue))return Ve;return-1}function Xb(Q){return Q!==Q}function Zb(Q,ue){var ae=Q==null?0:Q.length;return ae?p0(Q,ue)/ae:H}function f0(Q){return function(ue){return ue==null?r:ue[Q]}}function h0(Q){return function(ue){return Q==null?r:Q[ue]}}function Jb(Q,ue,ae,Se,Ve){return Ve(Q,function(gt,Qt,Rt){ae=Se?(Se=!1,gt):ue(ae,gt,Qt,Rt)}),ae}function Yk(Q,ue){var ae=Q.length;for(Q.sort(ue);ae--;)Q[ae]=Q[ae].value;return Q}function p0(Q,ue){for(var ae,Se=-1,Ve=Q.length;++Se<Ve;){var gt=ue(Q[Se]);gt!==r&&(ae=ae===r?gt:ae+gt)}return ae}function m0(Q,ue){for(var ae=-1,Se=Array(Q);++ae<Q;)Se[ae]=ue(ae);return Se}function Gk(Q,ue){return Lt(ue,function(ae){return[ae,Q[ae]]})}function Qb(Q){return Q&&Q.slice(0,ny(Q)+1).replace(uu,"")}function Yr(Q){return function(ue){return Q(ue)}}function g0(Q,ue){return Lt(ue,function(ae){return Q[ae]})}function cu(Q,ue){return Q.has(ue)}function ey(Q,ue){for(var ae=-1,Se=Q.length;++ae<Se&&No(ue,Q[ae],0)>-1;);return ae}function ty(Q,ue){for(var ae=Q.length;ae--&&No(ue,Q[ae],0)>-1;);return ae}function Kk(Q,ue){for(var ae=Q.length,Se=0;ae--;)Q[ae]===ue&&++Se;return Se}var Xk=h0(Mk),Zk=h0(Fk);function Jk(Q){return"\\"+Ik[Q]}function Qk(Q,ue){return Q==null?r:Q[ue]}function Io(Q){return Ak.test(Q)}function eT(Q){return Rk.test(Q)}function tT(Q){for(var ue,ae=[];!(ue=Q.next()).done;)ae.push(ue.value);return ae}function v0(Q){var ue=-1,ae=Array(Q.size);return Q.forEach(function(Se,Ve){ae[++ue]=[Ve,Se]}),ae}function ry(Q,ue){return function(ae){return Q(ue(ae))}}function fi(Q,ue){for(var ae=-1,Se=Q.length,Ve=0,gt=[];++ae<Se;){var Qt=Q[ae];(Qt===ue||Qt===m)&&(Q[ae]=m,gt[Ve++]=ae)}return gt}function Ic(Q){var ue=-1,ae=Array(Q.size);return Q.forEach(function(Se){ae[++ue]=Se}),ae}function rT(Q){var ue=-1,ae=Array(Q.size);return Q.forEach(function(Se){ae[++ue]=[Se,Se]}),ae}function nT(Q,ue,ae){for(var Se=ae-1,Ve=Q.length;++Se<Ve;)if(Q[Se]===ue)return Se;return-1}function aT(Q,ue,ae){for(var Se=ae+1;Se--;)if(Q[Se]===ue)return Se;return Se}function Lo(Q){return Io(Q)?oT(Q):Uk(Q)}function Rn(Q){return Io(Q)?sT(Q):qk(Q)}function ny(Q){for(var ue=Q.length;ue--&&Zh.test(Q.charAt(ue)););return ue}var iT=h0(Nk);function oT(Q){for(var ue=o0.lastIndex=0;o0.test(Q);)++ue;return ue}function sT(Q){return Q.match(o0)||[]}function uT(Q){return Q.match(Ok)||[]}var lT=function Q(ue){ue=ue==null?cr:jo.defaults(cr.Object(),ue,jo.pick(cr,Pk));var ae=ue.Array,Se=ue.Date,Ve=ue.Error,gt=ue.Function,Qt=ue.Math,Rt=ue.Object,b0=ue.RegExp,cT=ue.String,pn=ue.TypeError,Lc=ae.prototype,dT=gt.prototype,$o=Rt.prototype,jc=ue["__core-js_shared__"],$c=dT.toString,kt=$o.hasOwnProperty,fT=0,ay=function(){var o=/[^.]+$/.exec(jc&&jc.keys&&jc.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),zc=$o.toString,hT=$c.call(Rt),pT=cr._,mT=b0("^"+$c.call(kt).replace(Mo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bc=Bb?ue.Buffer:r,hi=ue.Symbol,Hc=ue.Uint8Array,iy=Bc?Bc.allocUnsafe:r,Uc=ry(Rt.getPrototypeOf,Rt),oy=Rt.create,sy=$o.propertyIsEnumerable,qc=Lc.splice,uy=hi?hi.isConcatSpreadable:r,du=hi?hi.iterator:r,Hi=hi?hi.toStringTag:r,Wc=function(){try{var o=Yi(Rt,"defineProperty");return o({},"",{}),o}catch{}}(),gT=ue.clearTimeout!==cr.clearTimeout&&ue.clearTimeout,vT=Se&&Se.now!==cr.Date.now&&Se.now,bT=ue.setTimeout!==cr.setTimeout&&ue.setTimeout,Vc=Qt.ceil,Yc=Qt.floor,y0=Rt.getOwnPropertySymbols,yT=Bc?Bc.isBuffer:r,ly=ue.isFinite,_T=Lc.join,wT=ry(Rt.keys,Rt),er=Qt.max,br=Qt.min,xT=Se.now,ST=ue.parseInt,cy=Qt.random,CT=Lc.reverse,_0=Yi(ue,"DataView"),fu=Yi(ue,"Map"),w0=Yi(ue,"Promise"),zo=Yi(ue,"Set"),hu=Yi(ue,"WeakMap"),pu=Yi(Rt,"create"),Gc=hu&&new hu,Bo={},ET=Gi(_0),kT=Gi(fu),TT=Gi(w0),OT=Gi(zo),AT=Gi(hu),Kc=hi?hi.prototype:r,mu=Kc?Kc.valueOf:r,dy=Kc?Kc.toString:r;function W(o){if(Ut(o)&&!Ye(o)&&!(o instanceof ot)){if(o instanceof mn)return o;if(kt.call(o,"__wrapped__"))return f_(o)}return new mn(o)}var Ho=function(){function o(){}return function(d){if(!zt(d))return{};if(oy)return oy(d);o.prototype=d;var b=new o;return o.prototype=r,b}}();function Xc(){}function mn(o,d){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=r}W.templateSettings={escape:Rc,evaluate:Gh,interpolate:su,variable:"",imports:{_:W}},W.prototype=Xc.prototype,W.prototype.constructor=W,mn.prototype=Ho(Xc.prototype),mn.prototype.constructor=mn;function ot(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function RT(){var o=new ot(this.__wrapped__);return o.__actions__=Mr(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=Mr(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=Mr(this.__views__),o}function PT(){if(this.__filtered__){var o=new ot(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function DT(){var o=this.__wrapped__.value(),d=this.__dir__,b=Ye(o),A=d<0,$=b?o.length:0,V=q7(0,$,this.__views__),G=V.start,Z=V.end,te=Z-G,de=A?Z:G-1,fe=this.__iteratees__,me=fe.length,_e=0,Re=br(te,this.__takeCount__);if(!b||!A&&$==te&&Re==te)return Ny(o,this.__actions__);var $e=[];e:for(;te--&&_e<Re;){de+=d;for(var Ze=-1,ze=o[de];++Ze<me;){var tt=fe[Ze],lt=tt.iteratee,Xr=tt.type,Er=lt(ze);if(Xr==j)ze=Er;else if(!Er){if(Xr==N)continue e;break e}}$e[_e++]=ze}return $e}ot.prototype=Ho(Xc.prototype),ot.prototype.constructor=ot;function Ui(o){var d=-1,b=o==null?0:o.length;for(this.clear();++d<b;){var A=o[d];this.set(A[0],A[1])}}function MT(){this.__data__=pu?pu(null):{},this.size=0}function FT(o){var d=this.has(o)&&delete this.__data__[o];return this.size-=d?1:0,d}function NT(o){var d=this.__data__;if(pu){var b=d[o];return b===u?r:b}return kt.call(d,o)?d[o]:r}function IT(o){var d=this.__data__;return pu?d[o]!==r:kt.call(d,o)}function LT(o,d){var b=this.__data__;return this.size+=this.has(o)?0:1,b[o]=pu&&d===r?u:d,this}Ui.prototype.clear=MT,Ui.prototype.delete=FT,Ui.prototype.get=NT,Ui.prototype.has=IT,Ui.prototype.set=LT;function Ca(o){var d=-1,b=o==null?0:o.length;for(this.clear();++d<b;){var A=o[d];this.set(A[0],A[1])}}function jT(){this.__data__=[],this.size=0}function $T(o){var d=this.__data__,b=Zc(d,o);if(b<0)return!1;var A=d.length-1;return b==A?d.pop():qc.call(d,b,1),--this.size,!0}function zT(o){var d=this.__data__,b=Zc(d,o);return b<0?r:d[b][1]}function BT(o){return Zc(this.__data__,o)>-1}function HT(o,d){var b=this.__data__,A=Zc(b,o);return A<0?(++this.size,b.push([o,d])):b[A][1]=d,this}Ca.prototype.clear=jT,Ca.prototype.delete=$T,Ca.prototype.get=zT,Ca.prototype.has=BT,Ca.prototype.set=HT;function Ea(o){var d=-1,b=o==null?0:o.length;for(this.clear();++d<b;){var A=o[d];this.set(A[0],A[1])}}function UT(){this.size=0,this.__data__={hash:new Ui,map:new(fu||Ca),string:new Ui}}function qT(o){var d=ld(this,o).delete(o);return this.size-=d?1:0,d}function WT(o){return ld(this,o).get(o)}function VT(o){return ld(this,o).has(o)}function YT(o,d){var b=ld(this,o),A=b.size;return b.set(o,d),this.size+=b.size==A?0:1,this}Ea.prototype.clear=UT,Ea.prototype.delete=qT,Ea.prototype.get=WT,Ea.prototype.has=VT,Ea.prototype.set=YT;function qi(o){var d=-1,b=o==null?0:o.length;for(this.__data__=new Ea;++d<b;)this.add(o[d])}function GT(o){return this.__data__.set(o,u),this}function KT(o){return this.__data__.has(o)}qi.prototype.add=qi.prototype.push=GT,qi.prototype.has=KT;function Pn(o){var d=this.__data__=new Ca(o);this.size=d.size}function XT(){this.__data__=new Ca,this.size=0}function ZT(o){var d=this.__data__,b=d.delete(o);return this.size=d.size,b}function JT(o){return this.__data__.get(o)}function QT(o){return this.__data__.has(o)}function e7(o,d){var b=this.__data__;if(b instanceof Ca){var A=b.__data__;if(!fu||A.length<a-1)return A.push([o,d]),this.size=++b.size,this;b=this.__data__=new Ea(A)}return b.set(o,d),this.size=b.size,this}Pn.prototype.clear=XT,Pn.prototype.delete=ZT,Pn.prototype.get=JT,Pn.prototype.has=QT,Pn.prototype.set=e7;function fy(o,d){var b=Ye(o),A=!b&&Ki(o),$=!b&&!A&&bi(o),V=!b&&!A&&!$&&Vo(o),G=b||A||$||V,Z=G?m0(o.length,cT):[],te=Z.length;for(var de in o)(d||kt.call(o,de))&&!(G&&(de=="length"||$&&(de=="offset"||de=="parent")||V&&(de=="buffer"||de=="byteLength"||de=="byteOffset")||Aa(de,te)))&&Z.push(de);return Z}function hy(o){var d=o.length;return d?o[D0(0,d-1)]:r}function t7(o,d){return cd(Mr(o),Wi(d,0,o.length))}function r7(o){return cd(Mr(o))}function x0(o,d,b){(b!==r&&!Dn(o[d],b)||b===r&&!(d in o))&&ka(o,d,b)}function gu(o,d,b){var A=o[d];(!(kt.call(o,d)&&Dn(A,b))||b===r&&!(d in o))&&ka(o,d,b)}function Zc(o,d){for(var b=o.length;b--;)if(Dn(o[b][0],d))return b;return-1}function n7(o,d,b,A){return pi(o,function($,V,G){d(A,$,b($),G)}),A}function py(o,d){return o&&ra(d,ar(d),o)}function a7(o,d){return o&&ra(d,Nr(d),o)}function ka(o,d,b){d=="__proto__"&&Wc?Wc(o,d,{configurable:!0,enumerable:!0,value:b,writable:!0}):o[d]=b}function S0(o,d){for(var b=-1,A=d.length,$=ae(A),V=o==null;++b<A;)$[b]=V?r:np(o,d[b]);return $}function Wi(o,d,b){return o===o&&(b!==r&&(o=o<=b?o:b),d!==r&&(o=o>=d?o:d)),o}function gn(o,d,b,A,$,V){var G,Z=d&p,te=d&g,de=d&y;if(b&&(G=$?b(o,A,$,V):b(o)),G!==r)return G;if(!zt(o))return o;var fe=Ye(o);if(fe){if(G=V7(o),!Z)return Mr(o,G)}else{var me=yr(o),_e=me==he||me==qe;if(bi(o))return jy(o,Z);if(me==Ct||me==se||_e&&!$){if(G=te||_e?{}:n_(o),!Z)return te?N7(o,a7(G,o)):F7(o,py(G,o))}else{if(!Pt[me])return $?o:{};G=Y7(o,me,Z)}}V||(V=new Pn);var Re=V.get(o);if(Re)return Re;V.set(o,G),D_(o)?o.forEach(function(ze){G.add(gn(ze,d,b,ze,o,V))}):R_(o)&&o.forEach(function(ze,tt){G.set(tt,gn(ze,d,b,tt,o,V))});var $e=de?te?U0:H0:te?Nr:ar,Ze=fe?r:$e(o);return hn(Ze||o,function(ze,tt){Ze&&(tt=ze,ze=o[tt]),gu(G,tt,gn(ze,d,b,tt,o,V))}),G}function i7(o){var d=ar(o);return function(b){return my(b,o,d)}}function my(o,d,b){var A=b.length;if(o==null)return!A;for(o=Rt(o);A--;){var $=b[A],V=d[$],G=o[$];if(G===r&&!($ in o)||!V(G))return!1}return!0}function gy(o,d,b){if(typeof o!="function")throw new pn(s);return Su(function(){o.apply(r,b)},d)}function vu(o,d,b,A){var $=-1,V=Fc,G=!0,Z=o.length,te=[],de=d.length;if(!Z)return te;b&&(d=Lt(d,Yr(b))),A?(V=l0,G=!1):d.length>=a&&(V=cu,G=!1,d=new qi(d));e:for(;++$<Z;){var fe=o[$],me=b==null?fe:b(fe);if(fe=A||fe!==0?fe:0,G&&me===me){for(var _e=de;_e--;)if(d[_e]===me)continue e;te.push(fe)}else V(d,me,A)||te.push(fe)}return te}var pi=Uy(ta),vy=Uy(E0,!0);function o7(o,d){var b=!0;return pi(o,function(A,$,V){return b=!!d(A,$,V),b}),b}function Jc(o,d,b){for(var A=-1,$=o.length;++A<$;){var V=o[A],G=d(V);if(G!=null&&(Z===r?G===G&&!Kr(G):b(G,Z)))var Z=G,te=V}return te}function s7(o,d,b,A){var $=o.length;for(b=Ke(b),b<0&&(b=-b>$?0:$+b),A=A===r||A>$?$:Ke(A),A<0&&(A+=$),A=b>A?0:F_(A);b<A;)o[b++]=d;return o}function by(o,d){var b=[];return pi(o,function(A,$,V){d(A,$,V)&&b.push(A)}),b}function dr(o,d,b,A,$){var V=-1,G=o.length;for(b||(b=K7),$||($=[]);++V<G;){var Z=o[V];d>0&&b(Z)?d>1?dr(Z,d-1,b,A,$):di($,Z):A||($[$.length]=Z)}return $}var C0=qy(),yy=qy(!0);function ta(o,d){return o&&C0(o,d,ar)}function E0(o,d){return o&&yy(o,d,ar)}function Qc(o,d){return ci(d,function(b){return Ra(o[b])})}function Vi(o,d){d=gi(d,o);for(var b=0,A=d.length;o!=null&&b<A;)o=o[na(d[b++])];return b&&b==A?o:r}function _y(o,d,b){var A=d(o);return Ye(o)?A:di(A,b(o))}function Sr(o){return o==null?o===r?Pr:Je:Hi&&Hi in Rt(o)?U7(o):r9(o)}function k0(o,d){return o>d}function u7(o,d){return o!=null&&kt.call(o,d)}function l7(o,d){return o!=null&&d in Rt(o)}function c7(o,d,b){return o>=br(d,b)&&o<er(d,b)}function T0(o,d,b){for(var A=b?l0:Fc,$=o[0].length,V=o.length,G=V,Z=ae(V),te=1/0,de=[];G--;){var fe=o[G];G&&d&&(fe=Lt(fe,Yr(d))),te=br(fe.length,te),Z[G]=!b&&(d||$>=120&&fe.length>=120)?new qi(G&&fe):r}fe=o[0];var me=-1,_e=Z[0];e:for(;++me<$&&de.length<te;){var Re=fe[me],$e=d?d(Re):Re;if(Re=b||Re!==0?Re:0,!(_e?cu(_e,$e):A(de,$e,b))){for(G=V;--G;){var Ze=Z[G];if(!(Ze?cu(Ze,$e):A(o[G],$e,b)))continue e}_e&&_e.push($e),de.push(Re)}}return de}function d7(o,d,b,A){return ta(o,function($,V,G){d(A,b($),V,G)}),A}function bu(o,d,b){d=gi(d,o),o=s_(o,d);var A=o==null?o:o[na(bn(d))];return A==null?r:Vr(A,o,b)}function wy(o){return Ut(o)&&Sr(o)==se}function f7(o){return Ut(o)&&Sr(o)==si}function h7(o){return Ut(o)&&Sr(o)==we}function yu(o,d,b,A,$){return o===d?!0:o==null||d==null||!Ut(o)&&!Ut(d)?o!==o&&d!==d:p7(o,d,b,A,yu,$)}function p7(o,d,b,A,$,V){var G=Ye(o),Z=Ye(d),te=G?ce:yr(o),de=Z?ce:yr(d);te=te==se?Ct:te,de=de==se?Ct:de;var fe=te==Ct,me=de==Ct,_e=te==de;if(_e&&bi(o)){if(!bi(d))return!1;G=!0,fe=!1}if(_e&&!fe)return V||(V=new Pn),G||Vo(o)?e_(o,d,b,A,$,V):B7(o,d,te,b,A,$,V);if(!(b&x)){var Re=fe&&kt.call(o,"__wrapped__"),$e=me&&kt.call(d,"__wrapped__");if(Re||$e){var Ze=Re?o.value():o,ze=$e?d.value():d;return V||(V=new Pn),$(Ze,ze,b,A,V)}}return _e?(V||(V=new Pn),H7(o,d,b,A,$,V)):!1}function m7(o){return Ut(o)&&yr(o)==oe}function O0(o,d,b,A){var $=b.length,V=$,G=!A;if(o==null)return!V;for(o=Rt(o);$--;){var Z=b[$];if(G&&Z[2]?Z[1]!==o[Z[0]]:!(Z[0]in o))return!1}for(;++$<V;){Z=b[$];var te=Z[0],de=o[te],fe=Z[1];if(G&&Z[2]){if(de===r&&!(te in o))return!1}else{var me=new Pn;if(A)var _e=A(de,fe,te,o,d,me);if(!(_e===r?yu(fe,de,x|E,A,me):_e))return!1}}return!0}function xy(o){if(!zt(o)||Z7(o))return!1;var d=Ra(o)?mT:lr;return d.test(Gi(o))}function g7(o){return Ut(o)&&Sr(o)==We}function v7(o){return Ut(o)&&yr(o)==Ne}function b7(o){return Ut(o)&&gd(o.length)&&!!Ft[Sr(o)]}function Sy(o){return typeof o=="function"?o:o==null?Ir:typeof o=="object"?Ye(o)?ky(o[0],o[1]):Ey(o):W_(o)}function A0(o){if(!xu(o))return wT(o);var d=[];for(var b in Rt(o))kt.call(o,b)&&b!="constructor"&&d.push(b);return d}function y7(o){if(!zt(o))return t9(o);var d=xu(o),b=[];for(var A in o)A=="constructor"&&(d||!kt.call(o,A))||b.push(A);return b}function R0(o,d){return o<d}function Cy(o,d){var b=-1,A=Fr(o)?ae(o.length):[];return pi(o,function($,V,G){A[++b]=d($,V,G)}),A}function Ey(o){var d=W0(o);return d.length==1&&d[0][2]?i_(d[0][0],d[0][1]):function(b){return b===o||O0(b,o,d)}}function ky(o,d){return Y0(o)&&a_(d)?i_(na(o),d):function(b){var A=np(b,o);return A===r&&A===d?ap(b,o):yu(d,A,x|E)}}function ed(o,d,b,A,$){o!==d&&C0(d,function(V,G){if($||($=new Pn),zt(V))_7(o,d,G,b,ed,A,$);else{var Z=A?A(K0(o,G),V,G+"",o,d,$):r;Z===r&&(Z=V),x0(o,G,Z)}},Nr)}function _7(o,d,b,A,$,V,G){var Z=K0(o,b),te=K0(d,b),de=G.get(te);if(de){x0(o,b,de);return}var fe=V?V(Z,te,b+"",o,d,G):r,me=fe===r;if(me){var _e=Ye(te),Re=!_e&&bi(te),$e=!_e&&!Re&&Vo(te);fe=te,_e||Re||$e?Ye(Z)?fe=Z:Wt(Z)?fe=Mr(Z):Re?(me=!1,fe=jy(te,!0)):$e?(me=!1,fe=$y(te,!0)):fe=[]:Cu(te)||Ki(te)?(fe=Z,Ki(Z)?fe=N_(Z):(!zt(Z)||Ra(Z))&&(fe=n_(te))):me=!1}me&&(G.set(te,fe),$(fe,te,A,V,G),G.delete(te)),x0(o,b,fe)}function Ty(o,d){var b=o.length;if(b)return d+=d<0?b:0,Aa(d,b)?o[d]:r}function Oy(o,d,b){d.length?d=Lt(d,function(V){return Ye(V)?function(G){return Vi(G,V.length===1?V[0]:V)}:V}):d=[Ir];var A=-1;d=Lt(d,Yr(je()));var $=Cy(o,function(V,G,Z){var te=Lt(d,function(de){return de(V)});return{criteria:te,index:++A,value:V}});return Yk($,function(V,G){return M7(V,G,b)})}function w7(o,d){return Ay(o,d,function(b,A){return ap(o,A)})}function Ay(o,d,b){for(var A=-1,$=d.length,V={};++A<$;){var G=d[A],Z=Vi(o,G);b(Z,G)&&_u(V,gi(G,o),Z)}return V}function x7(o){return function(d){return Vi(d,o)}}function P0(o,d,b,A){var $=A?Vk:No,V=-1,G=d.length,Z=o;for(o===d&&(d=Mr(d)),b&&(Z=Lt(o,Yr(b)));++V<G;)for(var te=0,de=d[V],fe=b?b(de):de;(te=$(Z,fe,te,A))>-1;)Z!==o&&qc.call(Z,te,1),qc.call(o,te,1);return o}function Ry(o,d){for(var b=o?d.length:0,A=b-1;b--;){var $=d[b];if(b==A||$!==V){var V=$;Aa($)?qc.call(o,$,1):N0(o,$)}}return o}function D0(o,d){return o+Yc(cy()*(d-o+1))}function S7(o,d,b,A){for(var $=-1,V=er(Vc((d-o)/(b||1)),0),G=ae(V);V--;)G[A?V:++$]=o,o+=b;return G}function M0(o,d){var b="";if(!o||d<1||d>z)return b;do d%2&&(b+=o),d=Yc(d/2),d&&(o+=o);while(d);return b}function Qe(o,d){return X0(o_(o,d,Ir),o+"")}function C7(o){return hy(Yo(o))}function E7(o,d){var b=Yo(o);return cd(b,Wi(d,0,b.length))}function _u(o,d,b,A){if(!zt(o))return o;d=gi(d,o);for(var $=-1,V=d.length,G=V-1,Z=o;Z!=null&&++$<V;){var te=na(d[$]),de=b;if(te==="__proto__"||te==="constructor"||te==="prototype")return o;if($!=G){var fe=Z[te];de=A?A(fe,te,Z):r,de===r&&(de=zt(fe)?fe:Aa(d[$+1])?[]:{})}gu(Z,te,de),Z=Z[te]}return o}var Py=Gc?function(o,d){return Gc.set(o,d),o}:Ir,k7=Wc?function(o,d){return Wc(o,"toString",{configurable:!0,enumerable:!1,value:op(d),writable:!0})}:Ir;function T7(o){return cd(Yo(o))}function vn(o,d,b){var A=-1,$=o.length;d<0&&(d=-d>$?0:$+d),b=b>$?$:b,b<0&&(b+=$),$=d>b?0:b-d>>>0,d>>>=0;for(var V=ae($);++A<$;)V[A]=o[A+d];return V}function O7(o,d){var b;return pi(o,function(A,$,V){return b=d(A,$,V),!b}),!!b}function td(o,d,b){var A=0,$=o==null?A:o.length;if(typeof d=="number"&&d===d&&$<=re){for(;A<$;){var V=A+$>>>1,G=o[V];G!==null&&!Kr(G)&&(b?G<=d:G<d)?A=V+1:$=V}return $}return F0(o,d,Ir,b)}function F0(o,d,b,A){var $=0,V=o==null?0:o.length;if(V===0)return 0;d=b(d);for(var G=d!==d,Z=d===null,te=Kr(d),de=d===r;$<V;){var fe=Yc(($+V)/2),me=b(o[fe]),_e=me!==r,Re=me===null,$e=me===me,Ze=Kr(me);if(G)var ze=A||$e;else de?ze=$e&&(A||_e):Z?ze=$e&&_e&&(A||!Re):te?ze=$e&&_e&&!Re&&(A||!Ze):Re||Ze?ze=!1:ze=A?me<=d:me<d;ze?$=fe+1:V=fe}return br(V,J)}function Dy(o,d){for(var b=-1,A=o.length,$=0,V=[];++b<A;){var G=o[b],Z=d?d(G):G;if(!b||!Dn(Z,te)){var te=Z;V[$++]=G===0?0:G}}return V}function My(o){return typeof o=="number"?o:Kr(o)?H:+o}function Gr(o){if(typeof o=="string")return o;if(Ye(o))return Lt(o,Gr)+"";if(Kr(o))return dy?dy.call(o):"";var d=o+"";return d=="0"&&1/o==-1/0?"-0":d}function mi(o,d,b){var A=-1,$=Fc,V=o.length,G=!0,Z=[],te=Z;if(b)G=!1,$=l0;else if(V>=a){var de=d?null:$7(o);if(de)return Ic(de);G=!1,$=cu,te=new qi}else te=d?[]:Z;e:for(;++A<V;){var fe=o[A],me=d?d(fe):fe;if(fe=b||fe!==0?fe:0,G&&me===me){for(var _e=te.length;_e--;)if(te[_e]===me)continue e;d&&te.push(me),Z.push(fe)}else $(te,me,b)||(te!==Z&&te.push(me),Z.push(fe))}return Z}function N0(o,d){return d=gi(d,o),o=s_(o,d),o==null||delete o[na(bn(d))]}function Fy(o,d,b,A){return _u(o,d,b(Vi(o,d)),A)}function rd(o,d,b,A){for(var $=o.length,V=A?$:-1;(A?V--:++V<$)&&d(o[V],V,o););return b?vn(o,A?0:V,A?V+1:$):vn(o,A?V+1:0,A?$:V)}function Ny(o,d){var b=o;return b instanceof ot&&(b=b.value()),c0(d,function(A,$){return $.func.apply($.thisArg,di([A],$.args))},b)}function I0(o,d,b){var A=o.length;if(A<2)return A?mi(o[0]):[];for(var $=-1,V=ae(A);++$<A;)for(var G=o[$],Z=-1;++Z<A;)Z!=$&&(V[$]=vu(V[$]||G,o[Z],d,b));return mi(dr(V,1),d,b)}function Iy(o,d,b){for(var A=-1,$=o.length,V=d.length,G={};++A<$;){var Z=A<V?d[A]:r;b(G,o[A],Z)}return G}function L0(o){return Wt(o)?o:[]}function j0(o){return typeof o=="function"?o:Ir}function gi(o,d){return Ye(o)?o:Y0(o,d)?[o]:d_(yt(o))}var A7=Qe;function vi(o,d,b){var A=o.length;return b=b===r?A:b,!d&&b>=A?o:vn(o,d,b)}var Ly=gT||function(o){return cr.clearTimeout(o)};function jy(o,d){if(d)return o.slice();var b=o.length,A=iy?iy(b):new o.constructor(b);return o.copy(A),A}function $0(o){var d=new o.constructor(o.byteLength);return new Hc(d).set(new Hc(o)),d}function R7(o,d){var b=d?$0(o.buffer):o.buffer;return new o.constructor(b,o.byteOffset,o.byteLength)}function P7(o){var d=new o.constructor(o.source,bt.exec(o));return d.lastIndex=o.lastIndex,d}function D7(o){return mu?Rt(mu.call(o)):{}}function $y(o,d){var b=d?$0(o.buffer):o.buffer;return new o.constructor(b,o.byteOffset,o.length)}function zy(o,d){if(o!==d){var b=o!==r,A=o===null,$=o===o,V=Kr(o),G=d!==r,Z=d===null,te=d===d,de=Kr(d);if(!Z&&!de&&!V&&o>d||V&&G&&te&&!Z&&!de||A&&G&&te||!b&&te||!$)return 1;if(!A&&!V&&!de&&o<d||de&&b&&$&&!A&&!V||Z&&b&&$||!G&&$||!te)return-1}return 0}function M7(o,d,b){for(var A=-1,$=o.criteria,V=d.criteria,G=$.length,Z=b.length;++A<G;){var te=zy($[A],V[A]);if(te){if(A>=Z)return te;var de=b[A];return te*(de=="desc"?-1:1)}}return o.index-d.index}function By(o,d,b,A){for(var $=-1,V=o.length,G=b.length,Z=-1,te=d.length,de=er(V-G,0),fe=ae(te+de),me=!A;++Z<te;)fe[Z]=d[Z];for(;++$<G;)(me||$<V)&&(fe[b[$]]=o[$]);for(;de--;)fe[Z++]=o[$++];return fe}function Hy(o,d,b,A){for(var $=-1,V=o.length,G=-1,Z=b.length,te=-1,de=d.length,fe=er(V-Z,0),me=ae(fe+de),_e=!A;++$<fe;)me[$]=o[$];for(var Re=$;++te<de;)me[Re+te]=d[te];for(;++G<Z;)(_e||$<V)&&(me[Re+b[G]]=o[$++]);return me}function Mr(o,d){var b=-1,A=o.length;for(d||(d=ae(A));++b<A;)d[b]=o[b];return d}function ra(o,d,b,A){var $=!b;b||(b={});for(var V=-1,G=d.length;++V<G;){var Z=d[V],te=A?A(b[Z],o[Z],Z,b,o):r;te===r&&(te=o[Z]),$?ka(b,Z,te):gu(b,Z,te)}return b}function F7(o,d){return ra(o,V0(o),d)}function N7(o,d){return ra(o,t_(o),d)}function nd(o,d){return function(b,A){var $=Ye(b)?zk:n7,V=d?d():{};return $(b,o,je(A,2),V)}}function Uo(o){return Qe(function(d,b){var A=-1,$=b.length,V=$>1?b[$-1]:r,G=$>2?b[2]:r;for(V=o.length>3&&typeof V=="function"?($--,V):r,G&&Cr(b[0],b[1],G)&&(V=$<3?r:V,$=1),d=Rt(d);++A<$;){var Z=b[A];Z&&o(d,Z,A,V)}return d})}function Uy(o,d){return function(b,A){if(b==null)return b;if(!Fr(b))return o(b,A);for(var $=b.length,V=d?$:-1,G=Rt(b);(d?V--:++V<$)&&A(G[V],V,G)!==!1;);return b}}function qy(o){return function(d,b,A){for(var $=-1,V=Rt(d),G=A(d),Z=G.length;Z--;){var te=G[o?Z:++$];if(b(V[te],te,V)===!1)break}return d}}function I7(o,d,b){var A=d&k,$=wu(o);function V(){var G=this&&this!==cr&&this instanceof V?$:o;return G.apply(A?b:this,arguments)}return V}function Wy(o){return function(d){d=yt(d);var b=Io(d)?Rn(d):r,A=b?b[0]:d.charAt(0),$=b?vi(b,1).join(""):d.slice(1);return A[o]()+$}}function qo(o){return function(d){return c0(U_(H_(d).replace(kk,"")),o,"")}}function wu(o){return function(){var d=arguments;switch(d.length){case 0:return new o;case 1:return new o(d[0]);case 2:return new o(d[0],d[1]);case 3:return new o(d[0],d[1],d[2]);case 4:return new o(d[0],d[1],d[2],d[3]);case 5:return new o(d[0],d[1],d[2],d[3],d[4]);case 6:return new o(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new o(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var b=Ho(o.prototype),A=o.apply(b,d);return zt(A)?A:b}}function L7(o,d,b){var A=wu(o);function $(){for(var V=arguments.length,G=ae(V),Z=V,te=Wo($);Z--;)G[Z]=arguments[Z];var de=V<3&&G[0]!==te&&G[V-1]!==te?[]:fi(G,te);if(V-=de.length,V<b)return Xy(o,d,ad,$.placeholder,r,G,de,r,r,b-V);var fe=this&&this!==cr&&this instanceof $?A:o;return Vr(fe,this,G)}return $}function Vy(o){return function(d,b,A){var $=Rt(d);if(!Fr(d)){var V=je(b,3);d=ar(d),b=function(Z){return V($[Z],Z,$)}}var G=o(d,b,A);return G>-1?$[V?d[G]:G]:r}}function Yy(o){return Oa(function(d){var b=d.length,A=b,$=mn.prototype.thru;for(o&&d.reverse();A--;){var V=d[A];if(typeof V!="function")throw new pn(s);if($&&!G&&ud(V)=="wrapper")var G=new mn([],!0)}for(A=G?A:b;++A<b;){V=d[A];var Z=ud(V),te=Z=="wrapper"?q0(V):r;te&&G0(te[0])&&te[1]==(_|S|h|R)&&!te[4].length&&te[9]==1?G=G[ud(te[0])].apply(G,te[3]):G=V.length==1&&G0(V)?G[Z]():G.thru(V)}return function(){var de=arguments,fe=de[0];if(G&&de.length==1&&Ye(fe))return G.plant(fe).value();for(var me=0,_e=b?d[me].apply(this,de):fe;++me<b;)_e=d[me].call(this,_e);return _e}})}function ad(o,d,b,A,$,V,G,Z,te,de){var fe=d&_,me=d&k,_e=d&T,Re=d&(S|f),$e=d&C,Ze=_e?r:wu(o);function ze(){for(var tt=arguments.length,lt=ae(tt),Xr=tt;Xr--;)lt[Xr]=arguments[Xr];if(Re)var Er=Wo(ze),Zr=Kk(lt,Er);if(A&&(lt=By(lt,A,$,Re)),V&&(lt=Hy(lt,V,G,Re)),tt-=Zr,Re&&tt<de){var Vt=fi(lt,Er);return Xy(o,d,ad,ze.placeholder,b,lt,Vt,Z,te,de-tt)}var Mn=me?b:this,Da=_e?Mn[o]:o;return tt=lt.length,Z?lt=n9(lt,Z):$e&&tt>1&<.reverse(),fe&&te<tt&&(lt.length=te),this&&this!==cr&&this instanceof ze&&(Da=Ze||wu(Da)),Da.apply(Mn,lt)}return ze}function Gy(o,d){return function(b,A){return d7(b,o,d(A),{})}}function id(o,d){return function(b,A){var $;if(b===r&&A===r)return d;if(b!==r&&($=b),A!==r){if($===r)return A;typeof b=="string"||typeof A=="string"?(b=Gr(b),A=Gr(A)):(b=My(b),A=My(A)),$=o(b,A)}return $}}function z0(o){return Oa(function(d){return d=Lt(d,Yr(je())),Qe(function(b){var A=this;return o(d,function($){return Vr($,A,b)})})})}function od(o,d){d=d===r?" ":Gr(d);var b=d.length;if(b<2)return b?M0(d,o):d;var A=M0(d,Vc(o/Lo(d)));return Io(d)?vi(Rn(A),0,o).join(""):A.slice(0,o)}function j7(o,d,b,A){var $=d&k,V=wu(o);function G(){for(var Z=-1,te=arguments.length,de=-1,fe=A.length,me=ae(fe+te),_e=this&&this!==cr&&this instanceof G?V:o;++de<fe;)me[de]=A[de];for(;te--;)me[de++]=arguments[++Z];return Vr(_e,$?b:this,me)}return G}function Ky(o){return function(d,b,A){return A&&typeof A!="number"&&Cr(d,b,A)&&(b=A=r),d=Pa(d),b===r?(b=d,d=0):b=Pa(b),A=A===r?d<b?1:-1:Pa(A),S7(d,b,A,o)}}function sd(o){return function(d,b){return typeof d=="string"&&typeof b=="string"||(d=yn(d),b=yn(b)),o(d,b)}}function Xy(o,d,b,A,$,V,G,Z,te,de){var fe=d&S,me=fe?G:r,_e=fe?r:G,Re=fe?V:r,$e=fe?r:V;d|=fe?h:v,d&=~(fe?v:h),d&w||(d&=-4);var Ze=[o,d,$,Re,me,$e,_e,Z,te,de],ze=b.apply(r,Ze);return G0(o)&&u_(ze,Ze),ze.placeholder=A,l_(ze,o,d)}function B0(o){var d=Qt[o];return function(b,A){if(b=yn(b),A=A==null?0:br(Ke(A),292),A&&ly(b)){var $=(yt(b)+"e").split("e"),V=d($[0]+"e"+(+$[1]+A));return $=(yt(V)+"e").split("e"),+($[0]+"e"+(+$[1]-A))}return d(b)}}var $7=zo&&1/Ic(new zo([,-0]))[1]==I?function(o){return new zo(o)}:lp;function Zy(o){return function(d){var b=yr(d);return b==oe?v0(d):b==Ne?rT(d):Gk(d,o(d))}}function Ta(o,d,b,A,$,V,G,Z){var te=d&T;if(!te&&typeof o!="function")throw new pn(s);var de=A?A.length:0;if(de||(d&=-97,A=$=r),G=G===r?G:er(Ke(G),0),Z=Z===r?Z:Ke(Z),de-=$?$.length:0,d&v){var fe=A,me=$;A=$=r}var _e=te?r:q0(o),Re=[o,d,b,A,$,fe,me,V,G,Z];if(_e&&e9(Re,_e),o=Re[0],d=Re[1],b=Re[2],A=Re[3],$=Re[4],Z=Re[9]=Re[9]===r?te?0:o.length:er(Re[9]-de,0),!Z&&d&(S|f)&&(d&=-25),!d||d==k)var $e=I7(o,d,b);else d==S||d==f?$e=L7(o,d,Z):(d==h||d==(k|h))&&!$.length?$e=j7(o,d,b,A):$e=ad.apply(r,Re);var Ze=_e?Py:u_;return l_(Ze($e,Re),o,d)}function Jy(o,d,b,A){return o===r||Dn(o,$o[b])&&!kt.call(A,b)?d:o}function Qy(o,d,b,A,$,V){return zt(o)&&zt(d)&&(V.set(d,o),ed(o,d,r,Qy,V),V.delete(d)),o}function z7(o){return Cu(o)?r:o}function e_(o,d,b,A,$,V){var G=b&x,Z=o.length,te=d.length;if(Z!=te&&!(G&&te>Z))return!1;var de=V.get(o),fe=V.get(d);if(de&&fe)return de==d&&fe==o;var me=-1,_e=!0,Re=b&E?new qi:r;for(V.set(o,d),V.set(d,o);++me<Z;){var $e=o[me],Ze=d[me];if(A)var ze=G?A(Ze,$e,me,d,o,V):A($e,Ze,me,o,d,V);if(ze!==r){if(ze)continue;_e=!1;break}if(Re){if(!d0(d,function(tt,lt){if(!cu(Re,lt)&&($e===tt||$($e,tt,b,A,V)))return Re.push(lt)})){_e=!1;break}}else if(!($e===Ze||$($e,Ze,b,A,V))){_e=!1;break}}return V.delete(o),V.delete(d),_e}function B7(o,d,b,A,$,V,G){switch(b){case ui:if(o.byteLength!=d.byteLength||o.byteOffset!=d.byteOffset)return!1;o=o.buffer,d=d.buffer;case si:return!(o.byteLength!=d.byteLength||!V(new Hc(o),new Hc(d)));case ye:case we:case De:return Dn(+o,+d);case Le:return o.name==d.name&&o.message==d.message;case We:case Oe:return o==d+"";case oe:var Z=v0;case Ne:var te=A&x;if(Z||(Z=Ic),o.size!=d.size&&!te)return!1;var de=G.get(o);if(de)return de==d;A|=E,G.set(o,d);var fe=e_(Z(o),Z(d),A,$,V,G);return G.delete(o),fe;case at:if(mu)return mu.call(o)==mu.call(d)}return!1}function H7(o,d,b,A,$,V){var G=b&x,Z=H0(o),te=Z.length,de=H0(d),fe=de.length;if(te!=fe&&!G)return!1;for(var me=te;me--;){var _e=Z[me];if(!(G?_e in d:kt.call(d,_e)))return!1}var Re=V.get(o),$e=V.get(d);if(Re&&$e)return Re==d&&$e==o;var Ze=!0;V.set(o,d),V.set(d,o);for(var ze=G;++me<te;){_e=Z[me];var tt=o[_e],lt=d[_e];if(A)var Xr=G?A(lt,tt,_e,d,o,V):A(tt,lt,_e,o,d,V);if(!(Xr===r?tt===lt||$(tt,lt,b,A,V):Xr)){Ze=!1;break}ze||(ze=_e=="constructor")}if(Ze&&!ze){var Er=o.constructor,Zr=d.constructor;Er!=Zr&&"constructor"in o&&"constructor"in d&&!(typeof Er=="function"&&Er instanceof Er&&typeof Zr=="function"&&Zr instanceof Zr)&&(Ze=!1)}return V.delete(o),V.delete(d),Ze}function Oa(o){return X0(o_(o,r,m_),o+"")}function H0(o){return _y(o,ar,V0)}function U0(o){return _y(o,Nr,t_)}var q0=Gc?function(o){return Gc.get(o)}:lp;function ud(o){for(var d=o.name+"",b=Bo[d],A=kt.call(Bo,d)?b.length:0;A--;){var $=b[A],V=$.func;if(V==null||V==o)return $.name}return d}function Wo(o){var d=kt.call(W,"placeholder")?W:o;return d.placeholder}function je(){var o=W.iteratee||sp;return o=o===sp?Sy:o,arguments.length?o(arguments[0],arguments[1]):o}function ld(o,d){var b=o.__data__;return X7(d)?b[typeof d=="string"?"string":"hash"]:b.map}function W0(o){for(var d=ar(o),b=d.length;b--;){var A=d[b],$=o[A];d[b]=[A,$,a_($)]}return d}function Yi(o,d){var b=Qk(o,d);return xy(b)?b:r}function U7(o){var d=kt.call(o,Hi),b=o[Hi];try{o[Hi]=r;var A=!0}catch{}var $=zc.call(o);return A&&(d?o[Hi]=b:delete o[Hi]),$}var V0=y0?function(o){return o==null?[]:(o=Rt(o),ci(y0(o),function(d){return sy.call(o,d)}))}:cp,t_=y0?function(o){for(var d=[];o;)di(d,V0(o)),o=Uc(o);return d}:cp,yr=Sr;(_0&&yr(new _0(new ArrayBuffer(1)))!=ui||fu&&yr(new fu)!=oe||w0&&yr(w0.resolve())!=Et||zo&&yr(new zo)!=Ne||hu&&yr(new hu)!=Wr)&&(yr=function(o){var d=Sr(o),b=d==Ct?o.constructor:r,A=b?Gi(b):"";if(A)switch(A){case ET:return ui;case kT:return oe;case TT:return Et;case OT:return Ne;case AT:return Wr}return d});function q7(o,d,b){for(var A=-1,$=b.length;++A<$;){var V=b[A],G=V.size;switch(V.type){case"drop":o+=G;break;case"dropRight":d-=G;break;case"take":d=br(d,o+G);break;case"takeRight":o=er(o,d-G);break}}return{start:o,end:d}}function W7(o){var d=o.match(Qh);return d?d[1].split(K):[]}function r_(o,d,b){d=gi(d,o);for(var A=-1,$=d.length,V=!1;++A<$;){var G=na(d[A]);if(!(V=o!=null&&b(o,G)))break;o=o[G]}return V||++A!=$?V:($=o==null?0:o.length,!!$&&gd($)&&Aa(G,$)&&(Ye(o)||Ki(o)))}function V7(o){var d=o.length,b=new o.constructor(d);return d&&typeof o[0]=="string"&&kt.call(o,"index")&&(b.index=o.index,b.input=o.input),b}function n_(o){return typeof o.constructor=="function"&&!xu(o)?Ho(Uc(o)):{}}function Y7(o,d,b){var A=o.constructor;switch(d){case si:return $0(o);case ye:case we:return new A(+o);case ui:return R7(o,b);case Ao:case Ro:case Qs:case eu:case tu:case ru:case nu:case au:case iu:return $y(o,b);case oe:return new A;case De:case Oe:return new A(o);case We:return P7(o);case Ne:return new A;case at:return D7(o)}}function G7(o,d){var b=d.length;if(!b)return o;var A=b-1;return d[A]=(b>1?"& ":"")+d[A],d=d.join(b>2?", ":" "),o.replace(Jh,`{
|
|
38
38
|
/* [wrapped with `+d+`] */
|
|
39
|
-
`)}function K7(o){return Ye(o)||Ki(o)||!!(uy&&o&&o[uy])}function Aa(o,d){var b=typeof o;return d=d??z,!!d&&(b=="number"||b!="symbol"&&Ht.test(o))&&o>-1&&o%1==0&&o<d}function Cr(o,d,b){if(!zt(b))return!1;var A=typeof d;return(A=="number"?Fr(b)&&Aa(d,b.length):A=="string"&&d in b)?Dn(b[d],o):!1}function Y0(o,d){if(Ye(o))return!1;var b=typeof o;return b=="number"||b=="symbol"||b=="boolean"||o==null||Kr(o)?!0:Kh.test(o)||!Pc.test(o)||d!=null&&o in Rt(d)}function X7(o){var d=typeof o;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?o!=="__proto__":o===null}function G0(o){var d=ud(o),b=W[d];if(typeof b!="function"||!(d in ot.prototype))return!1;if(o===b)return!0;var A=q0(b);return!!A&&o===A[0]}function Z7(o){return!!ay&&ay in o}var J7=jc?Ra:dp;function xu(o){var d=o&&o.constructor,b=typeof d=="function"&&d.prototype||$o;return o===b}function a_(o){return o===o&&!zt(o)}function i_(o,d){return function(b){return b==null?!1:b[o]===d&&(d!==r||o in Rt(b))}}function Q7(o){var d=pd(o,function(A){return b.size===c&&b.clear(),A}),b=d.cache;return d}function e9(o,d){var b=o[1],A=d[1],$=b|A,V=$<(k|T|_),G=A==_&&b==S||A==_&&b==R&&o[7].length<=d[8]||A==(_|R)&&d[7].length<=d[8]&&b==S;if(!(V||G))return o;A&k&&(o[2]=d[2],$|=b&k?0:w);var X=d[3];if(X){var te=o[3];o[3]=te?By(te,X,d[4]):X,o[4]=te?fi(o[3],m):d[4]}return X=d[5],X&&(te=o[5],o[5]=te?Hy(te,X,d[6]):X,o[6]=te?fi(o[5],m):d[6]),X=d[7],X&&(o[7]=X),A&_&&(o[8]=o[8]==null?d[8]:br(o[8],d[8])),o[9]==null&&(o[9]=d[9]),o[0]=d[0],o[1]=$,o}function t9(o){var d=[];if(o!=null)for(var b in Rt(o))d.push(b);return d}function r9(o){return zc.call(o)}function o_(o,d,b){return d=er(d===r?o.length-1:d,0),function(){for(var A=arguments,$=-1,V=er(A.length-d,0),G=ae(V);++$<V;)G[$]=A[d+$];$=-1;for(var X=ae(d+1);++$<d;)X[$]=A[$];return X[d]=b(G),Vr(o,this,X)}}function s_(o,d){return d.length<2?o:Vi(o,vn(d,0,-1))}function n9(o,d){for(var b=o.length,A=br(d.length,b),$=Mr(o);A--;){var V=d[A];o[A]=Aa(V,b)?$[V]:r}return o}function K0(o,d){if(!(d==="constructor"&&typeof o[d]=="function")&&d!="__proto__")return o[d]}var u_=c_(Py),Su=bT||function(o,d){return cr.setTimeout(o,d)},X0=c_(k7);function l_(o,d,b){var A=d+"";return X0(o,G7(A,a9(W7(A),b)))}function c_(o){var d=0,b=0;return function(){var A=xT(),$=L-(A-b);if(b=A,$>0){if(++d>=U)return arguments[0]}else d=0;return o.apply(r,arguments)}}function cd(o,d){var b=-1,A=o.length,$=A-1;for(d=d===r?A:d;++b<d;){var V=D0(b,$),G=o[V];o[V]=o[b],o[b]=G}return o.length=d,o}var d_=Q7(function(o){var d=[];return o.charCodeAt(0)===46&&d.push(""),o.replace(Xh,function(b,A,$,V){d.push($?V.replace(Ue,"$1"):A||b)}),d});function na(o){if(typeof o=="string"||Kr(o))return o;var d=o+"";return d=="0"&&1/o==-1/0?"-0":d}function Gi(o){if(o!=null){try{return $c.call(o)}catch{}try{return o+""}catch{}}return""}function a9(o,d){return hn(ne,function(b){var A="_."+b[0];d&b[1]&&!Fc(o,A)&&o.push(A)}),o.sort()}function f_(o){if(o instanceof ot)return o.clone();var d=new mn(o.__wrapped__,o.__chain__);return d.__actions__=Mr(o.__actions__),d.__index__=o.__index__,d.__values__=o.__values__,d}function i9(o,d,b){(b?Cr(o,d,b):d===r)?d=1:d=er(Ke(d),0);var A=o==null?0:o.length;if(!A||d<1)return[];for(var $=0,V=0,G=ae(Vc(A/d));$<A;)G[V++]=vn(o,$,$+=d);return G}function o9(o){for(var d=-1,b=o==null?0:o.length,A=0,$=[];++d<b;){var V=o[d];V&&($[A++]=V)}return $}function s9(){var o=arguments.length;if(!o)return[];for(var d=ae(o-1),b=arguments[0],A=o;A--;)d[A-1]=arguments[A];return di(Ye(b)?Mr(b):[b],dr(d,1))}var u9=Qe(function(o,d){return Wt(o)?vu(o,dr(d,1,Wt,!0)):[]}),l9=Qe(function(o,d){var b=bn(d);return Wt(b)&&(b=r),Wt(o)?vu(o,dr(d,1,Wt,!0),je(b,2)):[]}),c9=Qe(function(o,d){var b=bn(d);return Wt(b)&&(b=r),Wt(o)?vu(o,dr(d,1,Wt,!0),r,b):[]});function d9(o,d,b){var A=o==null?0:o.length;return A?(d=b||d===r?1:Ke(d),vn(o,d<0?0:d,A)):[]}function f9(o,d,b){var A=o==null?0:o.length;return A?(d=b||d===r?1:Ke(d),d=A-d,vn(o,0,d<0?0:d)):[]}function h9(o,d){return o&&o.length?rd(o,je(d,3),!0,!0):[]}function p9(o,d){return o&&o.length?rd(o,je(d,3),!0):[]}function m9(o,d,b,A){var $=o==null?0:o.length;return $?(b&&typeof b!="number"&&Cr(o,d,b)&&(b=0,A=$),s7(o,d,b,A)):[]}function h_(o,d,b){var A=o==null?0:o.length;if(!A)return-1;var $=b==null?0:Ke(b);return $<0&&($=er(A+$,0)),Nc(o,je(d,3),$)}function p_(o,d,b){var A=o==null?0:o.length;if(!A)return-1;var $=A-1;return b!==r&&($=Ke(b),$=b<0?er(A+$,0):br($,A-1)),Nc(o,je(d,3),$,!0)}function m_(o){var d=o==null?0:o.length;return d?dr(o,1):[]}function g9(o){var d=o==null?0:o.length;return d?dr(o,I):[]}function v9(o,d){var b=o==null?0:o.length;return b?(d=d===r?1:Ke(d),dr(o,d)):[]}function b9(o){for(var d=-1,b=o==null?0:o.length,A={};++d<b;){var $=o[d];A[$[0]]=$[1]}return A}function g_(o){return o&&o.length?o[0]:r}function y9(o,d,b){var A=o==null?0:o.length;if(!A)return-1;var $=b==null?0:Ke(b);return $<0&&($=er(A+$,0)),No(o,d,$)}function _9(o){var d=o==null?0:o.length;return d?vn(o,0,-1):[]}var w9=Qe(function(o){var d=Lt(o,L0);return d.length&&d[0]===o[0]?T0(d):[]}),x9=Qe(function(o){var d=bn(o),b=Lt(o,L0);return d===bn(b)?d=r:b.pop(),b.length&&b[0]===o[0]?T0(b,je(d,2)):[]}),S9=Qe(function(o){var d=bn(o),b=Lt(o,L0);return d=typeof d=="function"?d:r,d&&b.pop(),b.length&&b[0]===o[0]?T0(b,r,d):[]});function C9(o,d){return o==null?"":_T.call(o,d)}function bn(o){var d=o==null?0:o.length;return d?o[d-1]:r}function E9(o,d,b){var A=o==null?0:o.length;if(!A)return-1;var $=A;return b!==r&&($=Ke(b),$=$<0?er(A+$,0):br($,A-1)),d===d?aT(o,d,$):Nc(o,Xb,$,!0)}function k9(o,d){return o&&o.length?Ty(o,Ke(d)):r}var T9=Qe(v_);function v_(o,d){return o&&o.length&&d&&d.length?P0(o,d):o}function O9(o,d,b){return o&&o.length&&d&&d.length?P0(o,d,je(b,2)):o}function A9(o,d,b){return o&&o.length&&d&&d.length?P0(o,d,r,b):o}var R9=Oa(function(o,d){var b=o==null?0:o.length,A=S0(o,d);return Ry(o,Lt(d,function($){return Aa($,b)?+$:$}).sort(zy)),A});function P9(o,d){var b=[];if(!(o&&o.length))return b;var A=-1,$=[],V=o.length;for(d=je(d,3);++A<V;){var G=o[A];d(G,A,o)&&(b.push(G),$.push(A))}return Ry(o,$),b}function Z0(o){return o==null?o:CT.call(o)}function D9(o,d,b){var A=o==null?0:o.length;return A?(b&&typeof b!="number"&&Cr(o,d,b)?(d=0,b=A):(d=d==null?0:Ke(d),b=b===r?A:Ke(b)),vn(o,d,b)):[]}function M9(o,d){return td(o,d)}function F9(o,d,b){return F0(o,d,je(b,2))}function N9(o,d){var b=o==null?0:o.length;if(b){var A=td(o,d);if(A<b&&Dn(o[A],d))return A}return-1}function I9(o,d){return td(o,d,!0)}function L9(o,d,b){return F0(o,d,je(b,2),!0)}function j9(o,d){var b=o==null?0:o.length;if(b){var A=td(o,d,!0)-1;if(Dn(o[A],d))return A}return-1}function $9(o){return o&&o.length?Dy(o):[]}function z9(o,d){return o&&o.length?Dy(o,je(d,2)):[]}function B9(o){var d=o==null?0:o.length;return d?vn(o,1,d):[]}function H9(o,d,b){return o&&o.length?(d=b||d===r?1:Ke(d),vn(o,0,d<0?0:d)):[]}function U9(o,d,b){var A=o==null?0:o.length;return A?(d=b||d===r?1:Ke(d),d=A-d,vn(o,d<0?0:d,A)):[]}function q9(o,d){return o&&o.length?rd(o,je(d,3),!1,!0):[]}function W9(o,d){return o&&o.length?rd(o,je(d,3)):[]}var V9=Qe(function(o){return mi(dr(o,1,Wt,!0))}),Y9=Qe(function(o){var d=bn(o);return Wt(d)&&(d=r),mi(dr(o,1,Wt,!0),je(d,2))}),G9=Qe(function(o){var d=bn(o);return d=typeof d=="function"?d:r,mi(dr(o,1,Wt,!0),r,d)});function K9(o){return o&&o.length?mi(o):[]}function X9(o,d){return o&&o.length?mi(o,je(d,2)):[]}function Z9(o,d){return d=typeof d=="function"?d:r,o&&o.length?mi(o,r,d):[]}function J0(o){if(!(o&&o.length))return[];var d=0;return o=ci(o,function(b){if(Wt(b))return d=er(b.length,d),!0}),m0(d,function(b){return Lt(o,f0(b))})}function b_(o,d){if(!(o&&o.length))return[];var b=J0(o);return d==null?b:Lt(b,function(A){return Vr(d,r,A)})}var J9=Qe(function(o,d){return Wt(o)?vu(o,d):[]}),Q9=Qe(function(o){return I0(ci(o,Wt))}),eO=Qe(function(o){var d=bn(o);return Wt(d)&&(d=r),I0(ci(o,Wt),je(d,2))}),tO=Qe(function(o){var d=bn(o);return d=typeof d=="function"?d:r,I0(ci(o,Wt),r,d)}),rO=Qe(J0);function nO(o,d){return Iy(o||[],d||[],gu)}function aO(o,d){return Iy(o||[],d||[],_u)}var iO=Qe(function(o){var d=o.length,b=d>1?o[d-1]:r;return b=typeof b=="function"?(o.pop(),b):r,b_(o,b)});function y_(o){var d=W(o);return d.__chain__=!0,d}function oO(o,d){return d(o),o}function dd(o,d){return d(o)}var sO=Oa(function(o){var d=o.length,b=d?o[0]:0,A=this.__wrapped__,$=function(V){return S0(V,o)};return d>1||this.__actions__.length||!(A instanceof ot)||!Aa(b)?this.thru($):(A=A.slice(b,+b+(d?1:0)),A.__actions__.push({func:dd,args:[$],thisArg:r}),new mn(A,this.__chain__).thru(function(V){return d&&!V.length&&V.push(r),V}))});function uO(){return y_(this)}function lO(){return new mn(this.value(),this.__chain__)}function cO(){this.__values__===r&&(this.__values__=M_(this.value()));var o=this.__index__>=this.__values__.length,d=o?r:this.__values__[this.__index__++];return{done:o,value:d}}function dO(){return this}function fO(o){for(var d,b=this;b instanceof Xc;){var A=f_(b);A.__index__=0,A.__values__=r,d?$.__wrapped__=A:d=A;var $=A;b=b.__wrapped__}return $.__wrapped__=o,d}function hO(){var o=this.__wrapped__;if(o instanceof ot){var d=o;return this.__actions__.length&&(d=new ot(this)),d=d.reverse(),d.__actions__.push({func:dd,args:[Z0],thisArg:r}),new mn(d,this.__chain__)}return this.thru(Z0)}function pO(){return Ny(this.__wrapped__,this.__actions__)}var mO=nd(function(o,d,b){kt.call(o,b)?++o[b]:ka(o,b,1)});function gO(o,d,b){var A=Ye(o)?Gb:o7;return b&&Cr(o,d,b)&&(d=r),A(o,je(d,3))}function vO(o,d){var b=Ye(o)?ci:by;return b(o,je(d,3))}var bO=Vy(h_),yO=Vy(p_);function _O(o,d){return dr(fd(o,d),1)}function wO(o,d){return dr(fd(o,d),I)}function xO(o,d,b){return b=b===r?1:Ke(b),dr(fd(o,d),b)}function __(o,d){var b=Ye(o)?hn:pi;return b(o,je(d,3))}function w_(o,d){var b=Ye(o)?Bk:vy;return b(o,je(d,3))}var SO=nd(function(o,d,b){kt.call(o,b)?o[b].push(d):ka(o,b,[d])});function CO(o,d,b,A){o=Fr(o)?o:Yo(o),b=b&&!A?Ke(b):0;var $=o.length;return b<0&&(b=er($+b,0)),vd(o)?b<=$&&o.indexOf(d,b)>-1:!!$&&No(o,d,b)>-1}var EO=Qe(function(o,d,b){var A=-1,$=typeof d=="function",V=Fr(o)?ae(o.length):[];return pi(o,function(G){V[++A]=$?Vr(d,G,b):bu(G,d,b)}),V}),kO=nd(function(o,d,b){ka(o,b,d)});function fd(o,d){var b=Ye(o)?Lt:Cy;return b(o,je(d,3))}function TO(o,d,b,A){return o==null?[]:(Ye(d)||(d=d==null?[]:[d]),b=A?r:b,Ye(b)||(b=b==null?[]:[b]),Oy(o,d,b))}var OO=nd(function(o,d,b){o[b?0:1].push(d)},function(){return[[],[]]});function AO(o,d,b){var A=Ye(o)?c0:Jb,$=arguments.length<3;return A(o,je(d,4),b,$,pi)}function RO(o,d,b){var A=Ye(o)?Hk:Jb,$=arguments.length<3;return A(o,je(d,4),b,$,vy)}function PO(o,d){var b=Ye(o)?ci:by;return b(o,md(je(d,3)))}function DO(o){var d=Ye(o)?hy:C7;return d(o)}function MO(o,d,b){(b?Cr(o,d,b):d===r)?d=1:d=Ke(d);var A=Ye(o)?t7:E7;return A(o,d)}function FO(o){var d=Ye(o)?r7:T7;return d(o)}function NO(o){if(o==null)return 0;if(Fr(o))return vd(o)?Lo(o):o.length;var d=yr(o);return d==oe||d==Ne?o.size:A0(o).length}function IO(o,d,b){var A=Ye(o)?d0:O7;return b&&Cr(o,d,b)&&(d=r),A(o,je(d,3))}var LO=Qe(function(o,d){if(o==null)return[];var b=d.length;return b>1&&Cr(o,d[0],d[1])?d=[]:b>2&&Cr(d[0],d[1],d[2])&&(d=[d[0]]),Oy(o,dr(d,1),[])}),hd=vT||function(){return cr.Date.now()};function jO(o,d){if(typeof d!="function")throw new pn(s);return o=Ke(o),function(){if(--o<1)return d.apply(this,arguments)}}function x_(o,d,b){return d=b?r:d,d=o&&d==null?o.length:d,Ta(o,_,r,r,r,r,d)}function S_(o,d){var b;if(typeof d!="function")throw new pn(s);return o=Ke(o),function(){return--o>0&&(b=d.apply(this,arguments)),o<=1&&(d=r),b}}var Q0=Qe(function(o,d,b){var A=k;if(b.length){var $=fi(b,Wo(Q0));A|=h}return Ta(o,A,d,b,$)}),C_=Qe(function(o,d,b){var A=k|T;if(b.length){var $=fi(b,Wo(C_));A|=h}return Ta(d,A,o,b,$)});function E_(o,d,b){d=b?r:d;var A=Ta(o,S,r,r,r,r,r,d);return A.placeholder=E_.placeholder,A}function k_(o,d,b){d=b?r:d;var A=Ta(o,f,r,r,r,r,r,d);return A.placeholder=k_.placeholder,A}function T_(o,d,b){var A,$,V,G,X,te,de=0,fe=!1,me=!1,_e=!0;if(typeof o!="function")throw new pn(s);d=yn(d)||0,zt(b)&&(fe=!!b.leading,me="maxWait"in b,V=me?er(yn(b.maxWait)||0,d):V,_e="trailing"in b?!!b.trailing:_e);function Re(Vt){var Mn=A,Da=$;return A=$=r,de=Vt,G=o.apply(Da,Mn),G}function $e(Vt){return de=Vt,X=Su(tt,d),fe?Re(Vt):G}function Ze(Vt){var Mn=Vt-te,Da=Vt-de,V_=d-Mn;return me?br(V_,V-Da):V_}function ze(Vt){var Mn=Vt-te,Da=Vt-de;return te===r||Mn>=d||Mn<0||me&&Da>=V}function tt(){var Vt=hd();if(ze(Vt))return lt(Vt);X=Su(tt,Ze(Vt))}function lt(Vt){return X=r,_e&&A?Re(Vt):(A=$=r,G)}function Xr(){X!==r&&Ly(X),de=0,A=te=$=X=r}function Er(){return X===r?G:lt(hd())}function Zr(){var Vt=hd(),Mn=ze(Vt);if(A=arguments,$=this,te=Vt,Mn){if(X===r)return $e(te);if(me)return Ly(X),X=Su(tt,d),Re(te)}return X===r&&(X=Su(tt,d)),G}return Zr.cancel=Xr,Zr.flush=Er,Zr}var $O=Qe(function(o,d){return gy(o,1,d)}),zO=Qe(function(o,d,b){return gy(o,yn(d)||0,b)});function BO(o){return Ta(o,C)}function pd(o,d){if(typeof o!="function"||d!=null&&typeof d!="function")throw new pn(s);var b=function(){var A=arguments,$=d?d.apply(this,A):A[0],V=b.cache;if(V.has($))return V.get($);var G=o.apply(this,A);return b.cache=V.set($,G)||V,G};return b.cache=new(pd.Cache||Ea),b}pd.Cache=Ea;function md(o){if(typeof o!="function")throw new pn(s);return function(){var d=arguments;switch(d.length){case 0:return!o.call(this);case 1:return!o.call(this,d[0]);case 2:return!o.call(this,d[0],d[1]);case 3:return!o.call(this,d[0],d[1],d[2])}return!o.apply(this,d)}}function HO(o){return S_(2,o)}var UO=A7(function(o,d){d=d.length==1&&Ye(d[0])?Lt(d[0],Yr(je())):Lt(dr(d,1),Yr(je()));var b=d.length;return Qe(function(A){for(var $=-1,V=br(A.length,b);++$<V;)A[$]=d[$].call(this,A[$]);return Vr(o,this,A)})}),ep=Qe(function(o,d){var b=fi(d,Wo(ep));return Ta(o,h,r,d,b)}),O_=Qe(function(o,d){var b=fi(d,Wo(O_));return Ta(o,v,r,d,b)}),qO=Oa(function(o,d){return Ta(o,R,r,r,r,d)});function WO(o,d){if(typeof o!="function")throw new pn(s);return d=d===r?d:Ke(d),Qe(o,d)}function VO(o,d){if(typeof o!="function")throw new pn(s);return d=d==null?0:er(Ke(d),0),Qe(function(b){var A=b[d],$=vi(b,0,d);return A&&di($,A),Vr(o,this,$)})}function YO(o,d,b){var A=!0,$=!0;if(typeof o!="function")throw new pn(s);return zt(b)&&(A="leading"in b?!!b.leading:A,$="trailing"in b?!!b.trailing:$),T_(o,d,{leading:A,maxWait:d,trailing:$})}function GO(o){return x_(o,1)}function KO(o,d){return ep(j0(d),o)}function XO(){if(!arguments.length)return[];var o=arguments[0];return Ye(o)?o:[o]}function ZO(o){return gn(o,y)}function JO(o,d){return d=typeof d=="function"?d:r,gn(o,y,d)}function QO(o){return gn(o,p|y)}function eA(o,d){return d=typeof d=="function"?d:r,gn(o,p|y,d)}function tA(o,d){return d==null||my(o,d,ar(d))}function Dn(o,d){return o===d||o!==o&&d!==d}var rA=sd(k0),nA=sd(function(o,d){return o>=d}),Ki=wy(function(){return arguments}())?wy:function(o){return Ut(o)&&kt.call(o,"callee")&&!sy.call(o,"callee")},Ye=ae.isArray,aA=Hb?Yr(Hb):f7;function Fr(o){return o!=null&&gd(o.length)&&!Ra(o)}function Wt(o){return Ut(o)&&Fr(o)}function iA(o){return o===!0||o===!1||Ut(o)&&Sr(o)==ye}var bi=yT||dp,oA=Ub?Yr(Ub):h7;function sA(o){return Ut(o)&&o.nodeType===1&&!Cu(o)}function uA(o){if(o==null)return!0;if(Fr(o)&&(Ye(o)||typeof o=="string"||typeof o.splice=="function"||bi(o)||Vo(o)||Ki(o)))return!o.length;var d=yr(o);if(d==oe||d==Ne)return!o.size;if(xu(o))return!A0(o).length;for(var b in o)if(kt.call(o,b))return!1;return!0}function lA(o,d){return yu(o,d)}function cA(o,d,b){b=typeof b=="function"?b:r;var A=b?b(o,d):r;return A===r?yu(o,d,r,b):!!A}function tp(o){if(!Ut(o))return!1;var d=Sr(o);return d==Le||d==Ee||typeof o.message=="string"&&typeof o.name=="string"&&!Cu(o)}function dA(o){return typeof o=="number"&&ly(o)}function Ra(o){if(!zt(o))return!1;var d=Sr(o);return d==he||d==qe||d==le||d==Fe}function A_(o){return typeof o=="number"&&o==Ke(o)}function gd(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=z}function zt(o){var d=typeof o;return o!=null&&(d=="object"||d=="function")}function Ut(o){return o!=null&&typeof o=="object"}var R_=qb?Yr(qb):m7;function fA(o,d){return o===d||O0(o,d,W0(d))}function hA(o,d,b){return b=typeof b=="function"?b:r,O0(o,d,W0(d),b)}function pA(o){return P_(o)&&o!=+o}function mA(o){if(J7(o))throw new Ve(i);return xy(o)}function gA(o){return o===null}function vA(o){return o==null}function P_(o){return typeof o=="number"||Ut(o)&&Sr(o)==De}function Cu(o){if(!Ut(o)||Sr(o)!=Ct)return!1;var d=Uc(o);if(d===null)return!0;var b=kt.call(d,"constructor")&&d.constructor;return typeof b=="function"&&b instanceof b&&$c.call(b)==hT}var rp=Wb?Yr(Wb):g7;function bA(o){return A_(o)&&o>=-9007199254740991&&o<=z}var D_=Vb?Yr(Vb):v7;function vd(o){return typeof o=="string"||!Ye(o)&&Ut(o)&&Sr(o)==Oe}function Kr(o){return typeof o=="symbol"||Ut(o)&&Sr(o)==at}var Vo=Yb?Yr(Yb):b7;function yA(o){return o===r}function _A(o){return Ut(o)&&yr(o)==Wr}function wA(o){return Ut(o)&&Sr(o)==Tc}var xA=sd(R0),SA=sd(function(o,d){return o<=d});function M_(o){if(!o)return[];if(Fr(o))return vd(o)?Rn(o):Mr(o);if(du&&o[du])return tT(o[du]());var d=yr(o),b=d==oe?v0:d==Ne?Ic:Yo;return b(o)}function Pa(o){if(!o)return o===0?o:0;if(o=yn(o),o===I||o===-1/0){var d=o<0?-1:1;return d*B}return o===o?o:0}function Ke(o){var d=Pa(o),b=d%1;return d===d?b?d-b:d:0}function F_(o){return o?Wi(Ke(o),0,q):0}function yn(o){if(typeof o=="number")return o;if(Kr(o))return H;if(zt(o)){var d=typeof o.valueOf=="function"?o.valueOf():o;o=zt(d)?d+"":d}if(typeof o!="string")return o===0?o:+o;o=Qb(o);var b=et.test(o);return b||$t.test(o)?jk(o.slice(2),b?2:8):it.test(o)?H:+o}function N_(o){return ra(o,Nr(o))}function CA(o){return o?Wi(Ke(o),-9007199254740991,z):o===0?o:0}function yt(o){return o==null?"":Gr(o)}var EA=Uo(function(o,d){if(xu(d)||Fr(d)){ra(d,ar(d),o);return}for(var b in d)kt.call(d,b)&&gu(o,b,d[b])}),I_=Uo(function(o,d){ra(d,Nr(d),o)}),bd=Uo(function(o,d,b,A){ra(d,Nr(d),o,A)}),kA=Uo(function(o,d,b,A){ra(d,ar(d),o,A)}),TA=Oa(S0);function OA(o,d){var b=Ho(o);return d==null?b:py(b,d)}var AA=Qe(function(o,d){o=Rt(o);var b=-1,A=d.length,$=A>2?d[2]:r;for($&&Cr(d[0],d[1],$)&&(A=1);++b<A;)for(var V=d[b],G=Nr(V),X=-1,te=G.length;++X<te;){var de=G[X],fe=o[de];(fe===r||Dn(fe,$o[de])&&!kt.call(o,de))&&(o[de]=V[de])}return o}),RA=Qe(function(o){return o.push(r,Qy),Vr(L_,r,o)});function PA(o,d){return Kb(o,je(d,3),ta)}function DA(o,d){return Kb(o,je(d,3),E0)}function MA(o,d){return o==null?o:C0(o,je(d,3),Nr)}function FA(o,d){return o==null?o:yy(o,je(d,3),Nr)}function NA(o,d){return o&&ta(o,je(d,3))}function IA(o,d){return o&&E0(o,je(d,3))}function LA(o){return o==null?[]:Qc(o,ar(o))}function jA(o){return o==null?[]:Qc(o,Nr(o))}function np(o,d,b){var A=o==null?r:Vi(o,d);return A===r?b:A}function $A(o,d){return o!=null&&r_(o,d,u7)}function ap(o,d){return o!=null&&r_(o,d,l7)}var zA=Gy(function(o,d,b){d!=null&&typeof d.toString!="function"&&(d=zc.call(d)),o[d]=b},op(Ir)),BA=Gy(function(o,d,b){d!=null&&typeof d.toString!="function"&&(d=zc.call(d)),kt.call(o,d)?o[d].push(b):o[d]=[b]},je),HA=Qe(bu);function ar(o){return Fr(o)?fy(o):A0(o)}function Nr(o){return Fr(o)?fy(o,!0):y7(o)}function UA(o,d){var b={};return d=je(d,3),ta(o,function(A,$,V){ka(b,d(A,$,V),A)}),b}function qA(o,d){var b={};return d=je(d,3),ta(o,function(A,$,V){ka(b,$,d(A,$,V))}),b}var WA=Uo(function(o,d,b){ed(o,d,b)}),L_=Uo(function(o,d,b,A){ed(o,d,b,A)}),VA=Oa(function(o,d){var b={};if(o==null)return b;var A=!1;d=Lt(d,function(V){return V=gi(V,o),A||(A=V.length>1),V}),ra(o,U0(o),b),A&&(b=gn(b,p|g|y,z7));for(var $=d.length;$--;)N0(b,d[$]);return b});function YA(o,d){return j_(o,md(je(d)))}var GA=Oa(function(o,d){return o==null?{}:w7(o,d)});function j_(o,d){if(o==null)return{};var b=Lt(U0(o),function(A){return[A]});return d=je(d),Ay(o,b,function(A,$){return d(A,$[0])})}function KA(o,d,b){d=gi(d,o);var A=-1,$=d.length;for($||($=1,o=r);++A<$;){var V=o==null?r:o[na(d[A])];V===r&&(A=$,V=b),o=Ra(V)?V.call(o):V}return o}function XA(o,d,b){return o==null?o:_u(o,d,b)}function ZA(o,d,b,A){return A=typeof A=="function"?A:r,o==null?o:_u(o,d,b,A)}var $_=Zy(ar),z_=Zy(Nr);function JA(o,d,b){var A=Ye(o),$=A||bi(o)||Vo(o);if(d=je(d,4),b==null){var V=o&&o.constructor;$?b=A?new V:[]:zt(o)?b=Ra(V)?Ho(Uc(o)):{}:b={}}return($?hn:ta)(o,function(G,X,te){return d(b,G,X,te)}),b}function QA(o,d){return o==null?!0:N0(o,d)}function eR(o,d,b){return o==null?o:Fy(o,d,j0(b))}function tR(o,d,b,A){return A=typeof A=="function"?A:r,o==null?o:Fy(o,d,j0(b),A)}function Yo(o){return o==null?[]:g0(o,ar(o))}function rR(o){return o==null?[]:g0(o,Nr(o))}function nR(o,d,b){return b===r&&(b=d,d=r),b!==r&&(b=yn(b),b=b===b?b:0),d!==r&&(d=yn(d),d=d===d?d:0),Wi(yn(o),d,b)}function aR(o,d,b){return d=Pa(d),b===r?(b=d,d=0):b=Pa(b),o=yn(o),c7(o,d,b)}function iR(o,d,b){if(b&&typeof b!="boolean"&&Cr(o,d,b)&&(d=b=r),b===r&&(typeof d=="boolean"?(b=d,d=r):typeof o=="boolean"&&(b=o,o=r)),o===r&&d===r?(o=0,d=1):(o=Pa(o),d===r?(d=o,o=0):d=Pa(d)),o>d){var A=o;o=d,d=A}if(b||o%1||d%1){var $=cy();return br(o+$*(d-o+Lk("1e-"+(($+"").length-1))),d)}return D0(o,d)}var oR=qo(function(o,d,b){return d=d.toLowerCase(),o+(b?B_(d):d)});function B_(o){return ip(yt(o).toLowerCase())}function H_(o){return o=yt(o),o&&o.replace(Dr,Xk).replace(Tk,"")}function sR(o,d,b){o=yt(o),d=Gr(d);var A=o.length;b=b===r?A:Wi(Ke(b),0,A);var $=b;return b-=d.length,b>=0&&o.slice(b,$)==d}function uR(o){return o=yt(o),o&&Yh.test(o)?o.replace(Do,Zk):o}function lR(o){return o=yt(o),o&&Dc.test(o)?o.replace(Mo,"\\$&"):o}var cR=qo(function(o,d,b){return o+(b?"-":"")+d.toLowerCase()}),dR=qo(function(o,d,b){return o+(b?" ":"")+d.toLowerCase()}),fR=Wy("toLowerCase");function hR(o,d,b){o=yt(o),d=Ke(d);var A=d?Lo(o):0;if(!d||A>=d)return o;var $=(d-A)/2;return od(Yc($),b)+o+od(Vc($),b)}function pR(o,d,b){o=yt(o),d=Ke(d);var A=d?Lo(o):0;return d&&A<d?o+od(d-A,b):o}function mR(o,d,b){o=yt(o),d=Ke(d);var A=d?Lo(o):0;return d&&A<d?od(d-A,b)+o:o}function gR(o,d,b){return b||d==null?d=0:d&&(d=+d),ST(yt(o).replace(uu,""),d||0)}function vR(o,d,b){return(b?Cr(o,d,b):d===r)?d=1:d=Ke(d),M0(yt(o),d)}function bR(){var o=arguments,d=yt(o[0]);return o.length<3?d:d.replace(o[1],o[2])}var yR=qo(function(o,d,b){return o+(b?"_":"")+d.toLowerCase()});function _R(o,d,b){return b&&typeof b!="number"&&Cr(o,d,b)&&(d=b=r),b=b===r?q:b>>>0,b?(o=yt(o),o&&(typeof d=="string"||d!=null&&!rp(d))&&(d=Gr(d),!d&&Io(o))?vi(Rn(o),0,b):o.split(d,b)):[]}var wR=qo(function(o,d,b){return o+(b?" ":"")+ip(d)});function xR(o,d,b){return o=yt(o),b=b==null?0:Wi(Ke(b),0,o.length),d=Gr(d),o.slice(b,b+d.length)==d}function SR(o,d,b){var A=W.templateSettings;b&&Cr(o,d,b)&&(d=r),o=yt(o),d=bd({},d,A,Jy);var $=bd({},d.imports,A.imports,Jy),V=ar($),G=g0($,V),X,te,de=0,fe=d.interpolate||An,me="__p += '",_e=b0((d.escape||An).source+"|"+fe.source+"|"+(fe===su?ft:An).source+"|"+(d.evaluate||An).source+"|$","g"),Re="//# sourceURL="+(kt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Dk+"]")+`
|
|
40
|
-
`;o.replace(_e,function(ze,tt,lt,Xr,Er,Zr){return lt||(lt=Xr),me+=o.slice(de,Zr).replace(Sa,Jk),tt&&(
|
|
39
|
+
`)}function K7(o){return Ye(o)||Ki(o)||!!(uy&&o&&o[uy])}function Aa(o,d){var b=typeof o;return d=d??z,!!d&&(b=="number"||b!="symbol"&&Ht.test(o))&&o>-1&&o%1==0&&o<d}function Cr(o,d,b){if(!zt(b))return!1;var A=typeof d;return(A=="number"?Fr(b)&&Aa(d,b.length):A=="string"&&d in b)?Dn(b[d],o):!1}function Y0(o,d){if(Ye(o))return!1;var b=typeof o;return b=="number"||b=="symbol"||b=="boolean"||o==null||Kr(o)?!0:Kh.test(o)||!Pc.test(o)||d!=null&&o in Rt(d)}function X7(o){var d=typeof o;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?o!=="__proto__":o===null}function G0(o){var d=ud(o),b=W[d];if(typeof b!="function"||!(d in ot.prototype))return!1;if(o===b)return!0;var A=q0(b);return!!A&&o===A[0]}function Z7(o){return!!ay&&ay in o}var J7=jc?Ra:dp;function xu(o){var d=o&&o.constructor,b=typeof d=="function"&&d.prototype||$o;return o===b}function a_(o){return o===o&&!zt(o)}function i_(o,d){return function(b){return b==null?!1:b[o]===d&&(d!==r||o in Rt(b))}}function Q7(o){var d=pd(o,function(A){return b.size===c&&b.clear(),A}),b=d.cache;return d}function e9(o,d){var b=o[1],A=d[1],$=b|A,V=$<(k|T|_),G=A==_&&b==S||A==_&&b==R&&o[7].length<=d[8]||A==(_|R)&&d[7].length<=d[8]&&b==S;if(!(V||G))return o;A&k&&(o[2]=d[2],$|=b&k?0:w);var Z=d[3];if(Z){var te=o[3];o[3]=te?By(te,Z,d[4]):Z,o[4]=te?fi(o[3],m):d[4]}return Z=d[5],Z&&(te=o[5],o[5]=te?Hy(te,Z,d[6]):Z,o[6]=te?fi(o[5],m):d[6]),Z=d[7],Z&&(o[7]=Z),A&_&&(o[8]=o[8]==null?d[8]:br(o[8],d[8])),o[9]==null&&(o[9]=d[9]),o[0]=d[0],o[1]=$,o}function t9(o){var d=[];if(o!=null)for(var b in Rt(o))d.push(b);return d}function r9(o){return zc.call(o)}function o_(o,d,b){return d=er(d===r?o.length-1:d,0),function(){for(var A=arguments,$=-1,V=er(A.length-d,0),G=ae(V);++$<V;)G[$]=A[d+$];$=-1;for(var Z=ae(d+1);++$<d;)Z[$]=A[$];return Z[d]=b(G),Vr(o,this,Z)}}function s_(o,d){return d.length<2?o:Vi(o,vn(d,0,-1))}function n9(o,d){for(var b=o.length,A=br(d.length,b),$=Mr(o);A--;){var V=d[A];o[A]=Aa(V,b)?$[V]:r}return o}function K0(o,d){if(!(d==="constructor"&&typeof o[d]=="function")&&d!="__proto__")return o[d]}var u_=c_(Py),Su=bT||function(o,d){return cr.setTimeout(o,d)},X0=c_(k7);function l_(o,d,b){var A=d+"";return X0(o,G7(A,a9(W7(A),b)))}function c_(o){var d=0,b=0;return function(){var A=xT(),$=L-(A-b);if(b=A,$>0){if(++d>=U)return arguments[0]}else d=0;return o.apply(r,arguments)}}function cd(o,d){var b=-1,A=o.length,$=A-1;for(d=d===r?A:d;++b<d;){var V=D0(b,$),G=o[V];o[V]=o[b],o[b]=G}return o.length=d,o}var d_=Q7(function(o){var d=[];return o.charCodeAt(0)===46&&d.push(""),o.replace(Xh,function(b,A,$,V){d.push($?V.replace(Ue,"$1"):A||b)}),d});function na(o){if(typeof o=="string"||Kr(o))return o;var d=o+"";return d=="0"&&1/o==-1/0?"-0":d}function Gi(o){if(o!=null){try{return $c.call(o)}catch{}try{return o+""}catch{}}return""}function a9(o,d){return hn(ne,function(b){var A="_."+b[0];d&b[1]&&!Fc(o,A)&&o.push(A)}),o.sort()}function f_(o){if(o instanceof ot)return o.clone();var d=new mn(o.__wrapped__,o.__chain__);return d.__actions__=Mr(o.__actions__),d.__index__=o.__index__,d.__values__=o.__values__,d}function i9(o,d,b){(b?Cr(o,d,b):d===r)?d=1:d=er(Ke(d),0);var A=o==null?0:o.length;if(!A||d<1)return[];for(var $=0,V=0,G=ae(Vc(A/d));$<A;)G[V++]=vn(o,$,$+=d);return G}function o9(o){for(var d=-1,b=o==null?0:o.length,A=0,$=[];++d<b;){var V=o[d];V&&($[A++]=V)}return $}function s9(){var o=arguments.length;if(!o)return[];for(var d=ae(o-1),b=arguments[0],A=o;A--;)d[A-1]=arguments[A];return di(Ye(b)?Mr(b):[b],dr(d,1))}var u9=Qe(function(o,d){return Wt(o)?vu(o,dr(d,1,Wt,!0)):[]}),l9=Qe(function(o,d){var b=bn(d);return Wt(b)&&(b=r),Wt(o)?vu(o,dr(d,1,Wt,!0),je(b,2)):[]}),c9=Qe(function(o,d){var b=bn(d);return Wt(b)&&(b=r),Wt(o)?vu(o,dr(d,1,Wt,!0),r,b):[]});function d9(o,d,b){var A=o==null?0:o.length;return A?(d=b||d===r?1:Ke(d),vn(o,d<0?0:d,A)):[]}function f9(o,d,b){var A=o==null?0:o.length;return A?(d=b||d===r?1:Ke(d),d=A-d,vn(o,0,d<0?0:d)):[]}function h9(o,d){return o&&o.length?rd(o,je(d,3),!0,!0):[]}function p9(o,d){return o&&o.length?rd(o,je(d,3),!0):[]}function m9(o,d,b,A){var $=o==null?0:o.length;return $?(b&&typeof b!="number"&&Cr(o,d,b)&&(b=0,A=$),s7(o,d,b,A)):[]}function h_(o,d,b){var A=o==null?0:o.length;if(!A)return-1;var $=b==null?0:Ke(b);return $<0&&($=er(A+$,0)),Nc(o,je(d,3),$)}function p_(o,d,b){var A=o==null?0:o.length;if(!A)return-1;var $=A-1;return b!==r&&($=Ke(b),$=b<0?er(A+$,0):br($,A-1)),Nc(o,je(d,3),$,!0)}function m_(o){var d=o==null?0:o.length;return d?dr(o,1):[]}function g9(o){var d=o==null?0:o.length;return d?dr(o,I):[]}function v9(o,d){var b=o==null?0:o.length;return b?(d=d===r?1:Ke(d),dr(o,d)):[]}function b9(o){for(var d=-1,b=o==null?0:o.length,A={};++d<b;){var $=o[d];A[$[0]]=$[1]}return A}function g_(o){return o&&o.length?o[0]:r}function y9(o,d,b){var A=o==null?0:o.length;if(!A)return-1;var $=b==null?0:Ke(b);return $<0&&($=er(A+$,0)),No(o,d,$)}function _9(o){var d=o==null?0:o.length;return d?vn(o,0,-1):[]}var w9=Qe(function(o){var d=Lt(o,L0);return d.length&&d[0]===o[0]?T0(d):[]}),x9=Qe(function(o){var d=bn(o),b=Lt(o,L0);return d===bn(b)?d=r:b.pop(),b.length&&b[0]===o[0]?T0(b,je(d,2)):[]}),S9=Qe(function(o){var d=bn(o),b=Lt(o,L0);return d=typeof d=="function"?d:r,d&&b.pop(),b.length&&b[0]===o[0]?T0(b,r,d):[]});function C9(o,d){return o==null?"":_T.call(o,d)}function bn(o){var d=o==null?0:o.length;return d?o[d-1]:r}function E9(o,d,b){var A=o==null?0:o.length;if(!A)return-1;var $=A;return b!==r&&($=Ke(b),$=$<0?er(A+$,0):br($,A-1)),d===d?aT(o,d,$):Nc(o,Xb,$,!0)}function k9(o,d){return o&&o.length?Ty(o,Ke(d)):r}var T9=Qe(v_);function v_(o,d){return o&&o.length&&d&&d.length?P0(o,d):o}function O9(o,d,b){return o&&o.length&&d&&d.length?P0(o,d,je(b,2)):o}function A9(o,d,b){return o&&o.length&&d&&d.length?P0(o,d,r,b):o}var R9=Oa(function(o,d){var b=o==null?0:o.length,A=S0(o,d);return Ry(o,Lt(d,function($){return Aa($,b)?+$:$}).sort(zy)),A});function P9(o,d){var b=[];if(!(o&&o.length))return b;var A=-1,$=[],V=o.length;for(d=je(d,3);++A<V;){var G=o[A];d(G,A,o)&&(b.push(G),$.push(A))}return Ry(o,$),b}function Z0(o){return o==null?o:CT.call(o)}function D9(o,d,b){var A=o==null?0:o.length;return A?(b&&typeof b!="number"&&Cr(o,d,b)?(d=0,b=A):(d=d==null?0:Ke(d),b=b===r?A:Ke(b)),vn(o,d,b)):[]}function M9(o,d){return td(o,d)}function F9(o,d,b){return F0(o,d,je(b,2))}function N9(o,d){var b=o==null?0:o.length;if(b){var A=td(o,d);if(A<b&&Dn(o[A],d))return A}return-1}function I9(o,d){return td(o,d,!0)}function L9(o,d,b){return F0(o,d,je(b,2),!0)}function j9(o,d){var b=o==null?0:o.length;if(b){var A=td(o,d,!0)-1;if(Dn(o[A],d))return A}return-1}function $9(o){return o&&o.length?Dy(o):[]}function z9(o,d){return o&&o.length?Dy(o,je(d,2)):[]}function B9(o){var d=o==null?0:o.length;return d?vn(o,1,d):[]}function H9(o,d,b){return o&&o.length?(d=b||d===r?1:Ke(d),vn(o,0,d<0?0:d)):[]}function U9(o,d,b){var A=o==null?0:o.length;return A?(d=b||d===r?1:Ke(d),d=A-d,vn(o,d<0?0:d,A)):[]}function q9(o,d){return o&&o.length?rd(o,je(d,3),!1,!0):[]}function W9(o,d){return o&&o.length?rd(o,je(d,3)):[]}var V9=Qe(function(o){return mi(dr(o,1,Wt,!0))}),Y9=Qe(function(o){var d=bn(o);return Wt(d)&&(d=r),mi(dr(o,1,Wt,!0),je(d,2))}),G9=Qe(function(o){var d=bn(o);return d=typeof d=="function"?d:r,mi(dr(o,1,Wt,!0),r,d)});function K9(o){return o&&o.length?mi(o):[]}function X9(o,d){return o&&o.length?mi(o,je(d,2)):[]}function Z9(o,d){return d=typeof d=="function"?d:r,o&&o.length?mi(o,r,d):[]}function J0(o){if(!(o&&o.length))return[];var d=0;return o=ci(o,function(b){if(Wt(b))return d=er(b.length,d),!0}),m0(d,function(b){return Lt(o,f0(b))})}function b_(o,d){if(!(o&&o.length))return[];var b=J0(o);return d==null?b:Lt(b,function(A){return Vr(d,r,A)})}var J9=Qe(function(o,d){return Wt(o)?vu(o,d):[]}),Q9=Qe(function(o){return I0(ci(o,Wt))}),eO=Qe(function(o){var d=bn(o);return Wt(d)&&(d=r),I0(ci(o,Wt),je(d,2))}),tO=Qe(function(o){var d=bn(o);return d=typeof d=="function"?d:r,I0(ci(o,Wt),r,d)}),rO=Qe(J0);function nO(o,d){return Iy(o||[],d||[],gu)}function aO(o,d){return Iy(o||[],d||[],_u)}var iO=Qe(function(o){var d=o.length,b=d>1?o[d-1]:r;return b=typeof b=="function"?(o.pop(),b):r,b_(o,b)});function y_(o){var d=W(o);return d.__chain__=!0,d}function oO(o,d){return d(o),o}function dd(o,d){return d(o)}var sO=Oa(function(o){var d=o.length,b=d?o[0]:0,A=this.__wrapped__,$=function(V){return S0(V,o)};return d>1||this.__actions__.length||!(A instanceof ot)||!Aa(b)?this.thru($):(A=A.slice(b,+b+(d?1:0)),A.__actions__.push({func:dd,args:[$],thisArg:r}),new mn(A,this.__chain__).thru(function(V){return d&&!V.length&&V.push(r),V}))});function uO(){return y_(this)}function lO(){return new mn(this.value(),this.__chain__)}function cO(){this.__values__===r&&(this.__values__=M_(this.value()));var o=this.__index__>=this.__values__.length,d=o?r:this.__values__[this.__index__++];return{done:o,value:d}}function dO(){return this}function fO(o){for(var d,b=this;b instanceof Xc;){var A=f_(b);A.__index__=0,A.__values__=r,d?$.__wrapped__=A:d=A;var $=A;b=b.__wrapped__}return $.__wrapped__=o,d}function hO(){var o=this.__wrapped__;if(o instanceof ot){var d=o;return this.__actions__.length&&(d=new ot(this)),d=d.reverse(),d.__actions__.push({func:dd,args:[Z0],thisArg:r}),new mn(d,this.__chain__)}return this.thru(Z0)}function pO(){return Ny(this.__wrapped__,this.__actions__)}var mO=nd(function(o,d,b){kt.call(o,b)?++o[b]:ka(o,b,1)});function gO(o,d,b){var A=Ye(o)?Gb:o7;return b&&Cr(o,d,b)&&(d=r),A(o,je(d,3))}function vO(o,d){var b=Ye(o)?ci:by;return b(o,je(d,3))}var bO=Vy(h_),yO=Vy(p_);function _O(o,d){return dr(fd(o,d),1)}function wO(o,d){return dr(fd(o,d),I)}function xO(o,d,b){return b=b===r?1:Ke(b),dr(fd(o,d),b)}function __(o,d){var b=Ye(o)?hn:pi;return b(o,je(d,3))}function w_(o,d){var b=Ye(o)?Bk:vy;return b(o,je(d,3))}var SO=nd(function(o,d,b){kt.call(o,b)?o[b].push(d):ka(o,b,[d])});function CO(o,d,b,A){o=Fr(o)?o:Yo(o),b=b&&!A?Ke(b):0;var $=o.length;return b<0&&(b=er($+b,0)),vd(o)?b<=$&&o.indexOf(d,b)>-1:!!$&&No(o,d,b)>-1}var EO=Qe(function(o,d,b){var A=-1,$=typeof d=="function",V=Fr(o)?ae(o.length):[];return pi(o,function(G){V[++A]=$?Vr(d,G,b):bu(G,d,b)}),V}),kO=nd(function(o,d,b){ka(o,b,d)});function fd(o,d){var b=Ye(o)?Lt:Cy;return b(o,je(d,3))}function TO(o,d,b,A){return o==null?[]:(Ye(d)||(d=d==null?[]:[d]),b=A?r:b,Ye(b)||(b=b==null?[]:[b]),Oy(o,d,b))}var OO=nd(function(o,d,b){o[b?0:1].push(d)},function(){return[[],[]]});function AO(o,d,b){var A=Ye(o)?c0:Jb,$=arguments.length<3;return A(o,je(d,4),b,$,pi)}function RO(o,d,b){var A=Ye(o)?Hk:Jb,$=arguments.length<3;return A(o,je(d,4),b,$,vy)}function PO(o,d){var b=Ye(o)?ci:by;return b(o,md(je(d,3)))}function DO(o){var d=Ye(o)?hy:C7;return d(o)}function MO(o,d,b){(b?Cr(o,d,b):d===r)?d=1:d=Ke(d);var A=Ye(o)?t7:E7;return A(o,d)}function FO(o){var d=Ye(o)?r7:T7;return d(o)}function NO(o){if(o==null)return 0;if(Fr(o))return vd(o)?Lo(o):o.length;var d=yr(o);return d==oe||d==Ne?o.size:A0(o).length}function IO(o,d,b){var A=Ye(o)?d0:O7;return b&&Cr(o,d,b)&&(d=r),A(o,je(d,3))}var LO=Qe(function(o,d){if(o==null)return[];var b=d.length;return b>1&&Cr(o,d[0],d[1])?d=[]:b>2&&Cr(d[0],d[1],d[2])&&(d=[d[0]]),Oy(o,dr(d,1),[])}),hd=vT||function(){return cr.Date.now()};function jO(o,d){if(typeof d!="function")throw new pn(s);return o=Ke(o),function(){if(--o<1)return d.apply(this,arguments)}}function x_(o,d,b){return d=b?r:d,d=o&&d==null?o.length:d,Ta(o,_,r,r,r,r,d)}function S_(o,d){var b;if(typeof d!="function")throw new pn(s);return o=Ke(o),function(){return--o>0&&(b=d.apply(this,arguments)),o<=1&&(d=r),b}}var Q0=Qe(function(o,d,b){var A=k;if(b.length){var $=fi(b,Wo(Q0));A|=h}return Ta(o,A,d,b,$)}),C_=Qe(function(o,d,b){var A=k|T;if(b.length){var $=fi(b,Wo(C_));A|=h}return Ta(d,A,o,b,$)});function E_(o,d,b){d=b?r:d;var A=Ta(o,S,r,r,r,r,r,d);return A.placeholder=E_.placeholder,A}function k_(o,d,b){d=b?r:d;var A=Ta(o,f,r,r,r,r,r,d);return A.placeholder=k_.placeholder,A}function T_(o,d,b){var A,$,V,G,Z,te,de=0,fe=!1,me=!1,_e=!0;if(typeof o!="function")throw new pn(s);d=yn(d)||0,zt(b)&&(fe=!!b.leading,me="maxWait"in b,V=me?er(yn(b.maxWait)||0,d):V,_e="trailing"in b?!!b.trailing:_e);function Re(Vt){var Mn=A,Da=$;return A=$=r,de=Vt,G=o.apply(Da,Mn),G}function $e(Vt){return de=Vt,Z=Su(tt,d),fe?Re(Vt):G}function Ze(Vt){var Mn=Vt-te,Da=Vt-de,V_=d-Mn;return me?br(V_,V-Da):V_}function ze(Vt){var Mn=Vt-te,Da=Vt-de;return te===r||Mn>=d||Mn<0||me&&Da>=V}function tt(){var Vt=hd();if(ze(Vt))return lt(Vt);Z=Su(tt,Ze(Vt))}function lt(Vt){return Z=r,_e&&A?Re(Vt):(A=$=r,G)}function Xr(){Z!==r&&Ly(Z),de=0,A=te=$=Z=r}function Er(){return Z===r?G:lt(hd())}function Zr(){var Vt=hd(),Mn=ze(Vt);if(A=arguments,$=this,te=Vt,Mn){if(Z===r)return $e(te);if(me)return Ly(Z),Z=Su(tt,d),Re(te)}return Z===r&&(Z=Su(tt,d)),G}return Zr.cancel=Xr,Zr.flush=Er,Zr}var $O=Qe(function(o,d){return gy(o,1,d)}),zO=Qe(function(o,d,b){return gy(o,yn(d)||0,b)});function BO(o){return Ta(o,C)}function pd(o,d){if(typeof o!="function"||d!=null&&typeof d!="function")throw new pn(s);var b=function(){var A=arguments,$=d?d.apply(this,A):A[0],V=b.cache;if(V.has($))return V.get($);var G=o.apply(this,A);return b.cache=V.set($,G)||V,G};return b.cache=new(pd.Cache||Ea),b}pd.Cache=Ea;function md(o){if(typeof o!="function")throw new pn(s);return function(){var d=arguments;switch(d.length){case 0:return!o.call(this);case 1:return!o.call(this,d[0]);case 2:return!o.call(this,d[0],d[1]);case 3:return!o.call(this,d[0],d[1],d[2])}return!o.apply(this,d)}}function HO(o){return S_(2,o)}var UO=A7(function(o,d){d=d.length==1&&Ye(d[0])?Lt(d[0],Yr(je())):Lt(dr(d,1),Yr(je()));var b=d.length;return Qe(function(A){for(var $=-1,V=br(A.length,b);++$<V;)A[$]=d[$].call(this,A[$]);return Vr(o,this,A)})}),ep=Qe(function(o,d){var b=fi(d,Wo(ep));return Ta(o,h,r,d,b)}),O_=Qe(function(o,d){var b=fi(d,Wo(O_));return Ta(o,v,r,d,b)}),qO=Oa(function(o,d){return Ta(o,R,r,r,r,d)});function WO(o,d){if(typeof o!="function")throw new pn(s);return d=d===r?d:Ke(d),Qe(o,d)}function VO(o,d){if(typeof o!="function")throw new pn(s);return d=d==null?0:er(Ke(d),0),Qe(function(b){var A=b[d],$=vi(b,0,d);return A&&di($,A),Vr(o,this,$)})}function YO(o,d,b){var A=!0,$=!0;if(typeof o!="function")throw new pn(s);return zt(b)&&(A="leading"in b?!!b.leading:A,$="trailing"in b?!!b.trailing:$),T_(o,d,{leading:A,maxWait:d,trailing:$})}function GO(o){return x_(o,1)}function KO(o,d){return ep(j0(d),o)}function XO(){if(!arguments.length)return[];var o=arguments[0];return Ye(o)?o:[o]}function ZO(o){return gn(o,y)}function JO(o,d){return d=typeof d=="function"?d:r,gn(o,y,d)}function QO(o){return gn(o,p|y)}function eA(o,d){return d=typeof d=="function"?d:r,gn(o,p|y,d)}function tA(o,d){return d==null||my(o,d,ar(d))}function Dn(o,d){return o===d||o!==o&&d!==d}var rA=sd(k0),nA=sd(function(o,d){return o>=d}),Ki=wy(function(){return arguments}())?wy:function(o){return Ut(o)&&kt.call(o,"callee")&&!sy.call(o,"callee")},Ye=ae.isArray,aA=Hb?Yr(Hb):f7;function Fr(o){return o!=null&&gd(o.length)&&!Ra(o)}function Wt(o){return Ut(o)&&Fr(o)}function iA(o){return o===!0||o===!1||Ut(o)&&Sr(o)==ye}var bi=yT||dp,oA=Ub?Yr(Ub):h7;function sA(o){return Ut(o)&&o.nodeType===1&&!Cu(o)}function uA(o){if(o==null)return!0;if(Fr(o)&&(Ye(o)||typeof o=="string"||typeof o.splice=="function"||bi(o)||Vo(o)||Ki(o)))return!o.length;var d=yr(o);if(d==oe||d==Ne)return!o.size;if(xu(o))return!A0(o).length;for(var b in o)if(kt.call(o,b))return!1;return!0}function lA(o,d){return yu(o,d)}function cA(o,d,b){b=typeof b=="function"?b:r;var A=b?b(o,d):r;return A===r?yu(o,d,r,b):!!A}function tp(o){if(!Ut(o))return!1;var d=Sr(o);return d==Le||d==Ee||typeof o.message=="string"&&typeof o.name=="string"&&!Cu(o)}function dA(o){return typeof o=="number"&&ly(o)}function Ra(o){if(!zt(o))return!1;var d=Sr(o);return d==he||d==qe||d==le||d==Fe}function A_(o){return typeof o=="number"&&o==Ke(o)}function gd(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=z}function zt(o){var d=typeof o;return o!=null&&(d=="object"||d=="function")}function Ut(o){return o!=null&&typeof o=="object"}var R_=qb?Yr(qb):m7;function fA(o,d){return o===d||O0(o,d,W0(d))}function hA(o,d,b){return b=typeof b=="function"?b:r,O0(o,d,W0(d),b)}function pA(o){return P_(o)&&o!=+o}function mA(o){if(J7(o))throw new Ve(i);return xy(o)}function gA(o){return o===null}function vA(o){return o==null}function P_(o){return typeof o=="number"||Ut(o)&&Sr(o)==De}function Cu(o){if(!Ut(o)||Sr(o)!=Ct)return!1;var d=Uc(o);if(d===null)return!0;var b=kt.call(d,"constructor")&&d.constructor;return typeof b=="function"&&b instanceof b&&$c.call(b)==hT}var rp=Wb?Yr(Wb):g7;function bA(o){return A_(o)&&o>=-9007199254740991&&o<=z}var D_=Vb?Yr(Vb):v7;function vd(o){return typeof o=="string"||!Ye(o)&&Ut(o)&&Sr(o)==Oe}function Kr(o){return typeof o=="symbol"||Ut(o)&&Sr(o)==at}var Vo=Yb?Yr(Yb):b7;function yA(o){return o===r}function _A(o){return Ut(o)&&yr(o)==Wr}function wA(o){return Ut(o)&&Sr(o)==Tc}var xA=sd(R0),SA=sd(function(o,d){return o<=d});function M_(o){if(!o)return[];if(Fr(o))return vd(o)?Rn(o):Mr(o);if(du&&o[du])return tT(o[du]());var d=yr(o),b=d==oe?v0:d==Ne?Ic:Yo;return b(o)}function Pa(o){if(!o)return o===0?o:0;if(o=yn(o),o===I||o===-1/0){var d=o<0?-1:1;return d*B}return o===o?o:0}function Ke(o){var d=Pa(o),b=d%1;return d===d?b?d-b:d:0}function F_(o){return o?Wi(Ke(o),0,q):0}function yn(o){if(typeof o=="number")return o;if(Kr(o))return H;if(zt(o)){var d=typeof o.valueOf=="function"?o.valueOf():o;o=zt(d)?d+"":d}if(typeof o!="string")return o===0?o:+o;o=Qb(o);var b=et.test(o);return b||$t.test(o)?jk(o.slice(2),b?2:8):it.test(o)?H:+o}function N_(o){return ra(o,Nr(o))}function CA(o){return o?Wi(Ke(o),-9007199254740991,z):o===0?o:0}function yt(o){return o==null?"":Gr(o)}var EA=Uo(function(o,d){if(xu(d)||Fr(d)){ra(d,ar(d),o);return}for(var b in d)kt.call(d,b)&&gu(o,b,d[b])}),I_=Uo(function(o,d){ra(d,Nr(d),o)}),bd=Uo(function(o,d,b,A){ra(d,Nr(d),o,A)}),kA=Uo(function(o,d,b,A){ra(d,ar(d),o,A)}),TA=Oa(S0);function OA(o,d){var b=Ho(o);return d==null?b:py(b,d)}var AA=Qe(function(o,d){o=Rt(o);var b=-1,A=d.length,$=A>2?d[2]:r;for($&&Cr(d[0],d[1],$)&&(A=1);++b<A;)for(var V=d[b],G=Nr(V),Z=-1,te=G.length;++Z<te;){var de=G[Z],fe=o[de];(fe===r||Dn(fe,$o[de])&&!kt.call(o,de))&&(o[de]=V[de])}return o}),RA=Qe(function(o){return o.push(r,Qy),Vr(L_,r,o)});function PA(o,d){return Kb(o,je(d,3),ta)}function DA(o,d){return Kb(o,je(d,3),E0)}function MA(o,d){return o==null?o:C0(o,je(d,3),Nr)}function FA(o,d){return o==null?o:yy(o,je(d,3),Nr)}function NA(o,d){return o&&ta(o,je(d,3))}function IA(o,d){return o&&E0(o,je(d,3))}function LA(o){return o==null?[]:Qc(o,ar(o))}function jA(o){return o==null?[]:Qc(o,Nr(o))}function np(o,d,b){var A=o==null?r:Vi(o,d);return A===r?b:A}function $A(o,d){return o!=null&&r_(o,d,u7)}function ap(o,d){return o!=null&&r_(o,d,l7)}var zA=Gy(function(o,d,b){d!=null&&typeof d.toString!="function"&&(d=zc.call(d)),o[d]=b},op(Ir)),BA=Gy(function(o,d,b){d!=null&&typeof d.toString!="function"&&(d=zc.call(d)),kt.call(o,d)?o[d].push(b):o[d]=[b]},je),HA=Qe(bu);function ar(o){return Fr(o)?fy(o):A0(o)}function Nr(o){return Fr(o)?fy(o,!0):y7(o)}function UA(o,d){var b={};return d=je(d,3),ta(o,function(A,$,V){ka(b,d(A,$,V),A)}),b}function qA(o,d){var b={};return d=je(d,3),ta(o,function(A,$,V){ka(b,$,d(A,$,V))}),b}var WA=Uo(function(o,d,b){ed(o,d,b)}),L_=Uo(function(o,d,b,A){ed(o,d,b,A)}),VA=Oa(function(o,d){var b={};if(o==null)return b;var A=!1;d=Lt(d,function(V){return V=gi(V,o),A||(A=V.length>1),V}),ra(o,U0(o),b),A&&(b=gn(b,p|g|y,z7));for(var $=d.length;$--;)N0(b,d[$]);return b});function YA(o,d){return j_(o,md(je(d)))}var GA=Oa(function(o,d){return o==null?{}:w7(o,d)});function j_(o,d){if(o==null)return{};var b=Lt(U0(o),function(A){return[A]});return d=je(d),Ay(o,b,function(A,$){return d(A,$[0])})}function KA(o,d,b){d=gi(d,o);var A=-1,$=d.length;for($||($=1,o=r);++A<$;){var V=o==null?r:o[na(d[A])];V===r&&(A=$,V=b),o=Ra(V)?V.call(o):V}return o}function XA(o,d,b){return o==null?o:_u(o,d,b)}function ZA(o,d,b,A){return A=typeof A=="function"?A:r,o==null?o:_u(o,d,b,A)}var $_=Zy(ar),z_=Zy(Nr);function JA(o,d,b){var A=Ye(o),$=A||bi(o)||Vo(o);if(d=je(d,4),b==null){var V=o&&o.constructor;$?b=A?new V:[]:zt(o)?b=Ra(V)?Ho(Uc(o)):{}:b={}}return($?hn:ta)(o,function(G,Z,te){return d(b,G,Z,te)}),b}function QA(o,d){return o==null?!0:N0(o,d)}function eR(o,d,b){return o==null?o:Fy(o,d,j0(b))}function tR(o,d,b,A){return A=typeof A=="function"?A:r,o==null?o:Fy(o,d,j0(b),A)}function Yo(o){return o==null?[]:g0(o,ar(o))}function rR(o){return o==null?[]:g0(o,Nr(o))}function nR(o,d,b){return b===r&&(b=d,d=r),b!==r&&(b=yn(b),b=b===b?b:0),d!==r&&(d=yn(d),d=d===d?d:0),Wi(yn(o),d,b)}function aR(o,d,b){return d=Pa(d),b===r?(b=d,d=0):b=Pa(b),o=yn(o),c7(o,d,b)}function iR(o,d,b){if(b&&typeof b!="boolean"&&Cr(o,d,b)&&(d=b=r),b===r&&(typeof d=="boolean"?(b=d,d=r):typeof o=="boolean"&&(b=o,o=r)),o===r&&d===r?(o=0,d=1):(o=Pa(o),d===r?(d=o,o=0):d=Pa(d)),o>d){var A=o;o=d,d=A}if(b||o%1||d%1){var $=cy();return br(o+$*(d-o+Lk("1e-"+(($+"").length-1))),d)}return D0(o,d)}var oR=qo(function(o,d,b){return d=d.toLowerCase(),o+(b?B_(d):d)});function B_(o){return ip(yt(o).toLowerCase())}function H_(o){return o=yt(o),o&&o.replace(Dr,Xk).replace(Tk,"")}function sR(o,d,b){o=yt(o),d=Gr(d);var A=o.length;b=b===r?A:Wi(Ke(b),0,A);var $=b;return b-=d.length,b>=0&&o.slice(b,$)==d}function uR(o){return o=yt(o),o&&Yh.test(o)?o.replace(Do,Zk):o}function lR(o){return o=yt(o),o&&Dc.test(o)?o.replace(Mo,"\\$&"):o}var cR=qo(function(o,d,b){return o+(b?"-":"")+d.toLowerCase()}),dR=qo(function(o,d,b){return o+(b?" ":"")+d.toLowerCase()}),fR=Wy("toLowerCase");function hR(o,d,b){o=yt(o),d=Ke(d);var A=d?Lo(o):0;if(!d||A>=d)return o;var $=(d-A)/2;return od(Yc($),b)+o+od(Vc($),b)}function pR(o,d,b){o=yt(o),d=Ke(d);var A=d?Lo(o):0;return d&&A<d?o+od(d-A,b):o}function mR(o,d,b){o=yt(o),d=Ke(d);var A=d?Lo(o):0;return d&&A<d?od(d-A,b)+o:o}function gR(o,d,b){return b||d==null?d=0:d&&(d=+d),ST(yt(o).replace(uu,""),d||0)}function vR(o,d,b){return(b?Cr(o,d,b):d===r)?d=1:d=Ke(d),M0(yt(o),d)}function bR(){var o=arguments,d=yt(o[0]);return o.length<3?d:d.replace(o[1],o[2])}var yR=qo(function(o,d,b){return o+(b?"_":"")+d.toLowerCase()});function _R(o,d,b){return b&&typeof b!="number"&&Cr(o,d,b)&&(d=b=r),b=b===r?q:b>>>0,b?(o=yt(o),o&&(typeof d=="string"||d!=null&&!rp(d))&&(d=Gr(d),!d&&Io(o))?vi(Rn(o),0,b):o.split(d,b)):[]}var wR=qo(function(o,d,b){return o+(b?" ":"")+ip(d)});function xR(o,d,b){return o=yt(o),b=b==null?0:Wi(Ke(b),0,o.length),d=Gr(d),o.slice(b,b+d.length)==d}function SR(o,d,b){var A=W.templateSettings;b&&Cr(o,d,b)&&(d=r),o=yt(o),d=bd({},d,A,Jy);var $=bd({},d.imports,A.imports,Jy),V=ar($),G=g0($,V),Z,te,de=0,fe=d.interpolate||An,me="__p += '",_e=b0((d.escape||An).source+"|"+fe.source+"|"+(fe===su?ft:An).source+"|"+(d.evaluate||An).source+"|$","g"),Re="//# sourceURL="+(kt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Dk+"]")+`
|
|
40
|
+
`;o.replace(_e,function(ze,tt,lt,Xr,Er,Zr){return lt||(lt=Xr),me+=o.slice(de,Zr).replace(Sa,Jk),tt&&(Z=!0,me+=`' +
|
|
41
41
|
__e(`+tt+`) +
|
|
42
42
|
'`),Er&&(te=!0,me+=`';
|
|
43
43
|
`+Er+`;
|
|
@@ -49,15 +49,15 @@ __p += '`),lt&&(me+=`' +
|
|
|
49
49
|
}
|
|
50
50
|
`;else if(xe.test($e))throw new Ve(l);me=(te?me.replace(ou,""):me).replace(Oc,"$1").replace(li,"$1;"),me="function("+($e||"obj")+`) {
|
|
51
51
|
`+($e?"":`obj || (obj = {});
|
|
52
|
-
`)+"var __t, __p = ''"+(
|
|
52
|
+
`)+"var __t, __p = ''"+(Z?", __e = _.escape":"")+(te?`, __j = Array.prototype.join;
|
|
53
53
|
function print() { __p += __j.call(arguments, '') }
|
|
54
54
|
`:`;
|
|
55
55
|
`)+me+`return __p
|
|
56
|
-
}`;var Ze=q_(function(){return gt(V,Re+"return "+me).apply(r,G)});if(Ze.source=me,tp(Ze))throw Ze;return Ze}function CR(o){return yt(o).toLowerCase()}function ER(o){return yt(o).toUpperCase()}function kR(o,d,b){if(o=yt(o),o&&(b||d===r))return Qb(o);if(!o||!(d=Gr(d)))return o;var A=Rn(o),$=Rn(d),V=ey(A,$),G=ty(A,$)+1;return vi(A,V,G).join("")}function TR(o,d,b){if(o=yt(o),o&&(b||d===r))return o.slice(0,ny(o)+1);if(!o||!(d=Gr(d)))return o;var A=Rn(o),$=ty(A,Rn(d))+1;return vi(A,0,$).join("")}function OR(o,d,b){if(o=yt(o),o&&(b||d===r))return o.replace(uu,"");if(!o||!(d=Gr(d)))return o;var A=Rn(o),$=ey(A,Rn(d));return vi(A,$).join("")}function AR(o,d){var b=P,A=M;if(zt(d)){var $="separator"in d?d.separator:$;b="length"in d?Ke(d.length):b,A="omission"in d?Gr(d.omission):A}o=yt(o);var V=o.length;if(Io(o)){var G=Rn(o);V=G.length}if(b>=V)return o;var X=b-Lo(A);if(X<1)return A;var te=G?vi(G,0,X).join(""):o.slice(0,X);if($===r)return te+A;if(G&&(X+=te.length-X),rp($)){if(o.slice(X).search($)){var de,fe=te;for($.global||($=b0($.source,yt(bt.exec($))+"g")),$.lastIndex=0;de=$.exec(fe);)var me=de.index;te=te.slice(0,me===r?X:me)}}else if(o.indexOf(Gr($),X)!=X){var _e=te.lastIndexOf($);_e>-1&&(te=te.slice(0,_e))}return te+A}function RR(o){return o=yt(o),o&&Ac.test(o)?o.replace(Po,iT):o}var PR=qo(function(o,d,b){return o+(b?" ":"")+d.toUpperCase()}),ip=Wy("toUpperCase");function U_(o,d,b){return o=yt(o),d=b?r:d,d===r?eT(o)?uT(o):Wk(o):o.match(d)||[]}var q_=Qe(function(o,d){try{return Vr(o,r,d)}catch(b){return tp(b)?b:new Ve(b)}}),DR=Oa(function(o,d){return hn(d,function(b){b=na(b),ka(o,b,Q0(o[b],o))}),o});function MR(o){var d=o==null?0:o.length,b=je();return o=d?Lt(o,function(A){if(typeof A[1]!="function")throw new pn(s);return[b(A[0]),A[1]]}):[],Qe(function(A){for(var $=-1;++$<d;){var V=o[$];if(Vr(V[0],this,A))return Vr(V[1],this,A)}})}function FR(o){return i7(gn(o,p))}function op(o){return function(){return o}}function NR(o,d){return o==null||o!==o?d:o}var IR=Yy(),LR=Yy(!0);function Ir(o){return o}function sp(o){return Sy(typeof o=="function"?o:gn(o,p))}function jR(o){return Ey(gn(o,p))}function $R(o,d){return ky(o,gn(d,p))}var zR=Qe(function(o,d){return function(b){return bu(b,o,d)}}),BR=Qe(function(o,d){return function(b){return bu(o,b,d)}});function up(o,d,b){var A=ar(d),$=Qc(d,A);b==null&&!(zt(d)&&($.length||!A.length))&&(b=d,d=o,o=this,$=Qc(d,ar(d)));var V=!(zt(b)&&"chain"in b)||!!b.chain,G=Ra(o);return hn($,function(X){var te=d[X];o[X]=te,G&&(o.prototype[X]=function(){var de=this.__chain__;if(V||de){var fe=o(this.__wrapped__),me=fe.__actions__=Mr(this.__actions__);return me.push({func:te,args:arguments,thisArg:o}),fe.__chain__=de,fe}return te.apply(o,di([this.value()],arguments))})}),o}function HR(){return cr._===this&&(cr._=pT),this}function lp(){}function UR(o){return o=Ke(o),Qe(function(d){return Ty(d,o)})}var qR=z0(Lt),WR=z0(Gb),VR=z0(d0);function W_(o){return Y0(o)?f0(na(o)):x7(o)}function YR(o){return function(d){return o==null?r:Vi(o,d)}}var GR=Ky(),KR=Ky(!0);function cp(){return[]}function dp(){return!1}function XR(){return{}}function ZR(){return""}function JR(){return!0}function QR(o,d){if(o=Ke(o),o<1||o>z)return[];var b=q,A=br(o,q);d=je(d),o-=q;for(var $=m0(A,d);++b<o;)d(b);return $}function eP(o){return Ye(o)?Lt(o,na):Kr(o)?[o]:Mr(d_(yt(o)))}function tP(o){var d=++fT;return yt(o)+d}var rP=id(function(o,d){return o+d},0),nP=B0("ceil"),aP=id(function(o,d){return o/d},1),iP=B0("floor");function oP(o){return o&&o.length?Jc(o,Ir,k0):r}function sP(o,d){return o&&o.length?Jc(o,je(d,2),k0):r}function uP(o){return Zb(o,Ir)}function lP(o,d){return Zb(o,je(d,2))}function cP(o){return o&&o.length?Jc(o,Ir,R0):r}function dP(o,d){return o&&o.length?Jc(o,je(d,2),R0):r}var fP=id(function(o,d){return o*d},1),hP=B0("round"),pP=id(function(o,d){return o-d},0);function mP(o){return o&&o.length?p0(o,Ir):0}function gP(o,d){return o&&o.length?p0(o,je(d,2)):0}return W.after=jO,W.ary=x_,W.assign=EA,W.assignIn=I_,W.assignInWith=bd,W.assignWith=kA,W.at=TA,W.before=S_,W.bind=Q0,W.bindAll=DR,W.bindKey=C_,W.castArray=XO,W.chain=y_,W.chunk=i9,W.compact=o9,W.concat=s9,W.cond=MR,W.conforms=FR,W.constant=op,W.countBy=mO,W.create=OA,W.curry=E_,W.curryRight=k_,W.debounce=T_,W.defaults=AA,W.defaultsDeep=RA,W.defer=$O,W.delay=zO,W.difference=u9,W.differenceBy=l9,W.differenceWith=c9,W.drop=d9,W.dropRight=f9,W.dropRightWhile=h9,W.dropWhile=p9,W.fill=m9,W.filter=vO,W.flatMap=_O,W.flatMapDeep=wO,W.flatMapDepth=xO,W.flatten=m_,W.flattenDeep=g9,W.flattenDepth=v9,W.flip=BO,W.flow=IR,W.flowRight=LR,W.fromPairs=b9,W.functions=LA,W.functionsIn=jA,W.groupBy=SO,W.initial=_9,W.intersection=w9,W.intersectionBy=x9,W.intersectionWith=S9,W.invert=zA,W.invertBy=BA,W.invokeMap=EO,W.iteratee=sp,W.keyBy=kO,W.keys=ar,W.keysIn=Nr,W.map=fd,W.mapKeys=UA,W.mapValues=qA,W.matches=jR,W.matchesProperty=$R,W.memoize=pd,W.merge=WA,W.mergeWith=L_,W.method=zR,W.methodOf=BR,W.mixin=up,W.negate=md,W.nthArg=UR,W.omit=VA,W.omitBy=YA,W.once=HO,W.orderBy=TO,W.over=qR,W.overArgs=UO,W.overEvery=WR,W.overSome=VR,W.partial=ep,W.partialRight=O_,W.partition=OO,W.pick=GA,W.pickBy=j_,W.property=W_,W.propertyOf=YR,W.pull=T9,W.pullAll=v_,W.pullAllBy=O9,W.pullAllWith=A9,W.pullAt=R9,W.range=GR,W.rangeRight=KR,W.rearg=qO,W.reject=PO,W.remove=P9,W.rest=WO,W.reverse=Z0,W.sampleSize=MO,W.set=XA,W.setWith=ZA,W.shuffle=FO,W.slice=D9,W.sortBy=LO,W.sortedUniq=$9,W.sortedUniqBy=z9,W.split=_R,W.spread=VO,W.tail=B9,W.take=H9,W.takeRight=U9,W.takeRightWhile=q9,W.takeWhile=W9,W.tap=oO,W.throttle=YO,W.thru=dd,W.toArray=M_,W.toPairs=$_,W.toPairsIn=z_,W.toPath=eP,W.toPlainObject=N_,W.transform=JA,W.unary=GO,W.union=V9,W.unionBy=Y9,W.unionWith=G9,W.uniq=K9,W.uniqBy=X9,W.uniqWith=Z9,W.unset=QA,W.unzip=J0,W.unzipWith=b_,W.update=eR,W.updateWith=tR,W.values=Yo,W.valuesIn=rR,W.without=J9,W.words=U_,W.wrap=KO,W.xor=Q9,W.xorBy=eO,W.xorWith=tO,W.zip=rO,W.zipObject=nO,W.zipObjectDeep=aO,W.zipWith=iO,W.entries=$_,W.entriesIn=z_,W.extend=I_,W.extendWith=bd,up(W,W),W.add=rP,W.attempt=q_,W.camelCase=oR,W.capitalize=B_,W.ceil=nP,W.clamp=nR,W.clone=ZO,W.cloneDeep=QO,W.cloneDeepWith=eA,W.cloneWith=JO,W.conformsTo=tA,W.deburr=H_,W.defaultTo=NR,W.divide=aP,W.endsWith=sR,W.eq=Dn,W.escape=uR,W.escapeRegExp=lR,W.every=gO,W.find=bO,W.findIndex=h_,W.findKey=PA,W.findLast=yO,W.findLastIndex=p_,W.findLastKey=DA,W.floor=iP,W.forEach=__,W.forEachRight=w_,W.forIn=MA,W.forInRight=FA,W.forOwn=NA,W.forOwnRight=IA,W.get=np,W.gt=rA,W.gte=nA,W.has=$A,W.hasIn=ap,W.head=g_,W.identity=Ir,W.includes=CO,W.indexOf=y9,W.inRange=aR,W.invoke=HA,W.isArguments=Ki,W.isArray=Ye,W.isArrayBuffer=aA,W.isArrayLike=Fr,W.isArrayLikeObject=Wt,W.isBoolean=iA,W.isBuffer=bi,W.isDate=oA,W.isElement=sA,W.isEmpty=uA,W.isEqual=lA,W.isEqualWith=cA,W.isError=tp,W.isFinite=dA,W.isFunction=Ra,W.isInteger=A_,W.isLength=gd,W.isMap=R_,W.isMatch=fA,W.isMatchWith=hA,W.isNaN=pA,W.isNative=mA,W.isNil=vA,W.isNull=gA,W.isNumber=P_,W.isObject=zt,W.isObjectLike=Ut,W.isPlainObject=Cu,W.isRegExp=rp,W.isSafeInteger=bA,W.isSet=D_,W.isString=vd,W.isSymbol=Kr,W.isTypedArray=Vo,W.isUndefined=yA,W.isWeakMap=_A,W.isWeakSet=wA,W.join=C9,W.kebabCase=cR,W.last=bn,W.lastIndexOf=E9,W.lowerCase=dR,W.lowerFirst=fR,W.lt=xA,W.lte=SA,W.max=oP,W.maxBy=sP,W.mean=uP,W.meanBy=lP,W.min=cP,W.minBy=dP,W.stubArray=cp,W.stubFalse=dp,W.stubObject=XR,W.stubString=ZR,W.stubTrue=JR,W.multiply=fP,W.nth=k9,W.noConflict=HR,W.noop=lp,W.now=hd,W.pad=hR,W.padEnd=pR,W.padStart=mR,W.parseInt=gR,W.random=iR,W.reduce=AO,W.reduceRight=RO,W.repeat=vR,W.replace=bR,W.result=KA,W.round=hP,W.runInContext=Q,W.sample=DO,W.size=NO,W.snakeCase=yR,W.some=IO,W.sortedIndex=M9,W.sortedIndexBy=F9,W.sortedIndexOf=N9,W.sortedLastIndex=I9,W.sortedLastIndexBy=L9,W.sortedLastIndexOf=j9,W.startCase=wR,W.startsWith=xR,W.subtract=pP,W.sum=mP,W.sumBy=gP,W.template=SR,W.times=QR,W.toFinite=Pa,W.toInteger=Ke,W.toLength=F_,W.toLower=CR,W.toNumber=yn,W.toSafeInteger=CA,W.toString=yt,W.toUpper=ER,W.trim=kR,W.trimEnd=TR,W.trimStart=OR,W.truncate=AR,W.unescape=RR,W.uniqueId=tP,W.upperCase=PR,W.upperFirst=ip,W.each=__,W.eachRight=w_,W.first=g_,up(W,function(){var o={};return ta(W,function(d,b){kt.call(W.prototype,b)||(o[b]=d)}),o}(),{chain:!1}),W.VERSION=n,hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){W[o].placeholder=W}),hn(["drop","take"],function(o,d){ot.prototype[o]=function(b){b=b===r?1:er(Ke(b),0);var A=this.__filtered__&&!d?new ot(this):this.clone();return A.__filtered__?A.__takeCount__=br(b,A.__takeCount__):A.__views__.push({size:br(b,q),type:o+(A.__dir__<0?"Right":"")}),A},ot.prototype[o+"Right"]=function(b){return this.reverse()[o](b).reverse()}}),hn(["filter","map","takeWhile"],function(o,d){var b=d+1,A=b==N||b==O;ot.prototype[o]=function($){var V=this.clone();return V.__iteratees__.push({iteratee:je($,3),type:b}),V.__filtered__=V.__filtered__||A,V}}),hn(["head","last"],function(o,d){var b="take"+(d?"Right":"");ot.prototype[o]=function(){return this[b](1).value()[0]}}),hn(["initial","tail"],function(o,d){var b="drop"+(d?"":"Right");ot.prototype[o]=function(){return this.__filtered__?new ot(this):this[b](1)}}),ot.prototype.compact=function(){return this.filter(Ir)},ot.prototype.find=function(o){return this.filter(o).head()},ot.prototype.findLast=function(o){return this.reverse().find(o)},ot.prototype.invokeMap=Qe(function(o,d){return typeof o=="function"?new ot(this):this.map(function(b){return bu(b,o,d)})}),ot.prototype.reject=function(o){return this.filter(md(je(o)))},ot.prototype.slice=function(o,d){o=Ke(o);var b=this;return b.__filtered__&&(o>0||d<0)?new ot(b):(o<0?b=b.takeRight(-o):o&&(b=b.drop(o)),d!==r&&(d=Ke(d),b=d<0?b.dropRight(-d):b.take(d-o)),b)},ot.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},ot.prototype.toArray=function(){return this.take(q)},ta(ot.prototype,function(o,d){var b=/^(?:filter|find|map|reject)|While$/.test(d),A=/^(?:head|last)$/.test(d),$=W[A?"take"+(d=="last"?"Right":""):d],V=A||/^find/.test(d);$&&(W.prototype[d]=function(){var G=this.__wrapped__,X=A?[1]:arguments,te=G instanceof ot,de=X[0],fe=te||Ye(G),me=function(tt){var lt=$.apply(W,di([tt],X));return A&&_e?lt[0]:lt};fe&&b&&typeof de=="function"&&de.length!=1&&(te=fe=!1);var _e=this.__chain__,Re=!!this.__actions__.length,$e=V&&!_e,Ze=te&&!Re;if(!V&&fe){G=Ze?G:new ot(this);var ze=o.apply(G,X);return ze.__actions__.push({func:dd,args:[me],thisArg:r}),new mn(ze,_e)}return $e&&Ze?o.apply(this,X):(ze=this.thru(me),$e?A?ze.value()[0]:ze.value():ze)})}),hn(["pop","push","shift","sort","splice","unshift"],function(o){var d=Lc[o],b=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",A=/^(?:pop|shift)$/.test(o);W.prototype[o]=function(){var $=arguments;if(A&&!this.__chain__){var V=this.value();return d.apply(Ye(V)?V:[],$)}return this[b](function(G){return d.apply(Ye(G)?G:[],$)})}}),ta(ot.prototype,function(o,d){var b=W[d];if(b){var A=b.name+"";kt.call(Bo,A)||(Bo[A]=[]),Bo[A].push({name:d,func:b})}}),Bo[ad(r,T).name]=[{name:"wrapper",func:r}],ot.prototype.clone=RT,ot.prototype.reverse=PT,ot.prototype.value=DT,W.prototype.at=sO,W.prototype.chain=uO,W.prototype.commit=lO,W.prototype.next=cO,W.prototype.plant=fO,W.prototype.reverse=hO,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=pO,W.prototype.first=W.prototype.head,du&&(W.prototype[du]=dO),W},jo=lT();Bi?((Bi.exports=jo)._=jo,s0._=jo):cr._=jo}).call(NP)}(xl,xl.exports)),xl.exports}var ie=IP();const LP=({prefixCls:e="frontend",...t},r)=>{Z.ConfigProvider.config({prefixCls:e});const n=F.createElement(Z.ConfigProvider,{prefixCls:e,locale:FP,input:{autoComplete:"off"},autoInsertSpaceInButton:!1},t.children);return D.jsx(eh.Provider,{value:t.contextData,children:D.jsx(Z.ConfigProvider,{theme:{token:{colorPrimary:"#0563B2",colorText:"#2c3652",fontSize:12},...ie.omit(t,"children")},children:n})})};var bp={exports:{}};/*!
|
|
56
|
+
}`;var Ze=q_(function(){return gt(V,Re+"return "+me).apply(r,G)});if(Ze.source=me,tp(Ze))throw Ze;return Ze}function CR(o){return yt(o).toLowerCase()}function ER(o){return yt(o).toUpperCase()}function kR(o,d,b){if(o=yt(o),o&&(b||d===r))return Qb(o);if(!o||!(d=Gr(d)))return o;var A=Rn(o),$=Rn(d),V=ey(A,$),G=ty(A,$)+1;return vi(A,V,G).join("")}function TR(o,d,b){if(o=yt(o),o&&(b||d===r))return o.slice(0,ny(o)+1);if(!o||!(d=Gr(d)))return o;var A=Rn(o),$=ty(A,Rn(d))+1;return vi(A,0,$).join("")}function OR(o,d,b){if(o=yt(o),o&&(b||d===r))return o.replace(uu,"");if(!o||!(d=Gr(d)))return o;var A=Rn(o),$=ey(A,Rn(d));return vi(A,$).join("")}function AR(o,d){var b=P,A=M;if(zt(d)){var $="separator"in d?d.separator:$;b="length"in d?Ke(d.length):b,A="omission"in d?Gr(d.omission):A}o=yt(o);var V=o.length;if(Io(o)){var G=Rn(o);V=G.length}if(b>=V)return o;var Z=b-Lo(A);if(Z<1)return A;var te=G?vi(G,0,Z).join(""):o.slice(0,Z);if($===r)return te+A;if(G&&(Z+=te.length-Z),rp($)){if(o.slice(Z).search($)){var de,fe=te;for($.global||($=b0($.source,yt(bt.exec($))+"g")),$.lastIndex=0;de=$.exec(fe);)var me=de.index;te=te.slice(0,me===r?Z:me)}}else if(o.indexOf(Gr($),Z)!=Z){var _e=te.lastIndexOf($);_e>-1&&(te=te.slice(0,_e))}return te+A}function RR(o){return o=yt(o),o&&Ac.test(o)?o.replace(Po,iT):o}var PR=qo(function(o,d,b){return o+(b?" ":"")+d.toUpperCase()}),ip=Wy("toUpperCase");function U_(o,d,b){return o=yt(o),d=b?r:d,d===r?eT(o)?uT(o):Wk(o):o.match(d)||[]}var q_=Qe(function(o,d){try{return Vr(o,r,d)}catch(b){return tp(b)?b:new Ve(b)}}),DR=Oa(function(o,d){return hn(d,function(b){b=na(b),ka(o,b,Q0(o[b],o))}),o});function MR(o){var d=o==null?0:o.length,b=je();return o=d?Lt(o,function(A){if(typeof A[1]!="function")throw new pn(s);return[b(A[0]),A[1]]}):[],Qe(function(A){for(var $=-1;++$<d;){var V=o[$];if(Vr(V[0],this,A))return Vr(V[1],this,A)}})}function FR(o){return i7(gn(o,p))}function op(o){return function(){return o}}function NR(o,d){return o==null||o!==o?d:o}var IR=Yy(),LR=Yy(!0);function Ir(o){return o}function sp(o){return Sy(typeof o=="function"?o:gn(o,p))}function jR(o){return Ey(gn(o,p))}function $R(o,d){return ky(o,gn(d,p))}var zR=Qe(function(o,d){return function(b){return bu(b,o,d)}}),BR=Qe(function(o,d){return function(b){return bu(o,b,d)}});function up(o,d,b){var A=ar(d),$=Qc(d,A);b==null&&!(zt(d)&&($.length||!A.length))&&(b=d,d=o,o=this,$=Qc(d,ar(d)));var V=!(zt(b)&&"chain"in b)||!!b.chain,G=Ra(o);return hn($,function(Z){var te=d[Z];o[Z]=te,G&&(o.prototype[Z]=function(){var de=this.__chain__;if(V||de){var fe=o(this.__wrapped__),me=fe.__actions__=Mr(this.__actions__);return me.push({func:te,args:arguments,thisArg:o}),fe.__chain__=de,fe}return te.apply(o,di([this.value()],arguments))})}),o}function HR(){return cr._===this&&(cr._=pT),this}function lp(){}function UR(o){return o=Ke(o),Qe(function(d){return Ty(d,o)})}var qR=z0(Lt),WR=z0(Gb),VR=z0(d0);function W_(o){return Y0(o)?f0(na(o)):x7(o)}function YR(o){return function(d){return o==null?r:Vi(o,d)}}var GR=Ky(),KR=Ky(!0);function cp(){return[]}function dp(){return!1}function XR(){return{}}function ZR(){return""}function JR(){return!0}function QR(o,d){if(o=Ke(o),o<1||o>z)return[];var b=q,A=br(o,q);d=je(d),o-=q;for(var $=m0(A,d);++b<o;)d(b);return $}function eP(o){return Ye(o)?Lt(o,na):Kr(o)?[o]:Mr(d_(yt(o)))}function tP(o){var d=++fT;return yt(o)+d}var rP=id(function(o,d){return o+d},0),nP=B0("ceil"),aP=id(function(o,d){return o/d},1),iP=B0("floor");function oP(o){return o&&o.length?Jc(o,Ir,k0):r}function sP(o,d){return o&&o.length?Jc(o,je(d,2),k0):r}function uP(o){return Zb(o,Ir)}function lP(o,d){return Zb(o,je(d,2))}function cP(o){return o&&o.length?Jc(o,Ir,R0):r}function dP(o,d){return o&&o.length?Jc(o,je(d,2),R0):r}var fP=id(function(o,d){return o*d},1),hP=B0("round"),pP=id(function(o,d){return o-d},0);function mP(o){return o&&o.length?p0(o,Ir):0}function gP(o,d){return o&&o.length?p0(o,je(d,2)):0}return W.after=jO,W.ary=x_,W.assign=EA,W.assignIn=I_,W.assignInWith=bd,W.assignWith=kA,W.at=TA,W.before=S_,W.bind=Q0,W.bindAll=DR,W.bindKey=C_,W.castArray=XO,W.chain=y_,W.chunk=i9,W.compact=o9,W.concat=s9,W.cond=MR,W.conforms=FR,W.constant=op,W.countBy=mO,W.create=OA,W.curry=E_,W.curryRight=k_,W.debounce=T_,W.defaults=AA,W.defaultsDeep=RA,W.defer=$O,W.delay=zO,W.difference=u9,W.differenceBy=l9,W.differenceWith=c9,W.drop=d9,W.dropRight=f9,W.dropRightWhile=h9,W.dropWhile=p9,W.fill=m9,W.filter=vO,W.flatMap=_O,W.flatMapDeep=wO,W.flatMapDepth=xO,W.flatten=m_,W.flattenDeep=g9,W.flattenDepth=v9,W.flip=BO,W.flow=IR,W.flowRight=LR,W.fromPairs=b9,W.functions=LA,W.functionsIn=jA,W.groupBy=SO,W.initial=_9,W.intersection=w9,W.intersectionBy=x9,W.intersectionWith=S9,W.invert=zA,W.invertBy=BA,W.invokeMap=EO,W.iteratee=sp,W.keyBy=kO,W.keys=ar,W.keysIn=Nr,W.map=fd,W.mapKeys=UA,W.mapValues=qA,W.matches=jR,W.matchesProperty=$R,W.memoize=pd,W.merge=WA,W.mergeWith=L_,W.method=zR,W.methodOf=BR,W.mixin=up,W.negate=md,W.nthArg=UR,W.omit=VA,W.omitBy=YA,W.once=HO,W.orderBy=TO,W.over=qR,W.overArgs=UO,W.overEvery=WR,W.overSome=VR,W.partial=ep,W.partialRight=O_,W.partition=OO,W.pick=GA,W.pickBy=j_,W.property=W_,W.propertyOf=YR,W.pull=T9,W.pullAll=v_,W.pullAllBy=O9,W.pullAllWith=A9,W.pullAt=R9,W.range=GR,W.rangeRight=KR,W.rearg=qO,W.reject=PO,W.remove=P9,W.rest=WO,W.reverse=Z0,W.sampleSize=MO,W.set=XA,W.setWith=ZA,W.shuffle=FO,W.slice=D9,W.sortBy=LO,W.sortedUniq=$9,W.sortedUniqBy=z9,W.split=_R,W.spread=VO,W.tail=B9,W.take=H9,W.takeRight=U9,W.takeRightWhile=q9,W.takeWhile=W9,W.tap=oO,W.throttle=YO,W.thru=dd,W.toArray=M_,W.toPairs=$_,W.toPairsIn=z_,W.toPath=eP,W.toPlainObject=N_,W.transform=JA,W.unary=GO,W.union=V9,W.unionBy=Y9,W.unionWith=G9,W.uniq=K9,W.uniqBy=X9,W.uniqWith=Z9,W.unset=QA,W.unzip=J0,W.unzipWith=b_,W.update=eR,W.updateWith=tR,W.values=Yo,W.valuesIn=rR,W.without=J9,W.words=U_,W.wrap=KO,W.xor=Q9,W.xorBy=eO,W.xorWith=tO,W.zip=rO,W.zipObject=nO,W.zipObjectDeep=aO,W.zipWith=iO,W.entries=$_,W.entriesIn=z_,W.extend=I_,W.extendWith=bd,up(W,W),W.add=rP,W.attempt=q_,W.camelCase=oR,W.capitalize=B_,W.ceil=nP,W.clamp=nR,W.clone=ZO,W.cloneDeep=QO,W.cloneDeepWith=eA,W.cloneWith=JO,W.conformsTo=tA,W.deburr=H_,W.defaultTo=NR,W.divide=aP,W.endsWith=sR,W.eq=Dn,W.escape=uR,W.escapeRegExp=lR,W.every=gO,W.find=bO,W.findIndex=h_,W.findKey=PA,W.findLast=yO,W.findLastIndex=p_,W.findLastKey=DA,W.floor=iP,W.forEach=__,W.forEachRight=w_,W.forIn=MA,W.forInRight=FA,W.forOwn=NA,W.forOwnRight=IA,W.get=np,W.gt=rA,W.gte=nA,W.has=$A,W.hasIn=ap,W.head=g_,W.identity=Ir,W.includes=CO,W.indexOf=y9,W.inRange=aR,W.invoke=HA,W.isArguments=Ki,W.isArray=Ye,W.isArrayBuffer=aA,W.isArrayLike=Fr,W.isArrayLikeObject=Wt,W.isBoolean=iA,W.isBuffer=bi,W.isDate=oA,W.isElement=sA,W.isEmpty=uA,W.isEqual=lA,W.isEqualWith=cA,W.isError=tp,W.isFinite=dA,W.isFunction=Ra,W.isInteger=A_,W.isLength=gd,W.isMap=R_,W.isMatch=fA,W.isMatchWith=hA,W.isNaN=pA,W.isNative=mA,W.isNil=vA,W.isNull=gA,W.isNumber=P_,W.isObject=zt,W.isObjectLike=Ut,W.isPlainObject=Cu,W.isRegExp=rp,W.isSafeInteger=bA,W.isSet=D_,W.isString=vd,W.isSymbol=Kr,W.isTypedArray=Vo,W.isUndefined=yA,W.isWeakMap=_A,W.isWeakSet=wA,W.join=C9,W.kebabCase=cR,W.last=bn,W.lastIndexOf=E9,W.lowerCase=dR,W.lowerFirst=fR,W.lt=xA,W.lte=SA,W.max=oP,W.maxBy=sP,W.mean=uP,W.meanBy=lP,W.min=cP,W.minBy=dP,W.stubArray=cp,W.stubFalse=dp,W.stubObject=XR,W.stubString=ZR,W.stubTrue=JR,W.multiply=fP,W.nth=k9,W.noConflict=HR,W.noop=lp,W.now=hd,W.pad=hR,W.padEnd=pR,W.padStart=mR,W.parseInt=gR,W.random=iR,W.reduce=AO,W.reduceRight=RO,W.repeat=vR,W.replace=bR,W.result=KA,W.round=hP,W.runInContext=Q,W.sample=DO,W.size=NO,W.snakeCase=yR,W.some=IO,W.sortedIndex=M9,W.sortedIndexBy=F9,W.sortedIndexOf=N9,W.sortedLastIndex=I9,W.sortedLastIndexBy=L9,W.sortedLastIndexOf=j9,W.startCase=wR,W.startsWith=xR,W.subtract=pP,W.sum=mP,W.sumBy=gP,W.template=SR,W.times=QR,W.toFinite=Pa,W.toInteger=Ke,W.toLength=F_,W.toLower=CR,W.toNumber=yn,W.toSafeInteger=CA,W.toString=yt,W.toUpper=ER,W.trim=kR,W.trimEnd=TR,W.trimStart=OR,W.truncate=AR,W.unescape=RR,W.uniqueId=tP,W.upperCase=PR,W.upperFirst=ip,W.each=__,W.eachRight=w_,W.first=g_,up(W,function(){var o={};return ta(W,function(d,b){kt.call(W.prototype,b)||(o[b]=d)}),o}(),{chain:!1}),W.VERSION=n,hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){W[o].placeholder=W}),hn(["drop","take"],function(o,d){ot.prototype[o]=function(b){b=b===r?1:er(Ke(b),0);var A=this.__filtered__&&!d?new ot(this):this.clone();return A.__filtered__?A.__takeCount__=br(b,A.__takeCount__):A.__views__.push({size:br(b,q),type:o+(A.__dir__<0?"Right":"")}),A},ot.prototype[o+"Right"]=function(b){return this.reverse()[o](b).reverse()}}),hn(["filter","map","takeWhile"],function(o,d){var b=d+1,A=b==N||b==O;ot.prototype[o]=function($){var V=this.clone();return V.__iteratees__.push({iteratee:je($,3),type:b}),V.__filtered__=V.__filtered__||A,V}}),hn(["head","last"],function(o,d){var b="take"+(d?"Right":"");ot.prototype[o]=function(){return this[b](1).value()[0]}}),hn(["initial","tail"],function(o,d){var b="drop"+(d?"":"Right");ot.prototype[o]=function(){return this.__filtered__?new ot(this):this[b](1)}}),ot.prototype.compact=function(){return this.filter(Ir)},ot.prototype.find=function(o){return this.filter(o).head()},ot.prototype.findLast=function(o){return this.reverse().find(o)},ot.prototype.invokeMap=Qe(function(o,d){return typeof o=="function"?new ot(this):this.map(function(b){return bu(b,o,d)})}),ot.prototype.reject=function(o){return this.filter(md(je(o)))},ot.prototype.slice=function(o,d){o=Ke(o);var b=this;return b.__filtered__&&(o>0||d<0)?new ot(b):(o<0?b=b.takeRight(-o):o&&(b=b.drop(o)),d!==r&&(d=Ke(d),b=d<0?b.dropRight(-d):b.take(d-o)),b)},ot.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},ot.prototype.toArray=function(){return this.take(q)},ta(ot.prototype,function(o,d){var b=/^(?:filter|find|map|reject)|While$/.test(d),A=/^(?:head|last)$/.test(d),$=W[A?"take"+(d=="last"?"Right":""):d],V=A||/^find/.test(d);$&&(W.prototype[d]=function(){var G=this.__wrapped__,Z=A?[1]:arguments,te=G instanceof ot,de=Z[0],fe=te||Ye(G),me=function(tt){var lt=$.apply(W,di([tt],Z));return A&&_e?lt[0]:lt};fe&&b&&typeof de=="function"&&de.length!=1&&(te=fe=!1);var _e=this.__chain__,Re=!!this.__actions__.length,$e=V&&!_e,Ze=te&&!Re;if(!V&&fe){G=Ze?G:new ot(this);var ze=o.apply(G,Z);return ze.__actions__.push({func:dd,args:[me],thisArg:r}),new mn(ze,_e)}return $e&&Ze?o.apply(this,Z):(ze=this.thru(me),$e?A?ze.value()[0]:ze.value():ze)})}),hn(["pop","push","shift","sort","splice","unshift"],function(o){var d=Lc[o],b=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",A=/^(?:pop|shift)$/.test(o);W.prototype[o]=function(){var $=arguments;if(A&&!this.__chain__){var V=this.value();return d.apply(Ye(V)?V:[],$)}return this[b](function(G){return d.apply(Ye(G)?G:[],$)})}}),ta(ot.prototype,function(o,d){var b=W[d];if(b){var A=b.name+"";kt.call(Bo,A)||(Bo[A]=[]),Bo[A].push({name:d,func:b})}}),Bo[ad(r,T).name]=[{name:"wrapper",func:r}],ot.prototype.clone=RT,ot.prototype.reverse=PT,ot.prototype.value=DT,W.prototype.at=sO,W.prototype.chain=uO,W.prototype.commit=lO,W.prototype.next=cO,W.prototype.plant=fO,W.prototype.reverse=hO,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=pO,W.prototype.first=W.prototype.head,du&&(W.prototype[du]=dO),W},jo=lT();Bi?((Bi.exports=jo)._=jo,s0._=jo):cr._=jo}).call(NP)}(xl,xl.exports)),xl.exports}var ie=IP();const LP=({prefixCls:e="frontend",...t},r)=>{X.ConfigProvider.config({prefixCls:e});const n=F.createElement(X.ConfigProvider,{prefixCls:e,locale:FP,input:{autoComplete:"off"},autoInsertSpaceInButton:!1},t.children);return D.jsx(eh.Provider,{value:t.contextData,children:D.jsx(X.ConfigProvider,{theme:{token:{colorPrimary:"#0563B2",colorText:"#2c3652",fontSize:12},...ie.omit(t,"children")},children:n})})};var bp={exports:{}};/*!
|
|
57
57
|
Copyright (c) 2018 Jed Watson.
|
|
58
58
|
Licensed under the MIT License (MIT), see
|
|
59
59
|
http://jedwatson.github.io/classnames
|
|
60
|
-
*/var c2;function jP(){return c2||(c2=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(i=a(i,n(l)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var l in i)t.call(i,l)&&i[l]&&(s=a(s,l));return s}function a(i,s){return s?i?i+" "+s:i+s:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(bp)),bp.exports}var $P=jP();const Te=Rr($P),zP="_main_5bucb_1",yp={main:zP};var _p={exports:{}},d2;function BP(){return d2||(d2=1,function(e){e.exports=function(t){var r={};function n(a){if(r[a])return r[a].exports;var i=r[a]={exports:{},id:a,loaded:!1};return t[a].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=t,n.c=r,n.p="",n(0)}([function(t,r,n){t.exports=n(1)},function(t,r,n){Object.defineProperty(r,"__esModule",{value:!0});function a(l){return l&&l.__esModule?l:{default:l}}var i=n(2),s=a(i);r.default=s.default,t.exports=r.default},function(t,r,n){Object.defineProperty(r,"__esModule",{value:!0});var a=Object.assign||function(g){for(var y=1;y<arguments.length;y++){var x=arguments[y];for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(g[E]=x[E])}return g};r.default=p;function i(g){return g&&g.__esModule?g:{default:g}}function s(g,y){var x={};for(var E in g)y.indexOf(E)>=0||Object.prototype.hasOwnProperty.call(g,E)&&(x[E]=g[E]);return x}var l=n(3),u=n(4),c=n(5),m=i(c);function p(g){var y=g.activeClassName,x=y===void 0?"":y,E=g.activeIndex,k=E===void 0?-1:E,T=g.activeStyle,w=g.autoEscape,S=g.caseSensitive,f=S===void 0?!1:S,h=g.className,v=g.findChunks,_=g.highlightClassName,R=_===void 0?"":_,C=g.highlightStyle,P=C===void 0?{}:C,M=g.highlightTag,U=M===void 0?"mark":M,L=g.sanitize,N=g.searchWords,j=g.textToHighlight,O=g.unhighlightTag,I=O===void 0?"span":O,z=g.unhighlightClassName,B=z===void 0?"":z,H=g.unhighlightStyle,q=s(g,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),J=(0,l.findAll)({autoEscape:w,caseSensitive:f,findChunks:v,sanitize:L,searchWords:N,textToHighlight:j}),re=U,ne=-1,se="",ce=void 0,le=function(Ee){var Le={};for(var he in Ee)Le[he.toLowerCase()]=Ee[he];return Le},ye=(0,m.default)(le);return(0,u.createElement)("span",a({className:h},q,{children:J.map(function(we,Ee){var Le=j.substr(we.start,we.end-we.start);if(we.highlight){ne++;var he=void 0;typeof R=="object"?f?he=R[Le]:(R=ye(R),he=R[Le.toLowerCase()]):he=R;var qe=ne===+k;se=he+" "+(qe?x:""),ce=qe===!0&&T!=null?Object.assign({},P,T):P;var oe={children:Le,className:se,key:Ee,style:ce};return typeof re!="string"&&(oe.highlightIndex=ne),(0,u.createElement)(re,oe)}else return(0,u.createElement)(I,{children:Le,className:B,key:Ee,style:H})})}))}t.exports=r.default},function(t,r){t.exports=function(n){var a={};function i(s){if(a[s])return a[s].exports;var l=a[s]={exports:{},id:s,loaded:!1};return n[s].call(l.exports,l,l.exports,i),l.loaded=!0,l.exports}return i.m=n,i.c=a,i.p="",i(0)}([function(n,a,i){n.exports=i(1)},function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=i(2);Object.defineProperty(a,"combineChunks",{enumerable:!0,get:function(){return s.combineChunks}}),Object.defineProperty(a,"fillInChunks",{enumerable:!0,get:function(){return s.fillInChunks}}),Object.defineProperty(a,"findAll",{enumerable:!0,get:function(){return s.findAll}}),Object.defineProperty(a,"findChunks",{enumerable:!0,get:function(){return s.findChunks}})},function(n,a){Object.defineProperty(a,"__esModule",{value:!0}),a.findAll=function(p){var g=p.autoEscape,y=p.caseSensitive,x=y===void 0?!1:y,E=p.findChunks,k=E===void 0?s:E,T=p.sanitize,w=p.searchWords,S=p.textToHighlight;return l({chunksToHighlight:i({chunks:k({autoEscape:g,caseSensitive:x,sanitize:T,searchWords:w,textToHighlight:S})}),totalLength:S?S.length:0})};var i=a.combineChunks=function(p){var g=p.chunks;return g=g.sort(function(y,x){return y.start-x.start}).reduce(function(y,x){if(y.length===0)return[x];var E=y.pop();if(x.start<=E.end){var k=Math.max(E.end,x.end);y.push({start:E.start,end:k})}else y.push(E,x);return y},[]),g},s=function(p){var g=p.autoEscape,y=p.caseSensitive,x=p.sanitize,E=x===void 0?u:x,k=p.searchWords,T=p.textToHighlight;return T=E(T),k.filter(function(w){return w}).reduce(function(w,S){S=E(S),g&&(S=c(S));for(var f=new RegExp(S,y?"g":"gi"),h=void 0;h=f.exec(T);){var v=h.index,_=f.lastIndex;_>v&&w.push({start:v,end:_}),h.index==f.lastIndex&&f.lastIndex++}return w},[])};a.findChunks=s;var l=a.fillInChunks=function(p){var g=p.chunksToHighlight,y=p.totalLength,x=[],E=function(w,S,f){S-w>0&&x.push({start:w,end:S,highlight:f})};if(g.length===0)E(0,y,!1);else{var k=0;g.forEach(function(T){E(k,T.start,!1),E(T.start,T.end,!0),k=T.end}),E(k,y,!1)}return x};function u(m){return m}function c(m){return m.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])},function(t,r){t.exports=F},function(t,r){var n=function(s,l){return s===l};function a(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n,l=void 0,u=[],c=void 0,m=!1,p=function(x,E){return s(x,u[E])},g=function(){for(var x=arguments.length,E=Array(x),k=0;k<x;k++)E[k]=arguments[k];return m&&l===this&&E.length===u.length&&E.every(p)||(m=!0,l=this,u=E,c=i.apply(this,E)),c};return g}t.exports=a}])}(_p)),_p.exports}var HP=BP();const rh=Rr(HP),UP="_mosaic_1jpg5_1",qP={mosaic:UP},pa=e=>D.jsx("span",{className:qP.mosaic,style:{display:e.inLine?"inline-block":"block"}}),ps=class ps{readPermission(t){return!["1999-09-09 09:09:09",ps.mosaic,"1999-09-09 09:09:9"].includes(t)}handlingError(t){return t=="1970-01-01 08:00:00"?"":t}hasAuthority(t,r){return this.readPermission(t[r])&&t[r]!==void 0}isMosaic(t){return t===ps.mosaic}mosaicBlank(t){return t==ps.mosaic?"":t||""}};Tt(ps,"mosaic","~#~");let jg=ps;class WP extends jg{constructor(){super(...arguments);Tt(this,"mosaic","~#~")}displayData(r,n=!0){return this.readPermission(r)?this.handlingError(r):D.jsx(pa,{inLine:n})}renderIsMosaic(r,n,a=!0){return this.readPermission(r)?n:D.jsx(pa,{inLine:a})}}const Sn=new WP,ho=e=>{var s;const{Option:t}=
|
|
60
|
+
*/var c2;function jP(){return c2||(c2=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(i=a(i,n(l)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var l in i)t.call(i,l)&&i[l]&&(s=a(s,l));return s}function a(i,s){return s?i?i+" "+s:i+s:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(bp)),bp.exports}var $P=jP();const Te=Rr($P),zP="_main_5bucb_1",yp={main:zP};var _p={exports:{}},d2;function BP(){return d2||(d2=1,function(e){e.exports=function(t){var r={};function n(a){if(r[a])return r[a].exports;var i=r[a]={exports:{},id:a,loaded:!1};return t[a].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=t,n.c=r,n.p="",n(0)}([function(t,r,n){t.exports=n(1)},function(t,r,n){Object.defineProperty(r,"__esModule",{value:!0});function a(l){return l&&l.__esModule?l:{default:l}}var i=n(2),s=a(i);r.default=s.default,t.exports=r.default},function(t,r,n){Object.defineProperty(r,"__esModule",{value:!0});var a=Object.assign||function(g){for(var y=1;y<arguments.length;y++){var x=arguments[y];for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(g[E]=x[E])}return g};r.default=p;function i(g){return g&&g.__esModule?g:{default:g}}function s(g,y){var x={};for(var E in g)y.indexOf(E)>=0||Object.prototype.hasOwnProperty.call(g,E)&&(x[E]=g[E]);return x}var l=n(3),u=n(4),c=n(5),m=i(c);function p(g){var y=g.activeClassName,x=y===void 0?"":y,E=g.activeIndex,k=E===void 0?-1:E,T=g.activeStyle,w=g.autoEscape,S=g.caseSensitive,f=S===void 0?!1:S,h=g.className,v=g.findChunks,_=g.highlightClassName,R=_===void 0?"":_,C=g.highlightStyle,P=C===void 0?{}:C,M=g.highlightTag,U=M===void 0?"mark":M,L=g.sanitize,N=g.searchWords,j=g.textToHighlight,O=g.unhighlightTag,I=O===void 0?"span":O,z=g.unhighlightClassName,B=z===void 0?"":z,H=g.unhighlightStyle,q=s(g,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),J=(0,l.findAll)({autoEscape:w,caseSensitive:f,findChunks:v,sanitize:L,searchWords:N,textToHighlight:j}),re=U,ne=-1,se="",ce=void 0,le=function(Ee){var Le={};for(var he in Ee)Le[he.toLowerCase()]=Ee[he];return Le},ye=(0,m.default)(le);return(0,u.createElement)("span",a({className:h},q,{children:J.map(function(we,Ee){var Le=j.substr(we.start,we.end-we.start);if(we.highlight){ne++;var he=void 0;typeof R=="object"?f?he=R[Le]:(R=ye(R),he=R[Le.toLowerCase()]):he=R;var qe=ne===+k;se=he+" "+(qe?x:""),ce=qe===!0&&T!=null?Object.assign({},P,T):P;var oe={children:Le,className:se,key:Ee,style:ce};return typeof re!="string"&&(oe.highlightIndex=ne),(0,u.createElement)(re,oe)}else return(0,u.createElement)(I,{children:Le,className:B,key:Ee,style:H})})}))}t.exports=r.default},function(t,r){t.exports=function(n){var a={};function i(s){if(a[s])return a[s].exports;var l=a[s]={exports:{},id:s,loaded:!1};return n[s].call(l.exports,l,l.exports,i),l.loaded=!0,l.exports}return i.m=n,i.c=a,i.p="",i(0)}([function(n,a,i){n.exports=i(1)},function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=i(2);Object.defineProperty(a,"combineChunks",{enumerable:!0,get:function(){return s.combineChunks}}),Object.defineProperty(a,"fillInChunks",{enumerable:!0,get:function(){return s.fillInChunks}}),Object.defineProperty(a,"findAll",{enumerable:!0,get:function(){return s.findAll}}),Object.defineProperty(a,"findChunks",{enumerable:!0,get:function(){return s.findChunks}})},function(n,a){Object.defineProperty(a,"__esModule",{value:!0}),a.findAll=function(p){var g=p.autoEscape,y=p.caseSensitive,x=y===void 0?!1:y,E=p.findChunks,k=E===void 0?s:E,T=p.sanitize,w=p.searchWords,S=p.textToHighlight;return l({chunksToHighlight:i({chunks:k({autoEscape:g,caseSensitive:x,sanitize:T,searchWords:w,textToHighlight:S})}),totalLength:S?S.length:0})};var i=a.combineChunks=function(p){var g=p.chunks;return g=g.sort(function(y,x){return y.start-x.start}).reduce(function(y,x){if(y.length===0)return[x];var E=y.pop();if(x.start<=E.end){var k=Math.max(E.end,x.end);y.push({start:E.start,end:k})}else y.push(E,x);return y},[]),g},s=function(p){var g=p.autoEscape,y=p.caseSensitive,x=p.sanitize,E=x===void 0?u:x,k=p.searchWords,T=p.textToHighlight;return T=E(T),k.filter(function(w){return w}).reduce(function(w,S){S=E(S),g&&(S=c(S));for(var f=new RegExp(S,y?"g":"gi"),h=void 0;h=f.exec(T);){var v=h.index,_=f.lastIndex;_>v&&w.push({start:v,end:_}),h.index==f.lastIndex&&f.lastIndex++}return w},[])};a.findChunks=s;var l=a.fillInChunks=function(p){var g=p.chunksToHighlight,y=p.totalLength,x=[],E=function(w,S,f){S-w>0&&x.push({start:w,end:S,highlight:f})};if(g.length===0)E(0,y,!1);else{var k=0;g.forEach(function(T){E(k,T.start,!1),E(T.start,T.end,!0),k=T.end}),E(k,y,!1)}return x};function u(m){return m}function c(m){return m.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])},function(t,r){t.exports=F},function(t,r){var n=function(s,l){return s===l};function a(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n,l=void 0,u=[],c=void 0,m=!1,p=function(x,E){return s(x,u[E])},g=function(){for(var x=arguments.length,E=Array(x),k=0;k<x;k++)E[k]=arguments[k];return m&&l===this&&E.length===u.length&&E.every(p)||(m=!0,l=this,u=E,c=i.apply(this,E)),c};return g}t.exports=a}])}(_p)),_p.exports}var HP=BP();const rh=Rr(HP),UP="_mosaic_1jpg5_1",qP={mosaic:UP},pa=e=>D.jsx("span",{className:qP.mosaic,style:{display:e.inLine?"inline-block":"block"}}),ps=class ps{readPermission(t){return!["1999-09-09 09:09:09",ps.mosaic,"1999-09-09 09:09:9"].includes(t)}handlingError(t){return t=="1970-01-01 08:00:00"?"":t}hasAuthority(t,r){return this.readPermission(t[r])&&t[r]!==void 0}isMosaic(t){return t===ps.mosaic}mosaicBlank(t){return t==ps.mosaic?"":t||""}};Tt(ps,"mosaic","~#~");let jg=ps;class WP extends jg{constructor(){super(...arguments);Tt(this,"mosaic","~#~")}displayData(r,n=!0){return this.readPermission(r)?this.handlingError(r):D.jsx(pa,{inLine:n})}renderIsMosaic(r,n,a=!0){return this.readPermission(r)?n:D.jsx(pa,{inLine:a})}}const Sn=new WP,ho=e=>{var s;const{Option:t}=X.Select,r={...e},[n,a]=F.useState(""),i=(l,u)=>D.jsx(rh,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},searchWords:[u?u.toString():""],autoEscape:!0,textToHighlight:l?l.toString():""});return r.loading?D.jsx(X.Select,{value:"",open:!1,loading:!0}):D.jsx(X.Select,{style:{...r.style,width:"100%"},className:Te(yp.main,r.className,{rrrrr:!0,[yp.pane]:e.pane}),...ie.omit(r,["options"]),onSearch:l=>{a(l)},filterOption:(l,u)=>u.label&&u.label.indexOf(l)>=0,dropdownClassName:yp.plm_select_dropdown,showSearch:!0,allowClear:e.allowClear==null?!0:e.allowClear,optionLabelProp:"label",children:(s=e.options)==null?void 0:s.map(l=>Sn.isMosaic(l.label)?D.jsx(t,{disabled:!0,children:D.jsx(pa,{})}):F.createElement(t,{...l,value:l.value,disabled:l.disabled,key:l.value,label:l.label},D.jsx("div",{title:l.label,style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:i(l.label,n)})))})},VP="_AliIconFont_14ovi_1",YP="_iconText_14ovi_2",GP="_disabled_14ovi_9",KP="_placementColor_14ovi_28",XP="_classNameDisabled_14ovi_33",ZP="_placementIcon_14ovi_37",JP="_btn_convider_14ovi_40",QP="_btn_icon_14ovi_40",eD="_omitPoint_14ovi_57",Lr={AliIconFont:VP,iconText:YP,disabled:GP,placementColor:KP,classNameDisabled:XP,placementIcon:ZP,btn_convider:JP,btn_icon:QP,omitPoint:eD};var ev=F.createContext({});function Mt(e){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}function tD(e,t){if(Mt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h8(e){var t=tD(e,"string");return Mt(t)=="symbol"?t:t+""}function Ae(e,t,r){return(t=h8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?f2(Object(r),!0).forEach(function(n){Ae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rD(e){if(Array.isArray(e))return e}function nD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,s,l=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(m){c=!0,a=m}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return l}}function $g(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function p8(e,t){if(e){if(typeof e=="string")return $g(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$g(e,t):void 0}}function aD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
61
61
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ge(e,t){return rD(e)||nD(e,t)||p8(e,t)||aD()}function iD(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ii(e,t){if(e==null)return{};var r,n,a=iD(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Cn(e,t){oD(e)&&(e="100%");var r=sD(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function oD(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function sD(e){return typeof e=="string"&&e.indexOf("%")!==-1}function uD(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function _d(e){return e<=1?"".concat(Number(e)*100,"%"):e}function wp(e){return e.length===1?"0"+e:String(e)}function lD(e,t,r){return{r:Cn(e,255)*255,g:Cn(t,255)*255,b:Cn(r,255)*255}}function xp(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function cD(e,t,r){var n,a,i;if(e=Cn(e,360),t=Cn(t,100),r=Cn(r,100),t===0)a=r,i=r,n=r;else{var s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=xp(l,s,e+1/3),a=xp(l,s,e),i=xp(l,s,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function dD(e,t,r){e=Cn(e,255),t=Cn(t,255),r=Cn(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,s=n,l=n-a,u=n===0?0:l/n;if(n===a)i=0;else{switch(n){case e:i=(t-r)/l+(t<r?6:0);break;case t:i=(r-e)/l+2;break;case r:i=(e-t)/l+4;break}i/=6}return{h:i,s:u,v:s}}function fD(e,t,r){e=Cn(e,360)*6,t=Cn(t,100),r=Cn(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),s=r*(1-a*t),l=r*(1-(1-a)*t),u=n%6,c=[r,s,i,i,l,r][u],m=[l,r,r,s,i,i][u],p=[i,i,l,r,r,s][u];return{r:c*255,g:m*255,b:p*255}}function hD(e,t,r,n){var a=[wp(Math.round(e).toString(16)),wp(Math.round(t).toString(16)),wp(Math.round(r).toString(16))];return a.join("")}function h2(e){return tn(e)/255}function tn(e){return parseInt(e,16)}var p2={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Fu(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=gD(e)),typeof e=="object"&&(Ma(e.r)&&Ma(e.g)&&Ma(e.b)?(t=lD(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ma(e.h)&&Ma(e.s)&&Ma(e.v)?(n=_d(e.s),a=_d(e.v),t=fD(e.h,n,a),s=!0,l="hsv"):Ma(e.h)&&Ma(e.s)&&Ma(e.l)&&(n=_d(e.s),i=_d(e.l),t=cD(e.h,n,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=uD(r),{ok:s,format:e.format||l,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:r}}var pD="[-\\+]?\\d+%?",mD="[-\\+]?\\d*\\.\\d+%?",Oi="(?:".concat(mD,")|(?:").concat(pD,")"),Sp="[\\s|\\(]+(".concat(Oi,")[,|\\s]+(").concat(Oi,")[,|\\s]+(").concat(Oi,")\\s*\\)?"),Cp="[\\s|\\(]+(".concat(Oi,")[,|\\s]+(").concat(Oi,")[,|\\s]+(").concat(Oi,")[,|\\s]+(").concat(Oi,")\\s*\\)?"),Nn={CSS_UNIT:new RegExp(Oi),rgb:new RegExp("rgb"+Sp),rgba:new RegExp("rgba"+Cp),hsl:new RegExp("hsl"+Sp),hsla:new RegExp("hsla"+Cp),hsv:new RegExp("hsv"+Sp),hsva:new RegExp("hsva"+Cp),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 gD(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(p2[e])e=p2[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Nn.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Nn.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Nn.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Nn.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Nn.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Nn.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Nn.hex8.exec(e),r?{r:tn(r[1]),g:tn(r[2]),b:tn(r[3]),a:h2(r[4]),format:t?"name":"hex8"}:(r=Nn.hex6.exec(e),r?{r:tn(r[1]),g:tn(r[2]),b:tn(r[3]),format:t?"name":"hex"}:(r=Nn.hex4.exec(e),r?{r:tn(r[1]+r[1]),g:tn(r[2]+r[2]),b:tn(r[3]+r[3]),a:h2(r[4]+r[4]),format:t?"name":"hex8"}:(r=Nn.hex3.exec(e),r?{r:tn(r[1]+r[1]),g:tn(r[2]+r[2]),b:tn(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Ma(e){return!!Nn.CSS_UNIT.exec(String(e))}var wd=2,m2=.16,vD=.05,bD=.05,yD=.15,m8=5,g8=4,_D=[{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 g2(e){var t=e.r,r=e.g,n=e.b,a=dD(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function xd(e){var t=e.r,r=e.g,n=e.b;return"#".concat(hD(t,r,n))}function wD(e,t,r){var n=r/100,a={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return a}function v2(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-wd*t:Math.round(e.h)+wd*t:n=r?Math.round(e.h)+wd*t:Math.round(e.h)-wd*t,n<0?n+=360:n>=360&&(n-=360),n}function b2(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-m2*t:t===g8?n=e.s+m2:n=e.s+vD*t,n>1&&(n=1),r&&t===m8&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function y2(e,t,r){var n;return r?n=e.v+bD*t:n=e.v-yD*t,n>1&&(n=1),Number(n.toFixed(2))}function zg(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=Fu(e),a=m8;a>0;a-=1){var i=g2(n),s=xd(Fu({h:v2(i,a,!0),s:b2(i,a,!0),v:y2(i,a,!0)}));r.push(s)}r.push(xd(n));for(var l=1;l<=g8;l+=1){var u=g2(n),c=xd(Fu({h:v2(u,l),s:b2(u,l),v:y2(u,l)}));r.push(c)}return t.theme==="dark"?_D.map(function(m){var p=m.index,g=m.opacity,y=xd(wD(Fu(t.backgroundColor||"#141414"),Fu(r[p]),g*100));return y}):r}var Ep={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},kp={},Tp={};Object.keys(Ep).forEach(function(e){kp[e]=zg(Ep[e]),kp[e].primary=kp[e][5],Tp[e]=zg(Ep[e],{theme:"dark",backgroundColor:"#141414"}),Tp[e].primary=Tp[e][5]});var Bg={},tv=[],xD=function(t){tv.push(t)};function rv(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=tv.reduce(function(n,a){return a(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function SD(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=tv.reduce(function(n,a){return a(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function CD(){Bg={}}function v8(e,t,r){!t&&!Bg[r]&&(e(!1,r),Bg[r]=!0)}function ko(e,t){v8(rv,e,t)}function ED(e,t){v8(SD,e,t)}ko.preMessage=xD;ko.resetWarned=CD;ko.noteOnce=ED;function ji(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function kD(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var _2="data-rc-order",w2="data-rc-priority",TD="rc-util-key",Hg=new Map;function b8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):TD}function nh(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function OD(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function nv(e){return Array.from((Hg.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function y8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ji())return null;var r=t.csp,n=t.prepend,a=t.priority,i=a===void 0?0:a,s=OD(n),l=s==="prependQueue",u=document.createElement("style");u.setAttribute(_2,s),l&&i&&u.setAttribute(w2,"".concat(i)),r!=null&&r.nonce&&(u.nonce=r==null?void 0:r.nonce),u.innerHTML=e;var c=nh(t),m=c.firstChild;if(n){if(l){var p=(t.styles||nv(c)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(_2)))return!1;var y=Number(g.getAttribute(w2)||0);return i>=y});if(p.length)return c.insertBefore(u,p[p.length-1].nextSibling),u}c.insertBefore(u,m)}else c.appendChild(u);return u}function _8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=nh(t);return(t.styles||nv(r)).find(function(n){return n.getAttribute(b8(t))===e})}function w8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=_8(e,t);if(r){var n=nh(t);n.removeChild(r)}}function AD(e,t){var r=Hg.get(e);if(!r||!kD(document,r)){var n=y8("",t),a=n.parentNode;Hg.set(e,a),e.removeChild(n)}}function bo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=nh(r),a=nv(n),i=pe(pe({},r),{},{styles:a});AD(n,i);var s=_8(t,i);if(s){var l,u;if((l=i.csp)!==null&&l!==void 0&&l.nonce&&s.nonce!==((u=i.csp)===null||u===void 0?void 0:u.nonce)){var c;s.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var m=y8(e,i);return m.setAttribute(b8(i),t),m}var Op,x2;function RD(){if(x2)return Op;x2=1;var e=typeof Un=="object"&&Un&&Un.Object===Object&&Un;return Op=e,Op}var Ap,S2;function x8(){if(S2)return Ap;S2=1;var e=RD(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ap=r,Ap}var Rp,C2;function av(){if(C2)return Rp;C2=1;var e=x8(),t=e.Symbol;return Rp=t,Rp}var Pp,E2;function PD(){if(E2)return Pp;E2=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=Array(a);++n<a;)i[n]=r(t[n],n,t);return i}return Pp=e,Pp}var Dp,k2;function DD(){if(k2)return Dp;k2=1;var e=Array.isArray;return Dp=e,Dp}var Mp,T2;function MD(){if(T2)return Mp;T2=1;var e=av(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function i(s){var l=r.call(s,a),u=s[a];try{s[a]=void 0;var c=!0}catch{}var m=n.call(s);return c&&(l?s[a]=u:delete s[a]),m}return Mp=i,Mp}var Fp,O2;function FD(){if(O2)return Fp;O2=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Fp=r,Fp}var Np,A2;function S8(){if(A2)return Np;A2=1;var e=av(),t=MD(),r=FD(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function s(l){return l==null?l===void 0?a:n:i&&i in Object(l)?t(l):r(l)}return Np=s,Np}var Ip,R2;function C8(){if(R2)return Ip;R2=1;function e(t){return t!=null&&typeof t=="object"}return Ip=e,Ip}var Lp,P2;function E8(){if(P2)return Lp;P2=1;var e=S8(),t=C8(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return Lp=n,Lp}var jp,D2;function ND(){if(D2)return jp;D2=1;var e=av(),t=PD(),r=DD(),n=E8(),a=e?e.prototype:void 0,i=a?a.toString:void 0;function s(l){if(typeof l=="string")return l;if(r(l))return t(l,s)+"";if(n(l))return i?i.call(l):"";var u=l+"";return u=="0"&&1/l==-1/0?"-0":u}return jp=s,jp}var $p,M2;function ah(){if(M2)return $p;M2=1;var e=ND();function t(r){return r==null?"":e(r)}return $p=t,$p}var zp,F2;function ID(){if(F2)return zp;F2=1;function e(t,r,n){var a=-1,i=t.length;r<0&&(r=-r>i?0:i+r),n=n>i?i:n,n<0&&(n+=i),i=r>n?0:n-r>>>0,r>>>=0;for(var s=Array(i);++a<i;)s[a]=t[a+r];return s}return zp=e,zp}var Bp,N2;function LD(){if(N2)return Bp;N2=1;var e=ID();function t(r,n,a){var i=r.length;return a=a===void 0?i:a,!n&&a>=i?r:e(r,n,a)}return Bp=t,Bp}var Hp,I2;function k8(){if(I2)return Hp;I2=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",s="\\u200d",l=RegExp("["+s+e+a+i+"]");function u(c){return l.test(c)}return Hp=u,Hp}var Up,L2;function jD(){if(L2)return Up;L2=1;function e(t){return t.split("")}return Up=e,Up}var qp,j2;function $D(){if(j2)return qp;j2=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",s="["+e+"]",l="["+a+"]",u="\\ud83c[\\udffb-\\udfff]",c="(?:"+l+"|"+u+")",m="[^"+e+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",y="\\u200d",x=c+"?",E="["+i+"]?",k="(?:"+y+"(?:"+[m,p,g].join("|")+")"+E+x+")*",T=E+x+k,w="(?:"+[m+l+"?",l,p,g,s].join("|")+")",S=RegExp(u+"(?="+u+")|"+w+T,"g");function f(h){return h.match(S)||[]}return qp=f,qp}var Wp,$2;function zD(){if($2)return Wp;$2=1;var e=jD(),t=k8(),r=$D();function n(a){return t(a)?r(a):e(a)}return Wp=n,Wp}var Vp,z2;function BD(){if(z2)return Vp;z2=1;var e=LD(),t=k8(),r=zD(),n=ah();function a(i){return function(s){s=n(s);var l=t(s)?r(s):void 0,u=l?l[0]:s.charAt(0),c=l?e(l,1).join(""):s.slice(1);return u[i]()+c}}return Vp=a,Vp}var Yp,B2;function HD(){if(B2)return Yp;B2=1;var e=BD(),t=e("toUpperCase");return Yp=t,Yp}var Gp,H2;function UD(){if(H2)return Gp;H2=1;var e=ah(),t=HD();function r(n){return t(e(n).toLowerCase())}return Gp=r,Gp}var Kp,U2;function qD(){if(U2)return Kp;U2=1;function e(t,r,n,a){var i=-1,s=t==null?0:t.length;for(a&&s&&(n=t[++i]);++i<s;)n=r(n,t[i],i,t);return n}return Kp=e,Kp}var Xp,q2;function WD(){if(q2)return Xp;q2=1;function e(t){return function(r){return t==null?void 0:t[r]}}return Xp=e,Xp}var Zp,W2;function VD(){if(W2)return Zp;W2=1;var e=WD(),t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},r=e(t);return Zp=r,Zp}var Jp,V2;function YD(){if(V2)return Jp;V2=1;var e=VD(),t=ah(),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n="\\u0300-\\u036f",a="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",s=n+a+i,l="["+s+"]",u=RegExp(l,"g");function c(m){return m=t(m),m&&m.replace(r,e).replace(u,"")}return Jp=c,Jp}var Qp,Y2;function GD(){if(Y2)return Qp;Y2=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(r){return r.match(e)||[]}return Qp=t,Qp}var em,G2;function KD(){if(G2)return em;G2=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(r){return e.test(r)}return em=t,em}var tm,K2;function XD(){if(K2)return tm;K2=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\u2700-\\u27bf",s="a-z\\xdf-\\xf6\\xf8-\\xff",l="\\xac\\xb1\\xd7\\xf7",u="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",c="\\u2000-\\u206f",m=" \\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",p="A-Z\\xc0-\\xd6\\xd8-\\xde",g="\\ufe0e\\ufe0f",y=l+u+c+m,x="['’]",E="["+y+"]",k="["+a+"]",T="\\d+",w="["+i+"]",S="["+s+"]",f="[^"+e+y+T+i+s+p+"]",h="\\ud83c[\\udffb-\\udfff]",v="(?:"+k+"|"+h+")",_="[^"+e+"]",R="(?:\\ud83c[\\udde6-\\uddff]){2}",C="[\\ud800-\\udbff][\\udc00-\\udfff]",P="["+p+"]",M="\\u200d",U="(?:"+S+"|"+f+")",L="(?:"+P+"|"+f+")",N="(?:"+x+"(?:d|ll|m|re|s|t|ve))?",j="(?:"+x+"(?:D|LL|M|RE|S|T|VE))?",O=v+"?",I="["+g+"]?",z="(?:"+M+"(?:"+[_,R,C].join("|")+")"+I+O+")*",B="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",H="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",q=I+O+z,J="(?:"+[w,R,C].join("|")+")"+q,re=RegExp([P+"?"+S+"+"+N+"(?="+[E,P,"$"].join("|")+")",L+"+"+j+"(?="+[E,P+U,"$"].join("|")+")",P+"?"+U+"+"+N,P+"+"+j,H,B,T,J].join("|"),"g");function ne(se){return se.match(re)||[]}return tm=ne,tm}var rm,X2;function ZD(){if(X2)return rm;X2=1;var e=GD(),t=KD(),r=ah(),n=XD();function a(i,s,l){return i=r(i),s=l?void 0:s,s===void 0?t(i)?n(i):e(i):i.match(s)||[]}return rm=a,rm}var nm,Z2;function JD(){if(Z2)return nm;Z2=1;var e=qD(),t=YD(),r=ZD(),n="['’]",a=RegExp(n,"g");function i(s){return function(l){return e(r(t(l).replace(a,"")),s,"")}}return nm=i,nm}var am,J2;function QD(){if(J2)return am;J2=1;var e=UD(),t=JD(),r=t(function(n,a,i){return a=a.toLowerCase(),n+(i?e(a):a)});return am=r,am}var eM=QD();const tM=Rr(eM);function Ug(e,t){ko(e,"[@ant-design/icons] ".concat(t))}function Q2(e){return Mt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Mt(e.icon)==="object"||typeof e.icon=="function")}function e3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[tM(r)]=n}return t},{})}function qg(e,t,r){return r?F.createElement(e.tag,pe(pe({key:t},e3(e.attrs)),r),(e.children||[]).map(function(n,a){return qg(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):F.createElement(e.tag,pe({key:t},e3(e.attrs)),(e.children||[]).map(function(n,a){return qg(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function T8(e){return zg(e)[0]}function O8(e){return e?Array.isArray(e)?e:[e]:[]}var rM={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},nM=`
|
|
62
62
|
.anticon {
|
|
63
63
|
display: inline-flex;
|
|
@@ -113,7 +113,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
113
113
|
transform: rotate(360deg);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
`,A8=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nM,r=F.useContext(ev),n=r.csp;F.useEffect(function(){bo(t,"@ant-design-icons",{prepend:!0,csp:n})},[])},aM=["icon","className","onClick","style","primaryColor","secondaryColor"],Pl={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function iM(e){var t=e.primaryColor,r=e.secondaryColor;Pl.primaryColor=t,Pl.secondaryColor=r||T8(t),Pl.calculated=!!r}function oM(){return pe({},Pl)}var Is=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,s=t.primaryColor,l=t.secondaryColor,u=Ii(t,aM),c=Pl;if(s&&(c={primaryColor:s,secondaryColor:l||T8(s)}),A8(),Ug(Q2(r),"icon should be icon definiton, but got ".concat(r)),!Q2(r))return null;var m=r;return m&&typeof m.icon=="function"&&(m=pe(pe({},m),{},{icon:m.icon(c.primaryColor,c.secondaryColor)})),qg(m.icon,"svg-".concat(m.name),pe({className:n,onClick:a,style:i,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u))};Is.displayName="IconReact";Is.getTwoToneColors=oM;Is.setTwoToneColors=iM;function R8(e){var t=O8(e),r=Ge(t,2),n=r[0],a=r[1];return Is.setTwoToneColors({primaryColor:n,secondaryColor:a})}function sM(){var e=Is.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var uM=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];R8("#1890ff");var vr=ee.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,s=e.tabIndex,l=e.onClick,u=e.twoToneColor,c=Ii(e,uM),m=ee.useContext(ev),p=m.prefixCls,g=p===void 0?"anticon":p,y=m.rootClassName,x=Te(y,g,Ae(Ae({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!a||n.name==="loading"),r),E=s;E===void 0&&l&&(E=-1);var k=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,T=O8(u),w=Ge(T,2),S=w[0],f=w[1];return ee.createElement("span",pe(pe({role:"img","aria-label":n.name},c),{},{ref:t,tabIndex:E,onClick:l,className:x}),ee.createElement(Is,{icon:n,primaryColor:S,secondaryColor:f,style:k}))});vr.displayName="AntdIcon";vr.getTwoToneColor=sM;vr.setTwoToneColor=R8;var lM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},cM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"},dM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"},fM={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},hM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:fM}))},P8=ee.forwardRef(hM);process.env.NODE_ENV!=="production"&&(P8.displayName="CaretDownOutlined");var pM={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},mM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:pM}))},D8=ee.forwardRef(mM);process.env.NODE_ENV!=="production"&&(D8.displayName="CaretRightOutlined");var gM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},vM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:gM}))},M8=ee.forwardRef(vM);process.env.NODE_ENV!=="production"&&(M8.displayName="CheckOutlined");var bM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},yM={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},F8={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},_M=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:F8}))},N8=ee.forwardRef(_M);process.env.NODE_ENV!=="production"&&(N8.displayName="CloseOutlined");var wM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},xM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:wM}))},I8=ee.forwardRef(xM);process.env.NODE_ENV!=="production"&&(I8.displayName="CloudUploadOutlined");var SM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},CM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:SM}))},L8=ee.forwardRef(CM);process.env.NODE_ENV!=="production"&&(L8.displayName="DownOutlined");var EM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},kM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"},TM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"},OM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"},AM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"},RM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"},PM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},DM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"},MM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"},j8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},FM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:j8}))},$8=ee.forwardRef(FM);process.env.NODE_ENV!=="production"&&($8.displayName="LeftOutlined");var NM={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"},IM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:NM}))},lc=ee.forwardRef(IM);process.env.NODE_ENV!=="production"&&(lc.displayName="LoadingOutlined");var LM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},jM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:LM}))},z8=ee.forwardRef(jM);process.env.NODE_ENV!=="production"&&(z8.displayName="MinusOutlined");var $M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},zM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:$M}))},B8=ee.forwardRef(zM);process.env.NODE_ENV!=="production"&&(B8.displayName="PaperClipOutlined");var H8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},BM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:H8}))},iv=ee.forwardRef(BM);process.env.NODE_ENV!=="production"&&(iv.displayName="PlusOutlined");var U8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},HM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:U8}))},q8=ee.forwardRef(HM);process.env.NODE_ENV!=="production"&&(q8.displayName="RightOutlined");var UM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},qM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:UM}))},gs=ee.forwardRef(qM);process.env.NODE_ENV!=="production"&&(gs.displayName="SearchOutlined");var WM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},VM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:WM}))},W8=ee.forwardRef(VM);process.env.NODE_ENV!=="production"&&(W8.displayName="UpOutlined");var YM=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],V8=ee.forwardRef(function(e,t){var r=e.className,n=e.component,a=e.viewBox,i=e.spin,s=e.rotate,l=e.tabIndex,u=e.onClick,c=e.children,m=Ii(e,YM);Ug(!!(n||c),"Should have `component` prop or `children`."),A8();var p=ee.useContext(ev),g=p.prefixCls,y=g===void 0?"anticon":g,x=p.rootClassName,E=Te(x,y,r),k=Te(Ae({},"".concat(y,"-spin"),!!i)),T=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,w=pe(pe({},rM),{},{className:k,style:T,viewBox:a});a||delete w.viewBox;var S=function(){return n?ee.createElement(n,pe({},w),c):c?(Ug(!!a||ee.Children.count(c)===1&&ee.isValidElement(c)&&ee.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),ee.createElement("svg",pe(pe({},w),{},{viewBox:a}),c)):null},f=l;return f===void 0&&u&&(f=-1),ee.createElement("span",pe(pe({role:"img"},m),{},{ref:t,tabIndex:f,onClick:u,className:E}),S())});V8.displayName="AntdIcon";var GM=["type","children"],Y8=new Set;function KM(e){return!!(typeof e=="string"&&e.length&&!Y8.has(e))}function Pf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e[t];if(KM(r)){var n=document.createElement("script");n.setAttribute("src",r),n.setAttribute("data-namespace",r),e.length>t+1&&(n.onload=function(){Pf(e,t+1)},n.onerror=function(){Pf(e,t+1)}),Y8.add(r),document.body.appendChild(n)}}function G8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,r=e.extraCommonProps,n=r===void 0?{}:r;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?Pf(t.reverse()):Pf([t]));var a=ee.forwardRef(function(i,s){var l=i.type,u=i.children,c=Ii(i,GM),m=null;return i.type&&(m=ee.createElement("use",{xlinkHref:"#".concat(l)})),u&&(m=u),ee.createElement(V8,pe(pe(pe({},n),c),{},{ref:s}),m)});return a.displayName="Iconfont",a}const XM=(e="/font/iconfont.js")=>G8({scriptUrl:e}),He=({...e})=>{var u;const t=F.useContext(eh),r=G8({scriptUrl:t==null?void 0:t.iconScriptUrl}),n=F.useMemo(()=>e.languageApicode,[]),a=F.useMemo(()=>n&&["English"].includes(n)?"10px":"12px",[n]),i=F.useMemo(()=>n&&["English"].includes(n)?"12px":"14px",[n]),s=F.useMemo(()=>typeof e.children=="string"&&/[ \t\n\r]/.test(e.children)?"2":"1",[e.children]),l=e.placement?D.jsxs("div",{className:Te(e.className,Lr.placementColor,e.disabled&&Lr.classNameDisabled),style:{textAlign:"center",cursor:"pointer",display:"flex",alignItems:"center",background:e.backgroundColor||"",...e.divStyle},onClick:()=>{e.disabled||e.onDivClick&&e.onDivClick()},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,children:[D.jsx(Z.Badge,{size:"small",count:e.number&&e.number>9?D.jsx("div",{className:Lr.omitPoint,children:"..."}):e.number,children:D.jsx(r,{className:Te(Lr.AliIconFont,{[Lr.disabled]:e.disabled,disabled:e.disabled},e.placement!="bottom"&&Lr.placementIcon),style:{...ie.merge({fontSize:"16px",color:`${e.color}`||"",cursor:e.onClick||e.button||e.placement?"pointer":"default"},e.style)},onClick:c=>{e.disabled||e.onClick&&e.onClick(c)},type:t!=null&&t.isOnlyPrefixIcon?`icon-${e.type}`:e.isBackend?`icon-${e.type}`:`icon-front-${e.type}`})}),e.placement=="bottom"?D.jsx("div",{style:{...ie.merge({textAlign:"center",color:e.color?`${e.color}`:"#fff",fontSize:"12px",marginTop:e.marginTop?`${e.marginTop}`:"5px"})},children:D.jsx("span",{className:Te(Lr.iconText,{[Lr.disabled]:e.disabled,disabled:e.disabled}),style:{width:(Number((u=e.children)==null?void 0:u.length)%2==0,"initial"),fontSize:a,lineHeight:i,WebkitLineClamp:s},children:e.children})}):D.jsx("span",{className:Te(Lr.iconText,{[Lr.disabled]:e.disabled,disabled:e.disabled}),children:e.children})]}):D.jsx("span",{children:D.jsx(r,{className:Te(Lr.AliIconFont,{[Lr.disabled]:e.disabled,disabled:e.disabled},e.className),style:{...ie.merge({fontSize:"16px",color:`${e.color}`||"",cursor:e.onClick||e.button?"pointer":"default"},e.style)},onClick:c=>{e.disabled||e.onClick&&e.onClick(c)},type:t!=null&&t.isOnlyPrefixIcon?`icon-${e.type}`:e.isBackend?`icon-${e.type}`:`icon-front-${e.type}`})});return e.tooltip?D.jsx(Z.Tooltip,{...e.tooltip,children:l}):e.popover?D.jsx(Z.Popover,{placement:"left",trigger:"click",...e.popover,children:l}):e.button?D.jsx("span",{className:Lr.btn_convider,children:D.jsx(Z.Button,{className:Lr.btn_icon,icon:l,children:e.children})}):l},ZM="_badge_16esh_1",JM={badge:ZM};var Sl=(e=>(e.Healthy="Healthy",e.Warning="Warning",e.Delay="Delay",e.Failure="Failure",e))(Sl||{});const Wg=e=>D.jsx(Z.Badge,{...e,className:`${JM.badge} ${(e==null?void 0:e.className)??""}`});var K8=(e=>(e.LightGreen="LightGreen",e.Pink="Pink",e.Blue="blue",e.BlackBlue="BlackBlue",e.Gray="Gray",e))(K8||{});const Vg={[Sl.Delay]:"#eb5d52",[Sl.Healthy]:"#1b8413",LightGreen:"#02CCCC",[Sl.Warning]:"#fca400",[Sl.Failure]:"#d0d0d0",blue:"#1371c1",Pink:"#f9a5c6",BlackBlue:"#2B4C7E",Gray:"#B0B1B5"},ms=class ms{constructor(){Tt(this,"cached",{});if(ms.instance)return ms.instance;ms.instance=this}setCached(t,r){return this.cached[t]=r,r}};Tt(ms,"instance");let Yg=ms;const QM=({healthStatus:e,healthList:t,healthId:r})=>{if(e)return D.jsx(Wg,{color:Vg[e]});if(t&&r){const n=new Yg,a=n.cached[r]||n.setCached(r,t.find(i=>(i.id||i.value)==r));return a?D.jsx(Wg,{color:Vg[a.apicode]}):null}else return D.jsx(D.Fragment,{})},ei=e=>Sn.isMosaic(e.value)?D.jsx(pa,{}):ie.isNil(e.value)?D.jsx(D.Fragment,{}):typeof e.value!="string"&&typeof e.value!="number"?e.value?e.value:D.jsx(D.Fragment,{}):D.jsx(rh,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:0},searchWords:e.highlight||[],autoEscape:!0,textToHighlight:String(e.value)}),uf=e=>{const t=F.useRef(null);return F.useEffect(()=>{e.isFocus&&t.current&&t.current.focus()},[e.isFocus]),D.jsx(Z.Input,{title:e.value==="~#~"?"":e.value,ref:t,...e})},Ls=({loadingSize:e=32,...t})=>{const r=D.jsx(lc,{style:{fontSize:e},spin:!0});return t.children?D.jsx(Z.Spin,{...t,indicator:r,children:t.children}):D.jsx("div",{style:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:D.jsx(Z.Spin,{spinning:!0,indicator:r})})},eF=e=>D.jsxs("div",{className:"sk-cube-container loading-hidden",children:[D.jsxs("div",{className:"sk-cube-grid",children:[D.jsx("div",{className:"sk-cube sk-cube1"}),D.jsx("div",{className:"sk-cube sk-cube2"}),D.jsx("div",{className:"sk-cube sk-cube3"}),D.jsx("div",{className:"sk-cube sk-cube4"}),D.jsx("div",{className:"sk-cube sk-cube5"}),D.jsx("div",{className:"sk-cube sk-cube6"}),D.jsx("div",{className:"sk-cube sk-cube7"}),D.jsx("div",{className:"sk-cube sk-cube8"}),D.jsx("div",{className:"sk-cube sk-cube9"})]}),D.jsx("div",{className:"sk-cube10",children:e.children||"loading..."})]}),tF="_modal_wrapper_loading_1tlvq_1",rF="_global_spin_1tlvq_15",t3={modal_wrapper_loading:tF,global_spin:rF},nF=e=>e.isSpinning?D.jsx("div",{className:t3.modal_wrapper_loading,children:D.jsx(Z.Spin,{spinning:e.isSpinning,className:t3.global_spin,indicator:D.jsx(lc,{style:{fontSize:48},spin:!0})})}):void 0;var im={},Fn={},r3;function Jn(){if(r3)return Fn;r3=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.getBreaksNeededForEmptyLineAfter=Fn.getBreaksNeededForEmptyLineBefore=Fn.selectWord=Fn.getSurroundingWord=void 0;function e(a,i){if(!a)throw Error("Argument 'text' should be truthy");for(var s=function(m){return m===" "||m.charCodeAt(0)===10},l=0,u=a.length,c=i;c-1>-1;c--)if(s(a[c-1])){l=c;break}for(var c=i;c<a.length;c++)if(s(a[c])){u=c;break}return{start:l,end:u}}Fn.getSurroundingWord=e;function t(a){var i=a.text,s=a.selection;return i&&i.length&&s.start===s.end?e(i,s.start):s}Fn.selectWord=t;function r(a,i){if(a===void 0&&(a=""),i===0)return 0;for(var s=2,l=!0,u=i-1;u>=0&&s>=0;u--)switch(a.charCodeAt(u)){case 32:continue;case 10:s--,l=!1;break;default:return s}return l?0:s}Fn.getBreaksNeededForEmptyLineBefore=r;function n(a,i){if(a===void 0&&(a=""),i===a.length-1)return 0;for(var s=2,l=!0,u=i;u<a.length&&s>=0;u++)switch(a.charCodeAt(u)){case 32:continue;case 10:{s--,l=!1;break}default:return s}return l?0:s}return Fn.getBreaksNeededForEmptyLineAfter=n,Fn}var Xi={},Nu={},Iu={},n3;function js(){if(n3)return Iu;n3=1;/*!
|
|
116
|
+
`,A8=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nM,r=F.useContext(ev),n=r.csp;F.useEffect(function(){bo(t,"@ant-design-icons",{prepend:!0,csp:n})},[])},aM=["icon","className","onClick","style","primaryColor","secondaryColor"],Pl={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function iM(e){var t=e.primaryColor,r=e.secondaryColor;Pl.primaryColor=t,Pl.secondaryColor=r||T8(t),Pl.calculated=!!r}function oM(){return pe({},Pl)}var Is=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,s=t.primaryColor,l=t.secondaryColor,u=Ii(t,aM),c=Pl;if(s&&(c={primaryColor:s,secondaryColor:l||T8(s)}),A8(),Ug(Q2(r),"icon should be icon definiton, but got ".concat(r)),!Q2(r))return null;var m=r;return m&&typeof m.icon=="function"&&(m=pe(pe({},m),{},{icon:m.icon(c.primaryColor,c.secondaryColor)})),qg(m.icon,"svg-".concat(m.name),pe({className:n,onClick:a,style:i,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u))};Is.displayName="IconReact";Is.getTwoToneColors=oM;Is.setTwoToneColors=iM;function R8(e){var t=O8(e),r=Ge(t,2),n=r[0],a=r[1];return Is.setTwoToneColors({primaryColor:n,secondaryColor:a})}function sM(){var e=Is.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var uM=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];R8("#1890ff");var vr=ee.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,s=e.tabIndex,l=e.onClick,u=e.twoToneColor,c=Ii(e,uM),m=ee.useContext(ev),p=m.prefixCls,g=p===void 0?"anticon":p,y=m.rootClassName,x=Te(y,g,Ae(Ae({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!a||n.name==="loading"),r),E=s;E===void 0&&l&&(E=-1);var k=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,T=O8(u),w=Ge(T,2),S=w[0],f=w[1];return ee.createElement("span",pe(pe({role:"img","aria-label":n.name},c),{},{ref:t,tabIndex:E,onClick:l,className:x}),ee.createElement(Is,{icon:n,primaryColor:S,secondaryColor:f,style:k}))});vr.displayName="AntdIcon";vr.getTwoToneColor=sM;vr.setTwoToneColor=R8;var lM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},cM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"},dM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"},fM={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},hM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:fM}))},P8=ee.forwardRef(hM);process.env.NODE_ENV!=="production"&&(P8.displayName="CaretDownOutlined");var pM={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},mM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:pM}))},D8=ee.forwardRef(mM);process.env.NODE_ENV!=="production"&&(D8.displayName="CaretRightOutlined");var gM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},vM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:gM}))},M8=ee.forwardRef(vM);process.env.NODE_ENV!=="production"&&(M8.displayName="CheckOutlined");var bM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},yM={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},F8={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},_M=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:F8}))},N8=ee.forwardRef(_M);process.env.NODE_ENV!=="production"&&(N8.displayName="CloseOutlined");var wM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},xM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:wM}))},I8=ee.forwardRef(xM);process.env.NODE_ENV!=="production"&&(I8.displayName="CloudUploadOutlined");var SM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},CM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:SM}))},L8=ee.forwardRef(CM);process.env.NODE_ENV!=="production"&&(L8.displayName="DownOutlined");var EM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},kM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"},TM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"},OM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"},AM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"},RM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"},PM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},DM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"},MM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"},j8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},FM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:j8}))},$8=ee.forwardRef(FM);process.env.NODE_ENV!=="production"&&($8.displayName="LeftOutlined");var NM={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"},IM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:NM}))},lc=ee.forwardRef(IM);process.env.NODE_ENV!=="production"&&(lc.displayName="LoadingOutlined");var LM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},jM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:LM}))},z8=ee.forwardRef(jM);process.env.NODE_ENV!=="production"&&(z8.displayName="MinusOutlined");var $M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},zM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:$M}))},B8=ee.forwardRef(zM);process.env.NODE_ENV!=="production"&&(B8.displayName="PaperClipOutlined");var H8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},BM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:H8}))},iv=ee.forwardRef(BM);process.env.NODE_ENV!=="production"&&(iv.displayName="PlusOutlined");var U8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},HM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:U8}))},q8=ee.forwardRef(HM);process.env.NODE_ENV!=="production"&&(q8.displayName="RightOutlined");var UM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},qM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:UM}))},gs=ee.forwardRef(qM);process.env.NODE_ENV!=="production"&&(gs.displayName="SearchOutlined");var WM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},VM=function(t,r){return ee.createElement(vr,pe(pe({},t),{},{ref:r,icon:WM}))},W8=ee.forwardRef(VM);process.env.NODE_ENV!=="production"&&(W8.displayName="UpOutlined");var YM=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],V8=ee.forwardRef(function(e,t){var r=e.className,n=e.component,a=e.viewBox,i=e.spin,s=e.rotate,l=e.tabIndex,u=e.onClick,c=e.children,m=Ii(e,YM);Ug(!!(n||c),"Should have `component` prop or `children`."),A8();var p=ee.useContext(ev),g=p.prefixCls,y=g===void 0?"anticon":g,x=p.rootClassName,E=Te(x,y,r),k=Te(Ae({},"".concat(y,"-spin"),!!i)),T=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,w=pe(pe({},rM),{},{className:k,style:T,viewBox:a});a||delete w.viewBox;var S=function(){return n?ee.createElement(n,pe({},w),c):c?(Ug(!!a||ee.Children.count(c)===1&&ee.isValidElement(c)&&ee.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),ee.createElement("svg",pe(pe({},w),{},{viewBox:a}),c)):null},f=l;return f===void 0&&u&&(f=-1),ee.createElement("span",pe(pe({role:"img"},m),{},{ref:t,tabIndex:f,onClick:u,className:E}),S())});V8.displayName="AntdIcon";var GM=["type","children"],Y8=new Set;function KM(e){return!!(typeof e=="string"&&e.length&&!Y8.has(e))}function Pf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e[t];if(KM(r)){var n=document.createElement("script");n.setAttribute("src",r),n.setAttribute("data-namespace",r),e.length>t+1&&(n.onload=function(){Pf(e,t+1)},n.onerror=function(){Pf(e,t+1)}),Y8.add(r),document.body.appendChild(n)}}function G8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,r=e.extraCommonProps,n=r===void 0?{}:r;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?Pf(t.reverse()):Pf([t]));var a=ee.forwardRef(function(i,s){var l=i.type,u=i.children,c=Ii(i,GM),m=null;return i.type&&(m=ee.createElement("use",{xlinkHref:"#".concat(l)})),u&&(m=u),ee.createElement(V8,pe(pe(pe({},n),c),{},{ref:s}),m)});return a.displayName="Iconfont",a}const XM=(e="/font/iconfont.js")=>G8({scriptUrl:e}),He=({...e})=>{var u;const t=F.useContext(eh),r=G8({scriptUrl:t==null?void 0:t.iconScriptUrl}),n=F.useMemo(()=>e.languageApicode,[]),a=F.useMemo(()=>n&&["English"].includes(n)?"10px":"12px",[n]),i=F.useMemo(()=>n&&["English"].includes(n)?"12px":"14px",[n]),s=F.useMemo(()=>typeof e.children=="string"&&/[ \t\n\r]/.test(e.children)?"2":"1",[e.children]),l=e.placement?D.jsxs("div",{className:Te(e.className,Lr.placementColor,e.disabled&&Lr.classNameDisabled),style:{textAlign:"center",cursor:"pointer",display:"flex",alignItems:"center",background:e.backgroundColor||"",...e.divStyle},onClick:()=>{e.disabled||e.onDivClick&&e.onDivClick()},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,children:[D.jsx(X.Badge,{size:"small",count:e.number&&e.number>9?D.jsx("div",{className:Lr.omitPoint,children:"..."}):e.number,children:D.jsx(r,{className:Te(Lr.AliIconFont,{[Lr.disabled]:e.disabled,disabled:e.disabled},e.placement!="bottom"&&Lr.placementIcon),style:{...ie.merge({fontSize:"16px",color:`${e.color}`||"",cursor:e.onClick||e.button||e.placement?"pointer":"default"},e.style)},onClick:c=>{e.disabled||e.onClick&&e.onClick(c)},type:t!=null&&t.isOnlyPrefixIcon?`icon-${e.type}`:e.isBackend?`icon-${e.type}`:`icon-front-${e.type}`})}),e.placement=="bottom"?D.jsx("div",{style:{...ie.merge({textAlign:"center",color:e.color?`${e.color}`:"#fff",fontSize:"12px",marginTop:e.marginTop?`${e.marginTop}`:"5px"})},children:D.jsx("span",{className:Te(Lr.iconText,{[Lr.disabled]:e.disabled,disabled:e.disabled}),style:{width:(Number((u=e.children)==null?void 0:u.length)%2==0,"initial"),fontSize:a,lineHeight:i,WebkitLineClamp:s},children:e.children})}):D.jsx("span",{className:Te(Lr.iconText,{[Lr.disabled]:e.disabled,disabled:e.disabled}),children:e.children})]}):D.jsx("span",{children:D.jsx(r,{className:Te(Lr.AliIconFont,{[Lr.disabled]:e.disabled,disabled:e.disabled},e.className),style:{...ie.merge({fontSize:"16px",color:`${e.color}`||"",cursor:e.onClick||e.button?"pointer":"default"},e.style)},onClick:c=>{e.disabled||e.onClick&&e.onClick(c)},type:t!=null&&t.isOnlyPrefixIcon?`icon-${e.type}`:e.isBackend?`icon-${e.type}`:`icon-front-${e.type}`})});return e.tooltip?D.jsx(X.Tooltip,{...e.tooltip,children:l}):e.popover?D.jsx(X.Popover,{placement:"left",trigger:"click",...e.popover,children:l}):e.button?D.jsx("span",{className:Lr.btn_convider,children:D.jsx(X.Button,{className:Lr.btn_icon,icon:l,children:e.children})}):l},ZM="_badge_16esh_1",JM={badge:ZM};var Sl=(e=>(e.Healthy="Healthy",e.Warning="Warning",e.Delay="Delay",e.Failure="Failure",e))(Sl||{});const Wg=e=>D.jsx(X.Badge,{...e,className:`${JM.badge} ${(e==null?void 0:e.className)??""}`});var K8=(e=>(e.LightGreen="LightGreen",e.Pink="Pink",e.Blue="blue",e.BlackBlue="BlackBlue",e.Gray="Gray",e))(K8||{});const Vg={[Sl.Delay]:"#eb5d52",[Sl.Healthy]:"#1b8413",LightGreen:"#02CCCC",[Sl.Warning]:"#fca400",[Sl.Failure]:"#d0d0d0",blue:"#1371c1",Pink:"#f9a5c6",BlackBlue:"#2B4C7E",Gray:"#B0B1B5"},ms=class ms{constructor(){Tt(this,"cached",{});if(ms.instance)return ms.instance;ms.instance=this}setCached(t,r){return this.cached[t]=r,r}};Tt(ms,"instance");let Yg=ms;const QM=({healthStatus:e,healthList:t,healthId:r})=>{if(e)return D.jsx(Wg,{color:Vg[e]});if(t&&r){const n=new Yg,a=n.cached[r]||n.setCached(r,t.find(i=>(i.id||i.value)==r));return a?D.jsx(Wg,{color:Vg[a.apicode]}):null}else return D.jsx(D.Fragment,{})},ei=e=>Sn.isMosaic(e.value)?D.jsx(pa,{}):ie.isNil(e.value)?D.jsx(D.Fragment,{}):typeof e.value!="string"&&typeof e.value!="number"?e.value?e.value:D.jsx(D.Fragment,{}):D.jsx(rh,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:0},searchWords:e.highlight||[],autoEscape:!0,textToHighlight:String(e.value)}),uf=e=>{const t=F.useRef(null);return F.useEffect(()=>{e.isFocus&&t.current&&t.current.focus()},[e.isFocus]),D.jsx(X.Input,{title:e.value==="~#~"?"":e.value,ref:t,...e})},Ls=({loadingSize:e=32,...t})=>{const r=D.jsx(lc,{style:{fontSize:e},spin:!0});return t.children?D.jsx(X.Spin,{...t,indicator:r,children:t.children}):D.jsx("div",{style:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:D.jsx(X.Spin,{spinning:!0,indicator:r})})},eF=e=>D.jsxs("div",{className:"sk-cube-container loading-hidden",children:[D.jsxs("div",{className:"sk-cube-grid",children:[D.jsx("div",{className:"sk-cube sk-cube1"}),D.jsx("div",{className:"sk-cube sk-cube2"}),D.jsx("div",{className:"sk-cube sk-cube3"}),D.jsx("div",{className:"sk-cube sk-cube4"}),D.jsx("div",{className:"sk-cube sk-cube5"}),D.jsx("div",{className:"sk-cube sk-cube6"}),D.jsx("div",{className:"sk-cube sk-cube7"}),D.jsx("div",{className:"sk-cube sk-cube8"}),D.jsx("div",{className:"sk-cube sk-cube9"})]}),D.jsx("div",{className:"sk-cube10",children:e.children||"loading..."})]}),tF="_modal_wrapper_loading_1tlvq_1",rF="_global_spin_1tlvq_15",t3={modal_wrapper_loading:tF,global_spin:rF},nF=e=>e.isSpinning?D.jsx("div",{className:t3.modal_wrapper_loading,children:D.jsx(X.Spin,{spinning:e.isSpinning,className:t3.global_spin,indicator:D.jsx(lc,{style:{fontSize:48},spin:!0})})}):void 0;var im={},Fn={},r3;function Jn(){if(r3)return Fn;r3=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.getBreaksNeededForEmptyLineAfter=Fn.getBreaksNeededForEmptyLineBefore=Fn.selectWord=Fn.getSurroundingWord=void 0;function e(a,i){if(!a)throw Error("Argument 'text' should be truthy");for(var s=function(m){return m===" "||m.charCodeAt(0)===10},l=0,u=a.length,c=i;c-1>-1;c--)if(s(a[c-1])){l=c;break}for(var c=i;c<a.length;c++)if(s(a[c])){u=c;break}return{start:l,end:u}}Fn.getSurroundingWord=e;function t(a){var i=a.text,s=a.selection;return i&&i.length&&s.start===s.end?e(i,s.start):s}Fn.selectWord=t;function r(a,i){if(a===void 0&&(a=""),i===0)return 0;for(var s=2,l=!0,u=i-1;u>=0&&s>=0;u--)switch(a.charCodeAt(u)){case 32:continue;case 10:s--,l=!1;break;default:return s}return l?0:s}Fn.getBreaksNeededForEmptyLineBefore=r;function n(a,i){if(a===void 0&&(a=""),i===a.length-1)return 0;for(var s=2,l=!0,u=i;u<a.length&&s>=0;u++)switch(a.charCodeAt(u)){case 32:continue;case 10:{s--,l=!1;break}default:return s}return l?0:s}return Fn.getBreaksNeededForEmptyLineAfter=n,Fn}var Xi={},Nu={},Iu={},n3;function js(){if(n3)return Iu;n3=1;/*!
|
|
117
117
|
Copyright (c) 2018 Jed Watson.
|
|
118
118
|
Licensed under the MIT License (MIT), see
|
|
119
119
|
http://jedwatson.github.io/classnames
|
|
@@ -286,7 +286,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
286
286
|
type: ${l.type}`)}),n.length>0&&ke(this,il)[il]()}removeFiles(t,r){const{files:n,currentUploads:a}=this.getState(),i={...n},s={...a},l=Object.create(null);t.forEach(p=>{n[p]&&(l[p]=n[p],delete i[p])});function u(p){return l[p]===void 0}Object.keys(s).forEach(p=>{const g=a[p].fileIDs.filter(u);if(g.length===0){delete s[p];return}const{capabilities:y}=this.getState();if(g.length!==a[p].fileIDs.length&&!y.individualCancellation)throw new Error("The installed uploader plugin does not allow removing files during an upload.");s[p]={...a[p],fileIDs:g}});const c={currentUploads:s,files:i};Object.keys(i).length===0&&(c.allowNewUpload=!0,c.error=null,c.recoveredState=null),this.setState(c),this.calculateTotalProgress();const m=Object.keys(l);m.forEach(p=>{this.emit("file-removed",l[p],r)}),m.length>5?this.log(`Removed ${m.length} files`):this.log(`Removed files: ${m.join(", ")}`)}removeFile(t,r){this.removeFiles([t],r)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).progress.uploadComplete)return;const n=!(this.getFile(t).isPaused||!1);return this.setFileState(t,{isPaused:n}),this.emit("upload-pause",t,n),n}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const a={...t[n],isPaused:!0};t[n]=a}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const a={...t[n],isPaused:!1,error:null};t[n]=a}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},r=Object.keys(t).filter(a=>t[a].error);if(r.forEach(a=>{const i={...t[a],isPaused:!1,error:null};t[a]=i}),this.setState({files:t,error:null}),this.emit("retry-all",r),r.length===0)return Promise.resolve({successful:[],failed:[]});const n=ke(this,Ha)[Ha](r,{forceAllowNewUpload:!0});return ke(this,Ua)[Ua](n)}cancelAll(t){let{reason:r="user"}=t===void 0?{}:t;if(this.emit("cancel-all",{reason:r}),r==="user"){const{files:n}=this.getState(),a=Object.keys(n);a.length&&this.removeFiles(a,"cancel-all"),this.setState(Od)}}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const r=ke(this,Ha)[Ha]([t],{forceAllowNewUpload:!0});return ke(this,Ua)[Ua](r)}logout(){this.iteratePlugins(t=>{var r;(r=t.provider)==null||r.logout==null||r.logout()})}calculateTotalProgress(){const r=this.getFiles().filter(c=>c.progress.uploadStarted||c.progress.preprocess||c.progress.postprocess);if(r.length===0){this.emit("progress",0),this.setState({totalProgress:0});return}const n=r.filter(c=>c.progress.bytesTotal!=null),a=r.filter(c=>c.progress.bytesTotal==null);if(n.length===0){const c=r.length*100,m=a.reduce((g,y)=>g+y.progress.percentage,0),p=Math.round(m/c*100);this.setState({totalProgress:p});return}let i=n.reduce((c,m)=>{var p;return c+((p=m.progress.bytesTotal)!=null?p:0)},0);const s=i/n.length;i+=s*a.length;let l=0;n.forEach(c=>{l+=c.progress.bytesUploaded}),a.forEach(c=>{l+=s*(c.progress.percentage||0)/100});let u=i===0?0:Math.round(l/i*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){var t;((t=window.navigator.onLine)!=null?t:!0)?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,r){if(typeof t!="function"){const s=`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`;throw new TypeError(s)}const n=new t(this,r),a=n.id;if(!a)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(a);if(i){const s=`Already found a plugin named '${i.id}'. Tried to use: '${a}'.
|
|
287
287
|
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(s)}return t.VERSION&&this.log(`Using ${a} v${t.VERSION}`),n.type in ke(this,fr)[fr]?ke(this,fr)[fr][n.type].push(n):ke(this,fr)[fr][n.type]=[n],n.install(),this.emit("plugin-added",n),this}getPlugin(t){for(const r of Object.values(ke(this,fr)[fr])){const n=r.find(a=>a.id===t);if(n!=null)return n}}[US](t){return ke(this,fr)[fr][t]}iteratePlugins(t){Object.values(ke(this,fr)[fr]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const r=ke(this,fr)[fr][t.type],n=r.findIndex(s=>s.id===t.id);n!==-1&&r.splice(n,1);const i={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(i)}close(t){let{reason:r}=t===void 0?{}:t;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:r}),ke(this,nl)[nl](),this.iteratePlugins(n=>{this.removePlugin(n)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",ke(this,Hn)[Hn]),window.removeEventListener("offline",ke(this,Hn)[Hn]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const a=typeof t=="object";this.setState({info:[...this.getState().info,{type:r,message:a?t.message:t,details:a?t.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(t,r){const{logger:n}=this.opts;switch(r){case"error":n.error(t);break;case"warning":n.warn(t);break;default:n.debug(t);break}}registerRequestClient(t,r){ke(this,sl)[sl].set(t,r)}getRequestClientForFile(t){if(!t.remote)throw new Error(`Tried to get RequestClient for a non-remote file ${t.id}`);const r=ke(this,sl)[sl].get(t.remote.requestClientId);if(r==null)throw new Error(`requestClientId "${t.remote.requestClientId}" not registered for file "${t.id}"`);return r}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?ke(this,Ua)[Ua](t):(ke(this,mo)[mo](t),Promise.reject(new Error("Nonexistent upload")))}[qS](){return ke(this,Ha)[Ha](...arguments)}addResultData(t,r){if(!ke(this,Mm)[Mm](t)){this.log(`Not setting result for an upload that has been removed: ${t}`);return}const{currentUploads:n}=this.getState(),a={...n[t],result:{...n[t].result,...r}};this.setState({currentUploads:{...n,[t]:a}})}upload(){var t;(t=ke(this,fr)[fr].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:r}=this.getState();const n=this.opts.onBeforeUpload(r);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(r=n,this.setState({files:r})),Promise.resolve().then(()=>ke(this,sn)[sn].validateMinNumberOfFiles(r)).catch(a=>{throw ke(this,un)[un]([a]),a}).then(()=>{if(!ke(this,Pm)[Pm](r))throw new $n(this.i18n("missingRequiredMetaField"))}).catch(a=>{throw a}).then(()=>{const{currentUploads:a}=this.getState(),i=Object.values(a).flatMap(u=>u.fileIDs),s=[];Object.keys(r).forEach(u=>{const c=this.getFile(u);!c.progress.uploadStarted&&i.indexOf(u)===-1&&s.push(c.id)});const l=ke(this,Ha)[Ha](s);return ke(this,Ua)[Ua](l)}).catch(a=>{throw this.emit("error",a),this.log(a,"error"),a}))}}function bj(e){for(const i of e)i.isRestriction?this.emit("restriction-failed",i.file,i):this.emit("error",i,i.file),this.log(i,"warning");const t=e.filter(i=>i.isUserFacing),r=4,n=t.slice(0,r),a=t.slice(r);n.forEach(i=>{let{message:s,details:l=""}=i;this.info({message:s,details:l},"error",this.opts.infoTimeout)}),a.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:a.length})})}function yj(e){const{missingFields:t,error:r}=ke(this,sn)[sn].getMissingRequiredMetaFields(e);return t.length>0?(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(r.message),this.emit("restriction-failed",e,r),!1):!0}function _j(e){let t=!0;for(const r of Object.values(e))ke(this,Gl)[Gl](r)||(t=!1);return t}function wj(e){const{allowNewUpload:t}=this.getState();if(t===!1){const r=new $n(this.i18n("noMoreFilesAllowed"),{file:e});throw ke(this,un)[un]([r]),r}}function xj(e){const t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,r=HS(t),n=aj(r,t),a=BS(n).extension,i=rj(t,this.getID()),s=t.meta||{};s.name=n,s.type=r;const l=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:i,name:n,extension:a||"",meta:{...this.getState().meta,...s},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote||"",preview:t.preview}}function Sj(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function Cj(e){const{files:t}=this.getState(),r={...t},n=[],a=[];for(const s of e)try{var i;let l=ke(this,c1)[c1](s);const u=(i=t[l.id])==null?void 0:i.isGhost;u&&(l={...t[l.id],isGhost:!1,data:s.data},this.log(`Replaced the blob in the restored ghost file: ${l.name}, ${l.id}`));const c=this.opts.onBeforeFileAdded(l,r);if(!c&&this.checkIfFileAlreadyExists(l.id))throw new $n(this.i18n("noDuplicates",{fileName:l.name}),{file:s});if(c===!1&&!u)throw new $n("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:s});typeof c=="object"&&c!==null&&(l=c),ke(this,sn)[sn].validateSingleFile(l),r[l.id]=l,n.push(l)}catch(l){a.push(l)}try{ke(this,sn)[sn].validateAggregateRestrictions(Object.values(t),n)}catch(s){return a.push(s),{nextFilesState:t,validFilesToAdd:[],errors:a}}return{nextFilesState:r,validFilesToAdd:n,errors:a}}function Ej(){const e=(n,a,i)=>{let s=n.message||"Unknown error";n.details&&(s+=` ${n.details}`),this.setState({error:s}),a!=null&&a.id in this.getState().files&&this.setFileState(a.id,{error:s,response:i})};this.on("error",e),this.on("upload-error",(n,a,i)=>{if(e(a,n,i),typeof a=="object"&&a.message){var s;this.log(a.message,"error");const l=new Error(this.i18n("failedToUpload",{file:(s=n==null?void 0:n.name)!=null?s:""}));l.isUserFacing=!0,l.details=a.message,a.details&&(l.details+=` ${a.details}`),ke(this,un)[un]([l])}else ke(this,un)[un]([a])});let t=null;this.on("upload-stalled",(n,a)=>{const{message:i}=n,s=a.map(l=>l.meta.name).join(", ");t||(this.info({message:i,details:s},"warning",this.opts.infoTimeout),t=setTimeout(()=>{t=null},this.opts.infoTimeout)),this.log(`${i} ${s}`.trim(),"warning")}),this.on("upload",()=>{this.setState({error:null})});const r=n=>{const a=n.filter(s=>{const l=s!=null&&this.getFile(s.id);return l||this.log(`Not setting progress for a file that has been removed: ${s==null?void 0:s.id}`),l}),i=Object.fromEntries(a.map(s=>[s.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:s.size}}]));this.patchFilesState(i)};this.on("upload-start",n=>{n.forEach(a=>{this.emit("upload-started",a)}),r(n)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const i=this.getFile(n.id).progress;this.setFileState(n.id,{progress:{...i,postprocess:ke(this,Xa)[Xa].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:i.bytesTotal},response:a,uploadURL:a.uploadURL,isPaused:!1}),n.size==null&&this.setFileState(n.id,{size:a.bytesUploaded||i.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}this.setFileState(n.id,{progress:{...this.getFile(n.id).progress,preprocess:a}})}),this.on("preprocess-complete",n=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const a={...this.getState().files};a[n.id]={...a[n.id],progress:{...a[n.id].progress}},delete a[n.id].progress.preprocess,this.setState({files:a})}),this.on("postprocess-progress",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}this.setFileState(n.id,{progress:{...this.getState().files[n.id].progress,postprocess:a}})}),this.on("postprocess-complete",n=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const a={...this.getState().files};a[n.id]={...a[n.id],progress:{...a[n.id].progress}},delete a[n.id].progress.postprocess,this.setState({files:a})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",n=>{n&&ke(this,Gl)[Gl](n)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",ke(this,Hn)[Hn]),window.addEventListener("offline",ke(this,Hn)[Hn]),setTimeout(ke(this,Hn)[Hn],3e3))}function kj(e,t){t===void 0&&(t={});const{forceAllowNewUpload:r=!1}=t,{allowNewUpload:n,currentUploads:a}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=KL();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...a,[i]:{fileIDs:e,step:0,result:{}}}}),i}function Tj(e){const{currentUploads:t}=this.getState();return t[e]}function Oj(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Aj(e){const t=()=>{const{currentUploads:i}=this.getState();return i[e]};let r=t();const n=[...ke(this,so)[so],...ke(this,uo)[uo],...ke(this,Xa)[Xa]];try{for(let i=r.step||0;i<n.length&&r;i++){const s=n[i];this.setState({currentUploads:{...this.getState().currentUploads,[e]:{...r,step:i}}});const{fileIDs:l}=r;await s(l,e),r=t()}}catch(i){throw ke(this,mo)[mo](e),i}if(r){r.fileIDs.forEach(u=>{const c=this.getFile(u);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const i=r.fileIDs.map(u=>this.getFile(u)),s=i.filter(u=>!u.error),l=i.filter(u=>u.error);this.addResultData(e,{successful:s,failed:l,uploadID:e}),r=t()}let a;return r&&(a=r.result,this.emit("complete",a),ke(this,mo)[mo](e)),a==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),a}uh.VERSION=vj.version;function Rj(e,t){if(!t)return e;for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const n=new RegExp(`{(${r})+}`,"g");e=e.replace(n,t[r])}return e}const Pj=(e,t={},r)=>Rj(t.placeholder||"",t.variate),Y=(e,t,r)=>Pj(e,t),WS=F.forwardRef((e,t)=>{const[r,n]=F.useState("write"),a=F.useRef(null),[i,{toggleFullscreen:s}]=uS(a),l=new MN.Converter({tables:!0,simplifiedAutoLink:!0,strikethrough:!0,tasklists:!0}),u={name:"full",icon:()=>D.jsx(He,{onClick:()=>{},className:qt.markIcon,style:{fontSize:"13px"},type:"fangda"}),execute:y=>{s()}},c={name:"paste",icon:()=>D.jsx(He,{onClick:()=>{},className:qt.markIcon,style:{fontSize:"13px"},type:"fangda"}),execute:y=>{}},m={name:"min",icon:()=>D.jsx(He,{onClick:()=>{},className:qt.markIcon,style:{fontSize:"13px"},type:"suoxiao"}),execute:y=>{s()}},p={name:"table",icon:()=>D.jsx(He,{className:qt.markIcon,style:{fontSize:"13px"},type:"charubiaoge"}),execute:y=>{y.textApi.replaceSelection(`${Y("sys.columnHeader",{placeholder:"列头"})}1 | ${Y("sys.columnHeader",{placeholder:"列头"})}2 | ${Y("sys.columnHeader",{placeholder:"列头"})}3
|
|
288
288
|
:----------- | :-----------: | -----------:
|
|
289
|
-
${Y("sys.align.left",{placeholder:"居左"})}|${Y("sys.align.center",{placeholder:"居中"})}|${Y("sys.align.right",{placeholder:"居右"})}`)}},g=async function*(y,x){const E=new uh({meta:{},debug:!1,autoProceed:!0});E.use(jS,{endpoint:`${e.OSS_URL}`,headers:{Authorization:`${e.token}`},chunkSize:1*1024*1024,overridePatchMethod:!1,allowedMetaFields:null}).on("upload-success",(T,w)=>{e.toPostFileRecord&&e.toPostFileRecord({file:T,response:w,type:"0"})}),E.addFile({name:x.name,type:x.type,data:x,source:"Local",isRemote:!1});const k=await E.upload();return k.successful[0]?k.successful[0].uploadURL:Y("sys.fileServerError.fileServerError",{placeholder:"文件服务器错误"})};return F.useEffect(()=>{n("write")},[e.readOnly]),D.jsxs("div",{className:Te(qt.main,e.value?qt.mdebordershow:qt.mdeborderhide,i?qt.fullscreen:{},r==="preview"?qt.mdePreview:{}),children:[D.jsx("div",{ref:a,style:{background:"white",height:"100%",width:"100%"},children:D.jsx(kF,{value:e.value,onChange:y=>{e.onChange&&e.onChange(y)},minPreviewHeight:e.height&&e.height>10?e.height-10:100,minEditorHeight:e.height||76,maxEditorHeight:e.height||76,getIcon:y=>y==="header"?D.jsx(
|
|
289
|
+
${Y("sys.align.left",{placeholder:"居左"})}|${Y("sys.align.center",{placeholder:"居中"})}|${Y("sys.align.right",{placeholder:"居右"})}`)}},g=async function*(y,x){const E=new uh({meta:{},debug:!1,autoProceed:!0});E.use(jS,{endpoint:`${e.OSS_URL}`,headers:{Authorization:`${e.token}`},chunkSize:1*1024*1024,overridePatchMethod:!1,allowedMetaFields:null}).on("upload-success",(T,w)=>{e.toPostFileRecord&&e.toPostFileRecord({file:T,response:w,type:"0"})}),E.addFile({name:x.name,type:x.type,data:x,source:"Local",isRemote:!1});const k=await E.upload();return k.successful[0]?k.successful[0].uploadURL:Y("sys.fileServerError.fileServerError",{placeholder:"文件服务器错误"})};return F.useEffect(()=>{n("write")},[e.readOnly]),D.jsxs("div",{className:Te(qt.main,e.value?qt.mdebordershow:qt.mdeborderhide,i?qt.fullscreen:{},r==="preview"?qt.mdePreview:{}),children:[D.jsx("div",{ref:a,style:{background:"white",height:"100%",width:"100%"},children:D.jsx(kF,{value:e.value,onChange:y=>{e.onChange&&e.onChange(y)},minPreviewHeight:e.height&&e.height>10?e.height-10:100,minEditorHeight:e.height||76,maxEditorHeight:e.height||76,getIcon:y=>y==="header"?D.jsx(X.Tooltip,{title:Y("sys.title",{placeholder:"标题"}),children:D.jsx(He,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"H"})}):y==="bold"?D.jsx(X.Tooltip,{title:Y("sys.bold.bold",{placeholder:"加粗"}),children:D.jsx(He,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"jiacu"})}):y==="italic"?D.jsx(X.Tooltip,{title:Y("sys.italic.italic",{placeholder:"倾斜"}),children:D.jsx(He,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"qingxie"})}):y==="strikethrough"?D.jsx(X.Tooltip,{title:Y("sys.strikethrough.strikethrough",{placeholder:"划线"}),children:D.jsx(He,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"huaxian"})}):y==="link"?D.jsx(X.Tooltip,{title:Y("sys.link.link",{placeholder:"链接"}),children:D.jsx(He,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"lianjie"})}):y==="quote"?D.jsx(X.Tooltip,{title:Y("sys.quote.quote",{placeholder:"引用"}),children:D.jsx(He,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"yinyong"})}):y==="code"?D.jsx(X.Tooltip,{title:Y("sys.code.code",{placeholder:"代码"}),children:D.jsx(He,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"code"})}):y==="image"?D.jsx(X.Tooltip,{title:Y("sys.label.image",{placeholder:"图片"}),children:D.jsx(He,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"charutupian"})}):y==="unordered-list"?D.jsx(X.Tooltip,{title:Y("sys.unorderedList.unorderedList",{placeholder:"无序列表"}),children:D.jsx(He,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"dian"})}):y==="ordered-list"?D.jsxs(X.Tooltip,{title:Y("sys.orderedList.orderedList",{placeholder:"有序列表"}),children:[" ",D.jsx(He,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"shuzi"})]}):y==="checked-list"?D.jsx(X.Tooltip,{title:Y("sys.checkedList.checkedList",{placeholder:"勾选列表"}),children:D.jsx(He,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"gou"})}):D.jsx(He,{onClick:()=>{},style:{fontSize:"13px"},className:qt.markIcon,type:"chakanxiangqing"}),toolbarCommands:i?[["header","bold","italic","strikethrough","link","code","table","image","ordered-list","checked-list","min"]]:[["header","bold","italic","link","code","table","image","ordered-list","checked-list","full"]],l18n:{uploadingImage:Y("sys.uploadingImage.uploadingImage",{placeholder:"正在上传图片"}),write:Y("individuality.column.operate.edit",{placeholder:"编辑"}),preview:Y("sys.action.preview",{placeholder:"预览"}),pasteDropSelect:Y("sys.label.uploadImage",{placeholder:"上传图片"})},commands:{full:u,table:p,min:m,paste:c},selectedTab:e.readOnly?"preview":r,readOnly:e.readOnly,onTabChange:y=>{n(y)},generateMarkdownPreview:y=>Promise.resolve(l.makeHtml(y)),childProps:{writeButton:{tabIndex:-1}},paste:{saveImage:g,accept:"text/plain,image/png,image/jpeg"}})}),r==="preview"||e.readOnly?D.jsx("div",{style:{position:"absolute",top:"9px",left:"110px"},children:D.jsx(He,{onClick:()=>{s()},className:qt.markIcon,style:{fontSize:"13px"},type:"fangda"})}):D.jsx(D.Fragment,{})]})}),Dj="_confirmModal_1ejcp_1",Mj="_wrapClassName_1ejcp_20",Fj="_notBtnIcon_1ejcp_28",Nj="_qprogress_1ejcp_34",Ij="_styleUnify_1ejcp_39",Fl={confirmModal:Dj,wrapClassName:Mj,notBtnIcon:Fj,qprogress:Nj,styleUnify:Ij};var pf={exports:{}},Lj=pf.exports,Ew;function jj(){return Ew||(Ew=1,function(e,t){(function(r,n){e.exports=n()})(Lj,function(){/*! *****************************************************************************
|
|
290
290
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
291
291
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
292
292
|
this file except in compliance with the License. You may obtain a copy of the
|
|
@@ -320,50 +320,50 @@ object-assign
|
|
|
320
320
|
*/var Nm,Aw;function Uj(){if(Aw)return Nm;Aw=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(s).map(function(m){return s[m]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(m){c[m]=m}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Nm=a()?Object.assign:function(i,s){for(var l,u=n(i),c,m=1;m<arguments.length;m++){l=Object(arguments[m]);for(var p in l)t.call(l,p)&&(u[p]=l[p]);if(e){c=e(l);for(var g=0;g<c.length;g++)r.call(l,c[g])&&(u[c[g]]=l[c[g]])}}return u},Nm}var Im,Rw;function fv(){if(Rw)return Im;Rw=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Im=e,Im}var Lm,Pw;function YS(){return Pw||(Pw=1,Lm=Function.call.bind(Object.prototype.hasOwnProperty)),Lm}var jm,Dw;function qj(){if(Dw)return jm;Dw=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=fv(),r={},n=YS();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function a(i,s,l,u,c){if(process.env.NODE_ENV!=="production"){for(var m in i)if(n(i,m)){var p;try{if(typeof i[m]!="function"){var g=Error((u||"React class")+": "+l+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}p=i[m](s,m,u,l,null,t)}catch(x){p=x}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var y=c?c():"";e("Failed "+l+" type: "+p.message+(y??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},jm=a,jm}var $m,Mw;function Wj(){if(Mw)return $m;Mw=1;var e=VS(),t=Uj(),r=fv(),n=YS(),a=qj(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function s(){return null}return $m=function(l,u){var c=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function p(H){var q=H&&(c&&H[c]||H[m]);if(typeof q=="function")return q}var g="<<anonymous>>",y={array:T("array"),bigint:T("bigint"),bool:T("boolean"),func:T("function"),number:T("number"),object:T("object"),string:T("string"),symbol:T("symbol"),any:w(),arrayOf:S,element:f(),elementType:h(),instanceOf:v,node:P(),objectOf:R,oneOf:_,oneOfType:C,shape:U,exact:L};function x(H,q){return H===q?H!==0||1/H===1/q:H!==H&&q!==q}function E(H,q){this.message=H,this.data=q&&typeof q=="object"?q:{},this.stack=""}E.prototype=Error.prototype;function k(H){if(process.env.NODE_ENV!=="production")var q={},J=0;function re(se,ce,le,ye,we,Ee,Le){if(ye=ye||g,Ee=Ee||le,Le!==r){if(u){var he=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 he.name="Invariant Violation",he}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var qe=ye+":"+le;!q[qe]&&J<3&&(i("You are manually calling a React.PropTypes validation function for the `"+Ee+"` prop on `"+ye+"`. 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."),q[qe]=!0,J++)}}return ce[le]==null?se?ce[le]===null?new E("The "+we+" `"+Ee+"` is marked as required "+("in `"+ye+"`, but its value is `null`.")):new E("The "+we+" `"+Ee+"` is marked as required in "+("`"+ye+"`, but its value is `undefined`.")):null:H(ce,le,ye,we,Ee)}var ne=re.bind(null,!1);return ne.isRequired=re.bind(null,!0),ne}function T(H){function q(J,re,ne,se,ce,le){var ye=J[re],we=O(ye);if(we!==H){var Ee=I(ye);return new E("Invalid "+se+" `"+ce+"` of type "+("`"+Ee+"` supplied to `"+ne+"`, expected ")+("`"+H+"`."),{expectedType:H})}return null}return k(q)}function w(){return k(s)}function S(H){function q(J,re,ne,se,ce){if(typeof H!="function")return new E("Property `"+ce+"` of component `"+ne+"` has invalid PropType notation inside arrayOf.");var le=J[re];if(!Array.isArray(le)){var ye=O(le);return new E("Invalid "+se+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ne+"`, expected an array."))}for(var we=0;we<le.length;we++){var Ee=H(le,we,ne,se,ce+"["+we+"]",r);if(Ee instanceof Error)return Ee}return null}return k(q)}function f(){function H(q,J,re,ne,se){var ce=q[J];if(!l(ce)){var le=O(ce);return new E("Invalid "+ne+" `"+se+"` of type "+("`"+le+"` supplied to `"+re+"`, expected a single ReactElement."))}return null}return k(H)}function h(){function H(q,J,re,ne,se){var ce=q[J];if(!e.isValidElementType(ce)){var le=O(ce);return new E("Invalid "+ne+" `"+se+"` of type "+("`"+le+"` supplied to `"+re+"`, expected a single ReactElement type."))}return null}return k(H)}function v(H){function q(J,re,ne,se,ce){if(!(J[re]instanceof H)){var le=H.name||g,ye=B(J[re]);return new E("Invalid "+se+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ne+"`, expected ")+("instance of `"+le+"`."))}return null}return k(q)}function _(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("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])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function q(J,re,ne,se,ce){for(var le=J[re],ye=0;ye<H.length;ye++)if(x(le,H[ye]))return null;var we=JSON.stringify(H,function(Le,he){var qe=I(he);return qe==="symbol"?String(he):he});return new E("Invalid "+se+" `"+ce+"` of value `"+String(le)+"` "+("supplied to `"+ne+"`, expected one of "+we+"."))}return k(q)}function R(H){function q(J,re,ne,se,ce){if(typeof H!="function")return new E("Property `"+ce+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var le=J[re],ye=O(le);if(ye!=="object")return new E("Invalid "+se+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ne+"`, expected an object."));for(var we in le)if(n(le,we)){var Ee=H(le,we,ne,se,ce+"."+we,r);if(Ee instanceof Error)return Ee}return null}return k(q)}function C(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var q=0;q<H.length;q++){var J=H[q];if(typeof J!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(J)+" at index "+q+"."),s}function re(ne,se,ce,le,ye){for(var we=[],Ee=0;Ee<H.length;Ee++){var Le=H[Ee],he=Le(ne,se,ce,le,ye,r);if(he==null)return null;he.data&&n(he.data,"expectedType")&&we.push(he.data.expectedType)}var qe=we.length>0?", expected one of type ["+we.join(", ")+"]":"";return new E("Invalid "+le+" `"+ye+"` supplied to "+("`"+ce+"`"+qe+"."))}return k(re)}function P(){function H(q,J,re,ne,se){return N(q[J])?null:new E("Invalid "+ne+" `"+se+"` supplied to "+("`"+re+"`, expected a ReactNode."))}return k(H)}function M(H,q,J,re,ne){return new E((H||"React class")+": "+q+" type `"+J+"."+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function U(H){function q(J,re,ne,se,ce){var le=J[re],ye=O(le);if(ye!=="object")return new E("Invalid "+se+" `"+ce+"` of type `"+ye+"` "+("supplied to `"+ne+"`, expected `object`."));for(var we in H){var Ee=H[we];if(typeof Ee!="function")return M(ne,se,ce,we,I(Ee));var Le=Ee(le,we,ne,se,ce+"."+we,r);if(Le)return Le}return null}return k(q)}function L(H){function q(J,re,ne,se,ce){var le=J[re],ye=O(le);if(ye!=="object")return new E("Invalid "+se+" `"+ce+"` of type `"+ye+"` "+("supplied to `"+ne+"`, expected `object`."));var we=t({},J[re],H);for(var Ee in we){var Le=H[Ee];if(n(H,Ee)&&typeof Le!="function")return M(ne,se,ce,Ee,I(Le));if(!Le)return new E("Invalid "+se+" `"+ce+"` key `"+Ee+"` supplied to `"+ne+"`.\nBad object: "+JSON.stringify(J[re],null," ")+`
|
|
321
321
|
Valid keys: `+JSON.stringify(Object.keys(H),null," "));var he=Le(le,Ee,ne,se,ce+"."+Ee,r);if(he)return he}return null}return k(q)}function N(H){switch(typeof H){case"number":case"string":case"undefined":return!0;case"boolean":return!H;case"object":if(Array.isArray(H))return H.every(N);if(H===null||l(H))return!0;var q=p(H);if(q){var J=q.call(H),re;if(q!==H.entries){for(;!(re=J.next()).done;)if(!N(re.value))return!1}else for(;!(re=J.next()).done;){var ne=re.value;if(ne&&!N(ne[1]))return!1}}else return!1;return!0;default:return!1}}function j(H,q){return H==="symbol"?!0:q?q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&q instanceof Symbol:!1}function O(H){var q=typeof H;return Array.isArray(H)?"array":H instanceof RegExp?"object":j(q,H)?"symbol":q}function I(H){if(typeof H>"u"||H===null)return""+H;var q=O(H);if(q==="object"){if(H instanceof Date)return"date";if(H instanceof RegExp)return"regexp"}return q}function z(H){var q=I(H);switch(q){case"array":case"object":return"an "+q;case"boolean":case"date":case"regexp":return"a "+q;default:return q}}function B(H){return!H.constructor||!H.constructor.name?g:H.constructor.name}return y.checkPropTypes=a,y.resetWarningCache=a.resetWarningCache,y.PropTypes=y,y},$m}var zm,Fw;function Vj(){if(Fw)return zm;Fw=1;var e=fv();function t(){}function r(){}return r.resetWarningCache=t,zm=function(){function n(s,l,u,c,m,p){if(p!==e){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}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},zm}var Nw;function fc(){if(Nw)return Ad.exports;if(Nw=1,process.env.NODE_ENV!=="production"){var e=VS(),t=!0;Ad.exports=Wj()(e.isElement,t)}else Ad.exports=Vj()();return Ad.exports}function GS(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=GS(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function bs(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=GS(e))&&(n&&(n+=" "),n+=t);return n}const Yj=Object.freeze(Object.defineProperty({__proto__:null,clsx:bs,default:bs},Symbol.toStringTag,{value:"Module"})),Gj=_P(Yj);var Yt={},yi={},Iw;function lh(){if(Iw)return yi;Iw=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.dontSetMe=a,yi.findInArray=e,yi.int=n,yi.isFunction=t,yi.isNum=r;function e(i,s){for(let l=0,u=i.length;l<u;l++)if(s.apply(s,[i[l],l,i]))return i[l]}function t(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Function]"}function r(i){return typeof i=="number"&&!isNaN(i)}function n(i){return parseInt(i,10)}function a(i,s,l){if(i[s])return new Error("Invalid prop ".concat(s," passed to ").concat(l," - do not set this, set it on the child."))}return yi}var _i={},Lw;function Kj(){if(Lw)return _i;Lw=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.browserPrefixToKey=r,_i.browserPrefixToStyle=n,_i.default=void 0,_i.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var i;let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const l=(i=window.document)===null||i===void 0||(i=i.documentElement)===null||i===void 0?void 0:i.style;if(!l||s in l)return"";for(let u=0;u<e.length;u++)if(r(s,e[u])in l)return e[u];return""}function r(i,s){return s?"".concat(s).concat(a(i)):i}function n(i,s){return s?"-".concat(s.toLowerCase(),"-").concat(i):i}function a(i){let s="",l=!0;for(let u=0;u<i.length;u++)l?(s+=i[u].toUpperCase(),l=!1):i[u]==="-"?l=!0:s+=i[u];return s}return _i.default=t(),_i}var jw;function hv(){if(jw)return Yt;jw=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.addClassName=h,Yt.addEvent=l,Yt.addUserSelectStyles=S,Yt.createCSSTransform=x,Yt.createSVGTransform=E,Yt.getTouch=T,Yt.getTouchIdentifier=w,Yt.getTranslation=k,Yt.innerHeight=p,Yt.innerWidth=g,Yt.matchesSelector=i,Yt.matchesSelectorAndParentsTo=s,Yt.offsetXYFromParent=y,Yt.outerHeight=c,Yt.outerWidth=m,Yt.removeClassName=v,Yt.removeEvent=u,Yt.removeUserSelectStyles=f;var e=lh(),t=n(Kj());function r(_){if(typeof WeakMap!="function")return null;var R=new WeakMap,C=new WeakMap;return(r=function(P){return P?C:R})(_)}function n(_,R){if(_&&_.__esModule)return _;if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var C=r(R);if(C&&C.has(_))return C.get(_);var P={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in _)if(U!=="default"&&Object.prototype.hasOwnProperty.call(_,U)){var L=M?Object.getOwnPropertyDescriptor(_,U):null;L&&(L.get||L.set)?Object.defineProperty(P,U,L):P[U]=_[U]}return P.default=_,C&&C.set(_,P),P}let a="";function i(_,R){return a||(a=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(C){return(0,e.isFunction)(_[C])})),(0,e.isFunction)(_[a])?_[a](R):!1}function s(_,R,C){let P=_;do{if(i(P,R))return!0;if(P===C)return!1;P=P.parentNode}while(P);return!1}function l(_,R,C,P){if(!_)return;const M={capture:!0,...P};_.addEventListener?_.addEventListener(R,C,M):_.attachEvent?_.attachEvent("on"+R,C):_["on"+R]=C}function u(_,R,C,P){if(!_)return;const M={capture:!0,...P};_.removeEventListener?_.removeEventListener(R,C,M):_.detachEvent?_.detachEvent("on"+R,C):_["on"+R]=null}function c(_){let R=_.clientHeight;const C=_.ownerDocument.defaultView.getComputedStyle(_);return R+=(0,e.int)(C.borderTopWidth),R+=(0,e.int)(C.borderBottomWidth),R}function m(_){let R=_.clientWidth;const C=_.ownerDocument.defaultView.getComputedStyle(_);return R+=(0,e.int)(C.borderLeftWidth),R+=(0,e.int)(C.borderRightWidth),R}function p(_){let R=_.clientHeight;const C=_.ownerDocument.defaultView.getComputedStyle(_);return R-=(0,e.int)(C.paddingTop),R-=(0,e.int)(C.paddingBottom),R}function g(_){let R=_.clientWidth;const C=_.ownerDocument.defaultView.getComputedStyle(_);return R-=(0,e.int)(C.paddingLeft),R-=(0,e.int)(C.paddingRight),R}function y(_,R,C){const M=R===R.ownerDocument.body?{left:0,top:0}:R.getBoundingClientRect(),U=(_.clientX+R.scrollLeft-M.left)/C,L=(_.clientY+R.scrollTop-M.top)/C;return{x:U,y:L}}function x(_,R){const C=k(_,R,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:C}}function E(_,R){return k(_,R,"")}function k(_,R,C){let{x:P,y:M}=_,U="translate(".concat(P).concat(C,",").concat(M).concat(C,")");if(R){const L="".concat(typeof R.x=="string"?R.x:R.x+C),N="".concat(typeof R.y=="string"?R.y:R.y+C);U="translate(".concat(L,", ").concat(N,")")+U}return U}function T(_,R){return _.targetTouches&&(0,e.findInArray)(_.targetTouches,C=>R===C.identifier)||_.changedTouches&&(0,e.findInArray)(_.changedTouches,C=>R===C.identifier)}function w(_){if(_.targetTouches&&_.targetTouches[0])return _.targetTouches[0].identifier;if(_.changedTouches&&_.changedTouches[0])return _.changedTouches[0].identifier}function S(_){if(!_)return;let R=_.getElementById("react-draggable-style-el");R||(R=_.createElement("style"),R.type="text/css",R.id="react-draggable-style-el",R.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
322
322
|
`,R.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
323
|
-
`,_.getElementsByTagName("head")[0].appendChild(R)),_.body&&h(_.body,"react-draggable-transparent-selection")}function f(_){if(_)try{if(_.body&&v(_.body,"react-draggable-transparent-selection"),_.selection)_.selection.empty();else{const R=(_.defaultView||window).getSelection();R&&R.type!=="Caret"&&R.removeAllRanges()}}catch{}}function h(_,R){_.classList?_.classList.add(R):_.className.match(new RegExp("(?:^|\\s)".concat(R,"(?!\\S)")))||(_.className+=" ".concat(R))}function v(_,R){_.classList?_.classList.remove(R):_.className=_.className.replace(new RegExp("(?:^|\\s)".concat(R,"(?!\\S)"),"g"),"")}return Yt}var aa={},$w;function KS(){if($w)return aa;$w=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.canDragX=a,aa.canDragY=i,aa.createCoreData=l,aa.createDraggableData=u,aa.getBoundPosition=r,aa.getControlPosition=s,aa.snapToGrid=n;var e=lh(),t=hv();function r(p,g,y){if(!p.props.bounds)return[g,y];let{bounds:x}=p.props;x=typeof x=="string"?x:c(x);const E=m(p);if(typeof x=="string"){const{ownerDocument:k}=E,T=k.defaultView;let w;if(x==="parent"?w=E.parentNode:w=k.querySelector(x),!(w instanceof T.HTMLElement))throw new Error('Bounds selector "'+x+'" could not find an element.');const S=w,f=T.getComputedStyle(E),h=T.getComputedStyle(S);x={left:-E.offsetLeft+(0,e.int)(h.paddingLeft)+(0,e.int)(f.marginLeft),top:-E.offsetTop+(0,e.int)(h.paddingTop)+(0,e.int)(f.marginTop),right:(0,t.innerWidth)(S)-(0,t.outerWidth)(E)-E.offsetLeft+(0,e.int)(h.paddingRight)-(0,e.int)(f.marginRight),bottom:(0,t.innerHeight)(S)-(0,t.outerHeight)(E)-E.offsetTop+(0,e.int)(h.paddingBottom)-(0,e.int)(f.marginBottom)}}return(0,e.isNum)(x.right)&&(g=Math.min(g,x.right)),(0,e.isNum)(x.bottom)&&(y=Math.min(y,x.bottom)),(0,e.isNum)(x.left)&&(g=Math.max(g,x.left)),(0,e.isNum)(x.top)&&(y=Math.max(y,x.top)),[g,y]}function n(p,g,y){const x=Math.round(g/p[0])*p[0],E=Math.round(y/p[1])*p[1];return[x,E]}function a(p){return p.props.axis==="both"||p.props.axis==="x"}function i(p){return p.props.axis==="both"||p.props.axis==="y"}function s(p,g,y){const x=typeof g=="number"?(0,t.getTouch)(p,g):null;if(typeof g=="number"&&!x)return null;const E=m(y),k=y.props.offsetParent||E.offsetParent||E.ownerDocument.body;return(0,t.offsetXYFromParent)(x||p,k,y.props.scale)}function l(p,g,y){const x=!(0,e.isNum)(p.lastX),E=m(p);return x?{node:E,deltaX:0,deltaY:0,lastX:g,lastY:y,x:g,y}:{node:E,deltaX:g-p.lastX,deltaY:y-p.lastY,lastX:p.lastX,lastY:p.lastY,x:g,y}}function u(p,g){const y=p.props.scale;return{node:g.node,x:p.state.x+g.deltaX/y,y:p.state.y+g.deltaY/y,deltaX:g.deltaX/y,deltaY:g.deltaY/y,lastX:p.state.x,lastY:p.state.y}}function c(p){return{left:p.left,top:p.top,right:p.right,bottom:p.bottom}}function m(p){const g=p.findDOMNode();if(!g)throw new Error("<DraggableCore>: Unmounted during event!");return g}return aa}var ll={},Pd={},zw;function XS(){if(zw)return Pd;zw=1,Object.defineProperty(Pd,"__esModule",{value:!0}),Pd.default=e;function e(){}return Pd}var Bw;function Xj(){if(Bw)return ll;Bw=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.default=void 0;var e=c(F),t=l(fc()),r=l(zl),n=hv(),a=KS(),i=lh(),s=l(XS());function l(k){return k&&k.__esModule?k:{default:k}}function u(k){if(typeof WeakMap!="function")return null;var T=new WeakMap,w=new WeakMap;return(u=function(S){return S?w:T})(k)}function c(k,T){if(k&&k.__esModule)return k;if(k===null||typeof k!="object"&&typeof k!="function")return{default:k};var w=u(T);if(w&&w.has(k))return w.get(k);var S={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in k)if(h!=="default"&&Object.prototype.hasOwnProperty.call(k,h)){var v=f?Object.getOwnPropertyDescriptor(k,h):null;v&&(v.get||v.set)?Object.defineProperty(S,h,v):S[h]=k[h]}return S.default=k,w&&w.set(k,S),S}function m(k,T,w){return T=p(T),T in k?Object.defineProperty(k,T,{value:w,enumerable:!0,configurable:!0,writable:!0}):k[T]=w,k}function p(k){var T=g(k,"string");return typeof T=="symbol"?T:String(T)}function g(k,T){if(typeof k!="object"||k===null)return k;var w=k[Symbol.toPrimitive];if(w!==void 0){var S=w.call(k,T);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(k)}const y={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let x=y.mouse,E=class extends e.Component{constructor(){super(...arguments),m(this,"dragging",!1),m(this,"lastX",NaN),m(this,"lastY",NaN),m(this,"touchIdentifier",null),m(this,"mounted",!1),m(this,"handleDragStart",T=>{if(this.props.onMouseDown(T),!this.props.allowAnyClick&&typeof T.button=="number"&&T.button!==0)return!1;const w=this.findDOMNode();if(!w||!w.ownerDocument||!w.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:S}=w;if(this.props.disabled||!(T.target instanceof S.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(T.target,this.props.handle,w)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(T.target,this.props.cancel,w))return;T.type==="touchstart"&&T.preventDefault();const f=(0,n.getTouchIdentifier)(T);this.touchIdentifier=f;const h=(0,a.getControlPosition)(T,f,this);if(h==null)return;const{x:v,y:_}=h,R=(0,a.createCoreData)(this,v,_);(0,s.default)("DraggableCore: handleDragStart: %j",R),(0,s.default)("calling",this.props.onStart),!(this.props.onStart(T,R)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(S),this.dragging=!0,this.lastX=v,this.lastY=_,(0,n.addEvent)(S,x.move,this.handleDrag),(0,n.addEvent)(S,x.stop,this.handleDragStop))}),m(this,"handleDrag",T=>{const w=(0,a.getControlPosition)(T,this.touchIdentifier,this);if(w==null)return;let{x:S,y:f}=w;if(Array.isArray(this.props.grid)){let _=S-this.lastX,R=f-this.lastY;if([_,R]=(0,a.snapToGrid)(this.props.grid,_,R),!_&&!R)return;S=this.lastX+_,f=this.lastY+R}const h=(0,a.createCoreData)(this,S,f);if((0,s.default)("DraggableCore: handleDrag: %j",h),this.props.onDrag(T,h)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const R=document.createEvent("MouseEvents");R.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(R)}return}this.lastX=S,this.lastY=f}),m(this,"handleDragStop",T=>{if(!this.dragging)return;const w=(0,a.getControlPosition)(T,this.touchIdentifier,this);if(w==null)return;let{x:S,y:f}=w;if(Array.isArray(this.props.grid)){let R=S-this.lastX||0,C=f-this.lastY||0;[R,C]=(0,a.snapToGrid)(this.props.grid,R,C),S=this.lastX+R,f=this.lastY+C}const h=(0,a.createCoreData)(this,S,f);if(this.props.onStop(T,h)===!1||this.mounted===!1)return!1;const _=this.findDOMNode();_&&this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(_.ownerDocument),(0,s.default)("DraggableCore: handleDragStop: %j",h),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,_&&((0,s.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(_.ownerDocument,x.move,this.handleDrag),(0,n.removeEvent)(_.ownerDocument,x.stop,this.handleDragStop))}),m(this,"onMouseDown",T=>(x=y.mouse,this.handleDragStart(T))),m(this,"onMouseUp",T=>(x=y.mouse,this.handleDragStop(T))),m(this,"onTouchStart",T=>(x=y.touch,this.handleDragStart(T))),m(this,"onTouchEnd",T=>(x=y.touch,this.handleDragStop(T)))}componentDidMount(){this.mounted=!0;const T=this.findDOMNode();T&&(0,n.addEvent)(T,y.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const T=this.findDOMNode();if(T){const{ownerDocument:w}=T;(0,n.removeEvent)(w,y.mouse.move,this.handleDrag),(0,n.removeEvent)(w,y.touch.move,this.handleDrag),(0,n.removeEvent)(w,y.mouse.stop,this.handleDragStop),(0,n.removeEvent)(w,y.touch.stop,this.handleDragStop),(0,n.removeEvent)(T,y.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(w)}}findDOMNode(){var T,w;return(T=this.props)!==null&&T!==void 0&&T.nodeRef?(w=this.props)===null||w===void 0||(w=w.nodeRef)===null||w===void 0?void 0:w.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return ll.default=E,m(E,"displayName","DraggableCore"),m(E,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(k,T){if(k[T]&&k[T].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),m(E,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),ll}var Hw;function Zj(){return Hw||(Hw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),e.default=void 0;var t=g(F),r=m(fc()),n=m(zl),a=m(Gj),i=hv(),s=KS(),l=lh(),u=m(Xj()),c=m(XS());function m(w){return w&&w.__esModule?w:{default:w}}function p(w){if(typeof WeakMap!="function")return null;var S=new WeakMap,f=new WeakMap;return(p=function(h){return h?f:S})(w)}function g(w,S){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var f=p(S);if(f&&f.has(w))return f.get(w);var h={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in w)if(_!=="default"&&Object.prototype.hasOwnProperty.call(w,_)){var R=v?Object.getOwnPropertyDescriptor(w,_):null;R&&(R.get||R.set)?Object.defineProperty(h,_,R):h[_]=w[_]}return h.default=w,f&&f.set(w,h),h}function y(){return y=Object.assign?Object.assign.bind():function(w){for(var S=1;S<arguments.length;S++){var f=arguments[S];for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(w[h]=f[h])}return w},y.apply(this,arguments)}function x(w,S,f){return S=E(S),S in w?Object.defineProperty(w,S,{value:f,enumerable:!0,configurable:!0,writable:!0}):w[S]=f,w}function E(w){var S=k(w,"string");return typeof S=="symbol"?S:String(S)}function k(w,S){if(typeof w!="object"||w===null)return w;var f=w[Symbol.toPrimitive];if(f!==void 0){var h=f.call(w,S);if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(w)}class T extends t.Component{static getDerivedStateFromProps(S,f){let{position:h}=S,{prevPropsPosition:v}=f;return h&&(!v||h.x!==v.x||h.y!==v.y)?((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:h,prevPropsPosition:v}),{x:h.x,y:h.y,prevPropsPosition:{...h}}):null}constructor(S){super(S),x(this,"onDragStart",(f,h)=>{if((0,c.default)("Draggable: onDragStart: %j",h),this.props.onStart(f,(0,s.createDraggableData)(this,h))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),x(this,"onDrag",(f,h)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",h);const v=(0,s.createDraggableData)(this,h),_={x:v.x,y:v.y,slackX:0,slackY:0};if(this.props.bounds){const{x:C,y:P}=_;_.x+=this.state.slackX,_.y+=this.state.slackY;const[M,U]=(0,s.getBoundPosition)(this,_.x,_.y);_.x=M,_.y=U,_.slackX=this.state.slackX+(C-_.x),_.slackY=this.state.slackY+(P-_.y),v.x=_.x,v.y=_.y,v.deltaX=_.x-this.state.x,v.deltaY=_.y-this.state.y}if(this.props.onDrag(f,v)===!1)return!1;this.setState(_)}),x(this,"onDragStop",(f,h)=>{if(!this.state.dragging||this.props.onStop(f,(0,s.createDraggableData)(this,h))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",h);const _={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:C,y:P}=this.props.position;_.x=C,_.y=P}this.setState(_)}),this.state={dragging:!1,dragged:!1,x:S.position?S.position.x:S.defaultPosition.x,y:S.position?S.position.y:S.defaultPosition.y,prevPropsPosition:{...S.position},slackX:0,slackY:0,isElementSVG:!1},S.position&&!(S.onDrag||S.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var S,f;return(S=(f=this.props)===null||f===void 0||(f=f.nodeRef)===null||f===void 0?void 0:f.current)!==null&&S!==void 0?S:n.default.findDOMNode(this)}render(){const{axis:S,bounds:f,children:h,defaultPosition:v,defaultClassName:_,defaultClassNameDragging:R,defaultClassNameDragged:C,position:P,positionOffset:M,scale:U,...L}=this.props;let N={},j=null;const I=!!!P||this.state.dragging,z=P||v,B={x:(0,s.canDragX)(this)&&I?this.state.x:z.x,y:(0,s.canDragY)(this)&&I?this.state.y:z.y};this.state.isElementSVG?j=(0,i.createSVGTransform)(B,M):N=(0,i.createCSSTransform)(B,M);const H=(0,a.default)(h.props.className||"",_,{[R]:this.state.dragging,[C]:this.state.dragged});return t.createElement(u.default,y({},L,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(h),{className:H,style:{...h.props.style,...N},transform:j}))}}e.default=T,x(T,"displayName","Draggable"),x(T,"propTypes",{...u.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),x(T,"defaultProps",{...u.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(Fm)),Fm}var Uw;function pv(){if(Uw)return ul.exports;Uw=1;const{default:e,DraggableCore:t}=Zj();return ul.exports=e,ul.exports.default=e,ul.exports.DraggableCore=t,ul.exports}var Jj=pv();const Qj=Rr(Jj),{confirm:e$}=Z.Modal;function ZS(e){const{title:t,content:r,onOk:n,onCancel:a,isShowBtnIcon:i=!0}=e;return{...e,title:D.jsx("div",{title:ie.isString(t)?t:"",children:t}),content:D.jsx("div",{title:ie.isString(r)?r:"",children:r}),mask:!1,wrapClassName:"twiceaffirm",className:`${i?"":Fl.notBtnIcon} ${Fl.confirmModal}`,width:"480px",bodyStyle:{padding:"12px"},icon:D.jsx(He,{type:"uploadFail",style:{fontSize:"18px",color:"#ffb200",marginRight:"6px",marginTop:"2px"}}),okButtonProps:{icon:D.jsx(He,{type:"pop-upconfirm",style:{cursor:"pointer",fontSize:"13px"}}),className:"modelok",style:{color:"#000",background:"#fff",height:"22px",border:"0 !important",boxShadow:"none"}},cancelButtonProps:{icon:D.jsx(He,{type:"pop-close",style:{cursor:"pointer",fontSize:"13px"}}),className:"modelok",style:{color:"#000",background:"#fff",height:"22px",border:"none",boxShadow:"none"}},onOk:n,onCancel:()=>{a==null||a()}}}const To=e=>{const[t,r]=F.useState(null),[n,a]=F.useState(!0),[i,s]=F.useState({left:0,right:0,top:0,bottom:0}),l=F.useRef(),u=!!e.styleUnify;zs(()=>{const m=document.getElementById("qprogressElement");if(m&&!t){const p=new zj({minimum:.02,height:4,parentNode:m});r(p)}}),oh(()=>{t&&(t.finish(),r(null))}),F.useEffect(()=>{e.progressPercent&&t&&(1>e.progressPercent?t.set(e.progressPercent):t.finish())},[e.progressPercent]);const c=(m,p)=>{var E;const{clientWidth:g,clientHeight:y}=window.document.documentElement,x=(E=l.current)==null?void 0:E.getBoundingClientRect();x&&s({left:-x.left+p.x,right:g-(x.right-p.x),top:-x.top+p.y,bottom:y-(x.bottom-p.y)})};return D.jsxs(Z.Modal,{destroyOnClose:!0,okText:e.okText||Y("sys.label.confirm",{placeholder:"确定"}),okButtonProps:{style:{height:"30px",minWidth:"72px"}},cancelButtonProps:{style:{minWidth:"72px",height:"30px"}},getContainer:()=>document.getElementById("ria-frontend")||document.body,title:D.jsx("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{n&&a(!1)},onMouseOut:()=>{a(!0)},onFocus:()=>{},onBlur:()=>{},children:e.modalTitle}),modalRender:m=>D.jsx(Qj,{disabled:n,bounds:i,onStart:(p,g)=>c(p,g),children:D.jsx("div",{ref:l,children:m})}),...ie.omit(e,"visible"),wrapClassName:`modalClassName ${Fl.wrapClassName} ${e.wrapClassName??""}`,className:`${u?Fl.styleUnify:""} ${e.className??""}`,visible:e.visible,children:[D.jsx("div",{className:Fl.qprogress,id:"qprogressElement"}),D.jsx("div",{onDoubleClick:m=>m.stopPropagation(),children:e.children})]})},t$="_main_104mn_1",r$={main:t$};var Bm={},Hm={},cl={exports:{}},io={exports:{}},n$=io.exports,qw;function a$(){return qw||(qw=1,(function(){var e,t,r,n,a,i;typeof performance<"u"&&performance!==null&&performance.now?io.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(io.exports=function(){return(e()-a)/1e6},t=process.hrtime,e=function(){var s;return s=t(),s[0]*1e9+s[1]},n=e(),i=process.uptime()*1e9,a=n-i):Date.now?(io.exports=function(){return Date.now()-r},r=Date.now()):(io.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(n$)),io.exports}var Ww;function i$(){if(Ww)return cl.exports;Ww=1;for(var e=a$(),t=typeof window>"u"?Un:window,r=["moz","webkit"],n="AnimationFrame",a=t["request"+n],i=t["cancel"+n]||t["cancelRequest"+n],s=0;!a&&s<r.length;s++)a=t[r[s]+"Request"+n],i=t[r[s]+"Cancel"+n]||t[r[s]+"CancelRequest"+n];if(!a||!i){var l=0,u=0,c=[],m=1e3/60;a=function(p){if(c.length===0){var g=e(),y=Math.max(0,m-(g-l));l=y+g,setTimeout(function(){var x=c.slice(0);c.length=0;for(var E=0;E<x.length;E++)if(!x[E].cancelled)try{x[E].callback(l)}catch(k){setTimeout(function(){throw k},0)}},Math.round(y))}return c.push({handle:++u,callback:p,cancelled:!1}),u},i=function(p){for(var g=0;g<c.length;g++)c[g].handle===p&&(c[g].cancelled=!0)}}return cl.exports=function(p){return a.call(t,p)},cl.exports.cancel=function(){i.apply(t,arguments)},cl.exports.polyfill=function(p){p||(p=t),p.requestAnimationFrame=a,p.cancelAnimationFrame=i},cl.exports}var dl={exports:{}},Um,Vw;function o$(){if(Vw)return Um;Vw=1;var e=null,t=["Webkit","Moz","O","ms"];return Um=function(n){e||(e=document.createElement("div"));var a=e.style;if(n in a)return n;for(var i=n.charAt(0).toUpperCase()+n.slice(1),s=t.length;s>=0;s--){var l=t[s]+i;if(l in a)return l}return!1},Um}var qm,Yw;function s$(){if(Yw)return qm;Yw=1,qm=n;var e=/\s/,t=/(_|-|\.|:)/,r=/([a-z][A-Z]|[A-Z][a-z])/;function n(u){return e.test(u)?u.toLowerCase():t.test(u)?(i(u)||u).toLowerCase():r.test(u)?l(u).toLowerCase():u.toLowerCase()}var a=/[\W_]+(.|$)/g;function i(u){return u.replace(a,function(c,m){return m?" "+m:""})}var s=/(.)([A-Z]+)/g;function l(u){return u.replace(s,function(c,m,p){return m+" "+p.toLowerCase().split("").join(" ")})}return qm}var Wm,Gw;function u$(){if(Gw)return Wm;Gw=1;var e=s$();Wm=t;function t(r){return e(r).replace(/[\W_]+(.|$)/g,function(n,a){return a?" "+a:""}).trim()}return Wm}var Vm,Kw;function l$(){if(Kw)return Vm;Kw=1;var e=u$();Vm=t;function t(r){return e(r).replace(/\s(\w)/g,function(n,a){return a.toUpperCase()})}return Vm}var Ym,Xw;function c$(){if(Xw)return Ym;Xw=1;var e={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};return Ym=function(t,r){return typeof r=="number"&&!e[t]?r+"px":r},Ym}var Zw;function JS(){if(Zw)return dl.exports;Zw=1;var e=o$(),t=l$(),r={float:"cssFloat"},n=c$();function a(u,c,m){var p=r[c];if(typeof p>"u"&&(p=s(c)),p){if(m===void 0)return u.style[p];u.style[p]=n(p,m)}}function i(u,c){for(var m in c)c.hasOwnProperty(m)&&a(u,m,c[m])}function s(u){var c=t(u),m=e(c);return r[c]=r[u]=r[m]=m,m}function l(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:i(arguments[0],arguments[1]):a(arguments[0],arguments[1],arguments[2])}return dl.exports=l,dl.exports.set=l,dl.exports.get=function(u,c){return Array.isArray(c)?c.reduce(function(m,p){return m[p]=a(u,p||""),m},{}):a(u,c||"")},dl.exports}var Gm={},Jw;function d$(){return Jw||(Jw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return typeof r=="string"}}(Gm)),Gm}var Km={},Qw;function f$(){return Qw||(Qw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=JS(),r=n(t);function n(s){return s&&s.__esModule?s:{default:s}}var a=!1;function i(){if(a!==!1)return a;if(typeof document<"u"){var s=document.createElement("div");(0,r.default)(s,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(s),a=s.offsetWidth-s.clientWidth,document.body.removeChild(s)}else a=0;return a||0}}(Km)),Km}var Xm={},ex;function h$(){return ex||(ex=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){return!1}}(Xm)),Xm}var Zm={},tx;function p$(){return tx||(tx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var n=r.clientWidth,a=getComputedStyle(r),i=a.paddingLeft,s=a.paddingRight;return n-parseFloat(i)-parseFloat(s)}}(Zm)),Zm}var Jm={},rx;function m$(){return rx||(rx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var n=r.clientHeight,a=getComputedStyle(r),i=a.paddingTop,s=a.paddingBottom;return n-parseFloat(i)-parseFloat(s)}}(Jm)),Jm}var jr={},nx;function g$(){return nx||(nx=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},jr.containerStyleAutoHeight={height:"auto"},jr.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},jr.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},jr.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},jr.trackHorizontalStyleDefault={position:"absolute",height:6},jr.trackVerticalStyleDefault={position:"absolute",width:6},jr.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},jr.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},jr.disableSelectStyle={userSelect:"none"},jr.disableSelectStyleReset={userSelect:""}),jr}var wi={},ax;function v$(){if(ax)return wi;ax=1,Object.defineProperty(wi,"__esModule",{value:!0});var e=Object.assign||function(m){for(var p=1;p<arguments.length;p++){var g=arguments[p];for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&(m[y]=g[y])}return m};wi.renderViewDefault=i,wi.renderTrackHorizontalDefault=s,wi.renderTrackVerticalDefault=l,wi.renderThumbHorizontalDefault=u,wi.renderThumbVerticalDefault=c;var t=F,r=n(t);function n(m){return m&&m.__esModule?m:{default:m}}function a(m,p){var g={};for(var y in m)p.indexOf(y)>=0||Object.prototype.hasOwnProperty.call(m,y)&&(g[y]=m[y]);return g}function i(m){return r.default.createElement("div",m)}function s(m){var p=m.style,g=a(m,["style"]),y=e({},p,{right:2,bottom:2,left:2,borderRadius:3});return r.default.createElement("div",e({style:y},g))}function l(m){var p=m.style,g=a(m,["style"]),y=e({},p,{right:2,bottom:2,top:2,borderRadius:3});return r.default.createElement("div",e({style:y},g))}function u(m){var p=m.style,g=a(m,["style"]),y=e({},p,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",e({style:y},g))}function c(m){var p=m.style,g=a(m,["style"]),y=e({},p,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",e({style:y},g))}return wi}var ix;function b$(){return ix||(ix=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(U){for(var L=1;L<arguments.length;L++){var N=arguments[L];for(var j in N)Object.prototype.hasOwnProperty.call(N,j)&&(U[j]=N[j])}return U},r=function(){function U(L,N){for(var j=0;j<N.length;j++){var O=N[j];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(L,O.key,O)}}return function(L,N,j){return N&&U(L.prototype,N),j&&U(L,j),L}}(),n=i$(),a=v(n),i=JS(),s=v(i),l=F,u=fc(),c=v(u),m=d$(),p=v(m),g=f$(),y=v(g),x=h$(),E=v(x),k=p$(),T=v(k),w=m$(),S=v(w),f=g$(),h=v$();function v(U){return U&&U.__esModule?U:{default:U}}function _(U,L){var N={};for(var j in U)L.indexOf(j)>=0||Object.prototype.hasOwnProperty.call(U,j)&&(N[j]=U[j]);return N}function R(U,L){if(!(U instanceof L))throw new TypeError("Cannot call a class as a function")}function C(U,L){if(!U)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:U}function P(U,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);U.prototype=Object.create(L&&L.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(U,L):U.__proto__=L)}var M=function(U){P(L,U);function L(N){var j;R(this,L);for(var O=arguments.length,I=Array(O>1?O-1:0),z=1;z<O;z++)I[z-1]=arguments[z];var B=C(this,(j=L.__proto__||Object.getPrototypeOf(L)).call.apply(j,[this,N].concat(I)));return B.getScrollLeft=B.getScrollLeft.bind(B),B.getScrollTop=B.getScrollTop.bind(B),B.getScrollWidth=B.getScrollWidth.bind(B),B.getScrollHeight=B.getScrollHeight.bind(B),B.getClientWidth=B.getClientWidth.bind(B),B.getClientHeight=B.getClientHeight.bind(B),B.getValues=B.getValues.bind(B),B.getThumbHorizontalWidth=B.getThumbHorizontalWidth.bind(B),B.getThumbVerticalHeight=B.getThumbVerticalHeight.bind(B),B.getScrollLeftForOffset=B.getScrollLeftForOffset.bind(B),B.getScrollTopForOffset=B.getScrollTopForOffset.bind(B),B.scrollLeft=B.scrollLeft.bind(B),B.scrollTop=B.scrollTop.bind(B),B.scrollToLeft=B.scrollToLeft.bind(B),B.scrollToTop=B.scrollToTop.bind(B),B.scrollToRight=B.scrollToRight.bind(B),B.scrollToBottom=B.scrollToBottom.bind(B),B.handleTrackMouseEnter=B.handleTrackMouseEnter.bind(B),B.handleTrackMouseLeave=B.handleTrackMouseLeave.bind(B),B.handleHorizontalTrackMouseDown=B.handleHorizontalTrackMouseDown.bind(B),B.handleVerticalTrackMouseDown=B.handleVerticalTrackMouseDown.bind(B),B.handleHorizontalThumbMouseDown=B.handleHorizontalThumbMouseDown.bind(B),B.handleVerticalThumbMouseDown=B.handleVerticalThumbMouseDown.bind(B),B.handleWindowResize=B.handleWindowResize.bind(B),B.handleScroll=B.handleScroll.bind(B),B.handleDrag=B.handleDrag.bind(B),B.handleDragEnd=B.handleDragEnd.bind(B),B.state={didMountUniversal:!1},B}return r(L,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var j=this.props.universal;j&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,n.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var j=this.view||{},O=j.scrollLeft,I=O===void 0?0:O,z=j.scrollTop,B=z===void 0?0:z,H=j.scrollWidth,q=H===void 0?0:H,J=j.scrollHeight,re=J===void 0?0:J,ne=j.clientWidth,se=ne===void 0?0:ne,ce=j.clientHeight,le=ce===void 0?0:ce;return{left:I/(q-se)||0,top:B/(re-le)||0,scrollLeft:I,scrollTop:B,scrollWidth:q,scrollHeight:re,clientWidth:se,clientHeight:le}}},{key:"getThumbHorizontalWidth",value:function(){var j=this.props,O=j.thumbSize,I=j.thumbMinSize,z=this.view,B=z.scrollWidth,H=z.clientWidth,q=(0,T.default)(this.trackHorizontal),J=Math.ceil(H/B*q);return q===J?0:O||Math.max(J,I)}},{key:"getThumbVerticalHeight",value:function(){var j=this.props,O=j.thumbSize,I=j.thumbMinSize,z=this.view,B=z.scrollHeight,H=z.clientHeight,q=(0,S.default)(this.trackVertical),J=Math.ceil(H/B*q);return q===J?0:O||Math.max(J,I)}},{key:"getScrollLeftForOffset",value:function(j){var O=this.view,I=O.scrollWidth,z=O.clientWidth,B=(0,T.default)(this.trackHorizontal),H=this.getThumbHorizontalWidth();return j/(B-H)*(I-z)}},{key:"getScrollTopForOffset",value:function(j){var O=this.view,I=O.scrollHeight,z=O.clientHeight,B=(0,S.default)(this.trackVertical),H=this.getThumbVerticalHeight();return j/(B-H)*(I-z)}},{key:"scrollLeft",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=j)}},{key:"scrollTop",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=j)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var j=this.view,O=this.trackHorizontal,I=this.trackVertical,z=this.thumbHorizontal,B=this.thumbVertical;j.addEventListener("scroll",this.handleScroll),(0,y.default)()&&(O.addEventListener("mouseenter",this.handleTrackMouseEnter),O.addEventListener("mouseleave",this.handleTrackMouseLeave),O.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),I.addEventListener("mouseenter",this.handleTrackMouseEnter),I.addEventListener("mouseleave",this.handleTrackMouseLeave),I.addEventListener("mousedown",this.handleVerticalTrackMouseDown),z.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),B.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var j=this.view,O=this.trackHorizontal,I=this.trackVertical,z=this.thumbHorizontal,B=this.thumbVertical;j.removeEventListener("scroll",this.handleScroll),(0,y.default)()&&(O.removeEventListener("mouseenter",this.handleTrackMouseEnter),O.removeEventListener("mouseleave",this.handleTrackMouseLeave),O.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),I.removeEventListener("mouseenter",this.handleTrackMouseEnter),I.removeEventListener("mouseleave",this.handleTrackMouseLeave),I.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),z.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),B.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(j){var O=this,I=this.props,z=I.onScroll,B=I.onScrollFrame;z&&z(j),this.update(function(H){var q=H.scrollLeft,J=H.scrollTop;O.viewScrollLeft=q,O.viewScrollTop=J,B&&B(H)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var j=this.props.onScrollStart;j&&j(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var j=this.props.autoHide;j&&this.showTracks()}},{key:"handleScrollStop",value:function(){var j=this.props.onScrollStop;j&&j(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var j=this.props.autoHide;j&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(j){j.preventDefault();var O=j.target,I=j.clientX,z=O.getBoundingClientRect(),B=z.left,H=this.getThumbHorizontalWidth(),q=Math.abs(B-I)-H/2;this.view.scrollLeft=this.getScrollLeftForOffset(q)}},{key:"handleVerticalTrackMouseDown",value:function(j){j.preventDefault();var O=j.target,I=j.clientY,z=O.getBoundingClientRect(),B=z.top,H=this.getThumbVerticalHeight(),q=Math.abs(B-I)-H/2;this.view.scrollTop=this.getScrollTopForOffset(q)}},{key:"handleHorizontalThumbMouseDown",value:function(j){j.preventDefault(),this.handleDragStart(j);var O=j.target,I=j.clientX,z=O.offsetWidth,B=O.getBoundingClientRect(),H=B.left;this.prevPageX=z-(I-H)}},{key:"handleVerticalThumbMouseDown",value:function(j){j.preventDefault(),this.handleDragStart(j);var O=j.target,I=j.clientY,z=O.offsetHeight,B=O.getBoundingClientRect(),H=B.top;this.prevPageY=z-(I-H)}},{key:"setupDragging",value:function(){(0,s.default)(document.body,f.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=E.default}},{key:"teardownDragging",value:function(){(0,s.default)(document.body,f.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(j){this.dragging=!0,j.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(j){if(this.prevPageX){var O=j.clientX,I=this.trackHorizontal.getBoundingClientRect(),z=I.left,B=this.getThumbHorizontalWidth(),H=B-this.prevPageX,q=-z+O-H;this.view.scrollLeft=this.getScrollLeftForOffset(q)}if(this.prevPageY){var J=j.clientY,re=this.trackVertical.getBoundingClientRect(),ne=re.top,se=this.getThumbVerticalHeight(),ce=se-this.prevPageY,le=-ne+J-ce;this.view.scrollTop=this.getScrollTopForOffset(le)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var j=this.props.autoHide;j&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var j=this.props.autoHide;j&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var j=this.props.autoHide;j&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,s.default)(this.trackHorizontal,{opacity:1}),(0,s.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var j=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var O=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,s.default)(j.trackHorizontal,{opacity:0}),(0,s.default)(j.trackVertical,{opacity:0})},O)}}},{key:"detectScrolling",value:function(){var j=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){j.lastViewScrollLeft===j.viewScrollLeft&&j.lastViewScrollTop===j.viewScrollTop&&(clearInterval(j.detectScrollingInterval),j.scrolling=!1,j.handleScrollStop()),j.lastViewScrollLeft=j.viewScrollLeft,j.lastViewScrollTop=j.viewScrollTop},100))}},{key:"raf",value:function(j){var O=this;this.requestFrame&&a.default.cancel(this.requestFrame),this.requestFrame=(0,a.default)(function(){O.requestFrame=void 0,j()})}},{key:"update",value:function(j){var O=this;this.raf(function(){return O._update(j)})}},{key:"_update",value:function(j){var O=this.props,I=O.onUpdate,z=O.hideTracksWhenNotNeeded,B=this.getValues();if((0,y.default)()){var H=B.scrollLeft,q=B.clientWidth,J=B.scrollWidth,re=(0,T.default)(this.trackHorizontal),ne=this.getThumbHorizontalWidth(),se=H/(J-q)*(re-ne),ce={width:ne,transform:"translateX("+se+"px)"},le=B.scrollTop,ye=B.clientHeight,we=B.scrollHeight,Ee=(0,S.default)(this.trackVertical),Le=this.getThumbVerticalHeight(),he=le/(we-ye)*(Ee-Le),qe={height:Le,transform:"translateY("+he+"px)"};if(z){var oe={visibility:J>q?"visible":"hidden"},De={visibility:we>ye?"visible":"hidden"};(0,s.default)(this.trackHorizontal,oe),(0,s.default)(this.trackVertical,De)}(0,s.default)(this.thumbHorizontal,ce),(0,s.default)(this.thumbVertical,qe)}I&&I(B),typeof j=="function"&&j(B)}},{key:"render",value:function(){var j=this,O=(0,y.default)(),I=this.props;I.onScroll,I.onScrollFrame,I.onScrollStart,I.onScrollStop,I.onUpdate;var z=I.renderView,B=I.renderTrackHorizontal,H=I.renderTrackVertical,q=I.renderThumbHorizontal,J=I.renderThumbVertical,re=I.tagName;I.hideTracksWhenNotNeeded;var ne=I.autoHide;I.autoHideTimeout;var se=I.autoHideDuration;I.thumbSize,I.thumbMinSize;var ce=I.universal,le=I.autoHeight,ye=I.autoHeightMin,we=I.autoHeightMax,Ee=I.style,Le=I.children,he=_(I,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),qe=this.state.didMountUniversal,oe=t({},f.containerStyleDefault,le&&t({},f.containerStyleAutoHeight,{minHeight:ye,maxHeight:we}),Ee),De=t({},f.viewStyleDefault,{marginRight:O?-O:0,marginBottom:O?-O:0},le&&t({},f.viewStyleAutoHeight,{minHeight:(0,p.default)(ye)?"calc("+ye+" + "+O+"px)":ye+O,maxHeight:(0,p.default)(we)?"calc("+we+" + "+O+"px)":we+O}),le&&ce&&!qe&&{minHeight:ye,maxHeight:we},ce&&!qe&&f.viewStyleUniversalInitial),Je={transition:"opacity "+se+"ms",opacity:0},Ct=t({},f.trackHorizontalStyleDefault,ne&&Je,(!O||ce&&!qe)&&{display:"none"}),Et=t({},f.trackVerticalStyleDefault,ne&&Je,(!O||ce&&!qe)&&{display:"none"});return(0,l.createElement)(re,t({},he,{style:oe,ref:function(We){j.container=We}}),[(0,l.cloneElement)(z({style:De}),{key:"view",ref:function(We){j.view=We}},Le),(0,l.cloneElement)(B({style:Ct}),{key:"trackHorizontal",ref:function(We){j.trackHorizontal=We}},(0,l.cloneElement)(q({style:f.thumbHorizontalStyleDefault}),{ref:function(We){j.thumbHorizontal=We}})),(0,l.cloneElement)(H({style:Et}),{key:"trackVertical",ref:function(We){j.trackVertical=We}},(0,l.cloneElement)(J({style:f.thumbVerticalStyleDefault}),{ref:function(We){j.thumbVertical=We}}))])}}]),L}(l.Component);e.default=M,M.propTypes={onScroll:c.default.func,onScrollFrame:c.default.func,onScrollStart:c.default.func,onScrollStop:c.default.func,onUpdate:c.default.func,renderView:c.default.func,renderTrackHorizontal:c.default.func,renderTrackVertical:c.default.func,renderThumbHorizontal:c.default.func,renderThumbVertical:c.default.func,tagName:c.default.string,thumbSize:c.default.number,thumbMinSize:c.default.number,hideTracksWhenNotNeeded:c.default.bool,autoHide:c.default.bool,autoHideTimeout:c.default.number,autoHideDuration:c.default.number,autoHeight:c.default.bool,autoHeightMin:c.default.oneOfType([c.default.number,c.default.string]),autoHeightMax:c.default.oneOfType([c.default.number,c.default.string]),universal:c.default.bool,style:c.default.object,children:c.default.node},M.defaultProps={renderView:h.renderViewDefault,renderTrackHorizontal:h.renderTrackHorizontalDefault,renderTrackVertical:h.renderTrackVerticalDefault,renderThumbHorizontal:h.renderThumbHorizontalDefault,renderThumbVertical:h.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}}(Hm)),Hm}var ox;function y$(){return ox||(ox=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbars=void 0;var t=b$(),r=n(t);function n(a){return a&&a.__esModule?a:{default:a}}e.default=r.default,e.Scrollbars=r.default}(Bm)),Bm}var _$=y$();const w$=e=>D.jsx(_$.Scrollbars,{autoHide:!0,style:{...ie.merge({overflow:"auto",height:"100%"},e.style)},...e,className:Te(r$.main,e.className),renderThumbVertical:({style:t,...r})=>{const n={borderRadius:"0px",background:"#e0e0e0"};return D.jsx("div",{style:{...t,...n},...r})},children:e.children}),Dd={"error-box":"_error-box_1uv1u_1","err-color":"_err-color_1uv1u_12","err-box-list":"_err-box-list_1uv1u_16","custom-button":"_custom-button_1uv1u_22"},x$=e=>D.jsx("div",{className:Dd["error-box"],children:D.jsxs("div",{className:Dd["err-box-list"],children:[D.jsx("div",{children:D.jsx(He,{style:{fontSize:"45px"},isBackend:!0,type:"a-front-previewerror",className:Dd["err-color"]})}),D.jsx("div",{style:{marginTop:"20px",color:"#6c81b1",fontSize:"14px"},children:e.children||Y("sys.error.loading",{placeholder:"加载错误"})}),D.jsx("div",{style:{marginTop:"30px"},children:D.jsx("div",{className:Dd["custom-button"],onClick:()=>{location.reload()},children:Y("sys.action.refresh",{placeholder:"刷新"})})})]})}),S$="_main_g4ee8_1",C$={main:S$},E$=e=>{const t=async(n,a)=>{const i=e.menu.items[a];if(i.request){i.request.middleware&&await i.request.middleware();let s=await e.request(i.request.url,i.request.options);Z.message.success(s.message),i.request.onSuccess&&i.request.onSuccess()}e.menu.onClick&&e.menu.onClick({...n,key:a.toString()})},r=D.jsx(Z.Menu,{...ie.omit(e.menu,["items"]),onClick:()=>{},children:e.menu.items.map((n,a)=>n.confirm?D.jsx(Z.Popconfirm,{disabled:e.disabled,okText:Y("sys.action.confirm",{placeholder:"确认"}),cancelText:Y("sys.action.cancel",{placeholder:"取消"}),onConfirm:()=>{t(n,a)},...n.confirm,children:D.jsx(Z.Menu.Item,{onClick:()=>{},...n},a)},n.key||a):D.jsx(Z.Menu.Item,{onClick:()=>{t(n,a)},...n},n.key||a))});return D.jsx(Z.Dropdown,{overlayStyle:{...e.style},overlayClassName:e.className,className:Te(C$.main),overlay:r,...ie.omit(e,["menu"])})},hc=({valueType:e="12",...t})=>{const r=Br({defaultValue1:"",defaultValue2:""});return QF(()=>{t.onBlur&&t.onBlur()},()=>document.getElementById("use-click-away-button")),F.useEffect(()=>{t.value?(r.defaultValue1=t.value.split("~%~")[0]||"",r.defaultValue2=t.value.split("~%~")[1]||""):(r.defaultValue1="",r.defaultValue2="")},[t.value]),D.jsx("div",{id:"use-click-away-button",children:D.jsxs(Z.Space.Compact,{style:{width:"100%"},children:[e=="12"&&D.jsx(Z.Input,{...t,disabled:t.readOnly,value:r.defaultValue1,size:t.size,style:{width:"calc(100% - 100px)"},onChange:n=>{var i,s;let a;r.defaultValue1=((i=n.target)==null?void 0:i.value)||"",r.defaultValue1?a=`${((s=n.target)==null?void 0:s.value)||""}~%~${r.defaultValue2||""}`:r.defaultValue2&&(a=`~%~${r.defaultValue2||""}`),t.onChange&&t.onChange(a)},onBlur:n=>{n.stopPropagation()}}),e=="13"&&D.jsx(Z.InputNumber,{...t,disabled:t.readOnly,value:r.defaultValue1,style:{width:"calc(100% - 100px)"},size:t.size,maxLength:void 0,onChange:n=>{let a;r.defaultValue1=n||"",r.defaultValue1?a=`${n||""}~%~${r.defaultValue2||""}`:r.defaultValue2&&(a=`~%~${r.defaultValue2||""}`),t.onChange&&t.onChange(a)},onBlur:n=>{n.stopPropagation()}}),D.jsx(Z.Select,{allowClear:!0,value:r.defaultValue2,disabled:t.readOnly,options:t.options,style:{width:"100px"},size:t.size,onChange:n=>{r.defaultValue2=n||"";let a="";(r.defaultValue1||n)&&(a=`${r.defaultValue1||""}~%~${n||""}`),t.onChange&&t.onChange(a)}})]})})},k$=e=>{const[t,r]=F.useState(!1);KF(async()=>{const a=["/filePreview/plugin.js","/filePreview/luckyexcel.umd.js","/filePreview/luckysheet.umd.js"],i=l=>new Promise((u,c)=>{const m=document.createElement("script");m.src=`${l}`,m.onload=u,m.onerror=c,document.head.appendChild(m)});await(async()=>{for(const l of a)await i(l)})(),n()},[]);const n=()=>{function a(i){const s=new XMLHttpRequest;s.open("GET",i,!0),s.onerror=()=>{},s.responseType="blob",s.onload=()=>{if(s.status===200){var l=new File([s.response],"",{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",lastModified:Date.now()});window.LuckyExcel.transformExcelToLucky(l,function(u){u.sheets==null||u.sheets.length==0||(window.luckysheet.create({container:"luckysheet",showinfobar:!1,data:u.sheets,title:u.info.name,enableAddRow:!1,allowCopy:!1,loading:{},showtoolbar:!1,allowEdit:!1,enableAddCol:!1,userInfo:!1,showRowBar:!1,showColumnBar:!1,sheetFormulaBar:!1,enableAddBackTop:!1,showsheetbarConfig:{add:!1,menu:!1,sheet:!0}}),document.addEventListener("copy",c=>{window.luckysheet.enterEditMode(),window.luckysheet.exitEditMode()}),r(!0))})}},s.send()}a(e.url)};return D.jsx("div",{id:"luckysheet",style:{visibility:t?"visible":"hidden",margin:"0px",padding:"0px",position:"absolute",width:"100%",left:"0px",top:"0px",bottom:"0px",outline:"none"}})},T$={},QS=F.forwardRef((e,t)=>{const[r]=Z.Form.useForm();return F.useImperativeHandle(t,()=>({...r})),D.jsx("div",{className:Te(T$.main,e.className),style:e.style,children:D.jsx(Z.Form,{form:r,layout:"vertical",...e,children:e.children})})}),O$="_main_1rp4h_1",A$={main:O$};class As{static getAttributesMapId(t,r){return As.isQuoteMultipleTypesAttr(t)?r?t[r]:t.id:As.isCustomAttr(t)?t.id:t.dataFromId}static isCustomAttr(t){return t.dataFrom==="0"}static isQuoteAttr(t){return t.dataFrom==="1"}static isQuoteMultipleTypesAttr(t){return t.dataFrom==="2"}static hasAttr(t,r){return t&&Object.keys(t).includes(r)}}var Si=(e=>(e.material="10001001",e.document="10001002",e.changeRequest="10001003",e.changeInstruction="10001004",e.engineeringChange="10001005",e.file="10001006",e.problemReport="10001007",e.manufacturerChange="10001008",e.statusChange="10001009",e.applicationProcess="10001010",e.supplierRequest="10001011",e.manufacturer="10001012",e.manufacturerParts="10001013",e.supplier="10001014",e.projectStartChange="10001015",e.dailyNewspaper="10001019",e.projectBaselineChange="10001030",e.project="10001016",e.workReport="10001019",e.user="10001017",e.userGroup="10001018",e.manufactChange="10001020",e.technology="10001021",e.factory="10001022",e.resource="10001023",e.factoryPublish="10001024",e.resourcePublish="10001025",e.risk="10001028",e.technologyPublish="10001029",e.inspectItem="10001031",e.option="10001032",e.custom="10001033",e.TechSpecial="10001034",e.ControlPlan="10001035",e.TechSpecialPublish="10001036",e.ControlPlanPublish="10001037",e))(Si||{});class Fi{static isMaterial(t){return t=="10001001"}static isDocument(t){return t=="10001002"}static isChangeRequest(t){return t=="10001003"}static isChangeInstruction(t){return t=="10001004"}static isEngineeringChange(t){return t=="10001005"}static isFile(t){return t=="10001006"}static isProblemReport(t){return t=="10001007"}static isManufacturerChange(t){return t=="10001008"}static isStatusChange(t){return t=="10001009"}static isApplicationProcess(t){return t=="10001010"}static isSupplierRequest(t){return t=="10001011"}static isManufacturer(t){return t=="10001012"}static isManufacturerParts(t){return t=="10001013"}static isManufactChange(t){return t=="10001020"}static isSupplier(t){return t=="10001014"}static isProjectStartChange(t){return t=="10001015"}static isDailyNewspaper(t){return t=="10001019"}static isProjectBaselineChange(t){return t=="10001030"}static isProjectChange(t){return Fi.isProjectStartChange(t)||Fi.isProjectBaselineChange(t)}static isProject(t){return t=="10001016"}static isWorkReport(t){return t=="10001019"}static isUser(t){return t=="10001017"}static isUserGroup(t){return t=="10001018"}static isTechnology(t){return t=="10001021"}static isFactory(t){return t=="10001022"}static isResource(t){return t=="10001023"}static isTechnologyPublish(t){return t=="10001029"}static isFactoryPublish(t){return t=="10001024"}static isResoucePublish(t){return t=="10001025"}static isRisk(t){return t=="10001028"}static isInspectItem(t){return t=="10001031"}static isOption(t){return t=="10001032"}static isCustom(t){return t=="10001033"}static isControlPublish(t){return t=="10001037"}static isTechSpecialPublish(t){return t=="10001036"}static isControlPlan(t){return t=="10001035"}static isTechSpecial(t){return t=="10001034"}}//! moment.js
|
|
323
|
+
`,_.getElementsByTagName("head")[0].appendChild(R)),_.body&&h(_.body,"react-draggable-transparent-selection")}function f(_){if(_)try{if(_.body&&v(_.body,"react-draggable-transparent-selection"),_.selection)_.selection.empty();else{const R=(_.defaultView||window).getSelection();R&&R.type!=="Caret"&&R.removeAllRanges()}}catch{}}function h(_,R){_.classList?_.classList.add(R):_.className.match(new RegExp("(?:^|\\s)".concat(R,"(?!\\S)")))||(_.className+=" ".concat(R))}function v(_,R){_.classList?_.classList.remove(R):_.className=_.className.replace(new RegExp("(?:^|\\s)".concat(R,"(?!\\S)"),"g"),"")}return Yt}var aa={},$w;function KS(){if($w)return aa;$w=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.canDragX=a,aa.canDragY=i,aa.createCoreData=l,aa.createDraggableData=u,aa.getBoundPosition=r,aa.getControlPosition=s,aa.snapToGrid=n;var e=lh(),t=hv();function r(p,g,y){if(!p.props.bounds)return[g,y];let{bounds:x}=p.props;x=typeof x=="string"?x:c(x);const E=m(p);if(typeof x=="string"){const{ownerDocument:k}=E,T=k.defaultView;let w;if(x==="parent"?w=E.parentNode:w=k.querySelector(x),!(w instanceof T.HTMLElement))throw new Error('Bounds selector "'+x+'" could not find an element.');const S=w,f=T.getComputedStyle(E),h=T.getComputedStyle(S);x={left:-E.offsetLeft+(0,e.int)(h.paddingLeft)+(0,e.int)(f.marginLeft),top:-E.offsetTop+(0,e.int)(h.paddingTop)+(0,e.int)(f.marginTop),right:(0,t.innerWidth)(S)-(0,t.outerWidth)(E)-E.offsetLeft+(0,e.int)(h.paddingRight)-(0,e.int)(f.marginRight),bottom:(0,t.innerHeight)(S)-(0,t.outerHeight)(E)-E.offsetTop+(0,e.int)(h.paddingBottom)-(0,e.int)(f.marginBottom)}}return(0,e.isNum)(x.right)&&(g=Math.min(g,x.right)),(0,e.isNum)(x.bottom)&&(y=Math.min(y,x.bottom)),(0,e.isNum)(x.left)&&(g=Math.max(g,x.left)),(0,e.isNum)(x.top)&&(y=Math.max(y,x.top)),[g,y]}function n(p,g,y){const x=Math.round(g/p[0])*p[0],E=Math.round(y/p[1])*p[1];return[x,E]}function a(p){return p.props.axis==="both"||p.props.axis==="x"}function i(p){return p.props.axis==="both"||p.props.axis==="y"}function s(p,g,y){const x=typeof g=="number"?(0,t.getTouch)(p,g):null;if(typeof g=="number"&&!x)return null;const E=m(y),k=y.props.offsetParent||E.offsetParent||E.ownerDocument.body;return(0,t.offsetXYFromParent)(x||p,k,y.props.scale)}function l(p,g,y){const x=!(0,e.isNum)(p.lastX),E=m(p);return x?{node:E,deltaX:0,deltaY:0,lastX:g,lastY:y,x:g,y}:{node:E,deltaX:g-p.lastX,deltaY:y-p.lastY,lastX:p.lastX,lastY:p.lastY,x:g,y}}function u(p,g){const y=p.props.scale;return{node:g.node,x:p.state.x+g.deltaX/y,y:p.state.y+g.deltaY/y,deltaX:g.deltaX/y,deltaY:g.deltaY/y,lastX:p.state.x,lastY:p.state.y}}function c(p){return{left:p.left,top:p.top,right:p.right,bottom:p.bottom}}function m(p){const g=p.findDOMNode();if(!g)throw new Error("<DraggableCore>: Unmounted during event!");return g}return aa}var ll={},Pd={},zw;function XS(){if(zw)return Pd;zw=1,Object.defineProperty(Pd,"__esModule",{value:!0}),Pd.default=e;function e(){}return Pd}var Bw;function Xj(){if(Bw)return ll;Bw=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.default=void 0;var e=c(F),t=l(fc()),r=l(zl),n=hv(),a=KS(),i=lh(),s=l(XS());function l(k){return k&&k.__esModule?k:{default:k}}function u(k){if(typeof WeakMap!="function")return null;var T=new WeakMap,w=new WeakMap;return(u=function(S){return S?w:T})(k)}function c(k,T){if(k&&k.__esModule)return k;if(k===null||typeof k!="object"&&typeof k!="function")return{default:k};var w=u(T);if(w&&w.has(k))return w.get(k);var S={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in k)if(h!=="default"&&Object.prototype.hasOwnProperty.call(k,h)){var v=f?Object.getOwnPropertyDescriptor(k,h):null;v&&(v.get||v.set)?Object.defineProperty(S,h,v):S[h]=k[h]}return S.default=k,w&&w.set(k,S),S}function m(k,T,w){return T=p(T),T in k?Object.defineProperty(k,T,{value:w,enumerable:!0,configurable:!0,writable:!0}):k[T]=w,k}function p(k){var T=g(k,"string");return typeof T=="symbol"?T:String(T)}function g(k,T){if(typeof k!="object"||k===null)return k;var w=k[Symbol.toPrimitive];if(w!==void 0){var S=w.call(k,T);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(k)}const y={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let x=y.mouse,E=class extends e.Component{constructor(){super(...arguments),m(this,"dragging",!1),m(this,"lastX",NaN),m(this,"lastY",NaN),m(this,"touchIdentifier",null),m(this,"mounted",!1),m(this,"handleDragStart",T=>{if(this.props.onMouseDown(T),!this.props.allowAnyClick&&typeof T.button=="number"&&T.button!==0)return!1;const w=this.findDOMNode();if(!w||!w.ownerDocument||!w.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:S}=w;if(this.props.disabled||!(T.target instanceof S.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(T.target,this.props.handle,w)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(T.target,this.props.cancel,w))return;T.type==="touchstart"&&T.preventDefault();const f=(0,n.getTouchIdentifier)(T);this.touchIdentifier=f;const h=(0,a.getControlPosition)(T,f,this);if(h==null)return;const{x:v,y:_}=h,R=(0,a.createCoreData)(this,v,_);(0,s.default)("DraggableCore: handleDragStart: %j",R),(0,s.default)("calling",this.props.onStart),!(this.props.onStart(T,R)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(S),this.dragging=!0,this.lastX=v,this.lastY=_,(0,n.addEvent)(S,x.move,this.handleDrag),(0,n.addEvent)(S,x.stop,this.handleDragStop))}),m(this,"handleDrag",T=>{const w=(0,a.getControlPosition)(T,this.touchIdentifier,this);if(w==null)return;let{x:S,y:f}=w;if(Array.isArray(this.props.grid)){let _=S-this.lastX,R=f-this.lastY;if([_,R]=(0,a.snapToGrid)(this.props.grid,_,R),!_&&!R)return;S=this.lastX+_,f=this.lastY+R}const h=(0,a.createCoreData)(this,S,f);if((0,s.default)("DraggableCore: handleDrag: %j",h),this.props.onDrag(T,h)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const R=document.createEvent("MouseEvents");R.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(R)}return}this.lastX=S,this.lastY=f}),m(this,"handleDragStop",T=>{if(!this.dragging)return;const w=(0,a.getControlPosition)(T,this.touchIdentifier,this);if(w==null)return;let{x:S,y:f}=w;if(Array.isArray(this.props.grid)){let R=S-this.lastX||0,C=f-this.lastY||0;[R,C]=(0,a.snapToGrid)(this.props.grid,R,C),S=this.lastX+R,f=this.lastY+C}const h=(0,a.createCoreData)(this,S,f);if(this.props.onStop(T,h)===!1||this.mounted===!1)return!1;const _=this.findDOMNode();_&&this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(_.ownerDocument),(0,s.default)("DraggableCore: handleDragStop: %j",h),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,_&&((0,s.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(_.ownerDocument,x.move,this.handleDrag),(0,n.removeEvent)(_.ownerDocument,x.stop,this.handleDragStop))}),m(this,"onMouseDown",T=>(x=y.mouse,this.handleDragStart(T))),m(this,"onMouseUp",T=>(x=y.mouse,this.handleDragStop(T))),m(this,"onTouchStart",T=>(x=y.touch,this.handleDragStart(T))),m(this,"onTouchEnd",T=>(x=y.touch,this.handleDragStop(T)))}componentDidMount(){this.mounted=!0;const T=this.findDOMNode();T&&(0,n.addEvent)(T,y.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const T=this.findDOMNode();if(T){const{ownerDocument:w}=T;(0,n.removeEvent)(w,y.mouse.move,this.handleDrag),(0,n.removeEvent)(w,y.touch.move,this.handleDrag),(0,n.removeEvent)(w,y.mouse.stop,this.handleDragStop),(0,n.removeEvent)(w,y.touch.stop,this.handleDragStop),(0,n.removeEvent)(T,y.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(w)}}findDOMNode(){var T,w;return(T=this.props)!==null&&T!==void 0&&T.nodeRef?(w=this.props)===null||w===void 0||(w=w.nodeRef)===null||w===void 0?void 0:w.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return ll.default=E,m(E,"displayName","DraggableCore"),m(E,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(k,T){if(k[T]&&k[T].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),m(E,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),ll}var Hw;function Zj(){return Hw||(Hw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),e.default=void 0;var t=g(F),r=m(fc()),n=m(zl),a=m(Gj),i=hv(),s=KS(),l=lh(),u=m(Xj()),c=m(XS());function m(w){return w&&w.__esModule?w:{default:w}}function p(w){if(typeof WeakMap!="function")return null;var S=new WeakMap,f=new WeakMap;return(p=function(h){return h?f:S})(w)}function g(w,S){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var f=p(S);if(f&&f.has(w))return f.get(w);var h={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in w)if(_!=="default"&&Object.prototype.hasOwnProperty.call(w,_)){var R=v?Object.getOwnPropertyDescriptor(w,_):null;R&&(R.get||R.set)?Object.defineProperty(h,_,R):h[_]=w[_]}return h.default=w,f&&f.set(w,h),h}function y(){return y=Object.assign?Object.assign.bind():function(w){for(var S=1;S<arguments.length;S++){var f=arguments[S];for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(w[h]=f[h])}return w},y.apply(this,arguments)}function x(w,S,f){return S=E(S),S in w?Object.defineProperty(w,S,{value:f,enumerable:!0,configurable:!0,writable:!0}):w[S]=f,w}function E(w){var S=k(w,"string");return typeof S=="symbol"?S:String(S)}function k(w,S){if(typeof w!="object"||w===null)return w;var f=w[Symbol.toPrimitive];if(f!==void 0){var h=f.call(w,S);if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(w)}class T extends t.Component{static getDerivedStateFromProps(S,f){let{position:h}=S,{prevPropsPosition:v}=f;return h&&(!v||h.x!==v.x||h.y!==v.y)?((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:h,prevPropsPosition:v}),{x:h.x,y:h.y,prevPropsPosition:{...h}}):null}constructor(S){super(S),x(this,"onDragStart",(f,h)=>{if((0,c.default)("Draggable: onDragStart: %j",h),this.props.onStart(f,(0,s.createDraggableData)(this,h))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),x(this,"onDrag",(f,h)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",h);const v=(0,s.createDraggableData)(this,h),_={x:v.x,y:v.y,slackX:0,slackY:0};if(this.props.bounds){const{x:C,y:P}=_;_.x+=this.state.slackX,_.y+=this.state.slackY;const[M,U]=(0,s.getBoundPosition)(this,_.x,_.y);_.x=M,_.y=U,_.slackX=this.state.slackX+(C-_.x),_.slackY=this.state.slackY+(P-_.y),v.x=_.x,v.y=_.y,v.deltaX=_.x-this.state.x,v.deltaY=_.y-this.state.y}if(this.props.onDrag(f,v)===!1)return!1;this.setState(_)}),x(this,"onDragStop",(f,h)=>{if(!this.state.dragging||this.props.onStop(f,(0,s.createDraggableData)(this,h))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",h);const _={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:C,y:P}=this.props.position;_.x=C,_.y=P}this.setState(_)}),this.state={dragging:!1,dragged:!1,x:S.position?S.position.x:S.defaultPosition.x,y:S.position?S.position.y:S.defaultPosition.y,prevPropsPosition:{...S.position},slackX:0,slackY:0,isElementSVG:!1},S.position&&!(S.onDrag||S.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var S,f;return(S=(f=this.props)===null||f===void 0||(f=f.nodeRef)===null||f===void 0?void 0:f.current)!==null&&S!==void 0?S:n.default.findDOMNode(this)}render(){const{axis:S,bounds:f,children:h,defaultPosition:v,defaultClassName:_,defaultClassNameDragging:R,defaultClassNameDragged:C,position:P,positionOffset:M,scale:U,...L}=this.props;let N={},j=null;const I=!!!P||this.state.dragging,z=P||v,B={x:(0,s.canDragX)(this)&&I?this.state.x:z.x,y:(0,s.canDragY)(this)&&I?this.state.y:z.y};this.state.isElementSVG?j=(0,i.createSVGTransform)(B,M):N=(0,i.createCSSTransform)(B,M);const H=(0,a.default)(h.props.className||"",_,{[R]:this.state.dragging,[C]:this.state.dragged});return t.createElement(u.default,y({},L,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(h),{className:H,style:{...h.props.style,...N},transform:j}))}}e.default=T,x(T,"displayName","Draggable"),x(T,"propTypes",{...u.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),x(T,"defaultProps",{...u.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(Fm)),Fm}var Uw;function pv(){if(Uw)return ul.exports;Uw=1;const{default:e,DraggableCore:t}=Zj();return ul.exports=e,ul.exports.default=e,ul.exports.DraggableCore=t,ul.exports}var Jj=pv();const Qj=Rr(Jj),{confirm:e$}=X.Modal;function ZS(e){const{title:t,content:r,onOk:n,onCancel:a,isShowBtnIcon:i=!0}=e;return{...e,title:D.jsx("div",{title:ie.isString(t)?t:"",children:t}),content:D.jsx("div",{title:ie.isString(r)?r:"",children:r}),mask:!1,wrapClassName:"twiceaffirm",className:`${i?"":Fl.notBtnIcon} ${Fl.confirmModal}`,width:"480px",bodyStyle:{padding:"12px"},icon:D.jsx(He,{type:"uploadFail",style:{fontSize:"18px",color:"#ffb200",marginRight:"6px",marginTop:"2px"}}),okButtonProps:{icon:D.jsx(He,{type:"pop-upconfirm",style:{cursor:"pointer",fontSize:"13px"}}),className:"modelok",style:{color:"#000",background:"#fff",height:"22px",border:"0 !important",boxShadow:"none"}},cancelButtonProps:{icon:D.jsx(He,{type:"pop-close",style:{cursor:"pointer",fontSize:"13px"}}),className:"modelok",style:{color:"#000",background:"#fff",height:"22px",border:"none",boxShadow:"none"}},onOk:n,onCancel:()=>{a==null||a()}}}const To=e=>{const[t,r]=F.useState(null),[n,a]=F.useState(!0),[i,s]=F.useState({left:0,right:0,top:0,bottom:0}),l=F.useRef(),u=!!e.styleUnify;zs(()=>{const m=document.getElementById("qprogressElement");if(m&&!t){const p=new zj({minimum:.02,height:4,parentNode:m});r(p)}}),oh(()=>{t&&(t.finish(),r(null))}),F.useEffect(()=>{e.progressPercent&&t&&(1>e.progressPercent?t.set(e.progressPercent):t.finish())},[e.progressPercent]);const c=(m,p)=>{var E;const{clientWidth:g,clientHeight:y}=window.document.documentElement,x=(E=l.current)==null?void 0:E.getBoundingClientRect();x&&s({left:-x.left+p.x,right:g-(x.right-p.x),top:-x.top+p.y,bottom:y-(x.bottom-p.y)})};return D.jsxs(X.Modal,{destroyOnClose:!0,okText:e.okText||Y("sys.label.confirm",{placeholder:"确定"}),okButtonProps:{style:{height:"30px",minWidth:"72px"}},cancelButtonProps:{style:{minWidth:"72px",height:"30px"}},getContainer:()=>document.getElementById("ria-frontend")||document.body,title:D.jsx("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{n&&a(!1)},onMouseOut:()=>{a(!0)},onFocus:()=>{},onBlur:()=>{},children:e.modalTitle}),modalRender:m=>D.jsx(Qj,{disabled:n,bounds:i,onStart:(p,g)=>c(p,g),children:D.jsx("div",{ref:l,children:m})}),...ie.omit(e,"visible"),wrapClassName:`modalClassName ${Fl.wrapClassName} ${e.wrapClassName??""}`,className:`${u?Fl.styleUnify:""} ${e.className??""}`,visible:e.visible,children:[D.jsx("div",{className:Fl.qprogress,id:"qprogressElement"}),D.jsx("div",{onDoubleClick:m=>m.stopPropagation(),children:e.children})]})},t$="_main_104mn_1",r$={main:t$};var Bm={},Hm={},cl={exports:{}},io={exports:{}},n$=io.exports,qw;function a$(){return qw||(qw=1,(function(){var e,t,r,n,a,i;typeof performance<"u"&&performance!==null&&performance.now?io.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(io.exports=function(){return(e()-a)/1e6},t=process.hrtime,e=function(){var s;return s=t(),s[0]*1e9+s[1]},n=e(),i=process.uptime()*1e9,a=n-i):Date.now?(io.exports=function(){return Date.now()-r},r=Date.now()):(io.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(n$)),io.exports}var Ww;function i$(){if(Ww)return cl.exports;Ww=1;for(var e=a$(),t=typeof window>"u"?Un:window,r=["moz","webkit"],n="AnimationFrame",a=t["request"+n],i=t["cancel"+n]||t["cancelRequest"+n],s=0;!a&&s<r.length;s++)a=t[r[s]+"Request"+n],i=t[r[s]+"Cancel"+n]||t[r[s]+"CancelRequest"+n];if(!a||!i){var l=0,u=0,c=[],m=1e3/60;a=function(p){if(c.length===0){var g=e(),y=Math.max(0,m-(g-l));l=y+g,setTimeout(function(){var x=c.slice(0);c.length=0;for(var E=0;E<x.length;E++)if(!x[E].cancelled)try{x[E].callback(l)}catch(k){setTimeout(function(){throw k},0)}},Math.round(y))}return c.push({handle:++u,callback:p,cancelled:!1}),u},i=function(p){for(var g=0;g<c.length;g++)c[g].handle===p&&(c[g].cancelled=!0)}}return cl.exports=function(p){return a.call(t,p)},cl.exports.cancel=function(){i.apply(t,arguments)},cl.exports.polyfill=function(p){p||(p=t),p.requestAnimationFrame=a,p.cancelAnimationFrame=i},cl.exports}var dl={exports:{}},Um,Vw;function o$(){if(Vw)return Um;Vw=1;var e=null,t=["Webkit","Moz","O","ms"];return Um=function(n){e||(e=document.createElement("div"));var a=e.style;if(n in a)return n;for(var i=n.charAt(0).toUpperCase()+n.slice(1),s=t.length;s>=0;s--){var l=t[s]+i;if(l in a)return l}return!1},Um}var qm,Yw;function s$(){if(Yw)return qm;Yw=1,qm=n;var e=/\s/,t=/(_|-|\.|:)/,r=/([a-z][A-Z]|[A-Z][a-z])/;function n(u){return e.test(u)?u.toLowerCase():t.test(u)?(i(u)||u).toLowerCase():r.test(u)?l(u).toLowerCase():u.toLowerCase()}var a=/[\W_]+(.|$)/g;function i(u){return u.replace(a,function(c,m){return m?" "+m:""})}var s=/(.)([A-Z]+)/g;function l(u){return u.replace(s,function(c,m,p){return m+" "+p.toLowerCase().split("").join(" ")})}return qm}var Wm,Gw;function u$(){if(Gw)return Wm;Gw=1;var e=s$();Wm=t;function t(r){return e(r).replace(/[\W_]+(.|$)/g,function(n,a){return a?" "+a:""}).trim()}return Wm}var Vm,Kw;function l$(){if(Kw)return Vm;Kw=1;var e=u$();Vm=t;function t(r){return e(r).replace(/\s(\w)/g,function(n,a){return a.toUpperCase()})}return Vm}var Ym,Xw;function c$(){if(Xw)return Ym;Xw=1;var e={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};return Ym=function(t,r){return typeof r=="number"&&!e[t]?r+"px":r},Ym}var Zw;function JS(){if(Zw)return dl.exports;Zw=1;var e=o$(),t=l$(),r={float:"cssFloat"},n=c$();function a(u,c,m){var p=r[c];if(typeof p>"u"&&(p=s(c)),p){if(m===void 0)return u.style[p];u.style[p]=n(p,m)}}function i(u,c){for(var m in c)c.hasOwnProperty(m)&&a(u,m,c[m])}function s(u){var c=t(u),m=e(c);return r[c]=r[u]=r[m]=m,m}function l(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:i(arguments[0],arguments[1]):a(arguments[0],arguments[1],arguments[2])}return dl.exports=l,dl.exports.set=l,dl.exports.get=function(u,c){return Array.isArray(c)?c.reduce(function(m,p){return m[p]=a(u,p||""),m},{}):a(u,c||"")},dl.exports}var Gm={},Jw;function d$(){return Jw||(Jw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return typeof r=="string"}}(Gm)),Gm}var Km={},Qw;function f$(){return Qw||(Qw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=JS(),r=n(t);function n(s){return s&&s.__esModule?s:{default:s}}var a=!1;function i(){if(a!==!1)return a;if(typeof document<"u"){var s=document.createElement("div");(0,r.default)(s,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(s),a=s.offsetWidth-s.clientWidth,document.body.removeChild(s)}else a=0;return a||0}}(Km)),Km}var Xm={},ex;function h$(){return ex||(ex=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){return!1}}(Xm)),Xm}var Zm={},tx;function p$(){return tx||(tx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var n=r.clientWidth,a=getComputedStyle(r),i=a.paddingLeft,s=a.paddingRight;return n-parseFloat(i)-parseFloat(s)}}(Zm)),Zm}var Jm={},rx;function m$(){return rx||(rx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var n=r.clientHeight,a=getComputedStyle(r),i=a.paddingTop,s=a.paddingBottom;return n-parseFloat(i)-parseFloat(s)}}(Jm)),Jm}var jr={},nx;function g$(){return nx||(nx=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},jr.containerStyleAutoHeight={height:"auto"},jr.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},jr.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},jr.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},jr.trackHorizontalStyleDefault={position:"absolute",height:6},jr.trackVerticalStyleDefault={position:"absolute",width:6},jr.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},jr.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},jr.disableSelectStyle={userSelect:"none"},jr.disableSelectStyleReset={userSelect:""}),jr}var wi={},ax;function v$(){if(ax)return wi;ax=1,Object.defineProperty(wi,"__esModule",{value:!0});var e=Object.assign||function(m){for(var p=1;p<arguments.length;p++){var g=arguments[p];for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&(m[y]=g[y])}return m};wi.renderViewDefault=i,wi.renderTrackHorizontalDefault=s,wi.renderTrackVerticalDefault=l,wi.renderThumbHorizontalDefault=u,wi.renderThumbVerticalDefault=c;var t=F,r=n(t);function n(m){return m&&m.__esModule?m:{default:m}}function a(m,p){var g={};for(var y in m)p.indexOf(y)>=0||Object.prototype.hasOwnProperty.call(m,y)&&(g[y]=m[y]);return g}function i(m){return r.default.createElement("div",m)}function s(m){var p=m.style,g=a(m,["style"]),y=e({},p,{right:2,bottom:2,left:2,borderRadius:3});return r.default.createElement("div",e({style:y},g))}function l(m){var p=m.style,g=a(m,["style"]),y=e({},p,{right:2,bottom:2,top:2,borderRadius:3});return r.default.createElement("div",e({style:y},g))}function u(m){var p=m.style,g=a(m,["style"]),y=e({},p,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",e({style:y},g))}function c(m){var p=m.style,g=a(m,["style"]),y=e({},p,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",e({style:y},g))}return wi}var ix;function b$(){return ix||(ix=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(U){for(var L=1;L<arguments.length;L++){var N=arguments[L];for(var j in N)Object.prototype.hasOwnProperty.call(N,j)&&(U[j]=N[j])}return U},r=function(){function U(L,N){for(var j=0;j<N.length;j++){var O=N[j];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(L,O.key,O)}}return function(L,N,j){return N&&U(L.prototype,N),j&&U(L,j),L}}(),n=i$(),a=v(n),i=JS(),s=v(i),l=F,u=fc(),c=v(u),m=d$(),p=v(m),g=f$(),y=v(g),x=h$(),E=v(x),k=p$(),T=v(k),w=m$(),S=v(w),f=g$(),h=v$();function v(U){return U&&U.__esModule?U:{default:U}}function _(U,L){var N={};for(var j in U)L.indexOf(j)>=0||Object.prototype.hasOwnProperty.call(U,j)&&(N[j]=U[j]);return N}function R(U,L){if(!(U instanceof L))throw new TypeError("Cannot call a class as a function")}function C(U,L){if(!U)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:U}function P(U,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);U.prototype=Object.create(L&&L.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(U,L):U.__proto__=L)}var M=function(U){P(L,U);function L(N){var j;R(this,L);for(var O=arguments.length,I=Array(O>1?O-1:0),z=1;z<O;z++)I[z-1]=arguments[z];var B=C(this,(j=L.__proto__||Object.getPrototypeOf(L)).call.apply(j,[this,N].concat(I)));return B.getScrollLeft=B.getScrollLeft.bind(B),B.getScrollTop=B.getScrollTop.bind(B),B.getScrollWidth=B.getScrollWidth.bind(B),B.getScrollHeight=B.getScrollHeight.bind(B),B.getClientWidth=B.getClientWidth.bind(B),B.getClientHeight=B.getClientHeight.bind(B),B.getValues=B.getValues.bind(B),B.getThumbHorizontalWidth=B.getThumbHorizontalWidth.bind(B),B.getThumbVerticalHeight=B.getThumbVerticalHeight.bind(B),B.getScrollLeftForOffset=B.getScrollLeftForOffset.bind(B),B.getScrollTopForOffset=B.getScrollTopForOffset.bind(B),B.scrollLeft=B.scrollLeft.bind(B),B.scrollTop=B.scrollTop.bind(B),B.scrollToLeft=B.scrollToLeft.bind(B),B.scrollToTop=B.scrollToTop.bind(B),B.scrollToRight=B.scrollToRight.bind(B),B.scrollToBottom=B.scrollToBottom.bind(B),B.handleTrackMouseEnter=B.handleTrackMouseEnter.bind(B),B.handleTrackMouseLeave=B.handleTrackMouseLeave.bind(B),B.handleHorizontalTrackMouseDown=B.handleHorizontalTrackMouseDown.bind(B),B.handleVerticalTrackMouseDown=B.handleVerticalTrackMouseDown.bind(B),B.handleHorizontalThumbMouseDown=B.handleHorizontalThumbMouseDown.bind(B),B.handleVerticalThumbMouseDown=B.handleVerticalThumbMouseDown.bind(B),B.handleWindowResize=B.handleWindowResize.bind(B),B.handleScroll=B.handleScroll.bind(B),B.handleDrag=B.handleDrag.bind(B),B.handleDragEnd=B.handleDragEnd.bind(B),B.state={didMountUniversal:!1},B}return r(L,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var j=this.props.universal;j&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,n.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var j=this.view||{},O=j.scrollLeft,I=O===void 0?0:O,z=j.scrollTop,B=z===void 0?0:z,H=j.scrollWidth,q=H===void 0?0:H,J=j.scrollHeight,re=J===void 0?0:J,ne=j.clientWidth,se=ne===void 0?0:ne,ce=j.clientHeight,le=ce===void 0?0:ce;return{left:I/(q-se)||0,top:B/(re-le)||0,scrollLeft:I,scrollTop:B,scrollWidth:q,scrollHeight:re,clientWidth:se,clientHeight:le}}},{key:"getThumbHorizontalWidth",value:function(){var j=this.props,O=j.thumbSize,I=j.thumbMinSize,z=this.view,B=z.scrollWidth,H=z.clientWidth,q=(0,T.default)(this.trackHorizontal),J=Math.ceil(H/B*q);return q===J?0:O||Math.max(J,I)}},{key:"getThumbVerticalHeight",value:function(){var j=this.props,O=j.thumbSize,I=j.thumbMinSize,z=this.view,B=z.scrollHeight,H=z.clientHeight,q=(0,S.default)(this.trackVertical),J=Math.ceil(H/B*q);return q===J?0:O||Math.max(J,I)}},{key:"getScrollLeftForOffset",value:function(j){var O=this.view,I=O.scrollWidth,z=O.clientWidth,B=(0,T.default)(this.trackHorizontal),H=this.getThumbHorizontalWidth();return j/(B-H)*(I-z)}},{key:"getScrollTopForOffset",value:function(j){var O=this.view,I=O.scrollHeight,z=O.clientHeight,B=(0,S.default)(this.trackVertical),H=this.getThumbVerticalHeight();return j/(B-H)*(I-z)}},{key:"scrollLeft",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=j)}},{key:"scrollTop",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=j)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var j=this.view,O=this.trackHorizontal,I=this.trackVertical,z=this.thumbHorizontal,B=this.thumbVertical;j.addEventListener("scroll",this.handleScroll),(0,y.default)()&&(O.addEventListener("mouseenter",this.handleTrackMouseEnter),O.addEventListener("mouseleave",this.handleTrackMouseLeave),O.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),I.addEventListener("mouseenter",this.handleTrackMouseEnter),I.addEventListener("mouseleave",this.handleTrackMouseLeave),I.addEventListener("mousedown",this.handleVerticalTrackMouseDown),z.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),B.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var j=this.view,O=this.trackHorizontal,I=this.trackVertical,z=this.thumbHorizontal,B=this.thumbVertical;j.removeEventListener("scroll",this.handleScroll),(0,y.default)()&&(O.removeEventListener("mouseenter",this.handleTrackMouseEnter),O.removeEventListener("mouseleave",this.handleTrackMouseLeave),O.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),I.removeEventListener("mouseenter",this.handleTrackMouseEnter),I.removeEventListener("mouseleave",this.handleTrackMouseLeave),I.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),z.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),B.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(j){var O=this,I=this.props,z=I.onScroll,B=I.onScrollFrame;z&&z(j),this.update(function(H){var q=H.scrollLeft,J=H.scrollTop;O.viewScrollLeft=q,O.viewScrollTop=J,B&&B(H)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var j=this.props.onScrollStart;j&&j(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var j=this.props.autoHide;j&&this.showTracks()}},{key:"handleScrollStop",value:function(){var j=this.props.onScrollStop;j&&j(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var j=this.props.autoHide;j&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(j){j.preventDefault();var O=j.target,I=j.clientX,z=O.getBoundingClientRect(),B=z.left,H=this.getThumbHorizontalWidth(),q=Math.abs(B-I)-H/2;this.view.scrollLeft=this.getScrollLeftForOffset(q)}},{key:"handleVerticalTrackMouseDown",value:function(j){j.preventDefault();var O=j.target,I=j.clientY,z=O.getBoundingClientRect(),B=z.top,H=this.getThumbVerticalHeight(),q=Math.abs(B-I)-H/2;this.view.scrollTop=this.getScrollTopForOffset(q)}},{key:"handleHorizontalThumbMouseDown",value:function(j){j.preventDefault(),this.handleDragStart(j);var O=j.target,I=j.clientX,z=O.offsetWidth,B=O.getBoundingClientRect(),H=B.left;this.prevPageX=z-(I-H)}},{key:"handleVerticalThumbMouseDown",value:function(j){j.preventDefault(),this.handleDragStart(j);var O=j.target,I=j.clientY,z=O.offsetHeight,B=O.getBoundingClientRect(),H=B.top;this.prevPageY=z-(I-H)}},{key:"setupDragging",value:function(){(0,s.default)(document.body,f.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=E.default}},{key:"teardownDragging",value:function(){(0,s.default)(document.body,f.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(j){this.dragging=!0,j.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(j){if(this.prevPageX){var O=j.clientX,I=this.trackHorizontal.getBoundingClientRect(),z=I.left,B=this.getThumbHorizontalWidth(),H=B-this.prevPageX,q=-z+O-H;this.view.scrollLeft=this.getScrollLeftForOffset(q)}if(this.prevPageY){var J=j.clientY,re=this.trackVertical.getBoundingClientRect(),ne=re.top,se=this.getThumbVerticalHeight(),ce=se-this.prevPageY,le=-ne+J-ce;this.view.scrollTop=this.getScrollTopForOffset(le)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var j=this.props.autoHide;j&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var j=this.props.autoHide;j&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var j=this.props.autoHide;j&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,s.default)(this.trackHorizontal,{opacity:1}),(0,s.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var j=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var O=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,s.default)(j.trackHorizontal,{opacity:0}),(0,s.default)(j.trackVertical,{opacity:0})},O)}}},{key:"detectScrolling",value:function(){var j=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){j.lastViewScrollLeft===j.viewScrollLeft&&j.lastViewScrollTop===j.viewScrollTop&&(clearInterval(j.detectScrollingInterval),j.scrolling=!1,j.handleScrollStop()),j.lastViewScrollLeft=j.viewScrollLeft,j.lastViewScrollTop=j.viewScrollTop},100))}},{key:"raf",value:function(j){var O=this;this.requestFrame&&a.default.cancel(this.requestFrame),this.requestFrame=(0,a.default)(function(){O.requestFrame=void 0,j()})}},{key:"update",value:function(j){var O=this;this.raf(function(){return O._update(j)})}},{key:"_update",value:function(j){var O=this.props,I=O.onUpdate,z=O.hideTracksWhenNotNeeded,B=this.getValues();if((0,y.default)()){var H=B.scrollLeft,q=B.clientWidth,J=B.scrollWidth,re=(0,T.default)(this.trackHorizontal),ne=this.getThumbHorizontalWidth(),se=H/(J-q)*(re-ne),ce={width:ne,transform:"translateX("+se+"px)"},le=B.scrollTop,ye=B.clientHeight,we=B.scrollHeight,Ee=(0,S.default)(this.trackVertical),Le=this.getThumbVerticalHeight(),he=le/(we-ye)*(Ee-Le),qe={height:Le,transform:"translateY("+he+"px)"};if(z){var oe={visibility:J>q?"visible":"hidden"},De={visibility:we>ye?"visible":"hidden"};(0,s.default)(this.trackHorizontal,oe),(0,s.default)(this.trackVertical,De)}(0,s.default)(this.thumbHorizontal,ce),(0,s.default)(this.thumbVertical,qe)}I&&I(B),typeof j=="function"&&j(B)}},{key:"render",value:function(){var j=this,O=(0,y.default)(),I=this.props;I.onScroll,I.onScrollFrame,I.onScrollStart,I.onScrollStop,I.onUpdate;var z=I.renderView,B=I.renderTrackHorizontal,H=I.renderTrackVertical,q=I.renderThumbHorizontal,J=I.renderThumbVertical,re=I.tagName;I.hideTracksWhenNotNeeded;var ne=I.autoHide;I.autoHideTimeout;var se=I.autoHideDuration;I.thumbSize,I.thumbMinSize;var ce=I.universal,le=I.autoHeight,ye=I.autoHeightMin,we=I.autoHeightMax,Ee=I.style,Le=I.children,he=_(I,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),qe=this.state.didMountUniversal,oe=t({},f.containerStyleDefault,le&&t({},f.containerStyleAutoHeight,{minHeight:ye,maxHeight:we}),Ee),De=t({},f.viewStyleDefault,{marginRight:O?-O:0,marginBottom:O?-O:0},le&&t({},f.viewStyleAutoHeight,{minHeight:(0,p.default)(ye)?"calc("+ye+" + "+O+"px)":ye+O,maxHeight:(0,p.default)(we)?"calc("+we+" + "+O+"px)":we+O}),le&&ce&&!qe&&{minHeight:ye,maxHeight:we},ce&&!qe&&f.viewStyleUniversalInitial),Je={transition:"opacity "+se+"ms",opacity:0},Ct=t({},f.trackHorizontalStyleDefault,ne&&Je,(!O||ce&&!qe)&&{display:"none"}),Et=t({},f.trackVerticalStyleDefault,ne&&Je,(!O||ce&&!qe)&&{display:"none"});return(0,l.createElement)(re,t({},he,{style:oe,ref:function(We){j.container=We}}),[(0,l.cloneElement)(z({style:De}),{key:"view",ref:function(We){j.view=We}},Le),(0,l.cloneElement)(B({style:Ct}),{key:"trackHorizontal",ref:function(We){j.trackHorizontal=We}},(0,l.cloneElement)(q({style:f.thumbHorizontalStyleDefault}),{ref:function(We){j.thumbHorizontal=We}})),(0,l.cloneElement)(H({style:Et}),{key:"trackVertical",ref:function(We){j.trackVertical=We}},(0,l.cloneElement)(J({style:f.thumbVerticalStyleDefault}),{ref:function(We){j.thumbVertical=We}}))])}}]),L}(l.Component);e.default=M,M.propTypes={onScroll:c.default.func,onScrollFrame:c.default.func,onScrollStart:c.default.func,onScrollStop:c.default.func,onUpdate:c.default.func,renderView:c.default.func,renderTrackHorizontal:c.default.func,renderTrackVertical:c.default.func,renderThumbHorizontal:c.default.func,renderThumbVertical:c.default.func,tagName:c.default.string,thumbSize:c.default.number,thumbMinSize:c.default.number,hideTracksWhenNotNeeded:c.default.bool,autoHide:c.default.bool,autoHideTimeout:c.default.number,autoHideDuration:c.default.number,autoHeight:c.default.bool,autoHeightMin:c.default.oneOfType([c.default.number,c.default.string]),autoHeightMax:c.default.oneOfType([c.default.number,c.default.string]),universal:c.default.bool,style:c.default.object,children:c.default.node},M.defaultProps={renderView:h.renderViewDefault,renderTrackHorizontal:h.renderTrackHorizontalDefault,renderTrackVertical:h.renderTrackVerticalDefault,renderThumbHorizontal:h.renderThumbHorizontalDefault,renderThumbVertical:h.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}}(Hm)),Hm}var ox;function y$(){return ox||(ox=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbars=void 0;var t=b$(),r=n(t);function n(a){return a&&a.__esModule?a:{default:a}}e.default=r.default,e.Scrollbars=r.default}(Bm)),Bm}var _$=y$();const w$=e=>D.jsx(_$.Scrollbars,{autoHide:!0,style:{...ie.merge({overflow:"auto",height:"100%"},e.style)},...e,className:Te(r$.main,e.className),renderThumbVertical:({style:t,...r})=>{const n={borderRadius:"0px",background:"#e0e0e0"};return D.jsx("div",{style:{...t,...n},...r})},children:e.children}),Dd={"error-box":"_error-box_1uv1u_1","err-color":"_err-color_1uv1u_12","err-box-list":"_err-box-list_1uv1u_16","custom-button":"_custom-button_1uv1u_22"},x$=e=>D.jsx("div",{className:Dd["error-box"],children:D.jsxs("div",{className:Dd["err-box-list"],children:[D.jsx("div",{children:D.jsx(He,{style:{fontSize:"45px"},isBackend:!0,type:"a-front-previewerror",className:Dd["err-color"]})}),D.jsx("div",{style:{marginTop:"20px",color:"#6c81b1",fontSize:"14px"},children:e.children||Y("sys.error.loading",{placeholder:"加载错误"})}),D.jsx("div",{style:{marginTop:"30px"},children:D.jsx("div",{className:Dd["custom-button"],onClick:()=>{location.reload()},children:Y("sys.action.refresh",{placeholder:"刷新"})})})]})}),S$="_main_g4ee8_1",C$={main:S$},E$=e=>{const t=async(n,a)=>{const i=e.menu.items[a];if(i.request){i.request.middleware&&await i.request.middleware();let s=await e.request(i.request.url,i.request.options);X.message.success(s.message),i.request.onSuccess&&i.request.onSuccess()}e.menu.onClick&&e.menu.onClick({...n,key:a.toString()})},r=D.jsx(X.Menu,{...ie.omit(e.menu,["items"]),onClick:()=>{},children:e.menu.items.map((n,a)=>n.confirm?D.jsx(X.Popconfirm,{disabled:e.disabled,okText:Y("sys.action.confirm",{placeholder:"确认"}),cancelText:Y("sys.action.cancel",{placeholder:"取消"}),onConfirm:()=>{t(n,a)},...n.confirm,children:D.jsx(X.Menu.Item,{onClick:()=>{},...n},a)},n.key||a):D.jsx(X.Menu.Item,{onClick:()=>{t(n,a)},...n},n.key||a))});return D.jsx(X.Dropdown,{overlayStyle:{...e.style},overlayClassName:e.className,className:Te(C$.main),overlay:r,...ie.omit(e,["menu"])})},hc=({valueType:e="12",...t})=>{const r=Br({defaultValue1:"",defaultValue2:""});return QF(()=>{t.onBlur&&t.onBlur()},()=>document.getElementById("use-click-away-button")),F.useEffect(()=>{t.value?(r.defaultValue1=t.value.split("~%~")[0]||"",r.defaultValue2=t.value.split("~%~")[1]||""):(r.defaultValue1="",r.defaultValue2="")},[t.value]),D.jsx("div",{id:"use-click-away-button",children:D.jsxs(X.Space.Compact,{style:{width:"100%"},children:[e=="12"&&D.jsx(X.Input,{...t,disabled:t.readOnly,value:r.defaultValue1,size:t.size,style:{width:"calc(100% - 100px)"},onChange:n=>{var i,s;let a;r.defaultValue1=((i=n.target)==null?void 0:i.value)||"",r.defaultValue1?a=`${((s=n.target)==null?void 0:s.value)||""}~%~${r.defaultValue2||""}`:r.defaultValue2&&(a=`~%~${r.defaultValue2||""}`),t.onChange&&t.onChange(a)},onBlur:n=>{n.stopPropagation()}}),e=="13"&&D.jsx(X.InputNumber,{...t,disabled:t.readOnly,value:r.defaultValue1,style:{width:"calc(100% - 100px)"},size:t.size,maxLength:void 0,onChange:n=>{let a;r.defaultValue1=n||"",r.defaultValue1?a=`${n||""}~%~${r.defaultValue2||""}`:r.defaultValue2&&(a=`~%~${r.defaultValue2||""}`),t.onChange&&t.onChange(a)},onBlur:n=>{n.stopPropagation()}}),D.jsx(X.Select,{allowClear:!0,value:r.defaultValue2,disabled:t.readOnly,options:t.options,style:{width:"100px"},size:t.size,onChange:n=>{r.defaultValue2=n||"";let a="";(r.defaultValue1||n)&&(a=`${r.defaultValue1||""}~%~${n||""}`),t.onChange&&t.onChange(a)}})]})})},k$=e=>{const[t,r]=F.useState(!1);KF(async()=>{const a=["/filePreview/plugin.js","/filePreview/luckyexcel.umd.js","/filePreview/luckysheet.umd.js"],i=l=>new Promise((u,c)=>{const m=document.createElement("script");m.src=`${l}`,m.onload=u,m.onerror=c,document.head.appendChild(m)});await(async()=>{for(const l of a)await i(l)})(),n()},[]);const n=()=>{function a(i){const s=new XMLHttpRequest;s.open("GET",i,!0),s.onerror=()=>{},s.responseType="blob",s.onload=()=>{if(s.status===200){var l=new File([s.response],"",{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",lastModified:Date.now()});window.LuckyExcel.transformExcelToLucky(l,function(u){u.sheets==null||u.sheets.length==0||(window.luckysheet.create({container:"luckysheet",showinfobar:!1,data:u.sheets,title:u.info.name,enableAddRow:!1,allowCopy:!1,loading:{},showtoolbar:!1,allowEdit:!1,enableAddCol:!1,userInfo:!1,showRowBar:!1,showColumnBar:!1,sheetFormulaBar:!1,enableAddBackTop:!1,showsheetbarConfig:{add:!1,menu:!1,sheet:!0}}),document.addEventListener("copy",c=>{window.luckysheet.enterEditMode(),window.luckysheet.exitEditMode()}),r(!0))})}},s.send()}a(e.url)};return D.jsx("div",{id:"luckysheet",style:{visibility:t?"visible":"hidden",margin:"0px",padding:"0px",position:"absolute",width:"100%",left:"0px",top:"0px",bottom:"0px",outline:"none"}})},T$={},QS=F.forwardRef((e,t)=>{const[r]=X.Form.useForm();return F.useImperativeHandle(t,()=>({...r})),D.jsx("div",{className:Te(T$.main,e.className),style:e.style,children:D.jsx(X.Form,{form:r,layout:"vertical",...e,children:e.children})})}),O$="_main_1rp4h_1",A$={main:O$};class As{static getAttributesMapId(t,r){return As.isQuoteMultipleTypesAttr(t)?r?t[r]:t.id:As.isCustomAttr(t)?t.id:t.dataFromId}static isCustomAttr(t){return t.dataFrom==="0"}static isQuoteAttr(t){return t.dataFrom==="1"}static isQuoteMultipleTypesAttr(t){return t.dataFrom==="2"}static hasAttr(t,r){return t&&Object.keys(t).includes(r)}}var Si=(e=>(e.material="10001001",e.document="10001002",e.changeRequest="10001003",e.changeInstruction="10001004",e.engineeringChange="10001005",e.file="10001006",e.problemReport="10001007",e.manufacturerChange="10001008",e.statusChange="10001009",e.applicationProcess="10001010",e.supplierRequest="10001011",e.manufacturer="10001012",e.manufacturerParts="10001013",e.supplier="10001014",e.projectStartChange="10001015",e.dailyNewspaper="10001019",e.projectBaselineChange="10001030",e.project="10001016",e.workReport="10001019",e.user="10001017",e.userGroup="10001018",e.manufactChange="10001020",e.technology="10001021",e.factory="10001022",e.resource="10001023",e.factoryPublish="10001024",e.resourcePublish="10001025",e.risk="10001028",e.technologyPublish="10001029",e.inspectItem="10001031",e.option="10001032",e.custom="10001033",e.TechSpecial="10001034",e.ControlPlan="10001035",e.TechSpecialPublish="10001036",e.ControlPlanPublish="10001037",e))(Si||{});class Fi{static isMaterial(t){return t=="10001001"}static isDocument(t){return t=="10001002"}static isChangeRequest(t){return t=="10001003"}static isChangeInstruction(t){return t=="10001004"}static isEngineeringChange(t){return t=="10001005"}static isFile(t){return t=="10001006"}static isProblemReport(t){return t=="10001007"}static isManufacturerChange(t){return t=="10001008"}static isStatusChange(t){return t=="10001009"}static isApplicationProcess(t){return t=="10001010"}static isSupplierRequest(t){return t=="10001011"}static isManufacturer(t){return t=="10001012"}static isManufacturerParts(t){return t=="10001013"}static isManufactChange(t){return t=="10001020"}static isSupplier(t){return t=="10001014"}static isProjectStartChange(t){return t=="10001015"}static isDailyNewspaper(t){return t=="10001019"}static isProjectBaselineChange(t){return t=="10001030"}static isProjectChange(t){return Fi.isProjectStartChange(t)||Fi.isProjectBaselineChange(t)}static isProject(t){return t=="10001016"}static isWorkReport(t){return t=="10001019"}static isUser(t){return t=="10001017"}static isUserGroup(t){return t=="10001018"}static isTechnology(t){return t=="10001021"}static isFactory(t){return t=="10001022"}static isResource(t){return t=="10001023"}static isTechnologyPublish(t){return t=="10001029"}static isFactoryPublish(t){return t=="10001024"}static isResoucePublish(t){return t=="10001025"}static isRisk(t){return t=="10001028"}static isInspectItem(t){return t=="10001031"}static isOption(t){return t=="10001032"}static isCustom(t){return t=="10001033"}static isControlPublish(t){return t=="10001037"}static isTechSpecialPublish(t){return t=="10001036"}static isControlPlan(t){return t=="10001035"}static isTechSpecial(t){return t=="10001034"}}//! moment.js
|
|
324
324
|
//! version : 2.30.1
|
|
325
325
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
326
326
|
//! license : MIT
|
|
327
327
|
//! momentjs.com
|
|
328
|
-
var
|
|
329
|
-
[`+i+"] ";for(s in arguments[0])ht(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[i];n.push(a)}
|
|
328
|
+
var e4;function ve(){return e4.apply(null,arguments)}function R$(e){e4=e}function Kn(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function _o(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function ht(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function mv(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(ht(e,t))return!1;return!0}function zr(e){return e===void 0}function ni(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function pc(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function t4(e,t){var r=[],n,a=e.length;for(n=0;n<a;++n)r.push(t(e[n],n));return r}function Ai(e,t){for(var r in t)ht(t,r)&&(e[r]=t[r]);return ht(t,"toString")&&(e.toString=t.toString),ht(t,"valueOf")&&(e.valueOf=t.valueOf),e}function va(e,t,r,n){return C4(e,t,r,n,!0).utc()}function P$(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Xe(e){return e._pf==null&&(e._pf=P$()),e._pf}var d1;Array.prototype.some?d1=Array.prototype.some:d1=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function gv(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=Xe(e),r=d1.call(t.parsedDateParts,function(a){return a!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function ch(e){var t=va(NaN);return e!=null?Ai(Xe(t),e):Xe(t).userInvalidated=!0,t}var sx=ve.momentProperties=[],Qm=!1;function vv(e,t){var r,n,a,i=sx.length;if(zr(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),zr(t._i)||(e._i=t._i),zr(t._f)||(e._f=t._f),zr(t._l)||(e._l=t._l),zr(t._strict)||(e._strict=t._strict),zr(t._tzm)||(e._tzm=t._tzm),zr(t._isUTC)||(e._isUTC=t._isUTC),zr(t._offset)||(e._offset=t._offset),zr(t._pf)||(e._pf=Xe(t)),zr(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)n=sx[r],a=t[n],zr(a)||(e[n]=a);return e}function mc(e){vv(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Qm===!1&&(Qm=!0,ve.updateOffset(this),Qm=!1)}function Xn(e){return e instanceof mc||e!=null&&e._isAMomentObject!=null}function r4(e){ve.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Tn(e,t){var r=!0;return Ai(function(){if(ve.deprecationHandler!=null&&ve.deprecationHandler(null,e),r){var n=[],a,i,s,l=arguments.length;for(i=0;i<l;i++){if(a="",typeof arguments[i]=="object"){a+=`
|
|
329
|
+
[`+i+"] ";for(s in arguments[0])ht(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[i];n.push(a)}r4(e+`
|
|
330
330
|
Arguments: `+Array.prototype.slice.call(n).join("")+`
|
|
331
|
-
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var ux={};function nC(e,t){ve.deprecationHandler!=null&&ve.deprecationHandler(e,t),ux[e]||(rC(t),ux[e]=!0)}ve.suppressDeprecationWarnings=!1;ve.deprecationHandler=null;function ba(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function D$(e){var t,r;for(r in e)ht(e,r)&&(t=e[r],ba(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function f1(e,t){var r=Ai({},e),n;for(n in t)ht(t,n)&&(_o(e[n])&&_o(t[n])?(r[n]={},Ai(r[n],e[n]),Ai(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)ht(e,n)&&!ht(t,n)&&_o(e[n])&&(r[n]=Ai({},r[n]));return r}function bv(e){e!=null&&this.set(e)}var h1;Object.keys?h1=Object.keys:h1=function(e){var t,r=[];for(t in e)ht(e,t)&&r.push(t);return r};var M$={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function F$(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return ba(n)?n.call(t,r):n}function ma(e,t,r){var n=""+Math.abs(e),a=t-n.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var yv=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Md=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,eg={},ys={};function Me(e,t,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),e&&(ys[e]=a),t&&(ys[t[0]]=function(){return ma(a.apply(this,arguments),t[1],t[2])}),r&&(ys[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function N$(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function I$(e){var t=e.match(yv),r,n;for(r=0,n=t.length;r<n;r++)ys[t[r]]?t[r]=ys[t[r]]:t[r]=N$(t[r]);return function(a){var i="",s;for(s=0;s<n;s++)i+=ba(t[s])?t[s].call(a,e):t[s];return i}}function mf(e,t){return e.isValid()?(t=aC(t,e.localeData()),eg[t]=eg[t]||I$(t),eg[t](e)):e.localeData().invalidDate()}function aC(e,t){var r=5;function n(a){return t.longDateFormat(a)||a}for(Md.lastIndex=0;r>=0&&Md.test(e);)e=e.replace(Md,n),Md.lastIndex=0,r-=1;return e}var L$={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function j$(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(yv).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var $$="Invalid date";function z$(){return this._invalidDate}var B$="%d",H$=/\d{1,2}/;function U$(e){return this._ordinal.replace("%d",e)}var q$={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function W$(e,t,r,n){var a=this._relativeTime[r];return ba(a)?a(e,t,r,n):a.replace(/%d/i,e)}function V$(e,t){var r=this._relativeTime[e>0?"future":"past"];return ba(r)?r(t):r.replace(/%s/i,t)}var lx={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function On(e){return typeof e=="string"?lx[e]||lx[e.toLowerCase()]:void 0}function _v(e){var t={},r,n;for(n in e)ht(e,n)&&(r=On(n),r&&(t[r]=e[n]));return t}var Y$={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function G$(e){var t=[],r;for(r in e)ht(e,r)&&t.push({unit:r,priority:Y$[r]});return t.sort(function(n,a){return n.priority-a.priority}),t}var iC=/\d/,cn=/\d\d/,oC=/\d{3}/,wv=/\d{4}/,dh=/[+-]?\d{6}/,It=/\d\d?/,sC=/\d\d\d\d?/,uC=/\d\d\d\d\d\d?/,fh=/\d{1,3}/,xv=/\d{1,4}/,hh=/[+-]?\d{1,6}/,Hs=/\d+/,ph=/[+-]?\d+/,K$=/Z|[+-]\d\d:?\d\d/gi,mh=/Z|[+-]\d\d(?::?\d\d)?/gi,X$=/[+-]?\d+(\.\d{1,3})?/,gc=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Us=/^[1-9]\d?/,Sv=/^([1-9]\d|\d)/,If;If={};function Ce(e,t,r){If[e]=ba(t)?t:function(n,a){return n&&r?r:t}}function Z$(e,t){return ht(If,e)?If[e](t._strict,t._locale):new RegExp(J$(e))}function J$(e){return ti(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,a,i){return r||n||a||i}))}function ti(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function wn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ut(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=wn(t)),r}var p1={};function At(e,t){var r,n=t,a;for(typeof e=="string"&&(e=[e]),ni(t)&&(n=function(i,s){s[t]=ut(i)}),a=e.length,r=0;r<a;r++)p1[e[r]]=n}function vc(e,t){At(e,function(r,n,a,i){a._w=a._w||{},t(r,a._w,a,i)})}function Q$(e,t,r){t!=null&&ht(p1,e)&&p1[e](t,r._a,r,e)}function gh(e){return e%4===0&&e%100!==0||e%400===0}var wr=0,Ja=1,la=2,nr=3,qn=4,Qa=5,go=6,ez=7,tz=8;Me("Y",0,0,function(){var e=this.year();return e<=9999?ma(e,4):"+"+e});Me(0,["YY",2],0,function(){return this.year()%100});Me(0,["YYYY",4],0,"year");Me(0,["YYYYY",5],0,"year");Me(0,["YYYYYY",6,!0],0,"year");Ce("Y",ph);Ce("YY",It,cn);Ce("YYYY",xv,wv);Ce("YYYYY",hh,dh);Ce("YYYYYY",hh,dh);At(["YYYYY","YYYYYY"],wr);At("YYYY",function(e,t){t[wr]=e.length===2?ve.parseTwoDigitYear(e):ut(e)});At("YY",function(e,t){t[wr]=ve.parseTwoDigitYear(e)});At("Y",function(e,t){t[wr]=parseInt(e,10)});function Nl(e){return gh(e)?366:365}ve.parseTwoDigitYear=function(e){return ut(e)+(ut(e)>68?1900:2e3)};var lC=qs("FullYear",!0);function rz(){return gh(this.year())}function qs(e,t){return function(r){return r!=null?(cC(this,e,r),ve.updateOffset(this,t),this):Kl(this,e)}}function Kl(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function cC(e,t,r){var n,a,i,s,l;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=r,s=e.month(),l=e.date(),l=l===29&&s===1&&!gh(i)?28:l,a?n.setUTCFullYear(i,s,l):n.setFullYear(i,s,l)}}function nz(e){return e=On(e),ba(this[e])?this[e]():this}function az(e,t){if(typeof e=="object"){e=_v(e);var r=G$(e),n,a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(e=On(e),ba(this[e]))return this[e](t);return this}function iz(e,t){return(e%t+t)%t}var Gt;Array.prototype.indexOf?Gt=Array.prototype.indexOf:Gt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Cv(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=iz(t,12);return e+=(t-r)/12,r===1?gh(e)?29:28:31-r%7%2}Me("M",["MM",2],"Mo",function(){return this.month()+1});Me("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Me("MMMM",0,0,function(e){return this.localeData().months(this,e)});Ce("M",It,Us);Ce("MM",It,cn);Ce("MMM",function(e,t){return t.monthsShortRegex(e)});Ce("MMMM",function(e,t){return t.monthsRegex(e)});At(["M","MM"],function(e,t){t[Ja]=ut(e)-1});At(["MMM","MMMM"],function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);a!=null?t[Ja]=a:Xe(r).invalidMonth=e});var oz="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),dC="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),fC=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,sz=gc,uz=gc;function lz(e,t){return e?Kn(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||fC).test(t)?"format":"standalone"][e.month()]:Kn(this._months)?this._months:this._months.standalone}function cz(e,t){return e?Kn(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[fC.test(t)?"format":"standalone"][e.month()]:Kn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function dz(e,t,r){var n,a,i,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=va([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(a=Gt.call(this._shortMonthsParse,s),a!==-1?a:null):(a=Gt.call(this._longMonthsParse,s),a!==-1?a:null):t==="MMM"?(a=Gt.call(this._shortMonthsParse,s),a!==-1?a:(a=Gt.call(this._longMonthsParse,s),a!==-1?a:null)):(a=Gt.call(this._longMonthsParse,s),a!==-1?a:(a=Gt.call(this._shortMonthsParse,s),a!==-1?a:null))}function fz(e,t,r){var n,a,i;if(this._monthsParseExact)return dz.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=va([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function hC(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=ut(t);else if(t=e.localeData().monthsParse(t),!ni(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,Cv(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function pC(e){return e!=null?(hC(this,e),ve.updateOffset(this,!0),this):Kl(this,"Month")}function hz(){return Cv(this.year(),this.month())}function pz(e){return this._monthsParseExact?(ht(this,"_monthsRegex")||mC.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ht(this,"_monthsShortRegex")||(this._monthsShortRegex=sz),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function mz(e){return this._monthsParseExact?(ht(this,"_monthsRegex")||mC.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ht(this,"_monthsRegex")||(this._monthsRegex=uz),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function mC(){function e(u,c){return c.length-u.length}var t=[],r=[],n=[],a,i,s,l;for(a=0;a<12;a++)i=va([2e3,a]),s=ti(this.monthsShort(i,"")),l=ti(this.months(i,"")),t.push(s),r.push(l),n.push(l),n.push(s);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function gz(e,t,r,n,a,i,s){var l;return e<100&&e>=0?(l=new Date(e+400,t,r,n,a,i,s),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,r,n,a,i,s),l}function Xl(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Lf(e,t,r){var n=7+t-r,a=(7+Xl(e,0,n).getUTCDay()-t)%7;return-a+n-1}function gC(e,t,r,n,a){var i=(7+r-n)%7,s=Lf(e,n,a),l=1+7*(t-1)+i+s,u,c;return l<=0?(u=e-1,c=Nl(u)+l):l>Nl(e)?(u=e+1,c=l-Nl(e)):(u=e,c=l),{year:u,dayOfYear:c}}function Zl(e,t,r){var n=Lf(e.year(),t,r),a=Math.floor((e.dayOfYear()-n-1)/7)+1,i,s;return a<1?(s=e.year()-1,i=a+ri(s,t,r)):a>ri(e.year(),t,r)?(i=a-ri(e.year(),t,r),s=e.year()+1):(s=e.year(),i=a),{week:i,year:s}}function ri(e,t,r){var n=Lf(e,t,r),a=Lf(e+1,t,r);return(Nl(e)-n+a)/7}Me("w",["ww",2],"wo","week");Me("W",["WW",2],"Wo","isoWeek");Ce("w",It,Us);Ce("ww",It,cn);Ce("W",It,Us);Ce("WW",It,cn);vc(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=ut(e)});function vz(e){return Zl(e,this._week.dow,this._week.doy).week}var bz={dow:0,doy:6};function yz(){return this._week.dow}function _z(){return this._week.doy}function wz(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function xz(e){var t=Zl(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Me("d",0,"do","day");Me("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Me("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Me("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Me("e",0,0,"weekday");Me("E",0,0,"isoWeekday");Ce("d",It);Ce("e",It);Ce("E",It);Ce("dd",function(e,t){return t.weekdaysMinRegex(e)});Ce("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ce("dddd",function(e,t){return t.weekdaysRegex(e)});vc(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);a!=null?t.d=a:Xe(r).invalidWeekday=e});vc(["d","e","E"],function(e,t,r,n){t[n]=ut(e)});function Sz(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Cz(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ev(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Ez="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),vC="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),kz="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Tz=gc,Oz=gc,Az=gc;function Rz(e,t){var r=Kn(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Ev(r,this._week.dow):e?r[e.day()]:r}function Pz(e){return e===!0?Ev(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Dz(e){return e===!0?Ev(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Mz(e,t,r){var n,a,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=va([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(a=Gt.call(this._weekdaysParse,s),a!==-1?a:null):t==="ddd"?(a=Gt.call(this._shortWeekdaysParse,s),a!==-1?a:null):(a=Gt.call(this._minWeekdaysParse,s),a!==-1?a:null):t==="dddd"?(a=Gt.call(this._weekdaysParse,s),a!==-1||(a=Gt.call(this._shortWeekdaysParse,s),a!==-1)?a:(a=Gt.call(this._minWeekdaysParse,s),a!==-1?a:null)):t==="ddd"?(a=Gt.call(this._shortWeekdaysParse,s),a!==-1||(a=Gt.call(this._weekdaysParse,s),a!==-1)?a:(a=Gt.call(this._minWeekdaysParse,s),a!==-1?a:null)):(a=Gt.call(this._minWeekdaysParse,s),a!==-1||(a=Gt.call(this._weekdaysParse,s),a!==-1)?a:(a=Gt.call(this._shortWeekdaysParse,s),a!==-1?a:null))}function Fz(e,t,r){var n,a,i;if(this._weekdaysParseExact)return Mz.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=va([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function Nz(e){if(!this.isValid())return e!=null?this:NaN;var t=Kl(this,"Day");return e!=null?(e=Sz(e,this.localeData()),this.add(e-t,"d")):t}function Iz(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Lz(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Cz(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function jz(e){return this._weekdaysParseExact?(ht(this,"_weekdaysRegex")||kv.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ht(this,"_weekdaysRegex")||(this._weekdaysRegex=Tz),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function $z(e){return this._weekdaysParseExact?(ht(this,"_weekdaysRegex")||kv.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ht(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Oz),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function zz(e){return this._weekdaysParseExact?(ht(this,"_weekdaysRegex")||kv.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ht(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Az),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function kv(){function e(m,p){return p.length-m.length}var t=[],r=[],n=[],a=[],i,s,l,u,c;for(i=0;i<7;i++)s=va([2e3,1]).day(i),l=ti(this.weekdaysMin(s,"")),u=ti(this.weekdaysShort(s,"")),c=ti(this.weekdays(s,"")),t.push(l),r.push(u),n.push(c),a.push(l),a.push(u),a.push(c);t.sort(e),r.sort(e),n.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Tv(){return this.hours()%12||12}function Bz(){return this.hours()||24}Me("H",["HH",2],0,"hour");Me("h",["hh",2],0,Tv);Me("k",["kk",2],0,Bz);Me("hmm",0,0,function(){return""+Tv.apply(this)+ma(this.minutes(),2)});Me("hmmss",0,0,function(){return""+Tv.apply(this)+ma(this.minutes(),2)+ma(this.seconds(),2)});Me("Hmm",0,0,function(){return""+this.hours()+ma(this.minutes(),2)});Me("Hmmss",0,0,function(){return""+this.hours()+ma(this.minutes(),2)+ma(this.seconds(),2)});function bC(e,t){Me(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}bC("a",!0);bC("A",!1);function yC(e,t){return t._meridiemParse}Ce("a",yC);Ce("A",yC);Ce("H",It,Sv);Ce("h",It,Us);Ce("k",It,Us);Ce("HH",It,cn);Ce("hh",It,cn);Ce("kk",It,cn);Ce("hmm",sC);Ce("hmmss",uC);Ce("Hmm",sC);Ce("Hmmss",uC);At(["H","HH"],nr);At(["k","kk"],function(e,t,r){var n=ut(e);t[nr]=n===24?0:n});At(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});At(["h","hh"],function(e,t,r){t[nr]=ut(e),Xe(r).bigHour=!0});At("hmm",function(e,t,r){var n=e.length-2;t[nr]=ut(e.substr(0,n)),t[qn]=ut(e.substr(n)),Xe(r).bigHour=!0});At("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[nr]=ut(e.substr(0,n)),t[qn]=ut(e.substr(n,2)),t[Qa]=ut(e.substr(a)),Xe(r).bigHour=!0});At("Hmm",function(e,t,r){var n=e.length-2;t[nr]=ut(e.substr(0,n)),t[qn]=ut(e.substr(n))});At("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[nr]=ut(e.substr(0,n)),t[qn]=ut(e.substr(n,2)),t[Qa]=ut(e.substr(a))});function Hz(e){return(e+"").toLowerCase().charAt(0)==="p"}var Uz=/[ap]\.?m?\.?/i,qz=qs("Hours",!0);function Wz(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var _C={calendar:M$,longDateFormat:L$,invalidDate:$$,ordinal:B$,dayOfMonthOrdinalParse:H$,relativeTime:q$,months:oz,monthsShort:dC,week:bz,weekdays:Ez,weekdaysMin:kz,weekdaysShort:vC,meridiemParse:Uz},jt={},fl={},Jl;function Vz(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function cx(e){return e&&e.toLowerCase().replace("_","-")}function Yz(e){for(var t=0,r,n,a,i;t<e.length;){for(i=cx(e[t]).split("-"),r=i.length,n=cx(e[t+1]),n=n?n.split("-"):null;r>0;){if(a=vh(i.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&Vz(i,n)>=r-1)break;r--}t++}return Jl}function Gz(e){return!!(e&&e.match("^[^/\\\\]*$"))}function vh(e){var t=null,r;if(jt[e]===void 0&&typeof module<"u"&&module&&module.exports&&Gz(e))try{t=Jl._abbr,r=require,r("./locale/"+e),Ni(t)}catch{jt[e]=null}return jt[e]}function Ni(e,t){var r;return e&&(zr(t)?r=ii(e):r=Ov(e,t),r?Jl=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Jl._abbr}function Ov(e,t){if(t!==null){var r,n=_C;if(t.abbr=e,jt[e]!=null)nC("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=jt[e]._config;else if(t.parentLocale!=null)if(jt[t.parentLocale]!=null)n=jt[t.parentLocale]._config;else if(r=vh(t.parentLocale),r!=null)n=r._config;else return fl[t.parentLocale]||(fl[t.parentLocale]=[]),fl[t.parentLocale].push({name:e,config:t}),null;return jt[e]=new bv(f1(n,t)),fl[e]&&fl[e].forEach(function(a){Ov(a.name,a.config)}),Ni(e),jt[e]}else return delete jt[e],null}function Kz(e,t){if(t!=null){var r,n,a=_C;jt[e]!=null&&jt[e].parentLocale!=null?jt[e].set(f1(jt[e]._config,t)):(n=vh(e),n!=null&&(a=n._config),t=f1(a,t),n==null&&(t.abbr=e),r=new bv(t),r.parentLocale=jt[e],jt[e]=r),Ni(e)}else jt[e]!=null&&(jt[e].parentLocale!=null?(jt[e]=jt[e].parentLocale,e===Ni()&&Ni(e)):jt[e]!=null&&delete jt[e]);return jt[e]}function ii(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Jl;if(!Kn(e)){if(t=vh(e),t)return t;e=[e]}return Yz(e)}function Xz(){return h1(jt)}function Av(e){var t,r=e._a;return r&&Xe(e).overflow===-2&&(t=r[Ja]<0||r[Ja]>11?Ja:r[la]<1||r[la]>Cv(r[wr],r[Ja])?la:r[nr]<0||r[nr]>24||r[nr]===24&&(r[qn]!==0||r[Qa]!==0||r[go]!==0)?nr:r[qn]<0||r[qn]>59?qn:r[Qa]<0||r[Qa]>59?Qa:r[go]<0||r[go]>999?go:-1,Xe(e)._overflowDayOfYear&&(t<wr||t>la)&&(t=la),Xe(e)._overflowWeeks&&t===-1&&(t=ez),Xe(e)._overflowWeekday&&t===-1&&(t=tz),Xe(e).overflow=t),e}var Zz=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Jz=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Qz=/Z|[+-]\d\d(?::?\d\d)?/,Fd=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],tg=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],eB=/^\/?Date\((-?\d+)/i,tB=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,rB={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function wC(e){var t,r,n=e._i,a=Zz.exec(n)||Jz.exec(n),i,s,l,u,c=Fd.length,m=tg.length;if(a){for(Xe(e).iso=!0,t=0,r=c;t<r;t++)if(Fd[t][1].exec(a[1])){s=Fd[t][0],i=Fd[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(a[3]){for(t=0,r=m;t<r;t++)if(tg[t][1].exec(a[3])){l=(a[2]||" ")+tg[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(a[4])if(Qz.exec(a[4]))u="Z";else{e._isValid=!1;return}e._f=s+(l||"")+(u||""),Pv(e)}else e._isValid=!1}function nB(e,t,r,n,a,i){var s=[aB(e),dC.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(a,10)];return i&&s.push(parseInt(i,10)),s}function aB(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function iB(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function oB(e,t,r){if(e){var n=vC.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(n!==a)return Xe(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function sB(e,t,r){if(e)return rB[e];if(t)return 0;var n=parseInt(r,10),a=n%100,i=(n-a)/100;return i*60+a}function xC(e){var t=tB.exec(iB(e._i)),r;if(t){if(r=nB(t[4],t[3],t[2],t[5],t[6],t[7]),!oB(t[1],r,e))return;e._a=r,e._tzm=sB(t[8],t[9],t[10]),e._d=Xl.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Xe(e).rfc2822=!0}else e._isValid=!1}function uB(e){var t=eB.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(wC(e),e._isValid===!1)delete e._isValid;else return;if(xC(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ve.createFromInputFallback(e)}ve.createFromInputFallback=Tn("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function is(e,t,r){return e??t??r}function lB(e){var t=new Date(ve.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Rv(e){var t,r,n=[],a,i,s;if(!e._d){for(a=lB(e),e._w&&e._a[la]==null&&e._a[Ja]==null&&cB(e),e._dayOfYear!=null&&(s=is(e._a[wr],a[wr]),(e._dayOfYear>Nl(s)||e._dayOfYear===0)&&(Xe(e)._overflowDayOfYear=!0),r=Xl(s,0,e._dayOfYear),e._a[Ja]=r.getUTCMonth(),e._a[la]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=a[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[nr]===24&&e._a[qn]===0&&e._a[Qa]===0&&e._a[go]===0&&(e._nextDay=!0,e._a[nr]=0),e._d=(e._useUTC?Xl:gz).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[nr]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Xe(e).weekdayMismatch=!0)}}function cB(e){var t,r,n,a,i,s,l,u,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,s=4,r=is(t.GG,e._a[wr],Zl(Nt(),1,4).year),n=is(t.W,1),a=is(t.E,1),(a<1||a>7)&&(u=!0)):(i=e._locale._week.dow,s=e._locale._week.doy,c=Zl(Nt(),i,s),r=is(t.gg,e._a[wr],c.year),n=is(t.w,c.week),t.d!=null?(a=t.d,(a<0||a>6)&&(u=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(u=!0)):a=i),n<1||n>ri(r,i,s)?Xe(e)._overflowWeeks=!0:u!=null?Xe(e)._overflowWeekday=!0:(l=gC(r,n,a,i,s),e._a[wr]=l.year,e._dayOfYear=l.dayOfYear)}ve.ISO_8601=function(){};ve.RFC_2822=function(){};function Pv(e){if(e._f===ve.ISO_8601){wC(e);return}if(e._f===ve.RFC_2822){xC(e);return}e._a=[],Xe(e).empty=!0;var t=""+e._i,r,n,a,i,s,l=t.length,u=0,c,m;for(a=aC(e._f,e._locale).match(yv)||[],m=a.length,r=0;r<m;r++)i=a[r],n=(t.match(Z$(i,e))||[])[0],n&&(s=t.substr(0,t.indexOf(n)),s.length>0&&Xe(e).unusedInput.push(s),t=t.slice(t.indexOf(n)+n.length),u+=n.length),ys[i]?(n?Xe(e).empty=!1:Xe(e).unusedTokens.push(i),Q$(i,n,e)):e._strict&&!n&&Xe(e).unusedTokens.push(i);Xe(e).charsLeftOver=l-u,t.length>0&&Xe(e).unusedInput.push(t),e._a[nr]<=12&&Xe(e).bigHour===!0&&e._a[nr]>0&&(Xe(e).bigHour=void 0),Xe(e).parsedDateParts=e._a.slice(0),Xe(e).meridiem=e._meridiem,e._a[nr]=dB(e._locale,e._a[nr],e._meridiem),c=Xe(e).era,c!==null&&(e._a[wr]=e._locale.erasConvertYear(c,e._a[wr])),Rv(e),Av(e)}function dB(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function fB(e){var t,r,n,a,i,s,l=!1,u=e._f.length;if(u===0){Xe(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<u;a++)i=0,s=!1,t=vv({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],Pv(t),gv(t)&&(s=!0),i+=Xe(t).charsLeftOver,i+=Xe(t).unusedTokens.length*10,Xe(t).score=i,l?i<n&&(n=i,r=t):(n==null||i<n||s)&&(n=i,r=t,s&&(l=!0));Ai(e,r||t)}function hB(e){if(!e._d){var t=_v(e._i),r=t.day===void 0?t.date:t.day;e._a=tC([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),Rv(e)}}function pB(e){var t=new mc(Av(SC(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function SC(e){var t=e._i,r=e._f;return e._locale=e._locale||ii(e._l),t===null||r===void 0&&t===""?ch({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Xn(t)?new mc(Av(t)):(pc(t)?e._d=t:Kn(r)?fB(e):r?Pv(e):mB(e),gv(e)||(e._d=null),e))}function mB(e){var t=e._i;zr(t)?e._d=new Date(ve.now()):pc(t)?e._d=new Date(t.valueOf()):typeof t=="string"?uB(e):Kn(t)?(e._a=tC(t.slice(0),function(r){return parseInt(r,10)}),Rv(e)):_o(t)?hB(e):ni(t)?e._d=new Date(t):ve.createFromInputFallback(e)}function CC(e,t,r,n,a){var i={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(_o(e)&&mv(e)||Kn(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=r,i._i=e,i._f=t,i._strict=n,pB(i)}function Nt(e,t,r,n){return CC(e,t,r,n,!1)}var gB=Tn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Nt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:ch()}),vB=Tn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Nt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:ch()});function EC(e,t){var r,n;if(t.length===1&&Kn(t[0])&&(t=t[0]),!t.length)return Nt();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function bB(){var e=[].slice.call(arguments,0);return EC("isBefore",e)}function yB(){var e=[].slice.call(arguments,0);return EC("isAfter",e)}var _B=function(){return Date.now?Date.now():+new Date},hl=["year","quarter","month","week","day","hour","minute","second","millisecond"];function wB(e){var t,r=!1,n,a=hl.length;for(t in e)if(ht(e,t)&&!(Gt.call(hl,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<a;++n)if(e[hl[n]]){if(r)return!1;parseFloat(e[hl[n]])!==ut(e[hl[n]])&&(r=!0)}return!0}function xB(){return this._isValid}function SB(){return Qn(NaN)}function bh(e){var t=_v(e),r=t.year||0,n=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,u=t.minute||0,c=t.second||0,m=t.millisecond||0;this._isValid=wB(t),this._milliseconds=+m+c*1e3+u*6e4+l*1e3*60*60,this._days=+s+i*7,this._months=+a+n*3+r*12,this._data={},this._locale=ii(),this._bubble()}function gf(e){return e instanceof bh}function m1(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function CB(e,t,r){var n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,s;for(s=0;s<n;s++)ut(e[s])!==ut(t[s])&&i++;return i+a}function kC(e,t){Me(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+ma(~~(r/60),2)+t+ma(~~r%60,2)})}kC("Z",":");kC("ZZ","");Ce("Z",mh);Ce("ZZ",mh);At(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Dv(mh,e)});var EB=/([\+\-]|\d\d)/gi;function Dv(e,t){var r=(t||"").match(e),n,a,i;return r===null?null:(n=r[r.length-1]||[],a=(n+"").match(EB)||["-",0,0],i=+(a[1]*60)+ut(a[2]),i===0?0:a[0]==="+"?i:-i)}function Mv(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(Xn(e)||pc(e)?e.valueOf():Nt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),ve.updateOffset(r,!1),r):Nt(e).local()}function g1(e){return-Math.round(e._d.getTimezoneOffset())}ve.updateOffset=function(){};function kB(e,t,r){var n=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Dv(mh,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(a=g1(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),n!==e&&(!t||this._changeInProgress?AC(this,Qn(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ve.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:g1(this)}function TB(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function OB(e){return this.utcOffset(0,e)}function AB(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(g1(this),"m")),this}function RB(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Dv(K$,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function PB(e){return this.isValid()?(e=e?Nt(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function DB(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function MB(){if(!zr(this._isDSTShifted))return this._isDSTShifted;var e={},t;return vv(e,this),e=SC(e),e._a?(t=e._isUTC?va(e._a):Nt(e._a),this._isDSTShifted=this.isValid()&&CB(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function FB(){return this.isValid()?!this._isUTC:!1}function NB(){return this.isValid()?this._isUTC:!1}function TC(){return this.isValid()?this._isUTC&&this._offset===0:!1}var IB=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,LB=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Qn(e,t){var r=e,n=null,a,i,s;return gf(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:ni(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=IB.exec(e))?(a=n[1]==="-"?-1:1,r={y:0,d:ut(n[la])*a,h:ut(n[nr])*a,m:ut(n[qn])*a,s:ut(n[Qa])*a,ms:ut(m1(n[go]*1e3))*a}):(n=LB.exec(e))?(a=n[1]==="-"?-1:1,r={y:no(n[2],a),M:no(n[3],a),w:no(n[4],a),d:no(n[5],a),h:no(n[6],a),m:no(n[7],a),s:no(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(s=jB(Nt(r.from),Nt(r.to)),r={},r.ms=s.milliseconds,r.M=s.months),i=new bh(r),gf(e)&&ht(e,"_locale")&&(i._locale=e._locale),gf(e)&&ht(e,"_isValid")&&(i._isValid=e._isValid),i}Qn.fn=bh.prototype;Qn.invalid=SB;function no(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function dx(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function jB(e,t){var r;return e.isValid()&&t.isValid()?(t=Mv(t,e),e.isBefore(t)?r=dx(e,t):(r=dx(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function OC(e,t){return function(r,n){var a,i;return n!==null&&!isNaN(+n)&&(nC(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),a=Qn(r,n),AC(this,a,e),this}}function AC(e,t,r,n){var a=t._milliseconds,i=m1(t._days),s=m1(t._months);e.isValid()&&(n=n??!0,s&&hC(e,Kl(e,"Month")+s*r),i&&cC(e,"Date",Kl(e,"Date")+i*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&ve.updateOffset(e,i||s))}var $B=OC(1,"add"),zB=OC(-1,"subtract");function RC(e){return typeof e=="string"||e instanceof String}function BB(e){return Xn(e)||pc(e)||RC(e)||ni(e)||UB(e)||HB(e)||e===null||e===void 0}function HB(e){var t=_o(e)&&!mv(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,s=n.length;for(a=0;a<s;a+=1)i=n[a],r=r||ht(e,i);return t&&r}function UB(e){var t=Kn(e),r=!1;return t&&(r=e.filter(function(n){return!ni(n)&&RC(e)}).length===0),t&&r}function qB(e){var t=_o(e)&&!mv(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<n.length;a+=1)i=n[a],r=r||ht(e,i);return t&&r}function WB(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function VB(e,t){arguments.length===1&&(arguments[0]?BB(arguments[0])?(e=arguments[0],t=void 0):qB(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Nt(),n=Mv(r,this).startOf("day"),a=ve.calendarFormat(this,n)||"sameElse",i=t&&(ba(t[a])?t[a].call(this,r):t[a]);return this.format(i||this.localeData().calendar(a,this,Nt(r)))}function YB(){return new mc(this)}function GB(e,t){var r=Xn(e)?e:Nt(e);return this.isValid()&&r.isValid()?(t=On(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function KB(e,t){var r=Xn(e)?e:Nt(e);return this.isValid()&&r.isValid()?(t=On(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function XB(e,t,r,n){var a=Xn(e)?e:Nt(e),i=Xn(t)?t:Nt(t);return this.isValid()&&a.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(n[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function ZB(e,t){var r=Xn(e)?e:Nt(e),n;return this.isValid()&&r.isValid()?(t=On(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function JB(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function QB(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function eH(e,t,r){var n,a,i;if(!this.isValid())return NaN;if(n=Mv(e,this),!n.isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,t=On(t),t){case"year":i=vf(this,n)/12;break;case"month":i=vf(this,n);break;case"quarter":i=vf(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return r?i:wn(i)}function vf(e,t){if(e.date()<t.date())return-vf(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),a,i;return t-n<0?(a=e.clone().add(r-1,"months"),i=(t-n)/(n-a)):(a=e.clone().add(r+1,"months"),i=(t-n)/(a-n)),-(r+i)||0}ve.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";ve.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function tH(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function rH(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?mf(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ba(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",mf(r,"Z")):mf(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function nH(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+a+i)}function aH(e){e||(e=this.isUtc()?ve.defaultFormatUtc:ve.defaultFormat);var t=mf(this,e);return this.localeData().postformat(t)}function iH(e,t){return this.isValid()&&(Xn(e)&&e.isValid()||Nt(e).isValid())?Qn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oH(e){return this.from(Nt(),e)}function sH(e,t){return this.isValid()&&(Xn(e)&&e.isValid()||Nt(e).isValid())?Qn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function uH(e){return this.to(Nt(),e)}function PC(e){var t;return e===void 0?this._locale._abbr:(t=ii(e),t!=null&&(this._locale=t),this)}var DC=Tn("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function MC(){return this._locale}var jf=1e3,_s=60*jf,$f=60*_s,FC=(365*400+97)*24*$f;function ws(e,t){return(e%t+t)%t}function NC(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-FC:new Date(e,t,r).valueOf()}function IC(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-FC:Date.UTC(e,t,r)}function lH(e){var t,r;if(e=On(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?IC:NC,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ws(t+(this._isUTC?0:this.utcOffset()*_s),$f);break;case"minute":t=this._d.valueOf(),t-=ws(t,_s);break;case"second":t=this._d.valueOf(),t-=ws(t,jf);break}return this._d.setTime(t),ve.updateOffset(this,!0),this}function cH(e){var t,r;if(e=On(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?IC:NC,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=$f-ws(t+(this._isUTC?0:this.utcOffset()*_s),$f)-1;break;case"minute":t=this._d.valueOf(),t+=_s-ws(t,_s)-1;break;case"second":t=this._d.valueOf(),t+=jf-ws(t,jf)-1;break}return this._d.setTime(t),ve.updateOffset(this,!0),this}function dH(){return this._d.valueOf()-(this._offset||0)*6e4}function fH(){return Math.floor(this.valueOf()/1e3)}function hH(){return new Date(this.valueOf())}function pH(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function mH(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function gH(){return this.isValid()?this.toISOString():null}function vH(){return gv(this)}function bH(){return Ai({},Xe(this))}function yH(){return Xe(this).overflow}function _H(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Me("N",0,0,"eraAbbr");Me("NN",0,0,"eraAbbr");Me("NNN",0,0,"eraAbbr");Me("NNNN",0,0,"eraName");Me("NNNNN",0,0,"eraNarrow");Me("y",["y",1],"yo","eraYear");Me("y",["yy",2],0,"eraYear");Me("y",["yyy",3],0,"eraYear");Me("y",["yyyy",4],0,"eraYear");Ce("N",Fv);Ce("NN",Fv);Ce("NNN",Fv);Ce("NNNN",PH);Ce("NNNNN",DH);At(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?Xe(r).era=a:Xe(r).invalidEra=e});Ce("y",Hs);Ce("yy",Hs);Ce("yyy",Hs);Ce("yyyy",Hs);Ce("yo",MH);At(["y","yy","yyy","yyyy"],wr);At(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[wr]=r._locale.eraYearOrdinalParse(e,a):t[wr]=parseInt(e,10)});function wH(e,t){var r,n,a,i=this._eras||ii("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":a=ve(i[r].since).startOf("day"),i[r].since=a.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":a=ve(i[r].until).startOf("day").valueOf(),i[r].until=a.valueOf();break}}return i}function xH(e,t,r){var n,a,i=this.eras(),s,l,u;for(e=e.toUpperCase(),n=0,a=i.length;n<a;++n)if(s=i[n].name.toUpperCase(),l=i[n].abbr.toUpperCase(),u=i[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[n];break;case"NNNN":if(s===e)return i[n];break;case"NNNNN":if(u===e)return i[n];break}else if([s,l,u].indexOf(e)>=0)return i[n]}function SH(e,t){var r=e.since<=e.until?1:-1;return t===void 0?ve(e.since).year():ve(e.since).year()+(t-e.offset)*r}function CH(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function EH(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function kH(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function TH(){var e,t,r,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until||a[e].until<=n&&n<=a[e].since)return(this.year()-ve(a[e].since).year())*r+a[e].offset;return this.year()}function OH(e){return ht(this,"_erasNameRegex")||Nv.call(this),e?this._erasNameRegex:this._erasRegex}function AH(e){return ht(this,"_erasAbbrRegex")||Nv.call(this),e?this._erasAbbrRegex:this._erasRegex}function RH(e){return ht(this,"_erasNarrowRegex")||Nv.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fv(e,t){return t.erasAbbrRegex(e)}function PH(e,t){return t.erasNameRegex(e)}function DH(e,t){return t.erasNarrowRegex(e)}function MH(e,t){return t._eraYearOrdinalRegex||Hs}function Nv(){var e=[],t=[],r=[],n=[],a,i,s,l,u,c=this.eras();for(a=0,i=c.length;a<i;++a)s=ti(c[a].name),l=ti(c[a].abbr),u=ti(c[a].narrow),t.push(s),e.push(l),r.push(u),n.push(s),n.push(l),n.push(u);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}Me(0,["gg",2],0,function(){return this.weekYear()%100});Me(0,["GG",2],0,function(){return this.isoWeekYear()%100});function yh(e,t){Me(0,[e,e.length],0,t)}yh("gggg","weekYear");yh("ggggg","weekYear");yh("GGGG","isoWeekYear");yh("GGGGG","isoWeekYear");Ce("G",ph);Ce("g",ph);Ce("GG",It,cn);Ce("gg",It,cn);Ce("GGGG",xv,wv);Ce("gggg",xv,wv);Ce("GGGGG",hh,dh);Ce("ggggg",hh,dh);vc(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=ut(e)});vc(["gg","GG"],function(e,t,r,n){t[n]=ve.parseTwoDigitYear(e)});function FH(e){return LC.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function NH(e){return LC.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function IH(){return ri(this.year(),1,4)}function LH(){return ri(this.isoWeekYear(),1,4)}function jH(){var e=this.localeData()._week;return ri(this.year(),e.dow,e.doy)}function $H(){var e=this.localeData()._week;return ri(this.weekYear(),e.dow,e.doy)}function LC(e,t,r,n,a){var i;return e==null?Zl(this,n,a).year:(i=ri(e,n,a),t>i&&(t=i),zH.call(this,e,t,r,n,a))}function zH(e,t,r,n,a){var i=gC(e,t,r,n,a),s=Xl(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Me("Q",0,"Qo","quarter");Ce("Q",iC);At("Q",function(e,t){t[Ja]=(ut(e)-1)*3});function BH(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Me("D",["DD",2],"Do","date");Ce("D",It,Us);Ce("DD",It,cn);Ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});At(["D","DD"],la);At("Do",function(e,t){t[la]=ut(e.match(It)[0])});var jC=qs("Date",!0);Me("DDD",["DDDD",3],"DDDo","dayOfYear");Ce("DDD",fh);Ce("DDDD",oC);At(["DDD","DDDD"],function(e,t,r){r._dayOfYear=ut(e)});function HH(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Me("m",["mm",2],0,"minute");Ce("m",It,Sv);Ce("mm",It,cn);At(["m","mm"],qn);var UH=qs("Minutes",!1);Me("s",["ss",2],0,"second");Ce("s",It,Sv);Ce("ss",It,cn);At(["s","ss"],Qa);var qH=qs("Seconds",!1);Me("S",0,0,function(){return~~(this.millisecond()/100)});Me(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Me(0,["SSS",3],0,"millisecond");Me(0,["SSSS",4],0,function(){return this.millisecond()*10});Me(0,["SSSSS",5],0,function(){return this.millisecond()*100});Me(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Me(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Me(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Me(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ce("S",fh,iC);Ce("SS",fh,cn);Ce("SSS",fh,oC);var Ri,$C;for(Ri="SSSS";Ri.length<=9;Ri+="S")Ce(Ri,Hs);function WH(e,t){t[go]=ut(("0."+e)*1e3)}for(Ri="S";Ri.length<=9;Ri+="S")At(Ri,WH);$C=qs("Milliseconds",!1);Me("z",0,0,"zoneAbbr");Me("zz",0,0,"zoneName");function VH(){return this._isUTC?"UTC":""}function YH(){return this._isUTC?"Coordinated Universal Time":""}var be=mc.prototype;be.add=$B;be.calendar=VB;be.clone=YB;be.diff=eH;be.endOf=cH;be.format=aH;be.from=iH;be.fromNow=oH;be.to=sH;be.toNow=uH;be.get=nz;be.invalidAt=yH;be.isAfter=GB;be.isBefore=KB;be.isBetween=XB;be.isSame=ZB;be.isSameOrAfter=JB;be.isSameOrBefore=QB;be.isValid=vH;be.lang=DC;be.locale=PC;be.localeData=MC;be.max=vB;be.min=gB;be.parsingFlags=bH;be.set=az;be.startOf=lH;be.subtract=zB;be.toArray=pH;be.toObject=mH;be.toDate=hH;be.toISOString=rH;be.inspect=nH;typeof Symbol<"u"&&Symbol.for!=null&&(be[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});be.toJSON=gH;be.toString=tH;be.unix=fH;be.valueOf=dH;be.creationData=_H;be.eraName=CH;be.eraNarrow=EH;be.eraAbbr=kH;be.eraYear=TH;be.year=lC;be.isLeapYear=rz;be.weekYear=FH;be.isoWeekYear=NH;be.quarter=be.quarters=BH;be.month=pC;be.daysInMonth=hz;be.week=be.weeks=wz;be.isoWeek=be.isoWeeks=xz;be.weeksInYear=jH;be.weeksInWeekYear=$H;be.isoWeeksInYear=IH;be.isoWeeksInISOWeekYear=LH;be.date=jC;be.day=be.days=Nz;be.weekday=Iz;be.isoWeekday=Lz;be.dayOfYear=HH;be.hour=be.hours=qz;be.minute=be.minutes=UH;be.second=be.seconds=qH;be.millisecond=be.milliseconds=$C;be.utcOffset=kB;be.utc=OB;be.local=AB;be.parseZone=RB;be.hasAlignedHourOffset=PB;be.isDST=DB;be.isLocal=FB;be.isUtcOffset=NB;be.isUtc=TC;be.isUTC=TC;be.zoneAbbr=VH;be.zoneName=YH;be.dates=Tn("dates accessor is deprecated. Use date instead.",jC);be.months=Tn("months accessor is deprecated. Use month instead",pC);be.years=Tn("years accessor is deprecated. Use year instead",lC);be.zone=Tn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",TB);be.isDSTShifted=Tn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",MB);function GH(e){return Nt(e*1e3)}function KH(){return Nt.apply(null,arguments).parseZone()}function zC(e){return e}var pt=bv.prototype;pt.calendar=F$;pt.longDateFormat=j$;pt.invalidDate=z$;pt.ordinal=U$;pt.preparse=zC;pt.postformat=zC;pt.relativeTime=W$;pt.pastFuture=V$;pt.set=D$;pt.eras=wH;pt.erasParse=xH;pt.erasConvertYear=SH;pt.erasAbbrRegex=AH;pt.erasNameRegex=OH;pt.erasNarrowRegex=RH;pt.months=lz;pt.monthsShort=cz;pt.monthsParse=fz;pt.monthsRegex=mz;pt.monthsShortRegex=pz;pt.week=vz;pt.firstDayOfYear=_z;pt.firstDayOfWeek=yz;pt.weekdays=Rz;pt.weekdaysMin=Dz;pt.weekdaysShort=Pz;pt.weekdaysParse=Fz;pt.weekdaysRegex=jz;pt.weekdaysShortRegex=$z;pt.weekdaysMinRegex=zz;pt.isPM=Hz;pt.meridiem=Wz;function zf(e,t,r,n){var a=ii(),i=va().set(n,t);return a[r](i,e)}function BC(e,t,r){if(ni(e)&&(t=e,e=void 0),e=e||"",t!=null)return zf(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=zf(e,n,r,"month");return a}function Iv(e,t,r,n){typeof e=="boolean"?(ni(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,ni(t)&&(r=t,t=void 0),t=t||"");var a=ii(),i=e?a._week.dow:0,s,l=[];if(r!=null)return zf(t,(r+i)%7,n,"day");for(s=0;s<7;s++)l[s]=zf(t,(s+i)%7,n,"day");return l}function XH(e,t){return BC(e,t,"months")}function ZH(e,t){return BC(e,t,"monthsShort")}function JH(e,t,r){return Iv(e,t,r,"weekdays")}function QH(e,t,r){return Iv(e,t,r,"weekdaysShort")}function eU(e,t,r){return Iv(e,t,r,"weekdaysMin")}Ni("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=ut(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});ve.lang=Tn("moment.lang is deprecated. Use moment.locale instead.",Ni);ve.langData=Tn("moment.langData is deprecated. Use moment.localeData instead.",ii);var qa=Math.abs;function tU(){var e=this._data;return this._milliseconds=qa(this._milliseconds),this._days=qa(this._days),this._months=qa(this._months),e.milliseconds=qa(e.milliseconds),e.seconds=qa(e.seconds),e.minutes=qa(e.minutes),e.hours=qa(e.hours),e.months=qa(e.months),e.years=qa(e.years),this}function HC(e,t,r,n){var a=Qn(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function rU(e,t){return HC(this,e,t,1)}function nU(e,t){return HC(this,e,t,-1)}function fx(e){return e<0?Math.floor(e):Math.ceil(e)}function aU(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,a,i,s,l,u;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=fx(v1(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,a=wn(e/1e3),n.seconds=a%60,i=wn(a/60),n.minutes=i%60,s=wn(i/60),n.hours=s%24,t+=wn(s/24),u=wn(UC(t)),r+=u,t-=fx(v1(u)),l=wn(r/12),r%=12,n.days=t,n.months=r,n.years=l,this}function UC(e){return e*4800/146097}function v1(e){return e*146097/4800}function iU(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=On(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+UC(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(v1(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function oi(e){return function(){return this.as(e)}}var qC=oi("ms"),oU=oi("s"),sU=oi("m"),uU=oi("h"),lU=oi("d"),cU=oi("w"),dU=oi("M"),fU=oi("Q"),hU=oi("y"),pU=qC;function mU(){return Qn(this)}function gU(e){return e=On(e),this.isValid()?this[e+"s"]():NaN}function Oo(e){return function(){return this.isValid()?this._data[e]:NaN}}var vU=Oo("milliseconds"),bU=Oo("seconds"),yU=Oo("minutes"),_U=Oo("hours"),wU=Oo("days"),xU=Oo("months"),SU=Oo("years");function CU(){return wn(this.days()/7)}var Ga=Math.round,cs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function EU(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}function kU(e,t,r,n){var a=Qn(e).abs(),i=Ga(a.as("s")),s=Ga(a.as("m")),l=Ga(a.as("h")),u=Ga(a.as("d")),c=Ga(a.as("M")),m=Ga(a.as("w")),p=Ga(a.as("y")),g=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||s<=1&&["m"]||s<r.m&&["mm",s]||l<=1&&["h"]||l<r.h&&["hh",l]||u<=1&&["d"]||u<r.d&&["dd",u];return r.w!=null&&(g=g||m<=1&&["w"]||m<r.w&&["ww",m]),g=g||c<=1&&["M"]||c<r.M&&["MM",c]||p<=1&&["y"]||["yy",p],g[2]=t,g[3]=+e>0,g[4]=n,EU.apply(null,g)}function TU(e){return e===void 0?Ga:typeof e=="function"?(Ga=e,!0):!1}function OU(e,t){return cs[e]===void 0?!1:t===void 0?cs[e]:(cs[e]=t,e==="s"&&(cs.ss=t-1),!0)}function AU(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=cs,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},cs,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),a=this.localeData(),i=kU(this,!r,n,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var rg=Math.abs;function Ko(e){return(e>0)-(e<0)||+e}function _h(){if(!this.isValid())return this.localeData().invalidDate();var e=rg(this._milliseconds)/1e3,t=rg(this._days),r=rg(this._months),n,a,i,s,l=this.asSeconds(),u,c,m,p;return l?(n=wn(e/60),a=wn(n/60),e%=60,n%=60,i=wn(r/12),r%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=l<0?"-":"",c=Ko(this._months)!==Ko(l)?"-":"",m=Ko(this._days)!==Ko(l)?"-":"",p=Ko(this._milliseconds)!==Ko(l)?"-":"",u+"P"+(i?c+i+"Y":"")+(r?c+r+"M":"")+(t?m+t+"D":"")+(a||n||e?"T":"")+(a?p+a+"H":"")+(n?p+n+"M":"")+(e?p+s+"S":"")):"P0D"}var dt=bh.prototype;dt.isValid=xB;dt.abs=tU;dt.add=rU;dt.subtract=nU;dt.as=iU;dt.asMilliseconds=qC;dt.asSeconds=oU;dt.asMinutes=sU;dt.asHours=uU;dt.asDays=lU;dt.asWeeks=cU;dt.asMonths=dU;dt.asQuarters=fU;dt.asYears=hU;dt.valueOf=pU;dt._bubble=aU;dt.clone=mU;dt.get=gU;dt.milliseconds=vU;dt.seconds=bU;dt.minutes=yU;dt.hours=_U;dt.days=wU;dt.weeks=CU;dt.months=xU;dt.years=SU;dt.humanize=AU;dt.toISOString=_h;dt.toString=_h;dt.toJSON=_h;dt.locale=PC;dt.localeData=MC;dt.toIsoString=Tn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_h);dt.lang=DC;Me("X",0,0,"unix");Me("x",0,0,"valueOf");Ce("x",ph);Ce("X",X$);At("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});At("x",function(e,t,r){r._d=new Date(ut(e))});//! moment.js
|
|
332
|
-
ve.version="2.30.1";R$(Nt);ve.fn=be;ve.min=bB;ve.max=yB;ve.now=_B;ve.utc=va;ve.unix=GH;ve.months=XH;ve.isDate=pc;ve.locale=Ni;ve.invalid=ch;ve.duration=Qn;ve.isMoment=Xn;ve.weekdays=JH;ve.parseZone=KH;ve.localeData=ii;ve.isDuration=gf;ve.monthsShort=ZH;ve.weekdaysMin=eU;ve.defineLocale=Ov;ve.updateLocale=Kz;ve.locales=Xz;ve.weekdaysShort=QH;ve.normalizeUnits=On;ve.relativeTimeRounding=TU;ve.relativeTimeThreshold=OU;ve.calendarFormat=WB;ve.prototype=be;ve.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const ki=class ki{static getAttrOf(t,r){return t.find(n=>(n.apicode||n.apiCode)==r)}static avoid0TypeConvert(t){return t===0?String(t):t}static generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=Math.random()*16|0,n=t=="x"?r:r&3|8;return n.toString(16)})}static momentToRawData(t){if(ve.isMoment(t)){const r=t.creationData();return r==null?void 0:r.input}else return t}static tableRowHasChange(t){return t.dataType=="add"||t.dataType=="del"||ki.tableRowHasNewValue(t)}static tableRowHasNewValue(t){return!!t.newVal&&!!Object.values(t.newVal).length}static isAddTableRow(t){return t.dataType=="add"}static isDelTableRow(t){return t.dataType=="del"}static setTableRowAttrValue(t,r){t.newVal?Object.assign(t.newVal,r):t.newVal=r}static isMac(){return/macintosh|mac os x/i.test(navigator.userAgent)}static makeDestructurable(t,r){if(typeof Symbol<"u"){const n={...t};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let a=0;return{next:()=>({value:r[a++],done:a>r.length})}}}),n}else return Object.assign([...r],t)}static ArrayAttributeFlat(t,r="children",n){const a=[...t],i=[];for(;a.length;){const s=a.shift(),l=s[r];if(n==null||n(s),i.push(s),l!=null&&l.length)for(let u=l.length-1;u>=0;u--)a.unshift(l[u])}return i}static getTreeRelationNoRecursion({data:t,lookup:r,childrenKey:n="children"}){var m;const a=new Set;let i={parent:void 0,self:void 0,beforeSibling:[],afterSibling:[],index:void 0,stack:Array.from(a)};const s=new Map,l=new Map,u=new Map,c=[...t];for(;c.length;){const p=c.shift(),g=s.get(p)??t.findIndex(T=>T==p),y=l.get(p);y?a.add(y):a.clear();const x=y==null?void 0:y[n],E=r(p,g),k=p[n];if(E){i={parent:y,self:p,beforeSibling:(x||t).slice(0,g),afterSibling:(x||t).slice(g+1),index:g,stack:Array.from(a)};break}else if(k!=null&&k.length)for(let T=k.length-1;T>=0;T--){const w=k[T];c.unshift(k[T]),s.set(w,T),l.set(w,p),T==k.length-1&&u.set(w,()=>{var S;(S=u.get(p))==null||S(),a.delete(p)})}else(m=u.get(p))==null||m()}return i}static judgeParentIcon(t,r){if(t=="10001001")return"bluecube";if(t=="10001002")return"document-cube";if(t=="10001006")return"file-cube";if(Fi.isProject(t))return r||"icon"}static generateCacheFn(t){const r=(...n)=>(r._value||(r._value=t(...n)),r._value);return r.clearCache=()=>{r._value=null},r}static generateSnowId(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}};Tt(ki,"getLabelInOptions",t=>{const{value:r,options:n,adaptor:a}=t,i=Object.prototype.toString.call(r);if(!(c=>c!==""&&c!==void 0&&c!==null)(r))return"";let l="";i==="[object Array]"&&(l=[]);const u=c=>{for(let m=0;m<(c||[]).length;m++){const p=c[m][a?a.label:"label"],g=c[m][a?a.value:"value"];i==="[object Array]"?r.includes(g)&&l.push(p):r===g&&(l=p),c[m].children&&c[m].children.length&&u(c[m].children)}};return u(n),l}),Tt(ki,"transformArrayToMap",(t,r,n,a)=>{function i(s,l){return s=="autoGetId"&&(a!=null&&a.useAutoGetId)?As.isCustomAttr(l)?"id":"dataFromId":s}return t==null?void 0:t.reduce((s,l)=>{const u=i(r,l),c=i(n,l);return c?s[l[u]]=l[c]:s[l[u]]=l,s},{})}),Tt(ki,"autoTableHeight",(t=270)=>{var r=0;return window.innerHeight?r=window.innerHeight:document.body&&document.body.clientHeight&&(r=document.body.clientHeight),document.documentElement&&document.documentElement.clientHeight&&(r=document.documentElement.clientHeight),r-t}),Tt(ki,"renderBomTag",t=>{const r=s=>{const l=s.match(/\d+(\.\d+)?/g);return l?l[l.length-1]:""},n=s=>{let l=0;const u=c=>{var m=c.split("");return m.reverse()};for(let c=0;c<u(s).length&&u(s)[c].match(/\d/);c++)l=l+1;return s.substring(0,s.length-l)},a=s=>ie.sortBy(ie.uniq(s.split(",")),l=>Number(r(l))),i=Object.keys(ie.groupBy(a(t),s=>n(s))).map(s=>(u=>{var c=[],m=0;const p=u.sort((g,y)=>Number(r(g))-Number(r(y)));return p.forEach((g,y)=>{y===0?c[0]=[g]:Number(r(g))-Number(r(p[y-1]))===1?c[m].push(g):c[++m]=[g]}),c})(ie.groupBy(a(t),u=>n(u))[s]).map(u=>{if(u.length>1){const c=u.map(m=>Number(r(m)));return`${s}${ie.min(c)}-${ie.max(c)}`}else return u[0]}));return ie.flatten(i).join(",")}),Tt(ki,"tidyBomTag",(t,r)=>{t=t&&t.replace(/,/g,",");const n=t.split(",").map(u=>u.replace(/([^\d]+)(\d+)-\1(\d+)/,"$1$2-$3")).map(u=>{if(u.match(/^\S+\d+-\d+$/)){const c=u.substring(0,u.match(/\d+-\d+$/).index),m=[],p=Number(u.split(c)[1].split("-")[1]),g=p<1e3?p:1e3;for(let y=Number(u.split(c)[1].split("-")[0]);y<=g;y++)m.push(`${c}${y}`);return m.join(",")}else if(u.match(/^\S+\d+-\S+\d+$/)){const c=u.split("-")[0].substring(0,u.match(/\d/).index).toUpperCase(),m=u.split("-")[0].substring(u.match(/\d/).index,u.split("-")[0].length),p=u.split("-")[1].substring(0,u.match(/\d/).index).toUpperCase(),g=u.split("-")[1].substring(u.match(/\d/).index,u.split("-")[0].length);if(c!=p)return u;{const y=[],x=Number(g),E=x<1e3?x:1e3;for(let k=Number(m);k<=E;k++)y.push(`${c}${k}`);return y.join(",")}}else return u}).join(","),a=u=>{const c=u.match(/\d+(\.\d+)?/g);return c?c[c.length-1]:""},i=u=>{let c=0;const m=p=>{var g=p.split("");return g.reverse()};for(let p=0;p<m(u).length&&m(u)[p].match(/\d/);p++)c=c+1;return u.substring(0,u.length-c)},s=u=>ie.sortBy(ie.uniq(u.split(",")),c=>Number(a(c))),l=Object.values(ie.groupBy(s(n.toLocaleUpperCase()),u=>i(u))).map(u=>u.join(","));return l.length>1e3&&(r==null||r()),l.length>1e3?l.slice(0,1e3).join(","):l.join(",")});let vt=ki;const RU="_tableSelection_1xub0_1",PU="_sideBox_1xub0_36",DU="_tableFrame_1xub0_51",ng={tableSelection:RU,sideBox:PU,tableFrame:DU},MU="_sider_item_container_wnrm0_1",Xo={sider_item_container:MU},{TreeNode:hx}=Z.Tree,WC=e=>{const[t,r]=F.useState([]),[n,a]=F.useState([]),[i,s]=F.useState([]);zs(()=>{l()});const l=async()=>{if(a(e.treeResult||[]),e.serveColumms){const c=e.serveColumms.filter(m=>["Number","Note","LifeCyclePhase","Category"].includes(m.apicode));e.onGetTreeFields&&e.onGetTreeFields(c)}};F.useEffect(()=>{e.outIsSelected&&r([])},[e.outIsSelected]);const u=c=>c.map(p=>(p.title=D.jsxs("div",{className:Xo.treeListBox,children:[D.jsxs("div",{className:Xo.titleBox,style:{display:"flex",alignItems:"center"},children:[D.jsx(He,{type:p.icon=="leftbar-folder"?p.children&&p.children.length>0&&ie.includes(i,p.id)?"content-open2":"content-fold":p.icon,style:{fontSize:"16px",color:"#333"}}),D.jsx("div",{className:Xo.name,style:{marginLeft:"2px",whiteSpace:"nowrap"},title:p.name,children:D.jsx("span",{children:p.name})})]}),D.jsx("div",{className:Te(Xo.btnBox,Xo.onHover)})]},p.id),p.children?D.jsx(hx,{title:p.title,dataRef:p,children:u(p.children)},p.id):D.jsx(hx,{title:p.title},p.id)));return D.jsx("div",{className:Xo.sider_item_container,children:D.jsx(Z.Tree,{switcherIcon:D.jsx(He,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),expandedKeys:i,selectedKeys:t,onExpand:c=>{s(c)},onSelect:(c,m)=>{m.selected&&(r(c),e.onSelected&&e.onSelected(m.node.dataRef))},children:u(n)})})},FU="_main_1qtos_1",NU="_edit_cell_1qtos_23",IU="_update_style_1qtos_28",LU="_updated_style_1qtos_42",jU="_updated_redline_style_1qtos_61",$U="_table_footer_1qtos_349",zU="_loading_1qtos_361",zn={main:FU,edit_cell:NU,update_style:IU,updated_style:LU,updated_redline_style:jU,table_footer:$U,loading:zU},BU=0,ag=1,ig=2,VC=8,Zo=64,Nd=0,YC=1,b1=typeof Symbol=="function"?Symbol.for("idx"):"$$idx";function HU(){return{vt_state:1,possible_hight_per_tr:-1,computed_h:0,re_computed:0,row_height:[],row_count:0,prev_row_count:0,_offset_top:0,_offset_head:0,_offset_tail:1,WH:0,top:0,left:0,evt:BU,end:!1,final_top:0,f_final_top:YC,update_count:0}}function UU(e){Object.prototype.hasOwnProperty.call(e,"CLICK~__DIAGNOSIS__")||Object.defineProperty(e,"CLICK~__DIAGNOSIS__",{get(){console.debug("OoOoOoO DIAGNOSIS OoOoOoO");let t=0;for(let a=0;a<e.row_count;++a)t+=e.row_height[a];let r,n;t>e.computed_h?(r="color:rgb(15, 179, 9)",n="lower than expected"):t<e.computed_h?(r="color:rgb(202, 61, 81)",n="higher than expected"):(r="color:rgba(0, 0, 0, 0.85)",n="normal"),console.debug(`%c%d(%d)(${n})`,r,t,e.computed_h-t),console.debug("OoOoOoOoOoOoOOoOoOoOoOoOo")},configurable:!1,enumerable:!1})}function os(e,t){if(e.debug){const r=new Date,n=`${r.toLocaleTimeString()}.${r.getMilliseconds()}`;console.debug(`%c[${e.id}][${n}][${t}]`,"color:#a00",e)}}function qU(e){const t=e.target;return{target:{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft},end:t.scrollHeight-t.clientHeight===Math.round(t.scrollTop),flag:VC}}const WU=ee.forwardRef(function(t,r){return D.jsx("table",{ref:r,...t})});function VU(e){return D.jsx("tbody",{...e})}const YU=ee.forwardRef(function(t,r){const[n,a]=F.useState(!1);return D.jsx("tr",{ref:r,...t})});function GU(e,t){const{row_height:r,row_count:n,overscanRowCount:a}=e;e._scroll_y=e.scroll.y,typeof e._scroll_y=="number"?e._y=e._scroll_y:(typeof e._scroll_y=="string"||console.assert(!1,"VT: did you forget to set `scroll.y`?"),e._y=e.wrap_inst.current.parentElement.offsetHeight),console.assert(e._y>=0);let i=0,s=0,l=0,u=0;if(t===-1&&n>0){for(s=n;s>0&&u<e._y;)u+=r[--s];return[0|s,0|n,0|e.computed_h-u]}for(;s<n&&i<t;++s)i+=r[s];for(l=s;l<n&&u<e._y;++l)u+=r[l];let c=a<0?0:a;for(;s>0&&c--;)i-=r[--s];return l+=a,l>n&&(l=n),[0|s,0|l,0|i]}function GC(e,t,r,n){e._offset_top=0|t,e._offset_head=0|r,e._offset_tail=0|n}function KU(e,t,r,n,a){e.top=t,e.left=r,e.evt=n,e.end=a}function XU(e,t){if(e.WH===t)return;e.WH=t;const r=e.wrap_inst.current.style;r.height=t?(r.maxHeight=t+"px",r.maxHeight):(r.maxHeight="unset",r.maxHeight),e.on_update_wrap_style()}function px(e,t,r){if(!e.wrap_inst.current)return;const n=e.wrap_inst.current.parentElement;n.scrollTop=t,n.scrollLeft=Math.max(r,n.scrollLeft)}function KC(e,t){const r=()=>{os(e,"REPAINTING"),e.vt_state===4&&e.wrap_inst.current&&XU(e,e.computed_h),e.HND_PAINT=0};return t<0?window.requestAnimationFrame(r):window.setTimeout(r,t)}function og(e){e.HND_PAINT>0||(e.HND_PAINT=KC(e,-1))}function XC(e,t,r,n){const a=t-r,i=new Array(a).fill(n);e.row_height=e.row_height.concat(i),e.computed_h+=a*n}function ZU(e,t,r){if(t===0){e.computed_h=0,e.row_height.length=0,e.top=0;return}const n=e.row_height;let a=0;for(let i=t;i<r;++i)a+=n[i];e.computed_h-=a}function JU(e,t){e.re_computed=t-e.row_count,e.prev_row_count=e.row_count,e.row_count=t}const QU=(e,t)=>{const{style:r,context:n,...a}=e,i=F.useState(0),s=F.useRef(()=>{}),l=F.useMemo(()=>ee.createRef(),[]),u=F.useContext(n);F.useMemo(()=>{Object.assign(u,HU()),u.wrap_inst&&u.wrap_inst.current&&(u.wrap_inst.current.parentElement.onscroll=null),u.wrap_inst=l,u.top=u.initTop,u.on_update_wrap_style=()=>{u._y===0&&`${u._scroll_y}`.length&&g({flag:Zo,target:{scrollTop:u.top,scrollLeft:u.left}})},process.env.NODE_ENV==="development"&&UU(u)},[]);const c=F.useRef([]).current,m=F.useRef(0);let p;const g=F.useCallback(w=>{if(u.vt_state===4){if(w&&(c.push(w),u.f_final_top===Nd))return w.flag=Zo,p(0);c.length&&(m.current&&cancelAnimationFrame(m.current),m.current=requestAnimationFrame(p))}},[]),y=F.useCallback(w=>{g(qU(w))},[]);p=F.useCallback(w=>{if(u.vt_state!==4)return;const S=c;let f;if(!S.length)return;f=S.pop();let h=f.target.scrollTop,v=f.target.scrollLeft;const _=f.flag;os(u,`raf top: ${h}, left: ${v}`);const R=GU(u,u.f_final_top===Nd?u.final_top:h),C=R[0],P=R[1],M=R[2],U=u._offset_head,L=u._offset_tail,N=u._offset_top;let j;switch(_){case ag:os(u,"SCROLLEVT_INIT"),j=!1;break;case Zo:os(u,"SCROLLEVT_BY_HOOK"),C===U&&P===L&&M===N?(u.f_final_top=YC,u.final_top===-1&&(h=u.computed_h-u._y),j=!0):(u.final_top===-1&&(h=M),j=!1);break;case ig:if(os(u,"SCROLLEVT_RECOMPUTE"),C===U&&P===L&&M===N){m.current=0,S.length&&g(null);return}j=!1;break;case VC:if(os(u,"SCROLLEVT_NATIVE"),m.current=0,S.length=0,u.onScroll&&u.onScroll({top:h,left:v,isEnd:f.end}),C===U&&P===L&&M===N)return;j=f.end;break}GC(u,M,C,P),KU(u,h,v,_,j),i[1](++u.update_count)},[]),F.useImperativeHandle(t,()=>{const w=S=>{u.f_final_top=Nd,u.final_top=S,g({target:{scrollTop:S,scrollLeft:-1},flag:Zo})};return{scrollTo:S=>{s.current=()=>w(S),s.current()},scrollToIndex:S=>{s.current=()=>{S>u.row_count-1&&(S=u.row_count-1),S<0&&(S=0);let f=0;for(let h=0;h<S;++h)f+=u.row_height[h];w(f)},s.current()}}},[]),F.useEffect(()=>{u.wrap_inst.current.parentElement.onscroll=y},[l]),F.useEffect(()=>{g({flag:Zo,target:{scrollLeft:u.left,scrollTop:u.top}})},[u.scroll.y]),F.useEffect(()=>{switch(u.evt){case Zo:u.f_final_top===Nd?s.current():px(u,u.top,u.left);break;case ag:case ig:px(u,u.top,u.left),c.length&&p(0);break}},[i[0]]),F.useEffect(()=>{switch(u.vt_state){case 1:break;case 2:u.vt_state=4,g({target:{scrollTop:u.top,scrollLeft:0},flag:ag});break;case 4:u.re_computed!==0&&(u.re_computed=0,g({target:{scrollTop:u.top,scrollLeft:u.left},flag:ig}));break}}),r.position="relative",r.top=u._offset_top;const{width:x,...E}=r,k=F.useMemo(()=>({width:x,minWidth:"100%",position:"relative",transform:"matrix(1, 0, 0, 1, 0, 0)"}),[x]),T=u.components.table;return D.jsx("div",{ref:l,style:k,children:D.jsx(n.Provider,{value:{...u},children:D.jsx(T,{...a,style:E})})})},eq=e=>{const{children:t,ctx:r,...n}=e,a=t[0],i=t[1],s=r.components.body.wrapper;let l=Array.isArray(i)?i.length:0,{_offset_head:u,_offset_tail:c}=r,m=[];switch(r.vt_state){case 1:l>=0&&(console.assert(u===0),console.assert(c===1),Array.isArray(i)?(m=i.slice(u,c),m[0].props.record[b1]=0):m=i,r.re_computed=l,r.prev_row_count=l,r.row_count=l);break;case 4:{if(c>l){const g=c-l;c-=g,u-=g,u<0&&(u=0),c<0&&(c=0),GC(r,r._offset_top,u,c)}r.row_count!==l&&JU(r,l),l=r.row_count;const p=r.prev_row_count;if(l<p)ZU(r,l,p);else if(l>p){const g=r.row_height;l-g.length>0?XC(r,l,g.length,r.possible_hight_per_tr):(g.fill(r.possible_hight_per_tr,p,l),r.computed_h+=r.possible_hight_per_tr*(l-p))}if(l){let g=u;m=i.slice(g,c),m.forEach(y=>y.props.record[b1]=g++)}else m=i;r.prev_row_count=r.row_count}break;case 2:console.assert(!1);break}return D.jsxs(s,{...n,children:[a,m]})},tq=e=>{const t=ee.createRef(),{ctx:r,...n}=e,a=e.children,i=r.components.body.row;if(!Array.isArray(a))return D.jsx(i,{...n,children:a});const s=a[0].props,l=s.record[b1],u=F.useRef(l),c=F.useMemo(()=>`.${s.prefixCls}-expanded-row`,[s.prefixCls]);return F.useEffect(()=>(r.vt_state===4?og(r):(console.assert(r.vt_state===1),r.vt_state=2,r.possible_hight_per_tr=t.current.offsetHeight,XC(r,r.row_count,0,r.possible_hight_per_tr),KC(r,16)),()=>og(r)),[]),F.useEffect(()=>{const m=t.current;let p=m.offsetHeight,g=m.nextSibling;for(;g&&g.matches(c);)p+=g.offsetHeight,g=g.nextSibling;const y=r.row_height[l],x=r.row_height[u.current];r.computed_h-=y,r.computed_h+=x,r.computed_h+=p-x,r.row_height[l]=p,og(r)}),D.jsx(i,{...n,ref:t})};function ZC(e,t){const{table:r,body:n,header:a}=t;e.components.body={...e.components.body,...n},n&&n.cell&&(e._vtcomponents.body.cell=n.cell),a&&(e.components.header=a,e._vtcomponents.header=a),r&&(e.components.table=r)}function rq(e,t){const r=F.useRef(ee.createContext({})).current,n=F.useContext(r),a=F.useRef({scrollTo:i=>{},scrollToIndex:i=>{}});return F.useMemo(()=>Object.assign(n,{id:(+new Date).toString(36).slice(4),initTop:0,overscanRowCount:20,debug:!1,ref:a},e()),t),F.useMemo(()=>{const i=ee.forwardRef(QU);n._vtcomponents={table:s=>D.jsx(i,{...s,context:r,ref:n.ref}),body:{wrapper:s=>D.jsx(r.Consumer,{children:()=>D.jsx(eq,{...s,ctx:n})}),row:s=>D.jsx(tq,{...s,ctx:n})}},n.components={},ZC(n,{table:WU,body:{wrapper:VU,row:YU}}),n.vt_state=1},[]),n}const mx=1,nq=2;(function(){if((typeof window=="object"&&window instanceof Window?mx:nq)&mx&&!Object.hasOwnProperty.call(window,"requestAnimationFrame")&&!window.requestAnimationFrame)throw new Error("Please using the modern browers or appropriate polyfill!")})();function aq(e,t){const r=rq(e,t||[]);return[r._vtcomponents,n=>ZC(r,n),r.ref]}const iq=({hideFooter:e,contentRef:t,tableRef:r,scroll:n,fullScreenMinusHeight:a,scrollUpdate:i,onTableHeightChange:s},l)=>{const[u,c]=F.useState(0),m=xn(n);return F.useEffect(()=>{const p=()=>{var x,E,k;const y=(T=>{for(var w=T.offsetTop,S=T.offsetParent;S!==null;)w+=S.offsetTop,S=S.offsetParent;return w})(t.current);if(r.current){const T=t.current.querySelectorAll(".frontend-table-body")[0].getElementsByTagName("div")[0],w=t.current.querySelectorAll(".frontend-table-body")[0],S=34+(e?0:15);if(T){const f=vt.autoTableHeight(l?S:y+S),h=f-(a||0);n!=null&&n.y?i?i==null||i(l,h):(c(l?h:Number((x=m.current)==null?void 0:x.y)),T.style.minHeight=(l?h:Number((E=m.current)==null?void 0:E.y))-10+"px",w.style.minHeight=(l?h:Number((k=m.current)==null?void 0:k.y))+"px"):(c(l?h:f),T.style.minHeight=(l?h:f)-10+"px",w.style.minHeight=(l?h:f)+"px")}}};return p(),window.addEventListener("resize",p),()=>{window.removeEventListener("resize",p)}},[l,n]),F.useEffect(()=>{s==null||s(u)},[u]),u};var pl={exports:{}},ml={},Id={},gx;function oq(){if(gx)return Id;gx=1,Id.__esModule=!0,Id.cloneElement=l;var e=t(F);function t(u){return u&&u.__esModule?u:{default:u}}function r(u,c){var m=Object.keys(u);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(u);c&&(p=p.filter(function(g){return Object.getOwnPropertyDescriptor(u,g).enumerable})),m.push.apply(m,p)}return m}function n(u){for(var c=1;c<arguments.length;c++){var m=arguments[c]!=null?arguments[c]:{};c%2?r(Object(m),!0).forEach(function(p){a(u,p,m[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(m)):r(Object(m)).forEach(function(p){Object.defineProperty(u,p,Object.getOwnPropertyDescriptor(m,p))})}return u}function a(u,c,m){return c=i(c),c in u?Object.defineProperty(u,c,{value:m,enumerable:!0,configurable:!0,writable:!0}):u[c]=m,u}function i(u){var c=s(u,"string");return typeof c=="symbol"?c:String(c)}function s(u,c){if(typeof u!="object"||u===null)return u;var m=u[Symbol.toPrimitive];if(m!==void 0){var p=m.call(u,c);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(u)}function l(u,c){return c.style&&u.props.style&&(c.style=n(n({},u.props.style),c.style)),c.className&&u.props.className&&(c.className=u.props.className+" "+c.className),e.default.cloneElement(u,c)}return Id}var gl={},vx;function JC(){if(vx)return gl;vx=1,gl.__esModule=!0,gl.resizableProps=void 0;var e=t(fc());pv();function t(n){return n&&n.__esModule?n:{default:n}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];var l=i[0];if(l.axis==="both"||l.axis==="y"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];var l=i[0];if(l.axis==="both"||l.axis==="x"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)}};return gl.resizableProps=r,gl}var bx;function QC(){if(bx)return ml;bx=1,ml.__esModule=!0,ml.default=void 0;var e=s(F),t=pv(),r=oq(),n=JC(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(T){if(typeof WeakMap!="function")return null;var w=new WeakMap,S=new WeakMap;return(i=function(h){return h?S:w})(T)}function s(T,w){if(T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var S=i(w);if(S&&S.has(T))return S.get(T);var f={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in T)if(v!=="default"&&Object.prototype.hasOwnProperty.call(T,v)){var _=h?Object.getOwnPropertyDescriptor(T,v):null;_&&(_.get||_.set)?Object.defineProperty(f,v,_):f[v]=T[v]}return f.default=T,S&&S.set(T,f),f}function l(){return l=Object.assign?Object.assign.bind():function(T){for(var w=1;w<arguments.length;w++){var S=arguments[w];for(var f in S)Object.prototype.hasOwnProperty.call(S,f)&&(T[f]=S[f])}return T},l.apply(this,arguments)}function u(T,w){if(T==null)return{};var S={},f=Object.keys(T),h,v;for(v=0;v<f.length;v++)h=f[v],!(w.indexOf(h)>=0)&&(S[h]=T[h]);return S}function c(T,w){var S=Object.keys(T);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(T);w&&(f=f.filter(function(h){return Object.getOwnPropertyDescriptor(T,h).enumerable})),S.push.apply(S,f)}return S}function m(T){for(var w=1;w<arguments.length;w++){var S=arguments[w]!=null?arguments[w]:{};w%2?c(Object(S),!0).forEach(function(f){p(T,f,S[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(S)):c(Object(S)).forEach(function(f){Object.defineProperty(T,f,Object.getOwnPropertyDescriptor(S,f))})}return T}function p(T,w,S){return w=g(w),w in T?Object.defineProperty(T,w,{value:S,enumerable:!0,configurable:!0,writable:!0}):T[w]=S,T}function g(T){var w=y(T,"string");return typeof w=="symbol"?w:String(w)}function y(T,w){if(typeof T!="object"||T===null)return T;var S=T[Symbol.toPrimitive];if(S!==void 0){var f=S.call(T,w);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(T)}function x(T,w){T.prototype=Object.create(w.prototype),T.prototype.constructor=T,E(T,w)}function E(T,w){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},E(T,w)}var k=function(T){x(w,T);function w(){for(var f,h=arguments.length,v=new Array(h),_=0;_<h;_++)v[_]=arguments[_];return f=T.call.apply(T,[this].concat(v))||this,f.handleRefs={},f.lastHandleRect=null,f.slack=null,f}var S=w.prototype;return S.componentWillUnmount=function(){this.resetData()},S.resetData=function(){this.lastHandleRect=this.slack=null},S.runConstraints=function(h,v){var _=this.props,R=_.minConstraints,C=_.maxConstraints,P=_.lockAspectRatio;if(!R&&!C&&!P)return[h,v];if(P){var M=this.props.width/this.props.height,U=h-this.props.width,L=v-this.props.height;Math.abs(U)>Math.abs(L*M)?v=h/M:h=v*M}var N=h,j=v,O=this.slack||[0,0],I=O[0],z=O[1];return h+=I,v+=z,R&&(h=Math.max(R[0],h),v=Math.max(R[1],v)),C&&(h=Math.min(C[0],h),v=Math.min(C[1],v)),this.slack=[I+(N-h),z+(j-v)],[h,v]},S.resizeHandler=function(h,v){var _=this;return function(R,C){var P=C.node,M=C.deltaX,U=C.deltaY;h==="onResizeStart"&&_.resetData();var L=(_.props.axis==="both"||_.props.axis==="x")&&v!=="n"&&v!=="s",N=(_.props.axis==="both"||_.props.axis==="y")&&v!=="e"&&v!=="w";if(!(!L&&!N)){var j=v[0],O=v[v.length-1],I=P.getBoundingClientRect();if(_.lastHandleRect!=null){if(O==="w"){var z=I.left-_.lastHandleRect.left;M+=z}if(j==="n"){var B=I.top-_.lastHandleRect.top;U+=B}}_.lastHandleRect=I,O==="w"&&(M=-M),j==="n"&&(U=-U);var H=_.props.width+(L?M/_.props.transformScale:0),q=_.props.height+(N?U/_.props.transformScale:0),J=_.runConstraints(H,q);H=J[0],q=J[1];var re=H!==_.props.width||q!==_.props.height,ne=typeof _.props[h]=="function"?_.props[h]:null,se=h==="onResize"&&!re;ne&&!se&&(R.persist==null||R.persist(),ne(R,{node:P,size:{width:H,height:q},handle:v})),h==="onResizeStop"&&_.resetData()}}},S.renderResizeHandle=function(h,v){var _=this.props.handle;if(!_)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+h,ref:v});if(typeof _=="function")return _(h,v);var R=typeof _.type=="string",C=m({ref:v},R?{}:{handleAxis:h});return e.cloneElement(_,C)},S.render=function(){var h=this,v=this.props,_=v.children,R=v.className,C=v.draggableOpts;v.width,v.height,v.handle,v.handleSize,v.lockAspectRatio,v.axis,v.minConstraints,v.maxConstraints,v.onResize,v.onResizeStop,v.onResizeStart;var P=v.resizeHandles;v.transformScale;var M=u(v,a);return(0,r.cloneElement)(_,m(m({},M),{},{className:(R?R+" ":"")+"react-resizable",children:[].concat(_.props.children,P.map(function(U){var L,N=(L=h.handleRefs[U])!=null?L:h.handleRefs[U]=e.createRef();return e.createElement(t.DraggableCore,l({},C,{nodeRef:N,key:"resizableHandle-"+U,onStop:h.resizeHandler("onResizeStop",U),onStart:h.resizeHandler("onResizeStart",U),onDrag:h.resizeHandler("onResize",U)}),h.renderResizeHandle(U,N))}))}))},w}(e.Component);return ml.default=k,k.propTypes=n.resizableProps,k.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},ml}var vl={},yx;function sq(){if(yx)return vl;yx=1,vl.__esModule=!0,vl.default=void 0;var e=l(F),t=i(fc()),r=i(QC()),n=JC(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(w){return w&&w.__esModule?w:{default:w}}function s(w){if(typeof WeakMap!="function")return null;var S=new WeakMap,f=new WeakMap;return(s=function(v){return v?f:S})(w)}function l(w,S){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var f=s(S);if(f&&f.has(w))return f.get(w);var h={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in w)if(_!=="default"&&Object.prototype.hasOwnProperty.call(w,_)){var R=v?Object.getOwnPropertyDescriptor(w,_):null;R&&(R.get||R.set)?Object.defineProperty(h,_,R):h[_]=w[_]}return h.default=w,f&&f.set(w,h),h}function u(){return u=Object.assign?Object.assign.bind():function(w){for(var S=1;S<arguments.length;S++){var f=arguments[S];for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(w[h]=f[h])}return w},u.apply(this,arguments)}function c(w,S){var f=Object.keys(w);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(w);S&&(h=h.filter(function(v){return Object.getOwnPropertyDescriptor(w,v).enumerable})),f.push.apply(f,h)}return f}function m(w){for(var S=1;S<arguments.length;S++){var f=arguments[S]!=null?arguments[S]:{};S%2?c(Object(f),!0).forEach(function(h){p(w,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(f)):c(Object(f)).forEach(function(h){Object.defineProperty(w,h,Object.getOwnPropertyDescriptor(f,h))})}return w}function p(w,S,f){return S=g(S),S in w?Object.defineProperty(w,S,{value:f,enumerable:!0,configurable:!0,writable:!0}):w[S]=f,w}function g(w){var S=y(w,"string");return typeof S=="symbol"?S:String(S)}function y(w,S){if(typeof w!="object"||w===null)return w;var f=w[Symbol.toPrimitive];if(f!==void 0){var h=f.call(w,S);if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(w)}function x(w,S){if(w==null)return{};var f={},h=Object.keys(w),v,_;for(_=0;_<h.length;_++)v=h[_],!(S.indexOf(v)>=0)&&(f[v]=w[v]);return f}function E(w,S){w.prototype=Object.create(S.prototype),w.prototype.constructor=w,k(w,S)}function k(w,S){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,v){return h.__proto__=v,h},k(w,S)}var T=function(w){E(S,w);function S(){for(var h,v=arguments.length,_=new Array(v),R=0;R<v;R++)_[R]=arguments[R];return h=w.call.apply(w,[this].concat(_))||this,h.state={width:h.props.width,height:h.props.height,propsWidth:h.props.width,propsHeight:h.props.height},h.onResize=function(C,P){var M=P.size;h.props.onResize?(C.persist==null||C.persist(),h.setState(M,function(){return h.props.onResize&&h.props.onResize(C,P)})):h.setState(M)},h}S.getDerivedStateFromProps=function(v,_){return _.propsWidth!==v.width||_.propsHeight!==v.height?{width:v.width,height:v.height,propsWidth:v.width,propsHeight:v.height}:null};var f=S.prototype;return f.render=function(){var v=this.props,_=v.handle,R=v.handleSize;v.onResize;var C=v.onResizeStart,P=v.onResizeStop,M=v.draggableOpts,U=v.minConstraints,L=v.maxConstraints,N=v.lockAspectRatio,j=v.axis;v.width,v.height;var O=v.resizeHandles,I=v.style,z=v.transformScale,B=x(v,a);return e.createElement(r.default,{axis:j,draggableOpts:M,handle:_,handleSize:R,height:this.state.height,lockAspectRatio:N,maxConstraints:L,minConstraints:U,onResizeStart:C,onResize:this.onResize,onResizeStop:P,resizeHandles:O,transformScale:z,width:this.state.width},e.createElement("div",u({},B,{style:m(m({},I),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},S}(e.Component);return vl.default=T,T.propTypes=m(m({},n.resizableProps),{},{children:t.default.element}),vl}var _x;function uq(){return _x||(_x=1,pl.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},pl.exports.Resizable=QC().default,pl.exports.ResizableBox=sq().default),pl.exports}var lq=uq();const cq=e=>{const{onResizeOver:t,onResizeStop:r,trulyHeight:n,onResize:a,width:i,onClick:s,required:l,editable:u,formitem:c,dataIndex:m,...p}=e,g=F.useRef(),y=()=>{const S=u?c&&c.props&&c.props.disabled:!0;if(!S&&l)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(S&&l)return{fontWeight:"400"};if(!S&&!l)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(S&&!l)return{fontWeight:"400"}},x=Br({resizing:!1}),[E,k]=F.useState(0);F.useEffect(()=>{document.querySelectorAll(".react-resizable .react-resizable-handle").forEach(f=>f.addEventListener("click",h=>!1))},[]);const[T,w]=F.useState(0);return!i||m==="id"?D.jsx("th",{...p,onClick:s,style:{...p.style,...y()},onKeyDown:()=>{},className:`${p.className} ${l?"frontend-table-column-required":""}`}):D.jsx(lq.Resizable,{axis:"x",width:i+T,height:0,handle:D.jsx("span",{onClick:S=>{S.stopPropagation(),S.preventDefault()},className:Te(["react-resizable-handle",T&&"active"])}),onResize:(S,{size:f,...h})=>{const v=document.getElementById("table-resize-handle");if(v){const _=document.getElementById(`table_key_${e.tableKey}`);S.pageX>_.getBoundingClientRect().left+_.getBoundingClientRect().width||S.pageX<_.getBoundingClientRect().left?v.style.width="0px":(v.style.width="1px",v.style.background="#0563B2",v.style.zIndex="9999",v.style.top=`${h.node.getBoundingClientRect().top}px`,v.style.position="fixed",v.style.height=`${n}px`,v.style.left=`${S.pageX}px`)}t(S),x.resizing=!0,w(f.width-i)},onResizeStop:(...S)=>{var f;S[0].stopPropagation(),(f=document.getElementById("table-resize-handle"))==null||f.remove(),r(),w(0),a(...S),setTimeout(()=>{x.resizing=!1})},onResizeStart:S=>{document.getElementById(`table_key_${e.tableKey}`);const f=document.createElement("div");f.id="table-resize-handle",document.body.appendChild(f),x.resizing=!0,S.stopPropagation()},draggableOpts:{enableUserSelectHack:!1},children:D.jsx("th",{ref:g,onClick:(...S)=>{!x.resizing&&s&&s(...S)},...p,style:{...p.style,...y()},onKeyDown:()=>{},className:`${p.className} ${l?"frontend-table-column-required":""}`})})};function Ql(){return Ql=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ql.apply(this,arguments)}function e4(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var t4=F.createContext({});function dq(){return F.useContext(t4)}var fq=function(t){return F.createElement(t4.Provider,{value:t.refTracker},t.children)};function hq(){var e=new Map;return{on:function(r,n){var a;return e.has(r)?(a=e.get(r))==null||a.add(n):e.set(r,new Set([n])),this},off:function(r,n){return n?e.get(r).delete(n):e.delete(r),this},emit:function(r,n){if(process.env.NODE!=="production"){var a=r;!e.has(r)&&a!==0&&console.error("It seems that the menu you are trying to display is not renderer or you have a menu id mismatch.","You used the menu id: "+r)}return e.has(r)&&e.get(r).forEach(function(i){i(n)}),this}}}var Bf=hq();function pq(e){var t=F.useRef();return F.useEffect(function(){t.current=e},[e]),t.current}function mq(){return F.useRef(new Map).current}var wx={show:function(t){var r=t.id,n=t.event,a=t.props,i=t.position;n.preventDefault&&n.preventDefault(),Bf.emit(0).emit(r,{event:n.nativeEvent||n,props:a,position:i})},hideAll:function(){Bf.emit(0)}};function gq(e){return{show:function(r,n){process.env.NODE_ENV==="development"&&!(e!=null&&e.id)&&!(n!=null&&n.id)&&console.error("You need to provide an id when initializing the hook `useContextMenu({ id: 'your id' })` or when you display the menu `show(e, { id: 'your id' })`. The later is used to override the one defined during initialization."),wx.show({id:(n==null?void 0:n.id)||(e==null?void 0:e.id),props:(n==null?void 0:n.props)||(e==null?void 0:e.props),event:r,position:n==null?void 0:n.position})},hideAll:function(){wx.hideAll()}}}function vq(){var e=new Map,t,r,n,a,i=!1;function s(E){a=E,t=-1,n=!0}function l(){a[t].node.focus()}function u(){return t>=0&&a[t].isSubmenu}function c(){return Array.from(a[t].submenuRefTracker.values())}function m(){return t===-1?(p(),!1):!0}function p(){t+1<a.length?t++:t+1===a.length&&(t=0),i&&x(),l()}function g(){t===-1||t===0?t=a.length-1:t-1<a.length&&t--,i&&x(),l()}function y(){if(m()&&u()){var E=c(),k=a[t].node;return e.set(k,{isRoot:n,focusedIndex:t,parentNode:r||k,items:a}),k.classList.add("react-contexify__submenu--is-open"),r=k,E.length>0?(t=0,a=E):i=!0,n=!1,l(),!0}return!1}function x(){if(m()&&!n){var E=e.get(r),k=E.isRoot,T=E.items,w=E.focusedIndex,S=E.parentNode;r.classList.remove("react-contexify__submenu--is-open"),a=T,r=S,k&&(n=!0,e.clear()),i||(t=w,l())}}return{init:s,moveDown:p,moveUp:g,openSubmenu:y,closeSubmenu:x}}var y1=function(){};function r4(e){return typeof e=="function"}function n4(e){return typeof e=="string"}function bq(e){return e.type==="touchend"}function yq(e,t){return F.Children.map(F.Children.toArray(e).filter(Boolean),function(r){return F.cloneElement(r,t)})}function _q(e){var t={x:0,y:0};return bq(e)&&e.changedTouches&&e.changedTouches.length>0?(t.x=e.changedTouches[0].clientX,t.y=e.changedTouches[0].clientY):(t.x=e.clientX,t.y=e.clientY),(!t.x||t.x<0)&&(t.x=0),(!t.y||t.y<0)&&(t.y=0),t}function xx(e,t){return r4(e)?e(t):e}function wq(e){return!!(e&&(n4(e)||"exit"in e&&e.exit))}function xq(e,t){return r4(t)?Ql({},e,t(e)):Ql({},e,t)}var Sq=function(t){var r,n=t.id,a=t.theme,i=t.style,s=t.className,l=t.children,u=t.animation,c=u===void 0?"scale":u,m=t.onHidden,p=m===void 0?y1:m,g=t.onShown,y=g===void 0?y1:g,x=e4(t,["id","theme","style","className","children","animation","onHidden","onShown"]),E=F.useReducer(xq,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),k=E[0],T=E[1],w=F.useRef(null),S=F.useRef(!1),f=pq(k.visible),h=mq(),v=F.useState(function(){return vq()}),_=v[0];F.useEffect(function(){return S.current=!0,Bf.on(n,R).on(0,C),function(){Bf.off(n,R).off(0,C)}},[n]),F.useEffect(function(){S.current&&k.visible!==f&&(k.visible?y():p())},[k.visible,p,y]),F.useEffect(function(){k.visible?_.init(Array.from(h.values())):h.clear()},[k.visible,_,h]),F.useEffect(function(){if(k.visible){var H=window,q=H.innerWidth,J=H.innerHeight,re=w.current,ne=re.offsetWidth,se=re.offsetHeight,ce=k.x,le=k.y;ce+ne>q&&(ce-=ce+ne-q),le+se>J&&(le-=le+se-J),T({x:ce,y:le})}},[k.visible]),F.useEffect(function(){function H(q){switch(q.preventDefault(),q.key){case"Enter":_.openSubmenu()||C();break;case"Escape":C();break;case"ArrowUp":_.moveUp();break;case"ArrowDown":_.moveDown();break;case"ArrowRight":_.openSubmenu();break;case"ArrowLeft":_.closeSubmenu();break}}return k.visible&&(window.addEventListener("resize",C),window.addEventListener("contextmenu",C),window.addEventListener("click",C),window.addEventListener("scroll",C),window.addEventListener("keydown",H),process.env.NODE_ENV!=="development"&&window.addEventListener("blur",C)),function(){window.removeEventListener("resize",C),window.removeEventListener("contextmenu",C),window.removeEventListener("click",C),window.removeEventListener("scroll",C),window.removeEventListener("keydown",H),process.env.NODE_ENV!=="development"&&window.removeEventListener("blur",C)}},[k.visible,_]);function R(H){var q=H.event,J=H.props,re=H.position;q.stopPropagation();var ne=re||_q(q),se=ne.x,ce=ne.y;setTimeout(function(){T({visible:!0,willLeave:!1,x:se,y:ce,triggerEvent:q,propsFromTrigger:J})},0)}function C(H){var q=H;typeof q<"u"&&(q.button===2||q.ctrlKey===!0)&&q.type!=="contextmenu"||(wq(c)?T(function(J){return{willLeave:J.visible}}):T(function(J){return{visible:J.visible?!1:J.visible}}))}function P(){k.willLeave&&k.visible&&T({visible:!1,willLeave:!1})}function M(){if(!c)return null;if(n4(c)){var H;return bs((H={},H["react-contexify__will-enter--"+c]=c&&U&&!I,H["react-contexify__will-leave--"+c+" react-contexify__will-leave--'disabled'"]=c&&U&&I,H))}else if("enter"in c&&"exit"in c){var q;return bs((q={},q["react-contexify__will-enter--"+c.enter]=c.enter&&U&&!I,q["react-contexify__will-leave--"+c.exit+" react-contexify__will-leave--'disabled'"]=c.exit&&U&&I,q))}return null}var U=k.visible,L=k.triggerEvent,N=k.propsFromTrigger,j=k.x,O=k.y,I=k.willLeave,z=bs("react-contexify",s,(r={},r["react-contexify__theme--"+a]=a,r),M()),B=Ql({},i,{left:j,top:O,opacity:1});return F.createElement(fq,{refTracker:h},U&&F.createElement("div",Object.assign({},x,{className:z,onAnimationEnd:P,style:B,ref:w,role:"menu"}),yq(l,{propsFromTrigger:N,triggerEvent:L})))},Sx=function(t){var r,n=t.children,a=t.className,i=t.style,s=t.triggerEvent,l=t.data,u=t.propsFromTrigger,c=t.onClick,m=c===void 0?y1:c,p=t.disabled,g=p===void 0?!1:p,y=t.hidden,x=y===void 0?!1:y,E=e4(t,["children","className","style","triggerEvent","data","propsFromTrigger","onClick","disabled","hidden"]),k=dq(),T={data:l,triggerEvent:s,props:u},w=xx(g,T),S=xx(x,T);function f(R){T.event=R,w?R.stopPropagation():m(T)}function h(R){R&&!w&&k.set(R,{node:R,isSubmenu:!1})}function v(R){R.key==="Enter"&&(T.event=R,m(T))}if(S)return null;var _=bs("react-contexify__item",a,(r={},r["react-contexify__item--disabled"]=w,r));return F.createElement("div",Object.assign({},E,{className:_,style:i,onClick:f,onKeyDown:v,ref:h,tabIndex:-1,role:"menuitem","aria-disabled":w}),F.createElement("div",{className:"react-contexify__item__content"},n))};const Cq="_box_1hwl6_2",Eq="_transferSearch_1hwl6_2",kq="_searchBtn_1hwl6_10",Tq="_shuttle_box_1hwl6_44",Oq="_leftSearch_1hwl6_58",Aq="_noBeforeAfter_1hwl6_62",Rq="_rightSearch_1hwl6_78",Pq="_transfer_1hwl6_2",Wa={box:Cq,transferSearch:Eq,searchBtn:kq,shuttle_box:Tq,leftSearch:Oq,noBeforeAfter:Aq,rightSearch:Rq,transfer:Pq},Dq="_content_1tmh1_1",Mq={content:Dq},a4=F.forwardRef((e,t)=>{const{panes:r,loading:n,defaultActiveKey:a,onTabClick:i}=e,[s,l]=F.useState(a),{TabPane:u}=Z.Tabs;return n?D.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:D.jsx(Ls,{})}):(F.useImperativeHandle(t,()=>({active:c=>{(i==null?void 0:i(c))!==!1&&l(c)}}),[s]),D.jsx("div",{className:`${Mq.content} ${e.className??""}`,children:n?D.jsx("div",{style:{padding:"10px"}}):r.length?D.jsx(Z.Tabs,{animated:!1,activeKey:s,destroyInactiveTabPane:!0,tabBarGutter:30,onTabClick:c=>{(i==null?void 0:i(c))!==!1&&l(c)},children:(r||[]).map((c,m)=>D.jsx(u,{tab:D.jsxs("div",{style:{display:"flex",alignItems:"center",paddingBottom:"2px"},children:[c.icon&&D.jsx(He,{style:{marginRight:"5px",fontSize:"16px"},type:`${c.icon}`}),D.jsx("div",{style:{fontSize:"12px",lineHeight:"18px"},children:c.tab})]}),children:D.jsx("div",{style:{padding:"0px"},children:F.Children.map(e.children,p=>{var g;return((g=p==null?void 0:p.props)==null?void 0:g["data-key"])==c.tabKey?p:null})})},`${c.tabKey}`))}):D.jsx(D.Fragment,{})}))}),Fq=F.forwardRef((e,t)=>{var B;const r=e.defaultValue?Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue]:[],n=e.defaultActiveKey||"",[a,i]=F.useState(!1),[s,l]=F.useState(),[u,c]=F.useState(r),[m,p]=F.useState([]),[g,y]=F.useState(n),[x,E]=F.useState({[n]:{left:1,right:1}}),[k,T]=F.useState({[n]:{left:0,right:0}}),[w,S]=F.useState(""),[f,h]=F.useState({right:"",left:""}),[v,_]=F.useState(!1),[R,C]=F.useState({});F.useEffect(()=>{c(r),y(n),E({[n]:{left:1,right:1}})},[e.defaultActiveKey,e.defaultValue]),F.useEffect(()=>{a?j():(c(r),l(void 0),y(n),E({[n]:{left:1,right:1}}),S(""),h({right:"",left:""}),C({}))},[a]);const P=xn(f),M=xn(x),U=xn(g),L=xn(k),N=F.useMemo(()=>{const H=()=>{var q;return s||((q=e.allListOptions)==null?void 0:q[U.current])||[]};return ie.uniqBy([...H(),...m],"id")},[U,g,e.allListOptions,s,m]),j=async H=>{_(!0),await e.getListCodeItem(Object.assign({search:P.current,tabKey:U.current,pageNo:M},ie.omit(H||{},"isPaging"))).then(q=>{q&&(H!=null&&H.isPaging?l([...N,...q]):l([...q]),T(Object.assign({},L.current,{[U.current]:{left:q.total||q.length,right:0}})))}).finally(()=>{_(!1)})};F.useEffect(()=>{p(N.filter(H=>u.includes(H.id)))},[u]);const O=async()=>{var H,q;if(e.mandatory&&!u.length)return Z.message.error(`${Y("sys.mustSelect.mustSelect",{placeholder:"必须选择"})}${(H=e.attr)==null?void 0:H.name}`);(q=R.ok)==null||q.call(R,[...u],g,m),i(!1)};F.useImperativeHandle(t,()=>({open(H){C(()=>H),i(!0)},submit:O,dataSource:N,targetKeys:u,loading:v}),[N,u,v]);const I=H=>{H=="left"?j():S(P.current.right)},z=F.useMemo(()=>{var H;return Array.isArray(e.columns)?e.columns:((H=e.columns)==null?void 0:H[g])||[]},[e.columns,g]);return D.jsx(To,{className:Wa.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:Y("project.tab.plan.details.window.save",{placeholder:"保存"}),width:e.modalWidth||650,visible:a,mask:!1,onOk:O,onCancel:()=>{var H;(H=R.cancel)==null||H.call(R),i(!1)},children:D.jsx("div",{className:Wa.transferBox,children:D.jsx(Ls,{spinning:v,children:D.jsx(Z.Transfer,{...e.transfer||{},className:`${Wa.transfer} ${((B=e.transfer)==null?void 0:B.className)??""}`,dataSource:N,targetKeys:u,onChange:(H,q,J)=>{q=="right"?c([...e.isRadio?J:H]):c([...H])},rowKey:H=>H.id,children:H=>{var Le,he,qe,oe,De,Je,Ct,Et;const{direction:q,filteredItems:J,onItemSelectAll:re,onItemSelect:ne,selectedKeys:se,showSearch:ce}=H,le=q=="left",ye=!le,we={onSelectAll(Fe,We){if(e.isRadio)return;const Ne=We.filter(at=>!at.disabled).map(({id:at})=>at),Oe=Fe?ie.difference(Ne,se):ie.difference(se,Ne);re(Oe,Fe)},onSelect({id:Fe},We){e.isRadio&&se.splice(0,1),ne(Fe,We)},getCheckboxProps:Fe=>({disabled:Fe.Number&&!Sn.readPermission(Fe.Number)?!0:le?Fe.disabled:!1}),selectedRowKeys:se,columnWidth:13};(Le=e==null?void 0:e.pager)!=null&&Le[g];const Ee=()=>le?J:J.filter(Fe=>Fe.label.includes(w)||Fe.Description.includes(w));return D.jsxs("div",{className:Wa.box,style:e.scroll?{width:"360px"}:{},children:[le&&e.panes&&((he=e.panes)==null?void 0:he.length)!=1?D.jsx(a4,{panes:e.panes,defaultActiveKey:g,onTabClick:Fe=>{var Ne;y(Fe),(Ne=e.onTabsChange)==null||Ne.call(e,Fe);const We={...f,[q]:""};h(We),M.current[Fe]||E(Object.assign({},M.current,{[Fe]:{left:1,right:1}})),j({tabKey:Fe,search:We})}}):null,ce?D.jsx("div",{style:e.scroll?{padding:"12px",borderLeft:"1px solid #E0E0E0",borderTop:"1px solid #E0E0E0",borderRight:"1px solid #E0E0E0"}:{padding:"0px"},children:D.jsx("div",{className:`${e.scroll?Wa.noBeforeAfter:""} ${Wa.transferSearch} ${le&&((qe=e.panes)!=null&&qe.length)?Wa.leftSearch:(oe=e.panes)!=null&&oe.length?Wa.rightSearch:""}`,style:e.scroll?{margin:"0px"}:{},children:D.jsx(Z.Input.Search,{placeholder:e.placeholder||Y("sys.nameOrDescription.enterNameOrDescription",{placeholder:"请输入名称或描述"}),enterButton:null,value:f[q],onChange:Fe=>{Fe.persist();const We=Fe.target.value;h({...f,[q]:We}),ye&&(We||S(""))},onSearch:I.bind(null,q),suffix:D.jsx("div",{className:Wa.searchBtn,onClick:I.bind(null,q),children:D.jsx(He,{type:"homesearch"})})})})}):null,D.jsx(xh,{rowSelection:{type:"checkbox",fixed:!0,...we},columns:z,showSorterTooltip:!1,hideFooter:!0,pagination:!1,dataSource:Ee(),scroll:{x:((De=e.scroll)==null?void 0:De.x)||300,y:((Je=e.scroll)==null?void 0:Je.y)||(le&&((Ct=e.panes)!=null&&Ct.length)?270:316)},style:{height:"100%"},pageNo:x[g][q],pageSize:le?20:void 0,total:le?(Et=k==null?void 0:k[g])==null?void 0:Et[q]:void 0,size:"small",onScroll:Fe=>{const We={...x,[g]:{...x[g],[q]:Fe}};E(We),le&&j({pageNo:We[g],isPaging:!0})},onRow:({id:Fe,disabled:We,...Ne})=>({onClick:()=>{if(!We&&le){if(e.isRadio&&se.splice(0,1),!Sn.readPermission(Ne.Number))return;ne(Fe,!se.includes(Fe))}},onDoubleClick:()=>{if(Sn.readPermission(Ne.Number)){if(le)We||(e.isRadio?c([Fe]):c([Fe,...u]));else{for(let Oe=0;Oe<u.length;Oe++)if(u[Oe]==Fe){u.splice(Oe,1);break}c([...u])}re([],!1)}}})}),e.showFooter?D.jsxs("div",{style:{marginTop:"4px"},children:[D.jsx("span",{style:{color:"#999999"},children:Y("sys.selected",{placeholder:"已选"})})," ",D.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:se.length})," ",D.jsx("span",{style:{color:"#999999"},children:Y("project.tab.plan.criticalPath.window.item",{placeholder:"条"})}),",",D.jsx("span",{style:{color:"#999999"},children:Y("project.tab.plan.criticalPath.window.total",{placeholder:"共"})})," ",D.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:ye?u.length:k[g][q]}),D.jsxs("span",{style:{color:"#999999"},children:[" ",Y("project.tab.plan.criticalPath.window.item",{placeholder:"条"})]})]}):D.jsx(D.Fragment,{})]})}})})})})}),i4=F.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{var x,E;const i=F.useRef(null),{attr:s,allListOptions:l,popoverTransfer:u}=e,c=yo(()=>{var k;(k=i.current)==null||k.open({ok:(T,w,S)=>{var f,h;["multiple","tags"].includes(e.mode)?r==null||r(T):r==null||r(T[0]),(f=u==null?void 0:u.onSubmit)==null||f.call(u,T,w,v=>p({newVal:T,allOptions:v}),S),(h=e.onBlur)==null||h.call(e)},cancel:()=>{var T;(T=e.onBlur)==null||T.call(e)}})});F.useImperativeHandle(a,()=>({focus:c}),[]);const m=F.useMemo(()=>{var T;const k=((T=u==null?void 0:u.panes)==null?void 0:T.map(w=>w.tabKey))||[String(s==null?void 0:s.listCode)];return Object.entries(l||{}).map(([w,S])=>k.includes(w)?S:[]).flat(1)},[s,l,u==null?void 0:u.panes]),p=yo(({allOptions:k,newVal:T})=>{var f;const w=((f=u==null?void 0:u.panes)==null?void 0:f.map(h=>h.tabKey))||[s==null?void 0:s.listCode];let S=[];return Object.entries(k||l||{}).some(([h,v])=>{if(w.includes(h))return v.some(_=>{if(T&&(T==null?void 0:T.length)>1)return T.includes(_.value)&&!S.includes(h)&&S.push(h),!1;{const R=_.value==((T==null?void 0:T[0])||t);return R&&(S=[h]),R}})}),S.filter(Boolean).join(",")}),g=F.useMemo(()=>{var T;const k=((T=u==null?void 0:u.panes)==null?void 0:T.map(w=>w.tabKey))||[s==null?void 0:s.listCode];return k.length==1?k[0]:p({}).split(",")[0]},[t,l,u==null?void 0:u.panes]),y=F.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return D.jsxs("div",{children:[D.jsx(ho,{...e,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:y,filterOption:(k,T)=>T.label&&T.label.indexOf(k)>=0,showSearch:!0,disabled:n,options:m.map(k=>({...k,label:Sn.readPermission(k.label)?k.label:Y("sys.noPermission",{placeholder:"无权限"})})),allowClear:!0,optionLabelProp:"label",open:!1,onChange:k=>{["multiple","tags"].includes(e.mode)?r==null||r(k):k&&k instanceof Array?r==null||r(k[0]):r==null||r("")},tagRender:({label:k})=>Sn.readPermission(k)?D.jsx(Z.Tag,{color:"#0563B2",children:k}):D.jsx(pa,{}),onDropdownVisibleChange:c,onClear:()=>{["multiple","tags"].includes(e.mode)?r==null||r(""):r==null||r([])}}),D.jsx(Fq,{title:`${Y("project.tab.plan.transfer.title",{placeholder:"选择"})}${s.name}`,...Object.assign(Object.create(null),u),ref:i,attr:s,defaultActiveKey:g||((E=(x=u==null?void 0:u.panes)==null?void 0:x[0])==null?void 0:E.tabKey)||"",defaultValue:y,allListOptions:l})]})}),Nq="_shuttle_box_1962p_1",Iq="_box_1962p_5",Lq="_search_1962p_8",Ld={shuttle_box:Nq,box:Iq,search:Lq};function Cx(e){const t=F.useRef(!1),r=F.useRef({}),n=u=>{if(typeof e=="function"){const c=e();return!u&&(r.current=c),Object.assign(Object.create(null),c)}else{const c=e;return!u&&(r.current=c),Object.assign(Object.create(null),e)}},[a,i]=F.useState(n(!0));F.useEffect(()=>(typeof e=="function"?r.current=e():r.current=e,t.current=!1,()=>{t.current=!0}),[]);const s=u=>{if(!t.current)if(typeof u=="function"){const c=Object.assign(Object.create(null),u(a)||a);r.current=c,i(c)}else{const c=Object.assign(Object.create(null),r.current,u);r.current=c,i(c)}},l=()=>i(n());return vt.makeDestructurable({store:a,setStore:s,resetStore:l,latestStore:r},[a,s,l,r])}const o4=F.forwardRef((e,t)=>{var k,T,w,S;e.defaultValue&&(Array.isArray(e.defaultValue)?e.defaultValue:e.defaultValue);const r=e.rowKey||"id",n=!((k=e.attr)!=null&&k.allowMultiple),a=!!((T=e.attr)!=null&&T.required),{store:i,setStore:s,resetStore:l,latestStore:u}=Cx(()=>({visible:!1,search:"",sorters:"",filters:"",loading:!1,dataSource:[],selectedRows:[],callback:()=>{}})),c=Cx(()=>({pageNo:1,pageSize:50,total:0})),m=async f=>{s({loading:!0});try{const{data:h,total:v}=await e.getDataSource({search:u.current.search,sorters:u.current.sorters,filters:u.current.filters,...c.latestStore.current,record:e.record});s(f?{dataSource:[...i.dataSource,...h]}:{dataSource:h}),c.setStore({total:v})}catch(h){console.log(h)}finally{s({loading:!1})}},p=F.useMemo(()=>i.selectedRows.map(f=>f[r]),[i.selectedRows]);F.useEffect(()=>{i.visible?m().finally(()=>{}):(l(),c.resetStore())},[i.visible]);const g=yo(async f=>{var h,v,_;if(a&&!f&&!i.selectedRows.length){Z.message.error(Y("project.attr.edit.roleOrOwner.msg",{placeholder:"请选择{name}",variate:{name:(h=e.attr)==null?void 0:h.name}}));return}(_=(v=u.current.callback).ok)==null||_.call(v,f?[f[r]]:p),s({visible:!1})});F.useImperativeHandle(t,()=>({open(f){s({callback:f,visible:!0})},submit:g,dataSource:i.dataSource,loading:i.loading}),[i.dataSource,i.loading]);const y=()=>{m()},x={onSelectAll(f,h){n||s({selectedRows:h})},onSelect(f,h){n?h?s({selectedRows:[f]}):a||s({selectedRows:[]}):s(h?{selectedRows:[...i.selectedRows,f]}:{selectedRows:i.selectedRows.filter(v=>v[r]!=f[r])})},getCheckboxProps:f=>({disabled:!1}),selectedRowKeys:p,columnWidth:13},E=F.useMemo(()=>e.generateColumns(u),[e.generateColumns]);return F.useEffect(()=>{const f=ie.debounce(h=>{(h.keyCode||h.which)==13&&u.current.visible&&h.target.dataset.search!="true"&&g()},200);return window.addEventListener("keyup",f),()=>{window.removeEventListener("keyup",f)}},[]),D.jsx(To,{className:Ld.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:Y("project.tab.plan.details.window.save",{placeholder:"保存"}),styleUnify:!0,width:e.modalWidth||660,visible:i.visible,mask:!1,onOk:g,onCancel:()=>{var f,h;s({visible:!1}),(h=(f=u.current.callback).cancel)==null||h.call(f)},footer:null,children:D.jsx("div",{onScroll:f=>f.stopPropagation(),onScrollCapture:f=>f.stopPropagation(),children:D.jsx(Ls,{spinning:i.loading,children:D.jsxs("div",{className:Ld.box,children:[D.jsx("div",{children:D.jsx("div",{className:`${Ld.search}`,children:D.jsx(Z.Input.Search,{placeholder:Y("sys.prompt.enterName",{placeholder:"请输入姓名"}),enterButton:null,"data-search":!0,...e.searchProps,suffix:D.jsx("div",{className:Ld.searchBtn,onClick:y,children:D.jsx(He,{type:"homesearch"})}),value:i.search,onChange:f=>s({search:f.target.value}),onSearch:y})})}),D.jsx(xh,{rowSelection:{type:"checkbox",fixed:!0,...x},columns:E,showSorterTooltip:!1,dataSource:i.dataSource,scroll:{x:(w=e.scroll)==null?void 0:w.x,y:((S=e.scroll)==null?void 0:S.y)||300},style:{height:"100%"},...c.store,size:"small",onScroll:f=>{c.setStore({pageNo:f}),m(!0)},onFilterAndSorter:(f,h)=>{s({sorters:f,filters:h}),m()},onRow:(f,...h)=>({onClick:()=>{console.log(f,h,"FFFFFFFFFFFF")},onDoubleClick:()=>{g(f)}})})]})})})})}),s4=F.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{const i=F.useRef(null),{attr:s,allListOptions:l,selectPopupProps:u,record:c}=e,m=yo(()=>{var y;(y=i.current)==null||y.open({ok:x=>{var E,k,T;["multiple","tags"].includes(e.mode)?(r==null||r(x),(E=e.onChange)==null||E.call(e,x,l[s.listCode]||[])):((k=e.onChange)==null||k.call(e,x[0],l[s.listCode]||[]),r==null||r(x[0])),(T=e.onBlur)==null||T.call(e)},cancel:()=>{var x;(x=e.onBlur)==null||x.call(e)}})});F.useImperativeHandle(a,()=>({focus:m}),[]);const p=F.useMemo(()=>ie.omit(e,["popoverProps","attr","allListOptions"]),[e]),g=F.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return D.jsxs("div",{children:[D.jsx(ho,{...p,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:g,filterOption:(y,x)=>x.label&&x.label.indexOf(y)>=0,showSearch:!0,disabled:n,options:l[s.listCode]||[],allowClear:e.allowClear==null?!0:e.allowClear,optionLabelProp:"label",open:!1,loading:e.loading,onDropdownVisibleChange:m}),D.jsx(o4,{title:`${Y("project.tab.plan.transfer.title",{placeholder:"选择"})}${s.name}`,...Object.assign(Object.create(null),u),ref:i,attr:s,record:c,defaultValue:g})]})}),sg=[null,(e,t)=>(e=ve(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()<e.valueOf()),(e,t)=>(e=ve(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()<=e.valueOf()),(e,t)=>(e=ve(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()>e.valueOf()),(e,t)=>(e=ve(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()>=e.valueOf()),(e,t)=>t.valueOf()==e.valueOf()];function jq(e,t){const r=n=>{var i;if(!n.date||!n.type)return n.isWorkTime?!n.isWorkTime({date:new Date(t.valueOf())}):!1;const a=ve(n.date);return((i=sg[n.type])==null?void 0:i.call(sg,a,ve(t)))||(n==null?void 0:n.isWorkTime)&&!n.isWorkTime({date:new Date(t.valueOf())})};return Array.isArray(e)?e.map(a=>r(a)).some(a=>a):r(e)}const Ex={dem:"3Shape DCM (*.dcm)",sat:"ACIS (*.sat;*.asat;*.sab;*.asab)",sab:"ACIS (*.sat;*.asat;*.sab;*.asab)",asab:"ACIS (*.sat;*.asat;*.sab;*.asab)",pd:"Cadds (_pd;*._pd)",zip:"zip",model:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",exp:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",CATDrawing:"Catia V5 2D (*.CATDrawing)",CATPart:"Catia V5 3D (*.CATPart;*.CATProduct)",CATProduct:"Catia V5 3D (*.CATPart;*.CATProduct)","3dxml":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",art:"Cercon (*.art)",sdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",idt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cgr:"CGR (*.cgr)",ol:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",ed:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",edz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvs:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",dwg:"DWG 2D (*.dwg)",dxf:"DWG/DXF 3D (*.dwg;*.dxf)",fbx:"FBX (*.fbx)",f3d:"Fusion 360 (*.f3d)",ifc:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifexml:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifezip:"IFC (*.ifc;*.ifcxml;*.ifczip)",igs:"IGES 3D (*.igs;*.iges)",iges:"IGES 3D (*.igs;*.iges)",jt:"JT (*.jt)",nwd:"Navisworks (*.nwd)",obj:"OBJ (*.obj)",xmt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_t:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_b:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_txt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_bin:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",plmxml:"PLM XML (*.plmxml)","03s":"Procera (*.c3s)",drw:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",xpr:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",asm:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",xas:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",rvt:"Revit (*.rvt;*.rfa)",rfa:"Revit (*.rvt;*.rfa)","3dm":"Rhino (*.3dm)",rf:"Robface (*.rf)",smg:"SMG (*.smg;*.smggeom)",smggeom:"SMG (*.smg;*.smggeom)",dft:"Solid Edge 2D (*.dft)",par:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",psm:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",pwd:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",slddrw:"SolidWorks 2D (*.slddrw)",sldprt:"SolidWorks 3D (*.sldprt;*.sldasm)",sldasm:"SolidWorks 3D (*.sldprt;*.sldasm)",step:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stp:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpx:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpxz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpnc:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stl:"STL (*.stl)",prt:"UG NX 3D (*.prt)",vda:"VDAFS (*.vda)","03S":"Procera (*.c3s)","3DM":"Rhino (*.3dm)","3DXML":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",ART:"Cercon (*.art)",ASAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",ASM:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",CATDRAWING:"Catia V5 2D (*.CATDrawing)",CATPART:"Catia V5 3D (*.CATPart;*.CATProduct)",CATPRODUCT:"Catia V5 3D (*.CATPart;*.CATProduct)",CDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",CGR:"CGR (*.cgr)",DEM:"3Shape DCM (*.dcm)",DFT:"Solid Edge 2D (*.dft)",DLV:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DLV3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DRW:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",DWG:"DWG 2D (*.dwg)",DXF:"DWG/DXF 3D (*.dwg;*.dxf)",ED:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EDZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EXP:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",F3D:"Fusion 360 (*.f3d)",FBX:"FBX (*.fbx)",IDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",IFC:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEXML:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEZIP:"IFC (*.ifc;*.ifcxml;*.ifczip)",IGES:"IGES 3D (*.igs;*.iges)",IGS:"IGES 3D (*.igs;*.iges)",JT:"JT (*.jt)",MODEL:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",NWD:"Navisworks (*.nwd)",OBJ:"OBJ (*.obj)",OL:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PAR:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PD:"Cadds (_pd;*._pd)",PLMXML:"PLM XML (*.plmxml)",PRT:"UG NX 3D (*.prt)",PSM:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PVS:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PVZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PWD:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",RF:"Robface (*.rf)",RFA:"Revit (*.rvt;*.rfa)",RVT:"Revit (*.rvt;*.rfa)",SAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",SAT:"ACIS (*.sat;*.asat;*.sab;*.asab)",SDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",SLDASM:"SolidWorks 3D (*.sldprt;*.sldasm)",SLDDRW:"SolidWorks 2D (*.slddrw)",SLDPRT:"SolidWorks 3D (*.sldprt;*.sldasm)",SMG:"SMG (*.smg;*.smggeom)",SMGGEOM:"SMG (*.smg;*.smggeom)",STL:"STL (*.stl)",STEP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPNC:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPX:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPXZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",VDA:"VDAFS (*.vda)",XAS:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",XMT:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",XPR:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)"},$q=F.forwardRef((e,t)=>{const r=F.useRef(),n=["Input","Input.TextArea","Number","CompositeForm"],a=["Select","Date","Cascader","TreeSelect","DatePicker.RangePicker","Image","File"],i=e.formprops.type;F.useImperativeHandle(t,()=>({focusFormItem:()=>{var u;i!=="File"&&i!=="Image"&&((u=r.current)==null||u.focus())},blurFormItem:()=>{var u;i!=="File"&&i!=="Image"&&((u=r.current)==null||u.blur())}}));const s=F.useMemo(()=>{var m,p;const u=g=>(g==null?void 0:g.closest(wh))||document.body||document.documentElement;(m=e==null?void 0:e.formprops)!=null&&m.props&&!e.formprops.props.getPopupContainer&&(e.formprops.props.getPopupContainer=u);let c={getPopupContainer:u};return n.includes(i)?c={...e.formprops.props,size:"small",onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()}}:a.includes(i)&&(c={...e.formprops.props,size:"small",onChange:((p=e.formprops)==null?void 0:p.props.mode)==="multiple"||e.formprops.props.treeCheckable?void 0:e.onSave,onBlur:e.onSave,onClick:g=>{g.stopPropagation()}}),e.formprops.formatFormProps?e.formprops.formatFormProps(c,e.record,e.apicode):c},[e.record,e.formprops,e.onSave]),l=()=>{var c;let u={...s};if(e.apicode==="NewVersion")return u.options&&u.options[e.record.insId][0]&&!((c=u.options[e.record.insId][0])!=null&&c.value)||u.options&&!u.options[e.record.insId][0]?(u={...u,onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()},onChange:void 0},D.jsx(Z.Input,{ref:r,...u})):D.jsx(Z.Select,{ref:r,filterOption:(m,p)=>p.label&&p.label.indexOf(m)>=0,showSearch:!0,allowClear:!0,...ie.assign(u,{options:ie.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?ie.uniqBy(u.options[e.record.insId],"value").map(m=>({label:m.label.replace(Y("sys.majorVersion",{placeholder:"大版本"}),"").replace(Y("sys.minorVersion",{placeholder:"小版本"}),""),value:m.value})):ie.uniqBy(u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[],"value")})});switch(i){case"Input":return D.jsx(Z.Input,{ref:r,...u});case"DatePicker.RangePicker":return D.jsx(Z.DatePicker.RangePicker,{...u});case"Select":if(e.apicode==="exchanger"||e.apicode==="NewLifePhase"||e.apicode==="NewVersion"||e.apicode==="ProblemVersion"){if(e.apicode==="NewLifePhase"&&u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>!g.noShow).map(g=>Fi.isChangeInstruction(g.itemcode)?{...g,disabled:g.sort<e.record.lifecycle.sort&&!["10007010","10007006","10007014"].includes(String(e.record.lifecycle.code))||!g.status}:Fi.isStatusChange(g.itemcode)?Fi.isFile(e.record.itemCode)?{...g,disabled:!g.status}:{...g,disabled:g.sort<=e.record.lifecycle.sort&&e.record.lifecycle.apicode!=="Obsolete"||!g.status||e.record.lifecycle.apicode==="Obsolete"&&g.apicode=="Obsolete"}:{...g,disabled:!g.status||g.code==10007022})),e.apicode==="ProblemVersion"&&u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>g.value!="Draft").map(g=>({...g}))),e.apicode==="exchanger"&&u.options&&u.options[Ex[e.record.extension]]){const g=u.options[Ex[e.record.extension]].map(y=>({label:y,value:y}));return D.jsx(Z.Select,{ref:r,filterOption:(y,x)=>x.label&&x.label.indexOf(y)>=0,showSearch:!0,allowClear:!0,...u,options:g})}return D.jsx(Z.Select,{ref:r,filterOption:(g,y)=>y.label&&y.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...ie.assign(u,{options:ie.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?ie.uniqBy(u.options[e.record.insId],"value").map(g=>({label:g.label.replace(Y("sys.majorVersion",{placeholder:"大版本"}),"").replace(Y("sys.minorVersion",{placeholder:"小版本"}),""),value:g.value})):ie.uniqBy(u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[],"value")})})}else{if(e.apicode==="AffectRevision")return u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>g.value.indexOf("(")==-1).map(g=>({...g}))),D.jsx(Z.Select,{ref:r,filterOption:(g,y)=>y.label&&y.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...ie.assign(u,{options:u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[]})});if(e.apicode==="NewStatus")return u.options.forEach(g=>{var y;!((y=e==null?void 0:e.record)!=null&&y.publishTime)&&(g.apicode==="Disable"||g.apicode==="Scrap")?g.disabled=!0:g.disabled=!1,(g.apicode==="Initial"||g.apicode==="Draft")&&(g.disabled=!0)}),D.jsx(Z.Select,{ref:r,filterOption:(g,y)=>y.label&&y.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...u});if(u!=null&&u.selectPopupProps)return D.jsx(s4,{ref:r,selectProps:{...u,record:e.record}});if(u!=null&&u.popoverTransfer||u!=null&&u.popoverTable)return D.jsx(i4,{ref:r,selectProps:u})}return D.jsx(Z.Select,{ref:r,filterOption:(g,y)=>y.label&&y.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...u});case"Cascader":return D.jsx(Z.Cascader,{ref:r,showSearch:{filter:(g,y)=>y.some(x=>x.label&&x.label.toLowerCase().indexOf(g.toLowerCase())>-1),matchInputWidth:!1},...u});case"Date":const m=e.record.forbiddenTime,p=m&&m[e.name];return D.jsx(Z.DatePicker,{ref:r,...u,disabledDate:p?g=>jq(m[e.name],g):void 0});case"Number":return D.jsx(Z.InputNumber,{ref:r,...u});case"Input.TextArea":return D.jsx(Z.Input.TextArea,{ref:r,...u});case"TreeSelect":return D.jsx(Z.TreeSelect,{ref:r,...u});case"CompositeForm":return D.jsx(hc,{...u});default:return D.jsx(Z.Input,{ref:r,...u})}};return D.jsx(Z.Form.Item,{noStyle:!0,name:e.name,children:l()})}),zq="_imgOuter_16ygq_1",Bq="_imgInner_16ygq_9",kx={imgOuter:zq,imgInner:Bq},u4=e=>D.jsx(Z.Image,{...e,src:e.src}),_1=e=>D.jsx("div",{className:kx.imgOuter,children:D.jsx(u4,{preview:!1,src:e.src,className:kx.imgInner,placeholder:D.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:D.jsx(He,{className:"rotate",style:{cursor:"pointer",color:"#0563b2"},type:"loading"})})})}),rt=class rt{static avoid0TypeConvert(t){return vt.avoid0TypeConvert(t)}static isEqual(t,r){function n(a){return ve.isMoment(a)?vt.momentToRawData(a):a??""}return t=n(t),r=n(r),ie.isNil(t)&&ie.isNil(r)||ie.isNaN(t)&&ie.isNaN(r)?!0:t instanceof Object?ie.isEqual(t,r):this.avoid0TypeConvert(t)==this.avoid0TypeConvert(r)}static getCellSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess&&!ie.isNil(t.inProcess[r])&&!ie.isNil(t.inProcess)&&rt.isEqual(t.inProcess[r],t[r]),i=t.newVal&&!ie.isNil(t.newVal[r])&&!ie.isNil(t.newVal)&&rt.isEqual(t.newVal[r],t[r]);return{hasOptType:n,hasInProcess:a,hasNewValue:i}}static getRowSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess?Object.keys(t.inProcess):[],i=t.newVal?Object.keys(t.newVal):[],s=a.map(u=>{const c=t.inProcess[u],m=t[u],p=rt.isEqual(c,m);return r==null||r("inProcess",u,p,c,m),p}).some(u=>!u),l=i.map(u=>{const c=t.newVal[u],m=t[u],p=rt.isEqual(c,m);return r==null||r("newVal",u,p,c,m),p}).some(u=>!u);return{hasOptType:n,hasInProcess:s,hasNewValue:l}}static isEmptyValue(t){return typeof t=="number"?!1:ie.isEmpty(t)}static sortAndFilterTable(t){const{tableColumns:r,originTableColumns:n,sortersField:a,tabInfo:i={}}=t;let{sorters:s,filters:l}=t;const u=Fi.isUser(i.itemCode||""),c=i.tab==="Delegate";if(u&&c&&l){const m=r.filter(g=>["ChangeCategory"].includes(g.apicode)).map(g=>g.dataIndex),p=ie.map(l.split("~!~"),g=>ie.split(g,"-")[0]);ie.includes(p,m[0])?l.split("~!~").map(g=>{if(m.includes(g.split("-")[0])){const y=g.split("-")[1].split(",");y&&Array.isArray(y)&&(ie.remove(y,x=>x==""||x==null),r.map(x=>(x.apicode==="Category"&&ie.forEach(x.formitem.props.options,E=>{ie.includes(y,E.itemCode)?E.isHidden=!1:E.isHidden=!0,y.length==0&&(E.isHidden=!1)}),x)))}}):r.map(g=>(g.apicode==="Category"&&ie.forEach(g.formitem.props.options,y=>{y.isHidden=!1}),g))}if(i.tab!=="History"){const m=r.filter(g=>g.dataFrom==="1").map(g=>g.dataIndex),p=r.filter(g=>g.dataFrom==="0"||g.dataFrom==="2").map(g=>g.dataIndex);if(s&&Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(s.split("-")[0])){const g=rt.getFixAttrFilterOrSortInfo({filterOrSort:s,attrs:n||r.map(y=>y.attr)});s=(g==null?void 0:g.value)||s}else m.includes(s.split("-")[0])?s=s?`attributes.${s}`:"":p.includes(s.split("-")[0])&&(s=s?`current.${s}`:"");if(l){const g=r.filter(y=>["OldVersion"].includes(y.apicode)).map(y=>y.dataIndex);l=l.split("~!~").map(y=>{if(console.log(y,"item"),g.includes(y.split("-")[0]))return`current.${y.split("-")[0]}-${y.split("-")[1]===Y("sys.label.draft",{placeholder:"草稿"})?"Draft":`${y.split("-")[1]} `}`;if(Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(y.split("-")[0])){const x=rt.getFixAttrFilterOrSortInfo({filterOrSort:y,attrs:n||r.map(E=>E.attr)});return(x==null?void 0:x.value)||l}if(m.includes(y.split("-")[0]))return y?`attributes.${y}`:"";if(p.includes(y.split("-")[0]))return y?`current.${y}`:""}).join("~!~")}}if(i.tab==="VersionRecord"&&n){const m=vt.transformArrayToMap(n,"apicode","id");s=s.replace("insVersionOrder",`attributes.${m.Revision}`),l=l.replace("insVersionOrder",`attributes.${m.Revision}`)}return{sorters:s,filters:l,sortersField:a}}static monitoringCol(t,r){var u;const n=()=>{};if(!t)return n;const a=(u=t.querySelector(".frontend-table-header"))==null?void 0:u.querySelector("colgroup");if(!a)return n;const i=a.querySelector(".frontend-table-selection-col"),s=t.querySelector(".frontend-table-body").querySelector("colgroup");let l=null;return i&&(l=new MutationObserver(async(c,m)=>{const[p]=c;if(p.type=="attributes"&&p.attributeName=="style"&&!i.inhibit&&!ie.isNil(r)){i.inhibit=!0;const g=r;if(g!=i.offsetWidth){const y=Number(g)-i.offsetWidth,x=a.children.length-2,E=ie.round(y/x,2);Array.from(a.children,(k,T)=>{const w=s.children[T];if(k==i)k.setAttribute("style",`width:${g}px;max-width:${g}px;`),w.setAttribute("style",`width:${g}px;max-width:${g}px;`);else if(T!=a.children.length-1){const S=k.style.width.replace("px","");k.setAttribute("style",`width:${Number(S)+E}px;`),w.setAttribute("style",`width:${Number(S)}px;`)}})}}else i.inhibit=!1}),l.observe(i,{attributeFilter:["style"]})),()=>{l==null||l.disconnect(),l=null}}static getFixAttrFilterOrSortInfo({filterOrSort:t,attrs:r}){let n,a;const i=t.indexOf("-");if(i!==-1?(n=t.substring(0,i),a=t.substring(i+1)):(n=t,a=""),Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(n)){const[s]=Object.entries(FIX_INS_TAbTABLE_COLUMNMAP).find(([l,u])=>n==u)||[];if(s){const l=vt.getAttrOf(r,s);if(l){l.apicode==="Version"&&(a=a===Y("sys.label.draft",{placeholder:"草稿"})?"Draft":`${a} `);const u=As.getAttributesMapId(l),c=As.isQuoteAttr(l)?"attributes":"current";return{apicode:s,id:u,attr:l,filterOrSortValue:a,prefix:c,value:`${c}.${u}-${a}`}}}}}};Tt(rt,"getTrulyHighlight",({formitem:t,highlight:r})=>{const n=["Input","Input.TextArea","Select","SelectTransfer","Date","Cascader","TreeSelect","Number"],i=(()=>{var l;return r&&r[0]?ie.isArray(r[0])&&t?(l=t.props)!=null&&l.treeCheckable||t.props.mode==="multiple"?rt.renderReadonlyItem({value:r[0],formitem:t}).split(","):rt.renderReadonlyItem({value:r[0],formitem:t}):ve.isMoment(r[0])?[ve(r[0]).format("YYYY-MM-DD")]:r:[]})()||[],s=n.includes(t==null?void 0:t.type)||!t;return{trulyHighlight:s?i:r||[],needTransform:s}}),Tt(rt,"wrapperHighLight",({highlight:t,formitem:r,value:n,originValue:a})=>{if(Sn.isMosaic(a))return D.jsx(pa,{});const{trulyHighlight:i,needTransform:s}=rt.getTrulyHighlight({highlight:t,formitem:r});return s?D.jsx(ei,{highlight:i,value:n}):n}),Tt(rt,"renderCacheCell",(t,r,n,a,i)=>{if(t.optType==="update"||t.optType==="replace"){if(t.newVal&&(t.newVal[r]||!ie.isNil(t.newVal[r])))if(rt.isEqual(t.newVal[r],t[r])){if(rt.isEqual(t.newVal[r],t[r]))return D.jsx("div",{style:{width:"100%"},children:D.jsx("div",{className:zn.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):rt.wrapperHighLight({originValue:t.newVal[r],value:rt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})})}else return D.jsxs("div",{style:{width:"100%"},children:[D.jsx("div",{className:zn.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):rt.wrapperHighLight({originValue:t.newVal[r],value:rt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),D.jsx("div",{className:zn.update_style,children:a?a({value:t[r],formitem:n,row:t}):rt.wrapperHighLight({originValue:t[r],value:rt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]});if(t.inProcess&&t.inProcess[r]!==void 0&&t.inProcess!==null&&!rt.isEqual(t.inProcess[r],t[r]))return D.jsxs("div",{style:{width:"100%"},children:[D.jsx("div",{className:zn.updated_redline_style,children:a?a({value:t.inProcess[r],formitem:n,row:t.inProcess}):rt.wrapperHighLight({originValue:t.inProcess[r],value:rt.renderReadonlyItem({value:t.inProcess[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),D.jsx("div",{className:zn.update_style,children:a?a({value:t[r],formitem:n,row:t}):rt.wrapperHighLight({originValue:t[r],value:rt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]})}return t.newVal&&t.newVal[r]!==void 0&&t.newVal!==null&&!rt.isEqual(t.newVal[r],t[r])?D.jsxs("div",{style:{width:"100%"},children:[D.jsx("div",{className:zn.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):rt.wrapperHighLight({originValue:t.newVal[r],value:rt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),D.jsx("div",{className:zn.update_style,children:a?a({value:t[r],formitem:n,row:t}):rt.wrapperHighLight({originValue:t[r],value:rt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]}):D.jsx("div",{style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:a?a({value:t[r],formitem:n,row:t}):rt.wrapperHighLight({originValue:t[r],value:rt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})}),Tt(rt,"renderReadonlyItem",({apicode:t,formitem:r,value:n,record:a})=>{var i,s,l,u,c,m;if(!r)return n;if(!r.type)return"";if(["Select","Cascader"].includes(r.type))return r.props.mode==="multiple"?ie.isArray(n)&&n instanceof Array?n.map(p=>vt.getLabelInOptions({value:p,options:(r==null?void 0:r.props.options)||[]})).join(","):n&&typeof n=="string"?n.split(",").map(p=>vt.getLabelInOptions({value:p,options:(r==null?void 0:r.props.options)||[]})).join(","):"":vt.getLabelInOptions({value:n,options:(r==null?void 0:r.props.options)||[]});if(["TreeSelect"].includes(r.type))return(i=r.props)!=null&&i.treeCheckable&&ie.isArray(n)&&n instanceof Array?n.map(p=>vt.getLabelInOptions({value:typeof p!="string"?p.value:p,options:(r==null?void 0:r.props.treeData)||[]})).join(","):vt.getLabelInOptions({value:n,options:(r==null?void 0:r.props.treeData)||[]});if(["Date"].includes(r.type))if(n)if(ve.isMoment(n)){const g=n.creationData();return n.format(((s=r==null?void 0:r.props)==null?void 0:s.format)??g.format)}else return ve(n).format(((l=r==null?void 0:r.props)==null?void 0:l.format)??"YYYY-MM-DD HH:mm:ss");else return"";else return["Image"].includes(r.type)?n&&!ie.isArray(n)?D.jsx(Z.Popover,{placement:"right",content:D.jsx("div",{style:{height:"60px",width:"60px"},children:n?D.jsx(_1,{src:`/api${n}`}):D.jsx(D.Fragment,{})}),trigger:"hover",children:D.jsx("div",{style:{height:"26px",width:"26px"},children:n?D.jsx(_1,{src:`/api${n}`}):D.jsx(D.Fragment,{})})}):"":["CompositeForm"].includes(r.type)?n&&typeof n=="string"?(u=String(n))!=null&&u.includes("~%~")?`${n.split("~%~")[0]||""}${((m=ie.find((c=r.props)==null?void 0:c.options,{id:n.split("~%~")[1]}))==null?void 0:m.name)||""}`:n:"":r.isbomtag&&!ie.isArray(n)&&!(n instanceof Array)?n?vt.renderBomTag(n):"":ie.isArray(n)&&n instanceof Array?n.join(","):n??""}),Tt(rt,"renderRowClassName",t=>{const r=[];let n="";return t.shear&&r.push("shear-row"),t.optType==="add"?n="add-redline-row":t.optType==="del"&&(n="del-row"),t.dataType==="add"?n="add-row":t.dataType==="del"&&(n="del-row"),`${r.join(" ")} ${n}`}),Tt(rt,"renderVersionColumn",(t,r)=>Sn.isMosaic(t)?D.jsx(pa,{}):t==="Draft"||ie.isString(t)&&t.split(" ")[0]==="Draft"?D.jsx(ei,{highlight:r||[],value:Y("sys.label.draft",{placeholder:"草稿"})}):D.jsx(ei,{highlight:r||[],value:ie.isString(t)?t.replace(/[()]/g,"").split(" ")[0]:""}));let Za=rt;const Hq=({title:e,editable:t,children:r,dataIndex:n,record:a,handleSave:i,handleCellSelected:s,handleFill:l,handleDoubleClick:u,renderCacheCell:c,loading:m,required:p,formitem:g,rowKey:y,render:x,tableKey:E,menuId:k,highlight:T,isVersion:w,isUser:S,preRender:f,apicode:h,canselectcell:v,selectedCell:_,fillContextMenu:R,setInitialState:C,...P})=>{var Le,he,qe;const M=F.useContext(eh),[U,L]=F.useState(!1),N=F.useContext(Lv),j=F.useRef(null),O=["Input","Input.TextArea","Number"];v&&_&&(_==null?void 0:_.dataIndex)===n&&(_==null?void 0:_.record[y])==a[y]&&(_==null?void 0:_.tableKey)==E&&(P.style={...P.style,background:"#ddeffe"}),F.useEffect(()=>{var oe,De;U?(oe=j.current)==null||oe.focusFormItem():(De=j.current)==null||De.blurFormItem()},[U]);const I=oe=>{for(;oe&&oe.nodeName!=="TR";)oe=oe.parentNode;return oe},z=async(oe,De)=>{var Et,Fe,We;const Je=()=>{if(!(!e&&!n)&&De){const Ne=new MouseEvent("dblclick",{bubbles:!0,cancelable:!1});I(De==null?void 0:De.target)&&I(De==null?void 0:De.target).dispatchEvent(Ne)}};if(g&&g.props&&g.props.disabled||!g||g.props&&!g.props){Je();return}if(oe?u&&await u(a):!0){if(await N.validateFields(),oe){let Ne=a.newVal&&!ie.isNil(a.newVal[n])?a.newVal[n]:a.inProcess&&!ie.isNil(a.inProcess[n])?a.inProcess[n]:a[n];if((g==null?void 0:g.type)==="Date"){const Oe=(Et=g.props)==null?void 0:Et.format;Ne=Ne?ve(Ne,typeof Oe=="string"?Oe:"YYYY-MM-DD HH:mm:ss"):null}((g==null?void 0:g.type)==="TreeSelect"&&((Fe=g==null?void 0:g.props)!=null&&Fe.treeCheckable)||(g==null?void 0:g.type)==="Select"&&((We=g==null?void 0:g.props)==null?void 0:We.mode)==="multiple")&&(Ne==""?Ne=[]:typeof Ne=="string"&&(Ne=Ne.split(","))),N.setFieldsValue({[n]:Ne})}L(!U)}else Je()},B=async()=>{try{const oe=await N.validateFields();z(),Object.keys(oe).forEach(De=>{(oe[De]===null||oe[De]===void 0)&&(oe[De]=""),typeof oe[De]=="string"&&(oe[De]=oe[De].trim())}),i({...a,...oe})}catch{}},H=(oe,De)=>c||D.jsx("div",{className:zn.edit_cell,children:D.jsx(ei,{value:Za.renderReadonlyItem({value:oe[De],formitem:g}),highlight:le})}),{show:q}=gq({id:k}),J=()=>{v&&(s(),C&&C(oe=>({...oe,selectedCell:{dataIndex:n,record:a,tableKey:E}})))},re=oe=>{if(n){if(J(),oe.preventDefault(),g&&g.props&&g.props.disabled||!g||g.props&&!g.props)return;q(oe,{props:{key:{dataIndex:n,record:a}}})}};let ne=r;const se=a?a[n]:"",ce=F.Children.map(r,oe=>{var De;if(F.isValidElement(oe)){const Je=(De=oe==null?void 0:oe.props)==null?void 0:De.children;return!Je||!Array.isArray(Je)?null:Je.some(Et=>{const Fe=Et==null?void 0:Et.props;return Fe&&typeof Fe.className=="string"?Fe.className.includes("frontend-table-row-indent"):!1})?Je:null}else return null});if(!Sn.readPermission(se))return D.jsxs("td",{...P,children:[ce,D.jsx(pa,{inLine:!0})]});const{trulyHighlight:le}=Za.getTrulyHighlight({highlight:T,formitem:g});if(S){const oe=(M==null?void 0:M.overrideLinkCom)||"a";ne=D.jsx(oe,{userId:a[n],id:a[n],record:a,content:Za.renderReadonlyItem({value:a[n],formitem:g}),highlight:le})}else if(t){if(g.type==="Date"){const oe=(Le=g.props)==null?void 0:Le.format,De=typeof oe=="string";let Je,Ct;if(ve.isMoment(a[n])){const Et=a[n].creationData();Je=Et==null?void 0:Et.input,Ct=Et==null?void 0:Et.format}a[n]=a[n]?ve(Je||a[n],De?oe:Ct||"YYYY-MM-DD HH:mm:ss"):null}if(((he=g.props)!=null&&he.treeCheckable||((qe=g.props)==null?void 0:qe.mode)==="multiple")&&typeof a[n]=="string"&&(a[n]=a[n]?a[n].split(","):[]),U)ne=D.jsx("div",{onDoubleClick:oe=>{oe.stopPropagation()},children:D.jsx(Z.Form.Item,{validateTrigger:O.includes(g.type)?"blur":"onChange",style:{margin:0},name:n,children:D.jsx($q,{name:n,ref:j,onSave:()=>B(),formprops:g,record:a,apicode:h})})});else if(!x){let oe=H(a,n);ne=D.jsxs("div",{onContextMenu:R===!1?void 0:re,title:a.newVal?Za.renderReadonlyItem({value:a.newVal[n],formitem:g}):Za.renderReadonlyItem({value:a[n],formitem:g}),className:"editable-cell-value-wrap",style:{paddingRight:24},children:[ce,oe]})}}else if(n&&!x)return w?D.jsx("td",{...P,title:a&&a[n]?a[n]==="Draft"?Y("sys.label.draft",{placeholder:"草稿"}):a[n]:"",onClick:J,children:D.jsx(ei,{value:a&&a[n]?a[n]==="Draft"?Y("sys.label.draft",{placeholder:"草稿"}):a[n]:"",highlight:le})}):D.jsx("td",{...P,title:a&&a[n]?a[n]:"",onClick:J,children:D.jsx(ei,{value:a?ie.isNil(a[n])?"":a[n]:"",highlight:le})});const ye=ne==null?void 0:ne.toString(),we=Array.isArray(ne)&&ne[0]===void 0,Ee=ye!=null&&ye.includes("[object ")?void 0:we?ye==null?void 0:ye.replace(/^\,/,""):ye;return D.jsx("td",{...P,onDoubleClick:oe=>{oe.stopPropagation(),z(!0,oe)},onClick:()=>{n&&J()},children:D.jsx("div",{title:Ee,style:{width:"100%",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},children:ne})})},Uq=()=>{function e(){return((1+Math.random())*65536|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},qq=e=>D.jsxs(Sq,{id:e.menuId,children:[D.jsx(Sx,{onClick:t=>{e.onFill&&e.onFill("up",t.props.key)},children:Y("sys.prompt.fillUp",{placeholder:"向上填充"})}),D.jsx(Sx,{onClick:t=>{e.onFill&&e.onFill("down",t.props.key)},children:Y("sys.prompt.fillDown",{placeholder:"向下填充"})})]}),Wq=e=>{const[t,r]=F.useState({}),[n,a]=F.useState({}),i=F.useRef(null),{Option:s}=Z.Select,l=(g,y)=>{r(g),a(y)};return{getColumnSearchProps:F.useCallback((g,y)=>{const x=()=>{var w,S;return typeof(y==null?void 0:y.title)=="string"?y==null?void 0:y.title:(S=(w=y==null?void 0:y.search)==null?void 0:w.props)==null?void 0:S.placeholder},E=(w,S,f)=>{S()},k=(w,S)=>{w(),S()},T=(w,S,f)=>{var _,R;const h={size:"small",onChange:C=>{C&&C.target?w(C.target.value?[C.target.value]:[]):w(C?[C]:[])},style:{marginBottom:8,display:"block"}},v=D.jsx(Z.Input,{size:"small",ref:i,placeholder:Y("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:x()}}),value:S[0],onPressEnter:()=>E(S,f),...ie.omit(h,["size"])});if(y.search)switch(y.search.type){case"Input":return v;case"Select":let C=(R=(_=y==null?void 0:y.search)==null?void 0:_.props)==null?void 0:R.options;return y.apicode==="ProblemVersion"&&(C=ie.uniqBy(ie.flatten(Object.values(C||{})),"value")||[],C=C.map(P=>({label:P.label==="Draft"?Y("sys.label.draft",{placeholder:"草稿"}):P.label,value:P.value}))),C=(C||[]).filter(P=>Sn.readPermission(P.label)),D.jsx(Z.Select,{size:"small",onKeyUp:P=>{(P.keyCode===13||P.charCode==13)&&E(S,f)},ref:i,mode:"multiple",placeholder:`${Y("sys.label.selectOption",{placeholder:"请选择"})} ${x()}`,value:S[0],filterOption:(P,M)=>M.label&&M.label.indexOf(P)>=0,...ie.omit(h,["size"]),children:(C||[]).map(P=>{if(!P.isHidden)return F.createElement(s,{...P,value:P.value,disabled:P.disabled,key:P.value,label:P.label},D.jsx("div",{title:P.label,style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:P.label}))})});case"Date":return D.jsx(Z.DatePicker,{size:"small",value:S[0],...ie.omit(h,["size"])});case"CompositeForm":return D.jsx("div",{className:"compositeFormClass",children:D.jsx(hc,{...y.formitem.props,valueType:y.valueType,value:S[0],size:"small",...ie.omit(h,["size"])})})}else return v};return y.search?{filterIcon:w=>D.jsx(gs,{style:{color:w?"#0563B2":void 0}}),filterDropdown:({setSelectedKeys:w,selectedKeys:S,confirm:f,clearFilters:h})=>D.jsxs("div",{style:{padding:8},children:[D.jsx("div",{style:{marginBottom:"5px"},children:T(w,S,f)}),D.jsxs(Z.Space,{children:[D.jsx(Z.Button,{type:"primary",onClick:()=>E(S,f),icon:D.jsx(gs,{}),size:"small",style:{width:90},children:Y("sys.filter",{placeholder:"筛选"})}),D.jsx(Z.Button,{onClick:()=>k(h,f),size:"small",style:{width:90},children:Y("sys.action.reset",{placeholder:"重置"})})]})]}),onFilterDropdownVisibleChange:w=>{w&&(y.search.type==="Input"||y.search.type==="Select")&&setTimeout(()=>{var S;return(S=i==null?void 0:i.current)==null?void 0:S.focus()},100)}}:{}},[]),setTableFiltered:g=>{l(g.sort(t),g.screen(n))},clearFilters:g=>{l({},{}),e&&e("","","",{},{isFooterRefresh:g==null?void 0:g.isFooterRefresh})},onFiltersChange:(g,y,x,E)=>{a(y),r(x),l(x,y);let k="",T="";ie.isArray(x)?x&&x.length&&(k=x.map(S=>`${S.field}-${S.order}`).join(",")):x.field&&x.order&&(k=`${x.field}-${x.order==="ascend"?"asc":"desc"}`);const w=S=>S.map(f=>Array.isArray(f)?f.join(","):ve.isMoment(f)?f.format("YYYY-MM-DD"):f);T=ie.remove(Object.keys(y).map(S=>y[S]&&typeof y[S][0]=="string"||typeof y[S]!="string"&&y[S]&&y[S][0]?`${S}-${w(y[S]||[]).join(",")}`:null),S=>S!==null).join("~!~"),e&&e(k,T,x.field,y)},sortInfo:t,filterInfo:n}},Vq=e=>{var s,l;const t=((s=e.dataSource)==null?void 0:s.length)||0,r=e.total||0,n=e.rowSelection&&e.rowSelection.selectedRowKeys?(l=e.rowSelection.selectedRowKeys)==null?void 0:l.length:0,a={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i=D.jsx(He,{type:"update",isBackend:!0,style:{fontSize:"12px",marginLeft:"8px",color:"#999999"},onClick:()=>{e.clearFilters&&e.clearFilters({isFooterRefresh:!0})}});return e.hideFooter?D.jsx(D.Fragment,{}):D.jsxs("div",{className:`${zn.table_footer} ${e.className||""}`,children:[e.hideTableCount?D.jsx("div",{}):e.customRender?e.customRender({tableDataLen:t,total:r,selectedLen:n,boxStyles:a,refreshNode:i}):D.jsxs("div",{style:a,children:[Y("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),D.jsxs("span",{children:[" ",t,"/",r," "]}),Y("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),","," ",Y("sys.selected",{placeholder:"已选"}),D.jsx("span",{children:` ${n} `}),Y("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),i]}),e.enterFullscreen&&D.jsx("div",{children:D.jsx(He,{type:"a-front-fitscreen",style:{fontSize:"12px",color:"#999999"},isBackend:!0,onClick:()=>{e.enterFullscreen&&e.enterFullscreen()}})})]})},Yq=(e,t,r,n,a,i,s)=>{var f;const[l,u]=F.useState(!1),[c,m]=F.useState(0),[p,g]=F.useState(e.columns||[]),[y,x]=F.useState(null),[E,k]=F.useState(null),T=h=>(v,{size:_})=>{v.stopImmediatePropagation();const R=[...p];R[h]={...R[h],width:_.width},g(R)};F.useEffect(()=>{g(e.columns)},[e.columns]);const w=Number(((f=e==null?void 0:e.scroll)==null?void 0:f.y)||i)+24;return{renderColumns:p?p.filter(h=>h).map((h,v)=>ie.extend({...h,sorter:h.sorter?{}:!1,required:h.editable?h.required:!1,sortOrder:t.field===h.dataIndex&&t.order,filteredValue:r?r[h.dataIndex]||[]:[],onHeaderCell:_=>({dataIndex:h.dataIndex,width:_.width,required:h.required,editable:h.editable,trulyHeight:w,tableKey:e.tableKey,formitem:h.formitem,onResize:T(v),onResizeOver:R=>{m(R.screenX),u(!0)},onResizeStop:R=>{console.log(R),u(!1)}}),onCell:_=>{var P,M;const R=((P=h==null?void 0:h.onCell)==null?void 0:P.call(h,_))||{},C=(typeof e.rowKey=="string"?e.rowKey:(M=e.rowKey)==null?void 0:M.call(e,_))||"id";return{record:_,className:`${h.className??""} ${h.dataIndex==E&&_[C]==y?zn.loading:""}`,editable:h.editable,isVersion:h.isVersion,isUser:h.isUser,apicode:h.apicode,dataIndex:h.dataIndex,title:h.title,formitem:h.formitem,required:h.required,canselectcell:e.canselectcell,rowKey:e.rowKey||"id",tableKey:e.tableKey,menuId:n,render:h.render,highlight:r[h.dataIndex],fillContextMenu:e.fillContextMenu,selectedCell:s,renderCacheCell:Za.renderCacheCell(_,h.dataIndex,h.formitem,void 0,{highlight:r[h.dataIndex]}),handleCellSelected:()=>{e.onSelectCell&&e.onSelectCell()},handleDoubleClick:U=>{if(e.onDoubleClick){const L=e.onDoubleClick(h,U);return L instanceof Promise&&(x(_[C]),k(h.dataIndex),L.finally(()=>{x(null),k(null)})),L}else return!0},handleSave:U=>{e.onSubmit&&e.onSubmit(U,h)},...R}}},a(h.dataIndex,h))):[]}},l4="INPUT_NAMESPACE",Gq=(e,t,r,n)=>{const[a,i]=F.useState();function s(l){const u=l.toString(),c=u.indexOf(".");return c===-1?0:u.slice(c+1).length}return F.useEffect(()=>{async function l(u){var y,x,E,k,T,w,S,f,h,v;if(u.target instanceof HTMLInputElement&&((x=(y=u.target)==null?void 0:y.dataset)==null?void 0:x.type)!=l4||u.target instanceof HTMLTextAreaElement||!u.target.closest(`.${wh}`)){console.log("is Input or TextArea or not Table");return}u.preventDefault();let c=(E=u.clipboardData)==null?void 0:E.getData("text");const m=await Promise.resolve().then(()=>require("./xlsx-qn1xoUuv.js"));if(c&&r&&n){var p=m.read(c,{type:"binary"}),g=p.SheetNames;const _=m.utils.sheet_to_json(p.Sheets[g[0]],{header:1,raw:!1,defval:"",blankrows:!0}),R=n.findIndex(M=>{var U,L,N;return M.dataIndex==r.dataIndex&&M.editable&&(((U=M.formitem)==null?void 0:U.type)=="Input"||((L=M.formitem)==null?void 0:L.type)=="Input.TextArea"||((N=M.formitem)==null?void 0:N.type)=="Number")});let C=n.findIndex((M,U)=>{var L,N,j;return U>R&&(!M.editable||!(((L=M.formitem)==null?void 0:L.type)=="Input"||((N=M.formitem)==null?void 0:N.type)=="Input.TextArea"||((j=M.formitem)==null?void 0:j.type)=="Number"))});C==-1&&(C=n.length);const P=n.slice(R,C);if(P.length>0){const M=_.map(U=>U.filter(L=>U.indexOf(L)<P.length))||[];for(let U=0;U<M.length;U++){const L=M[U]||[];for(let N=0;N<L.length;N++){const j=L[N],O=((k=P[N].formitem)==null?void 0:k.type)=="Number",I=(w=(T=P[N].formitem)==null?void 0:T.props)==null?void 0:w.precision,z=(f=(S=P[N].formitem)==null?void 0:S.props)==null?void 0:f.min,B=(v=(h=P[N].formitem)==null?void 0:h.props)==null?void 0:v.max;if(O){const H=ie.toNumber(j),q=H&&(z?H>=z:!0)&&(B?H<=B:!0)&&(ie.isNumber(I)&&I>0?s(H)<=I:!0);L[N]=q?H:void 0}}}i(M)}}}return document.addEventListener("paste",l),()=>{document.removeEventListener("paste",l)}},[r,n]),{pasteData:a}},Kq=e=>`${e}Key`,ug=e=>e.keyCode==17?"ctrl":e.keyCode==18?"alt":e.keyCode==91?"meta":e.keyCode==16?"shift":e.key,Xq=(e,{shortcuts:t,namespace:r})=>{const n="+",a=(...l)=>`${e}+${l.join(n)}`,i=xn(t),s=xn(ie.fromPairs(i.current.map(([l,u])=>[a(...l),u])));F.useEffect(()=>{console.log("初始化 useShortcutKey");const l=()=>i.current.map(([y])=>y).flat(1),u=y=>{var x,E,k;(!r||((x=y.target)==null?void 0:x.id)==r)&&(c.push(ug(y)),(k=(E=s.current)[c.join(n)])==null||k.call(E,y))},c=[],m={},p=y=>{var x;if(!r||((x=y.target)==null?void 0:x.id)==r){const E=ug(y);y[Kq(e)]&&!m[E]&&(m[E]=!0,l().includes(y.key)&&c.includes(e)&&y.preventDefault(),u(y))}},g=y=>{const x=ug(y);m[x]=!1,c.pop()};return window.addEventListener("keyup",g),window.addEventListener("keydown",p),()=>{window.removeEventListener("keyup",g),window.removeEventListener("keydown",p)}},[])},Zq=(e,t)=>{const[r,n]=F.useState(!0),{clipboard:a,dataSource:i=[],rowSelection:s}=e,{selectedRowKeys:l=[]}=s||{},{childKeyName:u="children",isMark:c=!0,initialState:m,setInitialState:p}=a||{},g=String(e.rowKey||"id"),[y,x]=F.useState(!1),E=()=>y&&l.length,k=h=>v=>{E()&&h(v)},T=async(h,v)=>{var R;const _=[];_.type="shear",_.namespace=t,v.forEach(C=>{vt.isDelTableRow(C)||_.push({...C,toShear:()=>C.shear=!0})}),vt.ArrayAttributeFlat(_,u,C=>{C.toShear||(C.shear=!0)}),(!h.onBeforeShear||await h.onBeforeShear(_))&&(_.forEach(C=>{C.toShear(),delete C.toShear}),console.log("剪切",_),p&&p(C=>({...C,clipboard:_})),h.setDataSource("shear",i),(R=h.onAfterShear)==null||R.call(h,_),_.length&&(_.onPasteCallback=async C=>{var L;const P=C==t,M=[...i],U=()=>{p&&p(N=>({...N,clipboard:[]})),[..._].reverse().forEach(N=>{const j=vt.getTreeRelationNoRecursion({data:M,lookup:O=>O[g]==N[g],childrenKey:u});c&&j.self.dataType!=="add"?(j.self.shear=!1,j.self.dataType="del",vt.ArrayAttributeFlat(j.self[u],u,O=>{O.toShear||(O.shear=!1,O.dataType="del")})):j.parent?j.parent[u].splice(j.index,1):M.splice(j.index,1)}),h.setDataSource("shear",M)};return!h.onBeforeDeleteShear||await h.onBeforeDeleteShear({isSameSpace:P,deletes:_})?(U(),(L=h.onAfterDeleteShear)==null||L.call(h,{isSameSpace:P,deletes:_}),Promise.resolve(M)):Promise.reject(Y("sys.operation.cutFailed",{placeholder:"剪切失败"}))}))},w=async(h,v)=>{var R;const _=[];_.type="copy",_.namespace=t,v.forEach(C=>{vt.isDelTableRow(C)||(C.shear=!1,vt.ArrayAttributeFlat(C[u],u,P=>{P.shear=!1}),_.push({...C}))}),(!h.onBeforeCopy||await h.onBeforeCopy(_))&&(console.log("复制",_),p&&p(C=>({...C,clipboard:_})),h.setDataSource("paste",i),(R=h.onAfterCopy)==null||R.call(h,_))},S=async(h,{pasteData:v,pasteTarget:_})=>{var C,P;const R=vt.ArrayAttributeFlat(v,u).every(M=>!_.includes(M[g]));if(console.log({isNonSelf:R}),_.length==1&&v.length&&R){const U=vt.ArrayAttributeFlat(i,u).find(N=>N[g]==_[0]),L=h.pasteInto||"child";if(!h.onBeforePaste||await h.onBeforePaste({target:U,rows:v,type:L}))try{const N=await((C=v.onPasteCallback)==null?void 0:C.call(v,t))||[...i],j=vt.getTreeRelationNoRecursion({data:N,lookup:O=>O[g]==U[g],childrenKey:u});if(c){const O=I=>I.map(z=>Object.assign({...z,shear:!1,dataType:"add",[g]:vt.generateUUID(),primitiveInsId:z.primitiveInsId||z[g]},z[u]?{[u]:O(z[u].filter(B=>!I.some(H=>H[g]==B[g]))||[])}:{}));v=O(v)}if(L=="child"){const O=j.self[u];j.self[u]=[...O,...v]}else j.parent?j.parent[u].splice(j.index+1,0,...v):N.splice(j.index+1,0,...v);h.setDataSource("paste",N),(P=h.onAfterPaste)==null||P.call(h,{target:U,type:L})}catch(N){console.error(N)}}};a&&Xq(vt.isMac()?"meta":"ctrl",{shortcuts:[[["x"],k(async()=>{const h=vt.ArrayAttributeFlat(i,u).filter(v=>l.includes(v[g]));console.log({shearList:h}),T(a,h)})],[["c"],k(async()=>{const h=vt.ArrayAttributeFlat(i,u).filter(v=>l.includes(v[g]));console.log({copyList:h}),w(a,h)})],[["v"],k(async()=>{const h=(m==null?void 0:m.clipboard)||[];S(a,{pasteData:h,pasteTarget:l})})]],namespace:t});const f=F.useRef(null);return F.useEffect(()=>{var h;r||((h=f.current)==null||h.focus(),x(!0))},[l.length,l[0]]),F.useEffect(()=>{n(!1)},[]),{namespace:t,isGainFocus:y,focus:()=>{var v;const h=document.querySelector(":focus");h instanceof HTMLInputElement||h instanceof HTMLTextAreaElement||(v=f.current)==null||v.focus()},shear:T,copy:w,paste:S,FocusDom:D.jsx("input",{ref:f,"data-type":l4,type:"text",id:t,onFocus:()=>x(!0),onBlur:()=>x(!1),readOnly:!0,style:{opacity:0,position:"fixed",left:"-100%",top:"-100%",zIndex:"-10"}})}},Jq=(e,t,r,n)=>{const[a,i]=F.useState();return F.useEffect(()=>{async function s(l){if(r){const u=l.clipboardData,c=r.dataIndex,m=r.record;let p=null;if(m.newVal&&Object.hasOwn(m.newVal,c)?p=m.newVal[c]:p=m[c]||null,p)try{u.setData("text/plain",p),i(p),l.preventDefault()}catch(g){console.error("Failed to write to clipboard: ",g)}}}return document.addEventListener("copy",s),()=>{document.removeEventListener("copy",s)}},[r,n]),{copyData:a}},Lv=F.createContext(null),wh="tableTopBox",xh=F.forwardRef((e,t)=>{var M;F.useImperativeHandle(t,()=>({scrollTo:U=>{i.current.scrollTo(U)},scrollXTo:U=>{if(a.current){const L=a.current.querySelector(".frontend-table-body");L&&(L.scrollLeft=U)}},clearFilters:m,setTableFiltered:y,clipboard:P}));const[r]=F.useState(vt.generateUUID()),n=F.useRef(null),a=F.useRef(null),i=F.useRef(null),[s]=Z.Form.useForm(),l=Uq(),{sortInfo:u,filterInfo:c,clearFilters:m,getColumnSearchProps:p,onFiltersChange:g,setTableFiltered:y}=Wq(e.onFilterAndSorter),[x,{toggleFullscreen:E,exitFullscreen:k}]=uS(a,{pageFullscreen:{zIndex:500}}),T=e.tableKey||r;F.useEffect(()=>{const U=L=>{L.key=="Escape"&&x&&k()};return addEventListener("keydown",U),()=>{removeEventListener("keydown",U)}});const w=iq({hideFooter:!!e.hideFooter,contentRef:n,tableRef:a,scroll:e.scroll,fullScreenMinusHeight:e.fullScreenMinusHeight||0,scrollUpdate:e.scrollUpdate,onTableHeightChange:e==null?void 0:e.onTableHeightChange},!!e.isFullscreen||x),[S,f]=aq(()=>({scroll:{y:1e3},ref:i}),[]),h={header:{cell:cq},body:{cell:Hq}};F.useMemo(()=>f(h),[f]);const{renderColumns:v}=Yq({...e,tableKey:T},u,c,l,p,w,e.selectedCell),{pasteData:_}=Gq(a,e.dataSource,e.selectedCell,e.columns);F.useEffect(()=>{var U;if(_&&e.selectedCell){const L=e.dataSource||[],N=String(e.rowKey)||"id",j=L.findIndex(J=>{var re;return J[N]==((re=e.selectedCell)==null?void 0:re.record[N])}),O=e.columns.findIndex(J=>{var re;return J.dataIndex==((re=e.selectedCell)==null?void 0:re.dataIndex)});let I=((U=_[0])==null?void 0:U.length)||0,z=(_==null?void 0:_.length)||0;const B=e.columns.slice(O,O+I),H=L.slice(j,j+z);let q=[];_.forEach((J,re)=>{if(H.length>re){const ne={};J.forEach((se,ce)=>{B.length>ce&&(ne[B[ce].dataIndex]=se,ne[N]=H[re][N])}),q.push(ne)}}),e.onPaste&&e.onPaste(vt.transformArrayToMap(q,N))}},[_]);const{copyData:R}=Jq(a,e.dataSource,e.selectedCell,e.columns);F.useEffect(()=>{R&&e.selectedCell&&e.onCopy&&e.onCopy(R)},[R]);const{run:C}=tN(async U=>{const L=e.pageNo||1,N=e.pageSize||10,j=e.total||0;Math.abs(parseInt(U.target.scrollTop+U.target.clientHeight)-U.target.scrollHeight)<1.5&&!e.loading&&L*N<j&&e.onScroll&&e.onScroll(L+1)},{wait:400}),P=Zq(e,r);return D.jsxs("div",{ref:n,id:`table_key_${T}`,className:`${zn.main} ${wh}`,style:{position:"relative",overflow:"hidden"},onClick:U=>P.focus(),onScrollCapture:U=>{U.target.scrollHeight!==24&&U.target.className==="frontend-table-body"&&(e.onBeforeScroll?e.onBeforeScroll()&&C(U):C(U))},children:[D.jsx(qq,{menuId:l,...ie.pick(e,["onFill"])}),P.FocusDom,D.jsxs(Z.Form,{form:s,component:!1,children:[D.jsx(Lv.Provider,{value:s,children:D.jsx(Z.Table,{className:Te(e.showcheckbox?void 0:"table-checkbox"),ref:a,rowKey:e.rowKey||"id",style:{borderBottom:"1px solid #e4e4e4",borderRight:"1px solid #e4e4e4",background:"#fff"},pagination:!1,components:S,bordered:!0,...ie.omit(e,["columns","scroll","expandable","tableKey","onScroll"]),tableKey:T,loading:{indicator:D.jsx(lc,{style:{fontSize:32},spin:!0}),spinning:!!e.loading},showSorterTooltip:!1,expandable:{indentSize:18,expandIcon:({expanded:U,onExpand:L,record:N,expandable:j})=>N.children&&N.children.length||N.hasChildren?U?D.jsx(P8,{className:"expand",onClick:O=>{L(N,O)}}):D.jsx(D8,{className:"expand",onClick:O=>{L(N,O)}}):(e.isTree||j!==void 0)&&D.jsx("span",{style:{float:"left",width:"15px",height:"1px"}}),...e.expandable},scroll:{y:w,scrollToFirstRowOnChange:!0,...ie.merge(e.scroll,{x:(M=e.scroll)==null?void 0:M.x})},columns:v,onChange:g})}),D.jsx(Vq,{...e,className:e.tableFooterClassName,clearFilters:m,enterFullscreen:e==null?void 0:e.toggleFullscreen,customRender:e.tableFooterDateRender})]})]})}),{Option:Jo}=Z.Select,c4=F.forwardRef((e,t)=>{const r=F.useRef("1848553711328477186"),[n,a]=F.useState([]),[i,s]=F.useState([]),[l,u]=F.useState([]),c=Br({pageNo:1,pageSize:50,total:0}),m=Br({sorter:"",filters:"",itemCodes:`${Si.material},${Si.document},${Si.file}`,initialItemCodes:""}),p=Br({loading:!1,searchValue:"",focus:!1,excludeIds:"",objectIds:"",columns:[{title:Y("sys.label.nameRe",{placeholder:"姓名"}),ellipsis:!0,dataIndex:"Name",sorter:!0,width:155},{title:Y("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),ellipsis:!0,dataIndex:"Email",sorter:!0,width:155},{title:Y("sys.label.employeeID",{placeholder:"工号"}),ellipsis:!0,dataIndex:"EmpNo",sorter:!0,width:155}],conditionObject:[],sideChoice:0,columnsHighlight:[]});zs(()=>{var w;let T=[];for(let S of e.columns||p.columns)T.push({...S,render:!S.render&&((w=e.placeholderCode)!=null&&w.includes(S.dataIndex))?f=>D.jsx(ei,{value:f,highlight:g.numberHighLight||[]}):S.render});p.columnsHighlight=T,e.isSelect&&e.allCategories?e.getItems().then(S=>{if(S.code==200){let f=[];for(let v of S.result)v.code!=10001019&&v.code!=10001017&&v.code!=10001018&&f.push({label:v.name,value:v.code});p.conditionObject=f;let h=ie.map(f,"value").join(",");m.itemCodes=h,m.initialItemCodes=ie.cloneDeep(h),x(!0)}}):x(!0)}),F.useEffect(()=>(e.enter&&!p.focus&&l.length>0?y():document.onkeydown=null,()=>{document.onkeydown=null}),[l,p.focus]),F.useImperativeHandle(t,()=>({getLoading:T=>{p.loading=T},backfill:T=>{u(T)}}));const g=Br({numberHighLight:[]}),y=()=>{document.onkeydown=function(T){var w=window.event||T,S=w.keyCode||w.which;if(S==13&&!p.loading){if(e.maxSelect&&l.length+(e.value||[]).length>e.maxSelect){Z.message.error(Y("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}let f=l.length?ie.map(l,"id").join(","):"";e.onChange&&e.onChange(f),e.handleSubmit&&e.handleSubmit(l)}}},x=async(T=!1,w)=>{p.loading=!0;const{pageNo:S,pageSize:f}=c,{filters:h,sorter:v,itemCodes:_}=m;let R={...e.params};if(p.searchValue&&(e.formate=="1"||e.formate=="2"?R.orQuery=e.params.columns.split(",").map(L=>L+"-"+p.searchValue).join("~!~"):R.keyword=p.searchValue),!e.getUrlData){a([]),c.total=0,p.loading=!1;return}const{records:C,total:P,columns:M}=await e.getUrlData({pageNo:S,pageSize:f,filters:h,sorter:v,itemCodes:_,refreshSize:w,searchValue:p.searchValue,sideChoice:p.sideChoice,params:R});M&&(p.columns=M),p.loading=!1;const U=C||[];c.total=P,T?(a(U),s(ie.cloneDeep(U)),e.onInit&&e.onInit(U)):(a([...n,...U]),s(ie.cloneDeep([...n,...U])))},E=T=>{T=="0"?m.itemCodes=m.initialItemCodes:m.itemCodes=T,a([]),u([]),c.pageNo=1,p.searchValue="",x(!0,c.pageSize)},k=T=>{u([]),e.searchChange&&e.searchChange(T),p.searchValue=T,g.numberHighLight=T?[T]:[],c.pageNo=1,x(!0)};return D.jsx(To,{width:e.width,forceRender:!0,className:ng.tableSelection,modalTitle:e.title,mask:!1,visible:e.visible,maskClosable:!1,onCancel:()=>{e.onCancel&&e.onCancel()},footer:null,destroyOnClose:!0,onOk:async()=>{e.handleSubmit&&e.handleSubmit(l)},children:D.jsxs("div",{style:e.isBroadside?{display:"flex"}:{},children:[e.isBroadside&&D.jsx("div",{className:ng.sideBox,style:{paddingRight:e.isLibrary?"12px":"0px",minWidth:e.isLibrary?"110px":void 0,overflow:"hidden"},children:e.isLibrary?D.jsx(WC,{itemCode:Si.technology,onGetTreeFields:T=>{},onSelected:T=>{r.current=T.id,c.pageNo=1,x(!0)},outIsSelected:!1,treeResult:e.treeResult,serveColumms:e.serveColumms}):[Y("sys.myCreated",{placeholder:"我创建的"}),Y("sys.label.all",{placeholder:"全部"})].map((T,w)=>D.jsx("div",{onClick:()=>{p.sideChoice=w,c.pageNo=1,x(!0)},style:{marginBottom:"12px",cursor:"pointer",color:w==p.sideChoice?"#0563b2":""},children:T},w))}),D.jsxs("div",{style:{width:(e.isBroadside,"100%"),overflow:"hidden"},children:[!e.noSearch&&D.jsx(Z.Form.Item,{rules:[{required:!1}],children:D.jsxs("div",{style:{display:"flex"},children:[e.isSelect&&D.jsxs(D.Fragment,{children:[e.allCategories&&p.conditionObject.length>0&&D.jsxs(Z.Select,{disabled:p.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:T=>{E(T)},children:[D.jsx(Jo,{value:"0",children:Y("sys.label.all",{placeholder:"全部"})}),"(",p.conditionObject.map(T=>D.jsx(Jo,{value:T.value,children:T.label})),")"]}),!e.allCategories&&D.jsxs(Z.Select,{disabled:p.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:T=>{E(T)},children:[D.jsx(Jo,{value:"0",children:Y("sys.label.all",{placeholder:"全部"})}),D.jsx(Jo,{value:Si.material,children:Y("sys.label.material",{placeholder:"物料"})}),D.jsx(Jo,{value:Si.document,children:Y("sys.document.document",{placeholder:"文档"})}),D.jsx(Jo,{value:Si.file,children:Y("sys.label.file",{placeholder:"文件"})})]})]}),D.jsx(Z.Input,{style:{width:240},onBlur:()=>{p.focus=!1},onFocus:()=>{p.focus=!0},allowClear:!0,value:p.searchValue,placeholder:e.placeholder||Y("sys.enterSearch",{placeholder:"请输入搜索内容"}),suffix:D.jsx(He,{type:"content-search",style:{color:"#BABABA"},onClick:()=>{k(p.searchValue)}}),onChange:T=>{p.searchValue=T.target.value,T.target.value||(u([]),e.searchChange&&e.searchChange(""),c.pageNo=1,g.numberHighLight=[],x(!0))},onPressEnter:T=>{k(T.target.value)}})]})}),e.isDownload&&D.jsxs("div",{style:{display:"flex",marginBottom:"12px"},children:[D.jsx(He,{disabled:!l.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(l,"1")},children:Y("sys.label.download",{placeholder:"下载"})}),D.jsx("span",{style:{marginRight:"24px"}}),D.jsxs(He,{disabled:!l.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(l,"2")},children:[Y("sys.label.download",{placeholder:"下载"}),"PDF"]})]}),D.jsx("div",{className:ng.tableFrame,style:{display:"flex"},children:D.jsx(xh,{onSelectCell:()=>{u([])},expandable:{expandIconColumnIndex:e.isLibrary?2:void 0},rowSelection:{columnWidth:15,fixed:"left",hideSelectAll:!e.isCheckbox,selectedRowKeys:l.map(T=>T.id),onChange:(T,w)=>{e.isCheckbox?u(w):w.length?u([w.pop()]):u([])},getCheckboxProps:T=>({disabled:T.number==="~#~"||!!(e.convertFun&&ie.includes(T.unique,"-"))})},onRow:T=>({onDoubleClick:()=>{if(T.number!=="~#~")if(l.length>1){if(e.maxSelect&&l.length+(e.value||[]).length>e.maxSelect){Z.message.error(Y("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}e.onChange&&e.onChange(ie.map(l,"id").join(",")),e.handleSubmit&&e.handleSubmit(l)}else u([T]),e.onChange&&e.onChange(T.id),e.handleSubmit&&e.handleSubmit([T])}}),loading:p.loading,dataSource:n,columns:p.columnsHighlight,...c,scroll:{y:e.height||200},onScroll:T=>{c.pageNo=T,x()},onFilterAndSorter:(T,w,S)=>{if(u([]),e.isBuiltInSort)if(T){let f=ie.orderBy(n,[T.split("-")[0]],[T.split("-")[1]]);a(f)}else a(i);else{if(e.isUseRuleSort){const f=Za.sortAndFilterTable({sorters:T,filters:w,sortersField:S,tableColumns:e.columns});m.sorter=f.sorters,m.filters=f.filters}else m.sorter=T,m.filters=w;c.pageNo=1,x(!0)}}})})]})]})})}),Qq="_selectFrameBox_mktv5_1",eW={selectFrameBox:Qq},d4=F.forwardRef((e,t)=>{var s;const[r,n]=F.useState(e.value);F.useEffect(()=>{n(e.value)},[e.value]);const a=Br({visible:!1,options:[],enter:!1});F.useEffect(()=>{e.options&&e.options.length&&(a.options=e.options)},[e.options]);const i=()=>{var m;const l=(m=e.params)==null?void 0:m.ids,u=l?l.join(","):"",c=e.isCheckbox?r&&r.join(","):r;return`${u}${c!=null&&c.length&&u?",":""}${c??""}`};return D.jsxs("div",{className:eW.selectFrameBox,style:e.width?{width:e.width}:void 0,children:[e.disabled&&e.userLink?D.jsx("div",{children:(s=ie.filter(e.options,l=>l.id==r)[0])==null?void 0:s.Name}):D.jsxs("div",{style:{display:"flex",gap:"5px"},children:[D.jsx(Z.Select,{style:{minWidth:"80px"},mode:"multiple",allowClear:!0,open:!1,showSearch:!1,disabled:e.disabled,value:r||void 0,options:a.options,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"},placeholder:e.placeholder||Y("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{e.disabled||(a.visible=!0,a.enter=!0)},onChange:l=>{e.onChange&&e.onChange(l)},tagRender:l=>Sn.readPermission(l.label)?D.jsx(Z.Tag,{color:"blue",closable:!0,style:{borderRadius:"0",border:"none",fontSize:"12px",padding:"2px 7px"},closeIcon:D.jsx(He,{type:"close",style:{fontSize:"12px",cursor:"pointer"},onClick:()=>{const u=r.filter(c=>c!==l.value);n(u),e.onChange&&e.onChange(u)}}),children:l.label},l.value):D.jsx(pa,{})}),e.showButton?D.jsx(Z.Button,{onClick:()=>{a.visible=!0,a.enter=!0},style:{display:"flex",height:"32px",width:"32px",background:"#fafafa",alignItems:"center",justifyContent:"center"},children:D.jsx(He,{type:"content-search",style:{fontSize:"16px"}})}):D.jsx(D.Fragment,{})]}),a.visible&&D.jsx(c4,{visible:a.visible,title:e.title||Y("sys.label.selectOption",{placeholder:"请选择"}),width:e.modalWidth,value:e.value,formate:e.formate,noSearch:e.noSearch,isUseRuleSort:e.isUseRuleSort,getUrlData:async l=>{const{records:u,total:c}=await e.getUrlData(l);return{records:u,total:c}},params:{...e.params,ids:i()},isLibrary:e.isLibrary,isBroadside:e.isBroadside,height:e.height,enter:a.enter,placeholder:e.searchPlaceholder||Y("sys.enterKeyword.enterKeyword",{placeholder:"请输入关键字"}),placeholderCode:e.placeholderCode||"",columns:e.columns,isCheckbox:e.isCheckbox,maxSelect:e.maxSelect,onChange:l=>{if(e.isCheckbox){let u=ie.compact(ie.concat(r,l.split(",")));e.onChange&&e.onChange(l?u:void 0)}else e.onChange&&e.onChange(l)},handleSubmit:l=>{e.isCheckbox?a.options=ie.concat(a.options,l):a.options=l,e.onSubmit&&e.onSubmit(a.options),a.visible=!1,a.enter=!1},onInit:l=>{a.options=l},onCancel:()=>{a.visible=!1,a.enter=!1}})]})}),tW="_searchTextTips_daoe4_1",rW={searchTextTips:tW};function nW({fetchOptions:e,debounceTimeout:t=500,...r}){const[n,a]=F.useState(!1),[i,s]=F.useState([]),l=F.useRef(0);F.useEffect(()=>{s(r.options)},[r.options]);const u=F.useMemo(()=>{const c=m=>{l.current+=1;const p=l.current;s([]),a(!0),e(m,r).then(g=>{p===l.current&&(s(g),a(!1))})};return ie.debounce(c,t)},[e,t]);return D.jsx(Z.Select,{...r,labelInValue:!0,showArrow:!0,filterOption:!1,onSearch:u,notFoundContent:n?D.jsx("div",{style:{textAlign:"center"},children:D.jsx(Z.Spin,{size:"small"})}):D.jsx(Z.Empty,{image:Z.Empty.PRESENTED_IMAGE_SIMPLE}),options:i,onBlur:()=>{s(r.options)},url:void 0,ischeckbox:void 0,dropdownRender:c=>D.jsxs(D.Fragment,{children:[c,D.jsx(Z.Divider,{style:{margin:"8px 0"}}),D.jsx("div",{className:rW.searchTextTips,children:`${Y("sys.resultDisplayLimit",{placeholder:"结果只显示前{count}条",variate:{count:100}})},${Y("sys.input.enterExactQuery",{placeholder:"请输入参数精确查询"})}`})]})})}async function Tx(e,t){var i,s;let r,n={pageNo:1,pageSize:100,...t.params};e&&(n.andQuery=`${t.params.andQuery}~!~${t.fieldNames.label}-${e}`),typeof t.url=="function"?r=await t.url(n):r=await t.getPageList(t.url,n,ie.includes(t.url,"opendata"));let a;return(i=t.fieldNames)!=null&&i.label?a=ie.reject((s=r.result)==null?void 0:s.records,l=>{var u;return l[(u=t.fieldNames)==null?void 0:u.label]==="~#~"}):a=r.result.records,a}const aW=F.forwardRef((e,t)=>{const[r,n]=F.useState(e.value),[a,i]=F.useState([]);return zs(async()=>{i(await Tx("",e))}),D.jsx(nW,{...e,showSearch:!0,mode:e.ischeckbox?"multiple":void 0,value:r,fetchOptions:Tx,style:{width:"100%"},options:a,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"}})}),iW=e=>D.jsx(D.Fragment,{}),bf=e=>D.jsx(Z.TreeSelect,{...e,showSearch:!0,treeNodeFilterProp:"label",getPopupContainer:t=>t.parentNode||document.body}),f4=F.forwardRef((e,t)=>{const r=F.useContext(eh),n=(r==null?void 0:r.formItemCom)||{},a=F.useCallback((l,u)=>{var g,y;const{type:c,cannotread:m,props:p}=l;if(m!=="0"){let x=!1;if(typeof e.readOnly=="boolean"?x=e.readOnly:typeof e.readOnly=="function"&&(x=e.readOnly()),c==="Input")return x?D.jsx(uf,{...p,placeholder:"",disabled:x||(p==null?void 0:p.disabled)}):D.jsx(uf,{...p});if(c==="Select")return p!=null&&p.loading?(u="",D.jsx(Z.Form.Item,{noStyle:!0,children:D.jsx(ho,{...p,options:[],loading:!0,value:((y=(g=e==null?void 0:e.content)==null?void 0:g.props)==null?void 0:y.mode)==="multiple"?[]:"",disabled:x||(p==null?void 0:p.disabled)})})):p!=null&&p.options&&p.options.length?typeof u=="string"&&u.split(",").length>1&&(p==null?void 0:p.mode)!=="multiple"?e.readOnly?D.jsx("span",{style:{paddingLeft:"5px"},children:u.split(",").map(E=>D.jsx(Z.Tag,{children:vt.getLabelInOptions({value:E,options:(p==null?void 0:p.options)||[]})},E))}):(p.options=[...p==null?void 0:p.options,{label:u.split(",").map(E=>vt.getLabelInOptions({value:E,options:(p==null?void 0:p.options)||[]})).join(","),disabled:!0,value:u}],D.jsx(ho,{filterOption:(E,k)=>k.label&&k.label.indexOf(E)>=0,...p,showSearch:!0,disabled:x||(p==null?void 0:p.disabled)})):D.jsx(ho,{filterOption:(E,k)=>k.label&&k.label.indexOf(E)>=0,...p,showSearch:!0,disabled:x||(p==null?void 0:p.disabled)}):D.jsx(ho,{...p,showSearch:!0,options:[],disabled:x||(p==null?void 0:p.disabled)});if(c==="PopupSelect")return p.options===void 0||p.options.length>0?D.jsx(d4,{...p,title:e.label,disabled:x||(p==null?void 0:p.disabled)},e.name):"";if(c==="SearchSelect")return D.jsx(aW,{...p},e.name);if(c==="Checkbox")return D.jsx(Z.Checkbox,{...p,disabled:x||(p==null?void 0:p.disabled)});if(c==="Checkbox.Group")return D.jsx(Z.Checkbox.Group,{...p,disabled:x||(p==null?void 0:p.disabled)});if(c==="Input.TextArea")return x?D.jsx(Z.Input.TextArea,{...p,disabled:!0}):D.jsx(Z.Input.TextArea,{...p});if(c==="Input.Password")return x?D.jsx(Z.Input.Password,{...p,disabled:!0}):D.jsx(Z.Input.Password,{...p});if(c==="Date")return x?D.jsx(Z.DatePicker,{...p,size:"middle",placeholder:"",disabled:x||(p==null?void 0:p.disabled)}):D.jsx(Z.DatePicker,{...p});if(c==="DatePicker.RangePicker")return x?D.jsx(Z.DatePicker.RangePicker,{...p,disabled:x||(p==null?void 0:p.disabled),placeholder:["",""],separator:""}):D.jsx(Z.DatePicker.RangePicker,{...p});if(c==="TimePicker.RangePicker")return x?D.jsx(Z.TimePicker.RangePicker,{...p,disabled:x||(p==null?void 0:p.disabled)}):D.jsx(Z.TimePicker.RangePicker,{...p});if(c==="Switch")return D.jsx(Z.Switch,{...p,disabled:x||(p==null?void 0:p.disabled)});if(c==="Number")return(p==null?void 0:p.apicode)==="FileSize"?D.jsx(uf,{...p,disabled:x||(p==null?void 0:p.disabled)},p.id):x?D.jsx(Z.InputNumber,{...p,placeholder:"",disabled:x||(p==null?void 0:p.disabled)}):D.jsx(Z.InputNumber,{...p});if(c==="Cascader")return x?D.jsx(Z.Cascader,{...p,placeholder:"",disabled:x||(p==null?void 0:p.disabled)}):D.jsx(Z.Cascader,{showSearch:{filter:(E,k)=>k.some(T=>T.label&&T.label.toLowerCase().indexOf(E.toLowerCase())>-1),matchInputWidth:!1},...p});if(c==="TreeSelect")return p.treeData&&p.treeData.length?x?D.jsx(bf,{...p,disabled:x||(p==null?void 0:p.disabled),showSearch:!0,treeNodeFilterProp:"label"}):D.jsx(bf,{...p,showSearch:!0,treeNodeFilterProp:"label"}):D.jsx(bf,{disabled:x||(p==null?void 0:p.disabled)});if(c==="Radio")return x?D.jsx(Z.Radio,{...p,disabled:x||(p==null?void 0:p.disabled)}):D.jsx(Z.Radio,{...p});if(c==="Radio.Group")return x?D.jsx(Z.Radio.Group,{...p,disabled:x||(p==null?void 0:p.disabled)}):D.jsx(Z.Radio.Group,{...p});if(c==="Slider")return D.jsx(Z.Slider,{...p,disabled:x||(p==null?void 0:p.disabled)});if(c==="Markdown")return D.jsx(WS,{...p,readOnly:x||(p==null?void 0:p.disabled)});if(c==="SelectPopup")return D.jsx(s4,{selectProps:p,readOnly:x||(p==null?void 0:p.disabled)});if(c==="SelectTransfer")return D.jsx(i4,{selectProps:p,readOnly:x||(p==null?void 0:p.disabled)});if(c==="CompositeForm")return D.jsx(hc,{...p,readOnly:x||(p==null?void 0:p.disabled)});if(c==="Title")return D.jsx(iW,{...p,readOnly:x||(p==null?void 0:p.disabled)});if(n[c]){const E=n[c];return D.jsx(E,{type:c,...p,name:e.name,disabled:x||(p==null?void 0:p.disabled)},e.name)}return D.jsx("span",{children:u})}else return D.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}})},[e.readOnly]),i=F.useMemo(()=>e.ignoreNoWhiteSpaceStart?e.rules:e.content.type==="Input"||e.content.type==="Input.TextArea"?ie.concat(e.NoWhiteSpaceStart,e.rules||[]):e.rules,[e.rules,e.ignoreNoWhiteSpaceStart]),s=e.content.type=="Title";return D.jsx(Z.Form.Item,{colon:!1,...ie.omit(e,["readOnly","content","ignoreNoWhiteSpaceStart"]),className:Te(A$.main,e.className,s?GLOBAL_ATTR_TITLE:"",{readOnly:e.readOnly}),"data-type":e.content.type,validateFirst:!0,validateTrigger:["onBlur","onChange"],rules:i,children:a(e.content,e.name)})}),oW="_itemsCreated_ow91h_1",sW="_rowBox_ow91h_4",uW="_labelLength_ow91h_8",Qo={itemsCreated:oW,rowBox:sW,labelLength:uW},lW="_advanced_search_content_775l0_1",cW="_disableBg_775l0_1",dW="_checkboxWidth_775l0_15",fW="_radioWidth_775l0_18",hW="_conditions_head_775l0_21",pW="_head1_775l0_29",mW="_head2_775l0_32",gW="_head3_775l0_35",vW="_head4_775l0_38",bW="_properties_box_775l0_41",yW="_className_tips_775l0_44",_W="_groupHeader_775l0_49",wW="_iconBtn_775l0_52",xW="_properties_item_775l0_61",SW="_left_tips_775l0_84",CW="_state_type_775l0_87",EW="_verification_775l0_100",kW="_verificationBorder_775l0_121",Ie={advanced_search_content:lW,disableBg:cW,checkboxWidth:dW,radioWidth:fW,conditions_head:hW,head1:pW,head2:mW,head3:gW,head4:vW,properties_box:bW,className_tips:yW,groupHeader:_W,iconBtn:wW,properties_item:xW,left_tips:SW,state_type:CW,verification:EW,verificationBorder:kW},TW="_shuttle_box_tufhg_1",OW="_transferBox_tufhg_4",AW="_selectNum_tufhg_7",jd={shuttle_box:TW,transferBox:OW,selectNum:AW},RW=e=>{const t=Br({dataSource:[],targetKeys:[],columns:[]}),r=l=>l&&ie.isString(l)&&l.includes("~#~")?D.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}}):l;F.useEffect(()=>{t.dataSource=e.dataSource,t.targetKeys=e.targetKeys;let l=[];for(let u of e.columns)l.push({...u,ellipsis:!0,sorter:(c,m)=>{const p=u.dataIndex||"";return c[p]!=null&&m[p]!=null?ie.isString(c[p])&&ie.isString(m[p])?c[p].localeCompare(m[p]):ie.isNumber(c[p])&&ie.isNumber(m[p])?c[p]-m[p]:0:0},render:u.render?u.render:r});t.columns=l},[e.dataSource,e.targetKeys]);const n=({...l})=>D.jsx(Z.Transfer,{...l,rowKey:u=>u.id,children:({direction:u,filteredItems:c,onItemSelectAll:m,onItemSelect:p,selectedKeys:g})=>{const y={onSelectAll(x,E){const k=E.filter(w=>!w.disabled).map(({id:w})=>w),T=x?ie.difference(k,g):ie.difference(g,k);m(T,x)},onSelect({id:x},E){e.isRadio&&g.splice(0,1),p(x,E)},getCheckboxProps:x=>({disabled:x.name=="~#~"||x.number=="~#~"||x.empNo=="~#~"?!0:u=="left"?x.disabled:!1}),selectedRowKeys:g};return D.jsxs(D.Fragment,{children:[D.jsx(Z.Table,{rowSelection:{type:e.isRadio?"radio":"checkbox",...y},columns:t.columns,showSorterTooltip:!1,pagination:!1,dataSource:c,scroll:{y:301},style:{height:"338px"},size:"small",onRow:x=>({onClick:()=>{x.name=="~#~"||x.empNo=="~#~"||!x.disabled&&u==="left"&&(e.isRadio&&g.splice(0,1),p(x.id,!g.includes(x.id)))},onDoubleClick:()=>{if(!(x.name=="~#~"||x.empNo=="~#~")){if(u==="left")x.disabled||(e.isRadio&&(t.targetKeys=[]),t.targetKeys.unshift(x.id));else for(let E=0;E<t.targetKeys.length;E++)if(t.targetKeys[E]==x.id){t.targetKeys.splice(E,1);break}}}})}),u==="left"?D.jsxs("div",{className:jd.selectNum,children:[e.defaultPageSize!==50?`${Y("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}})}`:Y("sys.maxDisplay50",{placeholder:"最多显示50条"})," ",", ",Y("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),c.length,Y("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]}):D.jsxs("div",{className:jd.selectNum,children:[Y("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}}),",",Y("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),c.length,Y("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]})]})}}),a=l=>{e.isRadio?t.targetKeys=[l[0]]:t.targetKeys=l},i=async()=>{let l=[];for(let u=0;u<t.targetKeys.length;u++)for(let c=0;c<t.dataSource.length;c++)if(t.targetKeys[u]==t.dataSource[c].id){l.push(t.dataSource[c]);break}e.onSubmit&&e.onSubmit(l)},s=()=>{if(e.columns.length>0){let l=[Y("project.workflow.status",{placeholder:"状态"}),Y("sys.import.category",{placeholder:"分类"})];return Y("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:ie.without(ie.map(e.columns,"title"),...l).join("、")}})}return Y("sys.enterSearch",{placeholder:"请输入搜索内容"})};return D.jsx(To,{className:jd.shuttle_box,modalTitle:e.title,okText:Y("project.tab.plan.details.window.save",{placeholder:"保存"}),width:850,visible:e.visible,onOk:()=>{i()},onCancel:()=>{e.onCancel&&e.onCancel()},children:D.jsx("div",{className:jd.transferBox,children:D.jsx(Ls,{spinning:e.loading,children:D.jsx(n,{dataSource:t.dataSource,targetKeys:t.targetKeys,showSearch:!0,locale:{searchPlaceholder:e.searchPlaceholder||s()},showSelectAll:!1,onChange:a,filterOption:(l,u)=>u.Name&&u.Name.indexOf(l)!==-1||u.EmpNo&&u.EmpNo.indexOf(l)!==-1||u.empNo&&u.empNo.indexOf(l)!==-1||u.email&&u.email.indexOf(l)!==-1||u.name&&u.name.indexOf(l)!==-1||u.workflowName&&u.workflowName.indexOf(l)!==-1||u.code&&String(u.code).indexOf(l)!==-1||u.description&&u.description.indexOf(l)!==-1})})})})},{RangePicker:Ox}=Z.DatePicker,{Option:lg}=Z.Select,{TreeNode:Ax}=Z.Tree,{confirm:kee}=Z.Modal,PW=[{value:"and",label:Y("sys.query.builder.condit.and",{placeholder:"与"})},{value:"or",label:Y("sys.query.builder.condit.or",{placeholder:"或"})}],h4=F.forwardRef((e,t)=>{F.useRef();const r=F.useRef(null),n=F.useRef(null),a="YYYY-MM-DD HH:mm:ss",i={10002011:10001001,10002021:10001002,10002035:10001006,10002053:10001021,10002054:10001023,10002055:10001022},s=Br({1:[{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:Y("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:Y("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],2:[{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:Y("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:Y("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],3:[{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],4:[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:Y("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:Y("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:Y("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:Y("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],5:[[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"in",label:Y("sys.condition.in",{placeholder:"在"})},{value:"!in",label:Y("sys.condition.notIn",{placeholder:"不在"})},{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}]],6:[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"between",label:Y("sys.condition.in",{placeholder:"在"})},{value:"gt",label:Y("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:Y("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:Y("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:Y("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],7:[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:Y("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:Y("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:Y("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:Y("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})}],8:[{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],9:[{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],10:[{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],12:[{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:Y("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:Y("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],13:[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:Y("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:Y("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:Y("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:Y("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}]}),l=["ProductRoleList","CategoryList","VersionList","ProductList","LifePhaseList","WorkflowList","WorkflowNodeList"],u=Br({verification:!1,useThrottle:!0,treeChoice:"",verifyRoute:!1,formCofing:{base_item_id:"",base_item_name:"",object_id:"",object_name:"",relations:[{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}),c=Br({routineData:[],treeData:[],treeDefine:[],treeDefineKey:[],treeIndex1:null,treeIndex2:null,treeLoading:!1,treeVisible:!1,treeCheckable:!1,titleName:"",dataSource:[],loading:!1,visibleTransfer:!1,targetKeys:[],isRadio:!1,isUserCode:"",department:!1,saveSearchVisible:!1,selectedKeys:""});F.useImperativeHandle(t,()=>({getValue:()=>u.formCofing,onVerification:C=>{u.verification=C},setCondition:(C,P)=>{P==0?(u.formCofing.base_item_id=C.value,u.formCofing.base_item_name=C.label):(u.formCofing.object_id=(C==null?void 0:C.value)||"",u.formCofing.object_name=(C==null?void 0:C.label)||"")},emptyCondition:C=>{C&&(u.formCofing.base_item_id="",u.formCofing.base_item_name="",u.formCofing.object_id="",u.formCofing.object_name=""),u.verification=!1,u.formCofing.relations=[{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]},setConditionValue:C=>{u.formCofing=C},searchBtn:()=>{m()},defaultValue:()=>{var P;const C=(P=e.typeData[0])==null?void 0:P.children.filter(M=>M.apicode==="Number"||M.apicode==="Name"||M.apicode==="Description")[0];u.formCofing.relations=[{join:"and",isGroup:!1,relation:[{attribute:{id:[e.typeData[0].value,C.id],name:`${e.typeData[0].label}/${C.name}`,lastSelected:C,type:C.valueType||"",rawType:C.valueType||"",tab_code:e.typeData[0].value,dataFrom:C.dataFrom||"",dataFromId:C.dataFromId||"",apicode:C.apicode,operator:"contain",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}));const m=C=>{if(u.verification=!1,!u.formCofing.base_item_id){Z.message.warning(Y("sys.import.selectCategory",{placeholder:"请选择分类"}));return}let P=ie.cloneDeep(u.formCofing.relations);P.length==1&&(x(P),P=ie.compact(P));for(let[M,U]of P.entries())for(let L of U.relation){if(!L.attribute.name||!L.attribute.operator||L.attribute.operator!="null"&&L.attribute.operator!="!null"&&!L.attribute.value){u.verification=!0;return}M!=0&&(U.join=P[M-1].relation[P[M-1].relation.length-1].attribute.attr_join)}u.formCofing.base_item_id,u.formCofing.base_item_name,u.formCofing.object_id,u.formCofing.object_name},p=(C,P)=>C=="5"&&P?P.listCode==10005213?s[C][2]:!P.allowMultiple||P.apicode=="LifeCyclePhase"||P.apicode=="Category"?s[C][0]:P.listType=="0"?s[C][1]:P.listType=="2"?s[C][2]:s[C][3]:s[C],g=()=>{u.formCofing.relations[c.treeIndex1].relation[c.treeIndex2].attribute.value=c.treeDefine.join(","),u.formCofing.relations[c.treeIndex1].relation[c.treeIndex2].attribute.valueTreeKey=c.treeDefineKey,c.titleName="",c.treeVisible=!1},y=(C,P)=>P.some(M=>M.label&&M.label.toLowerCase().indexOf(C.toLowerCase())>-1),x=C=>C.map((P,M)=>(P.relation.forEach((U,L)=>{let N=U.attribute;!N.name&&!N.operator&&!N.value&&delete P.relation[L]}),P.relation=ie.compact(P.relation),P.relation.length==0&&delete C[M],P)),E=C=>{let P=[];if(C)for(let M of C)P.push({label:M.showName||M.name,value:M.id,disabled:!M.status});return P},k=C=>C.map(P=>P.children?D.jsx(Ax,{title:c.department?P.title:P.name,children:k(P.children)},P.id):D.jsx(Ax,{title:c.department?P.title:P.name},P.id)),T=(C,P)=>D.jsx(rh,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},searchWords:[P?P.toString():""],textToHighlight:C?C.toString():""}),w=()=>{n.current&&setTimeout(()=>{n.current.scroll({top:n.current.scrollTop+38,behavior:"smooth"})},100)},S=(C,P,M,U)=>{!M||M&&C.relation.length>1&&U==C.relation.length-1?u.formCofing.relations.splice(P+1,0,{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}):u.formCofing.relations[P].relation.splice(U+1,0,{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}),_(C),w()},f=C=>{u.formCofing.relations.splice(C+1,0,{join:"and",isGroup:!0,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}),w()},h=C=>{u.formCofing.relations.splice(C,1)},v=(C,P,M,U)=>{M&&C.relation.length>1?(C.relation.splice(U,1),_(C)):u.formCofing.relations.splice(P,1)},_=C=>{for(let P=0;P<C.relation.length;P++)C.relation[P].attribute.forbidden=!0,C.relation.length>1&&C.relation.length-1!=P&&(C.relation[P].attribute.forbidden=!1)},R=(C,P,M,U,L)=>{if(M&&(M.apicode=="OrgName"||M.apicode=="CreateUserDepartment"))return D.jsx(Z.Select,{className:`
|
|
331
|
+
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var ux={};function n4(e,t){ve.deprecationHandler!=null&&ve.deprecationHandler(e,t),ux[e]||(r4(t),ux[e]=!0)}ve.suppressDeprecationWarnings=!1;ve.deprecationHandler=null;function ba(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function D$(e){var t,r;for(r in e)ht(e,r)&&(t=e[r],ba(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function f1(e,t){var r=Ai({},e),n;for(n in t)ht(t,n)&&(_o(e[n])&&_o(t[n])?(r[n]={},Ai(r[n],e[n]),Ai(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)ht(e,n)&&!ht(t,n)&&_o(e[n])&&(r[n]=Ai({},r[n]));return r}function bv(e){e!=null&&this.set(e)}var h1;Object.keys?h1=Object.keys:h1=function(e){var t,r=[];for(t in e)ht(e,t)&&r.push(t);return r};var M$={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function F$(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return ba(n)?n.call(t,r):n}function ma(e,t,r){var n=""+Math.abs(e),a=t-n.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var yv=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Md=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,eg={},ys={};function Me(e,t,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),e&&(ys[e]=a),t&&(ys[t[0]]=function(){return ma(a.apply(this,arguments),t[1],t[2])}),r&&(ys[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function N$(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function I$(e){var t=e.match(yv),r,n;for(r=0,n=t.length;r<n;r++)ys[t[r]]?t[r]=ys[t[r]]:t[r]=N$(t[r]);return function(a){var i="",s;for(s=0;s<n;s++)i+=ba(t[s])?t[s].call(a,e):t[s];return i}}function mf(e,t){return e.isValid()?(t=a4(t,e.localeData()),eg[t]=eg[t]||I$(t),eg[t](e)):e.localeData().invalidDate()}function a4(e,t){var r=5;function n(a){return t.longDateFormat(a)||a}for(Md.lastIndex=0;r>=0&&Md.test(e);)e=e.replace(Md,n),Md.lastIndex=0,r-=1;return e}var L$={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function j$(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(yv).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var $$="Invalid date";function z$(){return this._invalidDate}var B$="%d",H$=/\d{1,2}/;function U$(e){return this._ordinal.replace("%d",e)}var q$={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function W$(e,t,r,n){var a=this._relativeTime[r];return ba(a)?a(e,t,r,n):a.replace(/%d/i,e)}function V$(e,t){var r=this._relativeTime[e>0?"future":"past"];return ba(r)?r(t):r.replace(/%s/i,t)}var lx={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function On(e){return typeof e=="string"?lx[e]||lx[e.toLowerCase()]:void 0}function _v(e){var t={},r,n;for(n in e)ht(e,n)&&(r=On(n),r&&(t[r]=e[n]));return t}var Y$={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function G$(e){var t=[],r;for(r in e)ht(e,r)&&t.push({unit:r,priority:Y$[r]});return t.sort(function(n,a){return n.priority-a.priority}),t}var i4=/\d/,cn=/\d\d/,o4=/\d{3}/,wv=/\d{4}/,dh=/[+-]?\d{6}/,It=/\d\d?/,s4=/\d\d\d\d?/,u4=/\d\d\d\d\d\d?/,fh=/\d{1,3}/,xv=/\d{1,4}/,hh=/[+-]?\d{1,6}/,Hs=/\d+/,ph=/[+-]?\d+/,K$=/Z|[+-]\d\d:?\d\d/gi,mh=/Z|[+-]\d\d(?::?\d\d)?/gi,X$=/[+-]?\d+(\.\d{1,3})?/,gc=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Us=/^[1-9]\d?/,Sv=/^([1-9]\d|\d)/,If;If={};function Ce(e,t,r){If[e]=ba(t)?t:function(n,a){return n&&r?r:t}}function Z$(e,t){return ht(If,e)?If[e](t._strict,t._locale):new RegExp(J$(e))}function J$(e){return ti(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,a,i){return r||n||a||i}))}function ti(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function wn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ut(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=wn(t)),r}var p1={};function At(e,t){var r,n=t,a;for(typeof e=="string"&&(e=[e]),ni(t)&&(n=function(i,s){s[t]=ut(i)}),a=e.length,r=0;r<a;r++)p1[e[r]]=n}function vc(e,t){At(e,function(r,n,a,i){a._w=a._w||{},t(r,a._w,a,i)})}function Q$(e,t,r){t!=null&&ht(p1,e)&&p1[e](t,r._a,r,e)}function gh(e){return e%4===0&&e%100!==0||e%400===0}var wr=0,Ja=1,la=2,nr=3,qn=4,Qa=5,go=6,ez=7,tz=8;Me("Y",0,0,function(){var e=this.year();return e<=9999?ma(e,4):"+"+e});Me(0,["YY",2],0,function(){return this.year()%100});Me(0,["YYYY",4],0,"year");Me(0,["YYYYY",5],0,"year");Me(0,["YYYYYY",6,!0],0,"year");Ce("Y",ph);Ce("YY",It,cn);Ce("YYYY",xv,wv);Ce("YYYYY",hh,dh);Ce("YYYYYY",hh,dh);At(["YYYYY","YYYYYY"],wr);At("YYYY",function(e,t){t[wr]=e.length===2?ve.parseTwoDigitYear(e):ut(e)});At("YY",function(e,t){t[wr]=ve.parseTwoDigitYear(e)});At("Y",function(e,t){t[wr]=parseInt(e,10)});function Nl(e){return gh(e)?366:365}ve.parseTwoDigitYear=function(e){return ut(e)+(ut(e)>68?1900:2e3)};var l4=qs("FullYear",!0);function rz(){return gh(this.year())}function qs(e,t){return function(r){return r!=null?(c4(this,e,r),ve.updateOffset(this,t),this):Kl(this,e)}}function Kl(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function c4(e,t,r){var n,a,i,s,l;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=r,s=e.month(),l=e.date(),l=l===29&&s===1&&!gh(i)?28:l,a?n.setUTCFullYear(i,s,l):n.setFullYear(i,s,l)}}function nz(e){return e=On(e),ba(this[e])?this[e]():this}function az(e,t){if(typeof e=="object"){e=_v(e);var r=G$(e),n,a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(e=On(e),ba(this[e]))return this[e](t);return this}function iz(e,t){return(e%t+t)%t}var Gt;Array.prototype.indexOf?Gt=Array.prototype.indexOf:Gt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Cv(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=iz(t,12);return e+=(t-r)/12,r===1?gh(e)?29:28:31-r%7%2}Me("M",["MM",2],"Mo",function(){return this.month()+1});Me("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Me("MMMM",0,0,function(e){return this.localeData().months(this,e)});Ce("M",It,Us);Ce("MM",It,cn);Ce("MMM",function(e,t){return t.monthsShortRegex(e)});Ce("MMMM",function(e,t){return t.monthsRegex(e)});At(["M","MM"],function(e,t){t[Ja]=ut(e)-1});At(["MMM","MMMM"],function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);a!=null?t[Ja]=a:Xe(r).invalidMonth=e});var oz="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),d4="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),f4=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,sz=gc,uz=gc;function lz(e,t){return e?Kn(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||f4).test(t)?"format":"standalone"][e.month()]:Kn(this._months)?this._months:this._months.standalone}function cz(e,t){return e?Kn(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[f4.test(t)?"format":"standalone"][e.month()]:Kn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function dz(e,t,r){var n,a,i,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=va([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(a=Gt.call(this._shortMonthsParse,s),a!==-1?a:null):(a=Gt.call(this._longMonthsParse,s),a!==-1?a:null):t==="MMM"?(a=Gt.call(this._shortMonthsParse,s),a!==-1?a:(a=Gt.call(this._longMonthsParse,s),a!==-1?a:null)):(a=Gt.call(this._longMonthsParse,s),a!==-1?a:(a=Gt.call(this._shortMonthsParse,s),a!==-1?a:null))}function fz(e,t,r){var n,a,i;if(this._monthsParseExact)return dz.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=va([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function h4(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=ut(t);else if(t=e.localeData().monthsParse(t),!ni(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,Cv(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function p4(e){return e!=null?(h4(this,e),ve.updateOffset(this,!0),this):Kl(this,"Month")}function hz(){return Cv(this.year(),this.month())}function pz(e){return this._monthsParseExact?(ht(this,"_monthsRegex")||m4.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ht(this,"_monthsShortRegex")||(this._monthsShortRegex=sz),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function mz(e){return this._monthsParseExact?(ht(this,"_monthsRegex")||m4.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ht(this,"_monthsRegex")||(this._monthsRegex=uz),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function m4(){function e(u,c){return c.length-u.length}var t=[],r=[],n=[],a,i,s,l;for(a=0;a<12;a++)i=va([2e3,a]),s=ti(this.monthsShort(i,"")),l=ti(this.months(i,"")),t.push(s),r.push(l),n.push(l),n.push(s);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function gz(e,t,r,n,a,i,s){var l;return e<100&&e>=0?(l=new Date(e+400,t,r,n,a,i,s),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,r,n,a,i,s),l}function Xl(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Lf(e,t,r){var n=7+t-r,a=(7+Xl(e,0,n).getUTCDay()-t)%7;return-a+n-1}function g4(e,t,r,n,a){var i=(7+r-n)%7,s=Lf(e,n,a),l=1+7*(t-1)+i+s,u,c;return l<=0?(u=e-1,c=Nl(u)+l):l>Nl(e)?(u=e+1,c=l-Nl(e)):(u=e,c=l),{year:u,dayOfYear:c}}function Zl(e,t,r){var n=Lf(e.year(),t,r),a=Math.floor((e.dayOfYear()-n-1)/7)+1,i,s;return a<1?(s=e.year()-1,i=a+ri(s,t,r)):a>ri(e.year(),t,r)?(i=a-ri(e.year(),t,r),s=e.year()+1):(s=e.year(),i=a),{week:i,year:s}}function ri(e,t,r){var n=Lf(e,t,r),a=Lf(e+1,t,r);return(Nl(e)-n+a)/7}Me("w",["ww",2],"wo","week");Me("W",["WW",2],"Wo","isoWeek");Ce("w",It,Us);Ce("ww",It,cn);Ce("W",It,Us);Ce("WW",It,cn);vc(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=ut(e)});function vz(e){return Zl(e,this._week.dow,this._week.doy).week}var bz={dow:0,doy:6};function yz(){return this._week.dow}function _z(){return this._week.doy}function wz(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function xz(e){var t=Zl(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Me("d",0,"do","day");Me("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Me("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Me("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Me("e",0,0,"weekday");Me("E",0,0,"isoWeekday");Ce("d",It);Ce("e",It);Ce("E",It);Ce("dd",function(e,t){return t.weekdaysMinRegex(e)});Ce("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ce("dddd",function(e,t){return t.weekdaysRegex(e)});vc(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);a!=null?t.d=a:Xe(r).invalidWeekday=e});vc(["d","e","E"],function(e,t,r,n){t[n]=ut(e)});function Sz(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Cz(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ev(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Ez="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),v4="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),kz="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Tz=gc,Oz=gc,Az=gc;function Rz(e,t){var r=Kn(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Ev(r,this._week.dow):e?r[e.day()]:r}function Pz(e){return e===!0?Ev(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Dz(e){return e===!0?Ev(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Mz(e,t,r){var n,a,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=va([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(a=Gt.call(this._weekdaysParse,s),a!==-1?a:null):t==="ddd"?(a=Gt.call(this._shortWeekdaysParse,s),a!==-1?a:null):(a=Gt.call(this._minWeekdaysParse,s),a!==-1?a:null):t==="dddd"?(a=Gt.call(this._weekdaysParse,s),a!==-1||(a=Gt.call(this._shortWeekdaysParse,s),a!==-1)?a:(a=Gt.call(this._minWeekdaysParse,s),a!==-1?a:null)):t==="ddd"?(a=Gt.call(this._shortWeekdaysParse,s),a!==-1||(a=Gt.call(this._weekdaysParse,s),a!==-1)?a:(a=Gt.call(this._minWeekdaysParse,s),a!==-1?a:null)):(a=Gt.call(this._minWeekdaysParse,s),a!==-1||(a=Gt.call(this._weekdaysParse,s),a!==-1)?a:(a=Gt.call(this._shortWeekdaysParse,s),a!==-1?a:null))}function Fz(e,t,r){var n,a,i;if(this._weekdaysParseExact)return Mz.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=va([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function Nz(e){if(!this.isValid())return e!=null?this:NaN;var t=Kl(this,"Day");return e!=null?(e=Sz(e,this.localeData()),this.add(e-t,"d")):t}function Iz(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Lz(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Cz(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function jz(e){return this._weekdaysParseExact?(ht(this,"_weekdaysRegex")||kv.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ht(this,"_weekdaysRegex")||(this._weekdaysRegex=Tz),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function $z(e){return this._weekdaysParseExact?(ht(this,"_weekdaysRegex")||kv.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ht(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Oz),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function zz(e){return this._weekdaysParseExact?(ht(this,"_weekdaysRegex")||kv.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ht(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Az),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function kv(){function e(m,p){return p.length-m.length}var t=[],r=[],n=[],a=[],i,s,l,u,c;for(i=0;i<7;i++)s=va([2e3,1]).day(i),l=ti(this.weekdaysMin(s,"")),u=ti(this.weekdaysShort(s,"")),c=ti(this.weekdays(s,"")),t.push(l),r.push(u),n.push(c),a.push(l),a.push(u),a.push(c);t.sort(e),r.sort(e),n.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Tv(){return this.hours()%12||12}function Bz(){return this.hours()||24}Me("H",["HH",2],0,"hour");Me("h",["hh",2],0,Tv);Me("k",["kk",2],0,Bz);Me("hmm",0,0,function(){return""+Tv.apply(this)+ma(this.minutes(),2)});Me("hmmss",0,0,function(){return""+Tv.apply(this)+ma(this.minutes(),2)+ma(this.seconds(),2)});Me("Hmm",0,0,function(){return""+this.hours()+ma(this.minutes(),2)});Me("Hmmss",0,0,function(){return""+this.hours()+ma(this.minutes(),2)+ma(this.seconds(),2)});function b4(e,t){Me(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}b4("a",!0);b4("A",!1);function y4(e,t){return t._meridiemParse}Ce("a",y4);Ce("A",y4);Ce("H",It,Sv);Ce("h",It,Us);Ce("k",It,Us);Ce("HH",It,cn);Ce("hh",It,cn);Ce("kk",It,cn);Ce("hmm",s4);Ce("hmmss",u4);Ce("Hmm",s4);Ce("Hmmss",u4);At(["H","HH"],nr);At(["k","kk"],function(e,t,r){var n=ut(e);t[nr]=n===24?0:n});At(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});At(["h","hh"],function(e,t,r){t[nr]=ut(e),Xe(r).bigHour=!0});At("hmm",function(e,t,r){var n=e.length-2;t[nr]=ut(e.substr(0,n)),t[qn]=ut(e.substr(n)),Xe(r).bigHour=!0});At("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[nr]=ut(e.substr(0,n)),t[qn]=ut(e.substr(n,2)),t[Qa]=ut(e.substr(a)),Xe(r).bigHour=!0});At("Hmm",function(e,t,r){var n=e.length-2;t[nr]=ut(e.substr(0,n)),t[qn]=ut(e.substr(n))});At("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[nr]=ut(e.substr(0,n)),t[qn]=ut(e.substr(n,2)),t[Qa]=ut(e.substr(a))});function Hz(e){return(e+"").toLowerCase().charAt(0)==="p"}var Uz=/[ap]\.?m?\.?/i,qz=qs("Hours",!0);function Wz(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var _4={calendar:M$,longDateFormat:L$,invalidDate:$$,ordinal:B$,dayOfMonthOrdinalParse:H$,relativeTime:q$,months:oz,monthsShort:d4,week:bz,weekdays:Ez,weekdaysMin:kz,weekdaysShort:v4,meridiemParse:Uz},jt={},fl={},Jl;function Vz(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function cx(e){return e&&e.toLowerCase().replace("_","-")}function Yz(e){for(var t=0,r,n,a,i;t<e.length;){for(i=cx(e[t]).split("-"),r=i.length,n=cx(e[t+1]),n=n?n.split("-"):null;r>0;){if(a=vh(i.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&Vz(i,n)>=r-1)break;r--}t++}return Jl}function Gz(e){return!!(e&&e.match("^[^/\\\\]*$"))}function vh(e){var t=null,r;if(jt[e]===void 0&&typeof module<"u"&&module&&module.exports&&Gz(e))try{t=Jl._abbr,r=require,r("./locale/"+e),Ni(t)}catch{jt[e]=null}return jt[e]}function Ni(e,t){var r;return e&&(zr(t)?r=ii(e):r=Ov(e,t),r?Jl=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Jl._abbr}function Ov(e,t){if(t!==null){var r,n=_4;if(t.abbr=e,jt[e]!=null)n4("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=jt[e]._config;else if(t.parentLocale!=null)if(jt[t.parentLocale]!=null)n=jt[t.parentLocale]._config;else if(r=vh(t.parentLocale),r!=null)n=r._config;else return fl[t.parentLocale]||(fl[t.parentLocale]=[]),fl[t.parentLocale].push({name:e,config:t}),null;return jt[e]=new bv(f1(n,t)),fl[e]&&fl[e].forEach(function(a){Ov(a.name,a.config)}),Ni(e),jt[e]}else return delete jt[e],null}function Kz(e,t){if(t!=null){var r,n,a=_4;jt[e]!=null&&jt[e].parentLocale!=null?jt[e].set(f1(jt[e]._config,t)):(n=vh(e),n!=null&&(a=n._config),t=f1(a,t),n==null&&(t.abbr=e),r=new bv(t),r.parentLocale=jt[e],jt[e]=r),Ni(e)}else jt[e]!=null&&(jt[e].parentLocale!=null?(jt[e]=jt[e].parentLocale,e===Ni()&&Ni(e)):jt[e]!=null&&delete jt[e]);return jt[e]}function ii(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Jl;if(!Kn(e)){if(t=vh(e),t)return t;e=[e]}return Yz(e)}function Xz(){return h1(jt)}function Av(e){var t,r=e._a;return r&&Xe(e).overflow===-2&&(t=r[Ja]<0||r[Ja]>11?Ja:r[la]<1||r[la]>Cv(r[wr],r[Ja])?la:r[nr]<0||r[nr]>24||r[nr]===24&&(r[qn]!==0||r[Qa]!==0||r[go]!==0)?nr:r[qn]<0||r[qn]>59?qn:r[Qa]<0||r[Qa]>59?Qa:r[go]<0||r[go]>999?go:-1,Xe(e)._overflowDayOfYear&&(t<wr||t>la)&&(t=la),Xe(e)._overflowWeeks&&t===-1&&(t=ez),Xe(e)._overflowWeekday&&t===-1&&(t=tz),Xe(e).overflow=t),e}var Zz=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Jz=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Qz=/Z|[+-]\d\d(?::?\d\d)?/,Fd=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],tg=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],eB=/^\/?Date\((-?\d+)/i,tB=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,rB={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function w4(e){var t,r,n=e._i,a=Zz.exec(n)||Jz.exec(n),i,s,l,u,c=Fd.length,m=tg.length;if(a){for(Xe(e).iso=!0,t=0,r=c;t<r;t++)if(Fd[t][1].exec(a[1])){s=Fd[t][0],i=Fd[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(a[3]){for(t=0,r=m;t<r;t++)if(tg[t][1].exec(a[3])){l=(a[2]||" ")+tg[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(a[4])if(Qz.exec(a[4]))u="Z";else{e._isValid=!1;return}e._f=s+(l||"")+(u||""),Pv(e)}else e._isValid=!1}function nB(e,t,r,n,a,i){var s=[aB(e),d4.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(a,10)];return i&&s.push(parseInt(i,10)),s}function aB(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function iB(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function oB(e,t,r){if(e){var n=v4.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(n!==a)return Xe(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function sB(e,t,r){if(e)return rB[e];if(t)return 0;var n=parseInt(r,10),a=n%100,i=(n-a)/100;return i*60+a}function x4(e){var t=tB.exec(iB(e._i)),r;if(t){if(r=nB(t[4],t[3],t[2],t[5],t[6],t[7]),!oB(t[1],r,e))return;e._a=r,e._tzm=sB(t[8],t[9],t[10]),e._d=Xl.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Xe(e).rfc2822=!0}else e._isValid=!1}function uB(e){var t=eB.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(w4(e),e._isValid===!1)delete e._isValid;else return;if(x4(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ve.createFromInputFallback(e)}ve.createFromInputFallback=Tn("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function is(e,t,r){return e??t??r}function lB(e){var t=new Date(ve.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Rv(e){var t,r,n=[],a,i,s;if(!e._d){for(a=lB(e),e._w&&e._a[la]==null&&e._a[Ja]==null&&cB(e),e._dayOfYear!=null&&(s=is(e._a[wr],a[wr]),(e._dayOfYear>Nl(s)||e._dayOfYear===0)&&(Xe(e)._overflowDayOfYear=!0),r=Xl(s,0,e._dayOfYear),e._a[Ja]=r.getUTCMonth(),e._a[la]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=a[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[nr]===24&&e._a[qn]===0&&e._a[Qa]===0&&e._a[go]===0&&(e._nextDay=!0,e._a[nr]=0),e._d=(e._useUTC?Xl:gz).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[nr]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Xe(e).weekdayMismatch=!0)}}function cB(e){var t,r,n,a,i,s,l,u,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,s=4,r=is(t.GG,e._a[wr],Zl(Nt(),1,4).year),n=is(t.W,1),a=is(t.E,1),(a<1||a>7)&&(u=!0)):(i=e._locale._week.dow,s=e._locale._week.doy,c=Zl(Nt(),i,s),r=is(t.gg,e._a[wr],c.year),n=is(t.w,c.week),t.d!=null?(a=t.d,(a<0||a>6)&&(u=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(u=!0)):a=i),n<1||n>ri(r,i,s)?Xe(e)._overflowWeeks=!0:u!=null?Xe(e)._overflowWeekday=!0:(l=g4(r,n,a,i,s),e._a[wr]=l.year,e._dayOfYear=l.dayOfYear)}ve.ISO_8601=function(){};ve.RFC_2822=function(){};function Pv(e){if(e._f===ve.ISO_8601){w4(e);return}if(e._f===ve.RFC_2822){x4(e);return}e._a=[],Xe(e).empty=!0;var t=""+e._i,r,n,a,i,s,l=t.length,u=0,c,m;for(a=a4(e._f,e._locale).match(yv)||[],m=a.length,r=0;r<m;r++)i=a[r],n=(t.match(Z$(i,e))||[])[0],n&&(s=t.substr(0,t.indexOf(n)),s.length>0&&Xe(e).unusedInput.push(s),t=t.slice(t.indexOf(n)+n.length),u+=n.length),ys[i]?(n?Xe(e).empty=!1:Xe(e).unusedTokens.push(i),Q$(i,n,e)):e._strict&&!n&&Xe(e).unusedTokens.push(i);Xe(e).charsLeftOver=l-u,t.length>0&&Xe(e).unusedInput.push(t),e._a[nr]<=12&&Xe(e).bigHour===!0&&e._a[nr]>0&&(Xe(e).bigHour=void 0),Xe(e).parsedDateParts=e._a.slice(0),Xe(e).meridiem=e._meridiem,e._a[nr]=dB(e._locale,e._a[nr],e._meridiem),c=Xe(e).era,c!==null&&(e._a[wr]=e._locale.erasConvertYear(c,e._a[wr])),Rv(e),Av(e)}function dB(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function fB(e){var t,r,n,a,i,s,l=!1,u=e._f.length;if(u===0){Xe(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<u;a++)i=0,s=!1,t=vv({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],Pv(t),gv(t)&&(s=!0),i+=Xe(t).charsLeftOver,i+=Xe(t).unusedTokens.length*10,Xe(t).score=i,l?i<n&&(n=i,r=t):(n==null||i<n||s)&&(n=i,r=t,s&&(l=!0));Ai(e,r||t)}function hB(e){if(!e._d){var t=_v(e._i),r=t.day===void 0?t.date:t.day;e._a=t4([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),Rv(e)}}function pB(e){var t=new mc(Av(S4(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function S4(e){var t=e._i,r=e._f;return e._locale=e._locale||ii(e._l),t===null||r===void 0&&t===""?ch({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Xn(t)?new mc(Av(t)):(pc(t)?e._d=t:Kn(r)?fB(e):r?Pv(e):mB(e),gv(e)||(e._d=null),e))}function mB(e){var t=e._i;zr(t)?e._d=new Date(ve.now()):pc(t)?e._d=new Date(t.valueOf()):typeof t=="string"?uB(e):Kn(t)?(e._a=t4(t.slice(0),function(r){return parseInt(r,10)}),Rv(e)):_o(t)?hB(e):ni(t)?e._d=new Date(t):ve.createFromInputFallback(e)}function C4(e,t,r,n,a){var i={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(_o(e)&&mv(e)||Kn(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=r,i._i=e,i._f=t,i._strict=n,pB(i)}function Nt(e,t,r,n){return C4(e,t,r,n,!1)}var gB=Tn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Nt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:ch()}),vB=Tn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Nt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:ch()});function E4(e,t){var r,n;if(t.length===1&&Kn(t[0])&&(t=t[0]),!t.length)return Nt();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function bB(){var e=[].slice.call(arguments,0);return E4("isBefore",e)}function yB(){var e=[].slice.call(arguments,0);return E4("isAfter",e)}var _B=function(){return Date.now?Date.now():+new Date},hl=["year","quarter","month","week","day","hour","minute","second","millisecond"];function wB(e){var t,r=!1,n,a=hl.length;for(t in e)if(ht(e,t)&&!(Gt.call(hl,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<a;++n)if(e[hl[n]]){if(r)return!1;parseFloat(e[hl[n]])!==ut(e[hl[n]])&&(r=!0)}return!0}function xB(){return this._isValid}function SB(){return Qn(NaN)}function bh(e){var t=_v(e),r=t.year||0,n=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,u=t.minute||0,c=t.second||0,m=t.millisecond||0;this._isValid=wB(t),this._milliseconds=+m+c*1e3+u*6e4+l*1e3*60*60,this._days=+s+i*7,this._months=+a+n*3+r*12,this._data={},this._locale=ii(),this._bubble()}function gf(e){return e instanceof bh}function m1(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function CB(e,t,r){var n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,s;for(s=0;s<n;s++)ut(e[s])!==ut(t[s])&&i++;return i+a}function k4(e,t){Me(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+ma(~~(r/60),2)+t+ma(~~r%60,2)})}k4("Z",":");k4("ZZ","");Ce("Z",mh);Ce("ZZ",mh);At(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Dv(mh,e)});var EB=/([\+\-]|\d\d)/gi;function Dv(e,t){var r=(t||"").match(e),n,a,i;return r===null?null:(n=r[r.length-1]||[],a=(n+"").match(EB)||["-",0,0],i=+(a[1]*60)+ut(a[2]),i===0?0:a[0]==="+"?i:-i)}function Mv(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(Xn(e)||pc(e)?e.valueOf():Nt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),ve.updateOffset(r,!1),r):Nt(e).local()}function g1(e){return-Math.round(e._d.getTimezoneOffset())}ve.updateOffset=function(){};function kB(e,t,r){var n=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Dv(mh,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(a=g1(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),n!==e&&(!t||this._changeInProgress?A4(this,Qn(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ve.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:g1(this)}function TB(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function OB(e){return this.utcOffset(0,e)}function AB(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(g1(this),"m")),this}function RB(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Dv(K$,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function PB(e){return this.isValid()?(e=e?Nt(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function DB(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function MB(){if(!zr(this._isDSTShifted))return this._isDSTShifted;var e={},t;return vv(e,this),e=S4(e),e._a?(t=e._isUTC?va(e._a):Nt(e._a),this._isDSTShifted=this.isValid()&&CB(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function FB(){return this.isValid()?!this._isUTC:!1}function NB(){return this.isValid()?this._isUTC:!1}function T4(){return this.isValid()?this._isUTC&&this._offset===0:!1}var IB=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,LB=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Qn(e,t){var r=e,n=null,a,i,s;return gf(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:ni(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=IB.exec(e))?(a=n[1]==="-"?-1:1,r={y:0,d:ut(n[la])*a,h:ut(n[nr])*a,m:ut(n[qn])*a,s:ut(n[Qa])*a,ms:ut(m1(n[go]*1e3))*a}):(n=LB.exec(e))?(a=n[1]==="-"?-1:1,r={y:no(n[2],a),M:no(n[3],a),w:no(n[4],a),d:no(n[5],a),h:no(n[6],a),m:no(n[7],a),s:no(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(s=jB(Nt(r.from),Nt(r.to)),r={},r.ms=s.milliseconds,r.M=s.months),i=new bh(r),gf(e)&&ht(e,"_locale")&&(i._locale=e._locale),gf(e)&&ht(e,"_isValid")&&(i._isValid=e._isValid),i}Qn.fn=bh.prototype;Qn.invalid=SB;function no(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function dx(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function jB(e,t){var r;return e.isValid()&&t.isValid()?(t=Mv(t,e),e.isBefore(t)?r=dx(e,t):(r=dx(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function O4(e,t){return function(r,n){var a,i;return n!==null&&!isNaN(+n)&&(n4(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),a=Qn(r,n),A4(this,a,e),this}}function A4(e,t,r,n){var a=t._milliseconds,i=m1(t._days),s=m1(t._months);e.isValid()&&(n=n??!0,s&&h4(e,Kl(e,"Month")+s*r),i&&c4(e,"Date",Kl(e,"Date")+i*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&ve.updateOffset(e,i||s))}var $B=O4(1,"add"),zB=O4(-1,"subtract");function R4(e){return typeof e=="string"||e instanceof String}function BB(e){return Xn(e)||pc(e)||R4(e)||ni(e)||UB(e)||HB(e)||e===null||e===void 0}function HB(e){var t=_o(e)&&!mv(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,s=n.length;for(a=0;a<s;a+=1)i=n[a],r=r||ht(e,i);return t&&r}function UB(e){var t=Kn(e),r=!1;return t&&(r=e.filter(function(n){return!ni(n)&&R4(e)}).length===0),t&&r}function qB(e){var t=_o(e)&&!mv(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<n.length;a+=1)i=n[a],r=r||ht(e,i);return t&&r}function WB(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function VB(e,t){arguments.length===1&&(arguments[0]?BB(arguments[0])?(e=arguments[0],t=void 0):qB(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Nt(),n=Mv(r,this).startOf("day"),a=ve.calendarFormat(this,n)||"sameElse",i=t&&(ba(t[a])?t[a].call(this,r):t[a]);return this.format(i||this.localeData().calendar(a,this,Nt(r)))}function YB(){return new mc(this)}function GB(e,t){var r=Xn(e)?e:Nt(e);return this.isValid()&&r.isValid()?(t=On(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function KB(e,t){var r=Xn(e)?e:Nt(e);return this.isValid()&&r.isValid()?(t=On(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function XB(e,t,r,n){var a=Xn(e)?e:Nt(e),i=Xn(t)?t:Nt(t);return this.isValid()&&a.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(n[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function ZB(e,t){var r=Xn(e)?e:Nt(e),n;return this.isValid()&&r.isValid()?(t=On(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function JB(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function QB(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function eH(e,t,r){var n,a,i;if(!this.isValid())return NaN;if(n=Mv(e,this),!n.isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,t=On(t),t){case"year":i=vf(this,n)/12;break;case"month":i=vf(this,n);break;case"quarter":i=vf(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return r?i:wn(i)}function vf(e,t){if(e.date()<t.date())return-vf(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),a,i;return t-n<0?(a=e.clone().add(r-1,"months"),i=(t-n)/(n-a)):(a=e.clone().add(r+1,"months"),i=(t-n)/(a-n)),-(r+i)||0}ve.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";ve.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function tH(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function rH(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?mf(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ba(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",mf(r,"Z")):mf(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function nH(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+a+i)}function aH(e){e||(e=this.isUtc()?ve.defaultFormatUtc:ve.defaultFormat);var t=mf(this,e);return this.localeData().postformat(t)}function iH(e,t){return this.isValid()&&(Xn(e)&&e.isValid()||Nt(e).isValid())?Qn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oH(e){return this.from(Nt(),e)}function sH(e,t){return this.isValid()&&(Xn(e)&&e.isValid()||Nt(e).isValid())?Qn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function uH(e){return this.to(Nt(),e)}function P4(e){var t;return e===void 0?this._locale._abbr:(t=ii(e),t!=null&&(this._locale=t),this)}var D4=Tn("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function M4(){return this._locale}var jf=1e3,_s=60*jf,$f=60*_s,F4=(365*400+97)*24*$f;function ws(e,t){return(e%t+t)%t}function N4(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-F4:new Date(e,t,r).valueOf()}function I4(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-F4:Date.UTC(e,t,r)}function lH(e){var t,r;if(e=On(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?I4:N4,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ws(t+(this._isUTC?0:this.utcOffset()*_s),$f);break;case"minute":t=this._d.valueOf(),t-=ws(t,_s);break;case"second":t=this._d.valueOf(),t-=ws(t,jf);break}return this._d.setTime(t),ve.updateOffset(this,!0),this}function cH(e){var t,r;if(e=On(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?I4:N4,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=$f-ws(t+(this._isUTC?0:this.utcOffset()*_s),$f)-1;break;case"minute":t=this._d.valueOf(),t+=_s-ws(t,_s)-1;break;case"second":t=this._d.valueOf(),t+=jf-ws(t,jf)-1;break}return this._d.setTime(t),ve.updateOffset(this,!0),this}function dH(){return this._d.valueOf()-(this._offset||0)*6e4}function fH(){return Math.floor(this.valueOf()/1e3)}function hH(){return new Date(this.valueOf())}function pH(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function mH(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function gH(){return this.isValid()?this.toISOString():null}function vH(){return gv(this)}function bH(){return Ai({},Xe(this))}function yH(){return Xe(this).overflow}function _H(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Me("N",0,0,"eraAbbr");Me("NN",0,0,"eraAbbr");Me("NNN",0,0,"eraAbbr");Me("NNNN",0,0,"eraName");Me("NNNNN",0,0,"eraNarrow");Me("y",["y",1],"yo","eraYear");Me("y",["yy",2],0,"eraYear");Me("y",["yyy",3],0,"eraYear");Me("y",["yyyy",4],0,"eraYear");Ce("N",Fv);Ce("NN",Fv);Ce("NNN",Fv);Ce("NNNN",PH);Ce("NNNNN",DH);At(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?Xe(r).era=a:Xe(r).invalidEra=e});Ce("y",Hs);Ce("yy",Hs);Ce("yyy",Hs);Ce("yyyy",Hs);Ce("yo",MH);At(["y","yy","yyy","yyyy"],wr);At(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[wr]=r._locale.eraYearOrdinalParse(e,a):t[wr]=parseInt(e,10)});function wH(e,t){var r,n,a,i=this._eras||ii("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":a=ve(i[r].since).startOf("day"),i[r].since=a.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":a=ve(i[r].until).startOf("day").valueOf(),i[r].until=a.valueOf();break}}return i}function xH(e,t,r){var n,a,i=this.eras(),s,l,u;for(e=e.toUpperCase(),n=0,a=i.length;n<a;++n)if(s=i[n].name.toUpperCase(),l=i[n].abbr.toUpperCase(),u=i[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[n];break;case"NNNN":if(s===e)return i[n];break;case"NNNNN":if(u===e)return i[n];break}else if([s,l,u].indexOf(e)>=0)return i[n]}function SH(e,t){var r=e.since<=e.until?1:-1;return t===void 0?ve(e.since).year():ve(e.since).year()+(t-e.offset)*r}function CH(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function EH(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function kH(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function TH(){var e,t,r,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until||a[e].until<=n&&n<=a[e].since)return(this.year()-ve(a[e].since).year())*r+a[e].offset;return this.year()}function OH(e){return ht(this,"_erasNameRegex")||Nv.call(this),e?this._erasNameRegex:this._erasRegex}function AH(e){return ht(this,"_erasAbbrRegex")||Nv.call(this),e?this._erasAbbrRegex:this._erasRegex}function RH(e){return ht(this,"_erasNarrowRegex")||Nv.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fv(e,t){return t.erasAbbrRegex(e)}function PH(e,t){return t.erasNameRegex(e)}function DH(e,t){return t.erasNarrowRegex(e)}function MH(e,t){return t._eraYearOrdinalRegex||Hs}function Nv(){var e=[],t=[],r=[],n=[],a,i,s,l,u,c=this.eras();for(a=0,i=c.length;a<i;++a)s=ti(c[a].name),l=ti(c[a].abbr),u=ti(c[a].narrow),t.push(s),e.push(l),r.push(u),n.push(s),n.push(l),n.push(u);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}Me(0,["gg",2],0,function(){return this.weekYear()%100});Me(0,["GG",2],0,function(){return this.isoWeekYear()%100});function yh(e,t){Me(0,[e,e.length],0,t)}yh("gggg","weekYear");yh("ggggg","weekYear");yh("GGGG","isoWeekYear");yh("GGGGG","isoWeekYear");Ce("G",ph);Ce("g",ph);Ce("GG",It,cn);Ce("gg",It,cn);Ce("GGGG",xv,wv);Ce("gggg",xv,wv);Ce("GGGGG",hh,dh);Ce("ggggg",hh,dh);vc(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=ut(e)});vc(["gg","GG"],function(e,t,r,n){t[n]=ve.parseTwoDigitYear(e)});function FH(e){return L4.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function NH(e){return L4.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function IH(){return ri(this.year(),1,4)}function LH(){return ri(this.isoWeekYear(),1,4)}function jH(){var e=this.localeData()._week;return ri(this.year(),e.dow,e.doy)}function $H(){var e=this.localeData()._week;return ri(this.weekYear(),e.dow,e.doy)}function L4(e,t,r,n,a){var i;return e==null?Zl(this,n,a).year:(i=ri(e,n,a),t>i&&(t=i),zH.call(this,e,t,r,n,a))}function zH(e,t,r,n,a){var i=g4(e,t,r,n,a),s=Xl(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Me("Q",0,"Qo","quarter");Ce("Q",i4);At("Q",function(e,t){t[Ja]=(ut(e)-1)*3});function BH(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Me("D",["DD",2],"Do","date");Ce("D",It,Us);Ce("DD",It,cn);Ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});At(["D","DD"],la);At("Do",function(e,t){t[la]=ut(e.match(It)[0])});var j4=qs("Date",!0);Me("DDD",["DDDD",3],"DDDo","dayOfYear");Ce("DDD",fh);Ce("DDDD",o4);At(["DDD","DDDD"],function(e,t,r){r._dayOfYear=ut(e)});function HH(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Me("m",["mm",2],0,"minute");Ce("m",It,Sv);Ce("mm",It,cn);At(["m","mm"],qn);var UH=qs("Minutes",!1);Me("s",["ss",2],0,"second");Ce("s",It,Sv);Ce("ss",It,cn);At(["s","ss"],Qa);var qH=qs("Seconds",!1);Me("S",0,0,function(){return~~(this.millisecond()/100)});Me(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Me(0,["SSS",3],0,"millisecond");Me(0,["SSSS",4],0,function(){return this.millisecond()*10});Me(0,["SSSSS",5],0,function(){return this.millisecond()*100});Me(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Me(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Me(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Me(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ce("S",fh,i4);Ce("SS",fh,cn);Ce("SSS",fh,o4);var Ri,$4;for(Ri="SSSS";Ri.length<=9;Ri+="S")Ce(Ri,Hs);function WH(e,t){t[go]=ut(("0."+e)*1e3)}for(Ri="S";Ri.length<=9;Ri+="S")At(Ri,WH);$4=qs("Milliseconds",!1);Me("z",0,0,"zoneAbbr");Me("zz",0,0,"zoneName");function VH(){return this._isUTC?"UTC":""}function YH(){return this._isUTC?"Coordinated Universal Time":""}var be=mc.prototype;be.add=$B;be.calendar=VB;be.clone=YB;be.diff=eH;be.endOf=cH;be.format=aH;be.from=iH;be.fromNow=oH;be.to=sH;be.toNow=uH;be.get=nz;be.invalidAt=yH;be.isAfter=GB;be.isBefore=KB;be.isBetween=XB;be.isSame=ZB;be.isSameOrAfter=JB;be.isSameOrBefore=QB;be.isValid=vH;be.lang=D4;be.locale=P4;be.localeData=M4;be.max=vB;be.min=gB;be.parsingFlags=bH;be.set=az;be.startOf=lH;be.subtract=zB;be.toArray=pH;be.toObject=mH;be.toDate=hH;be.toISOString=rH;be.inspect=nH;typeof Symbol<"u"&&Symbol.for!=null&&(be[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});be.toJSON=gH;be.toString=tH;be.unix=fH;be.valueOf=dH;be.creationData=_H;be.eraName=CH;be.eraNarrow=EH;be.eraAbbr=kH;be.eraYear=TH;be.year=l4;be.isLeapYear=rz;be.weekYear=FH;be.isoWeekYear=NH;be.quarter=be.quarters=BH;be.month=p4;be.daysInMonth=hz;be.week=be.weeks=wz;be.isoWeek=be.isoWeeks=xz;be.weeksInYear=jH;be.weeksInWeekYear=$H;be.isoWeeksInYear=IH;be.isoWeeksInISOWeekYear=LH;be.date=j4;be.day=be.days=Nz;be.weekday=Iz;be.isoWeekday=Lz;be.dayOfYear=HH;be.hour=be.hours=qz;be.minute=be.minutes=UH;be.second=be.seconds=qH;be.millisecond=be.milliseconds=$4;be.utcOffset=kB;be.utc=OB;be.local=AB;be.parseZone=RB;be.hasAlignedHourOffset=PB;be.isDST=DB;be.isLocal=FB;be.isUtcOffset=NB;be.isUtc=T4;be.isUTC=T4;be.zoneAbbr=VH;be.zoneName=YH;be.dates=Tn("dates accessor is deprecated. Use date instead.",j4);be.months=Tn("months accessor is deprecated. Use month instead",p4);be.years=Tn("years accessor is deprecated. Use year instead",l4);be.zone=Tn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",TB);be.isDSTShifted=Tn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",MB);function GH(e){return Nt(e*1e3)}function KH(){return Nt.apply(null,arguments).parseZone()}function z4(e){return e}var pt=bv.prototype;pt.calendar=F$;pt.longDateFormat=j$;pt.invalidDate=z$;pt.ordinal=U$;pt.preparse=z4;pt.postformat=z4;pt.relativeTime=W$;pt.pastFuture=V$;pt.set=D$;pt.eras=wH;pt.erasParse=xH;pt.erasConvertYear=SH;pt.erasAbbrRegex=AH;pt.erasNameRegex=OH;pt.erasNarrowRegex=RH;pt.months=lz;pt.monthsShort=cz;pt.monthsParse=fz;pt.monthsRegex=mz;pt.monthsShortRegex=pz;pt.week=vz;pt.firstDayOfYear=_z;pt.firstDayOfWeek=yz;pt.weekdays=Rz;pt.weekdaysMin=Dz;pt.weekdaysShort=Pz;pt.weekdaysParse=Fz;pt.weekdaysRegex=jz;pt.weekdaysShortRegex=$z;pt.weekdaysMinRegex=zz;pt.isPM=Hz;pt.meridiem=Wz;function zf(e,t,r,n){var a=ii(),i=va().set(n,t);return a[r](i,e)}function B4(e,t,r){if(ni(e)&&(t=e,e=void 0),e=e||"",t!=null)return zf(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=zf(e,n,r,"month");return a}function Iv(e,t,r,n){typeof e=="boolean"?(ni(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,ni(t)&&(r=t,t=void 0),t=t||"");var a=ii(),i=e?a._week.dow:0,s,l=[];if(r!=null)return zf(t,(r+i)%7,n,"day");for(s=0;s<7;s++)l[s]=zf(t,(s+i)%7,n,"day");return l}function XH(e,t){return B4(e,t,"months")}function ZH(e,t){return B4(e,t,"monthsShort")}function JH(e,t,r){return Iv(e,t,r,"weekdays")}function QH(e,t,r){return Iv(e,t,r,"weekdaysShort")}function eU(e,t,r){return Iv(e,t,r,"weekdaysMin")}Ni("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=ut(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});ve.lang=Tn("moment.lang is deprecated. Use moment.locale instead.",Ni);ve.langData=Tn("moment.langData is deprecated. Use moment.localeData instead.",ii);var qa=Math.abs;function tU(){var e=this._data;return this._milliseconds=qa(this._milliseconds),this._days=qa(this._days),this._months=qa(this._months),e.milliseconds=qa(e.milliseconds),e.seconds=qa(e.seconds),e.minutes=qa(e.minutes),e.hours=qa(e.hours),e.months=qa(e.months),e.years=qa(e.years),this}function H4(e,t,r,n){var a=Qn(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function rU(e,t){return H4(this,e,t,1)}function nU(e,t){return H4(this,e,t,-1)}function fx(e){return e<0?Math.floor(e):Math.ceil(e)}function aU(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,a,i,s,l,u;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=fx(v1(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,a=wn(e/1e3),n.seconds=a%60,i=wn(a/60),n.minutes=i%60,s=wn(i/60),n.hours=s%24,t+=wn(s/24),u=wn(U4(t)),r+=u,t-=fx(v1(u)),l=wn(r/12),r%=12,n.days=t,n.months=r,n.years=l,this}function U4(e){return e*4800/146097}function v1(e){return e*146097/4800}function iU(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=On(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+U4(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(v1(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function oi(e){return function(){return this.as(e)}}var q4=oi("ms"),oU=oi("s"),sU=oi("m"),uU=oi("h"),lU=oi("d"),cU=oi("w"),dU=oi("M"),fU=oi("Q"),hU=oi("y"),pU=q4;function mU(){return Qn(this)}function gU(e){return e=On(e),this.isValid()?this[e+"s"]():NaN}function Oo(e){return function(){return this.isValid()?this._data[e]:NaN}}var vU=Oo("milliseconds"),bU=Oo("seconds"),yU=Oo("minutes"),_U=Oo("hours"),wU=Oo("days"),xU=Oo("months"),SU=Oo("years");function CU(){return wn(this.days()/7)}var Ga=Math.round,cs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function EU(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}function kU(e,t,r,n){var a=Qn(e).abs(),i=Ga(a.as("s")),s=Ga(a.as("m")),l=Ga(a.as("h")),u=Ga(a.as("d")),c=Ga(a.as("M")),m=Ga(a.as("w")),p=Ga(a.as("y")),g=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||s<=1&&["m"]||s<r.m&&["mm",s]||l<=1&&["h"]||l<r.h&&["hh",l]||u<=1&&["d"]||u<r.d&&["dd",u];return r.w!=null&&(g=g||m<=1&&["w"]||m<r.w&&["ww",m]),g=g||c<=1&&["M"]||c<r.M&&["MM",c]||p<=1&&["y"]||["yy",p],g[2]=t,g[3]=+e>0,g[4]=n,EU.apply(null,g)}function TU(e){return e===void 0?Ga:typeof e=="function"?(Ga=e,!0):!1}function OU(e,t){return cs[e]===void 0?!1:t===void 0?cs[e]:(cs[e]=t,e==="s"&&(cs.ss=t-1),!0)}function AU(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=cs,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},cs,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),a=this.localeData(),i=kU(this,!r,n,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var rg=Math.abs;function Ko(e){return(e>0)-(e<0)||+e}function _h(){if(!this.isValid())return this.localeData().invalidDate();var e=rg(this._milliseconds)/1e3,t=rg(this._days),r=rg(this._months),n,a,i,s,l=this.asSeconds(),u,c,m,p;return l?(n=wn(e/60),a=wn(n/60),e%=60,n%=60,i=wn(r/12),r%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=l<0?"-":"",c=Ko(this._months)!==Ko(l)?"-":"",m=Ko(this._days)!==Ko(l)?"-":"",p=Ko(this._milliseconds)!==Ko(l)?"-":"",u+"P"+(i?c+i+"Y":"")+(r?c+r+"M":"")+(t?m+t+"D":"")+(a||n||e?"T":"")+(a?p+a+"H":"")+(n?p+n+"M":"")+(e?p+s+"S":"")):"P0D"}var dt=bh.prototype;dt.isValid=xB;dt.abs=tU;dt.add=rU;dt.subtract=nU;dt.as=iU;dt.asMilliseconds=q4;dt.asSeconds=oU;dt.asMinutes=sU;dt.asHours=uU;dt.asDays=lU;dt.asWeeks=cU;dt.asMonths=dU;dt.asQuarters=fU;dt.asYears=hU;dt.valueOf=pU;dt._bubble=aU;dt.clone=mU;dt.get=gU;dt.milliseconds=vU;dt.seconds=bU;dt.minutes=yU;dt.hours=_U;dt.days=wU;dt.weeks=CU;dt.months=xU;dt.years=SU;dt.humanize=AU;dt.toISOString=_h;dt.toString=_h;dt.toJSON=_h;dt.locale=P4;dt.localeData=M4;dt.toIsoString=Tn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_h);dt.lang=D4;Me("X",0,0,"unix");Me("x",0,0,"valueOf");Ce("x",ph);Ce("X",X$);At("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});At("x",function(e,t,r){r._d=new Date(ut(e))});//! moment.js
|
|
332
|
+
ve.version="2.30.1";R$(Nt);ve.fn=be;ve.min=bB;ve.max=yB;ve.now=_B;ve.utc=va;ve.unix=GH;ve.months=XH;ve.isDate=pc;ve.locale=Ni;ve.invalid=ch;ve.duration=Qn;ve.isMoment=Xn;ve.weekdays=JH;ve.parseZone=KH;ve.localeData=ii;ve.isDuration=gf;ve.monthsShort=ZH;ve.weekdaysMin=eU;ve.defineLocale=Ov;ve.updateLocale=Kz;ve.locales=Xz;ve.weekdaysShort=QH;ve.normalizeUnits=On;ve.relativeTimeRounding=TU;ve.relativeTimeThreshold=OU;ve.calendarFormat=WB;ve.prototype=be;ve.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const ki=class ki{static getAttrOf(t,r){return t.find(n=>(n.apicode||n.apiCode)==r)}static avoid0TypeConvert(t){return t===0?String(t):t}static generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=Math.random()*16|0,n=t=="x"?r:r&3|8;return n.toString(16)})}static momentToRawData(t){if(ve.isMoment(t)){const r=t.creationData();return r==null?void 0:r.input}else return t}static tableRowHasChange(t){return t.dataType=="add"||t.dataType=="del"||ki.tableRowHasNewValue(t)}static tableRowHasNewValue(t){return!!t.newVal&&!!Object.values(t.newVal).length}static isAddTableRow(t){return t.dataType=="add"}static isDelTableRow(t){return t.dataType=="del"}static setTableRowAttrValue(t,r){t.newVal?Object.assign(t.newVal,r):t.newVal=r}static isMac(){return/macintosh|mac os x/i.test(navigator.userAgent)}static makeDestructurable(t,r){if(typeof Symbol<"u"){const n={...t};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let a=0;return{next:()=>({value:r[a++],done:a>r.length})}}}),n}else return Object.assign([...r],t)}static ArrayAttributeFlat(t,r="children",n){const a=[...t],i=[];for(;a.length;){const s=a.shift(),l=s[r];if(n==null||n(s),i.push(s),l!=null&&l.length)for(let u=l.length-1;u>=0;u--)a.unshift(l[u])}return i}static getTreeRelationNoRecursion({data:t,lookup:r,childrenKey:n="children"}){var m;const a=new Set;let i={parent:void 0,self:void 0,beforeSibling:[],afterSibling:[],index:void 0,stack:Array.from(a)};const s=new Map,l=new Map,u=new Map,c=[...t];for(;c.length;){const p=c.shift(),g=s.get(p)??t.findIndex(T=>T==p),y=l.get(p);y?a.add(y):a.clear();const x=y==null?void 0:y[n],E=r(p,g),k=p[n];if(E){i={parent:y,self:p,beforeSibling:(x||t).slice(0,g),afterSibling:(x||t).slice(g+1),index:g,stack:Array.from(a)};break}else if(k!=null&&k.length)for(let T=k.length-1;T>=0;T--){const w=k[T];c.unshift(k[T]),s.set(w,T),l.set(w,p),T==k.length-1&&u.set(w,()=>{var S;(S=u.get(p))==null||S(),a.delete(p)})}else(m=u.get(p))==null||m()}return i}static judgeParentIcon(t,r){if(t=="10001001")return"bluecube";if(t=="10001002")return"document-cube";if(t=="10001006")return"file-cube";if(Fi.isProject(t))return r||"icon"}static generateCacheFn(t){const r=(...n)=>(r._value||(r._value=t(...n)),r._value);return r.clearCache=()=>{r._value=null},r}static generateSnowId(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}};Tt(ki,"getLabelInOptions",t=>{const{value:r,options:n,adaptor:a}=t,i=Object.prototype.toString.call(r);if(!(c=>c!==""&&c!==void 0&&c!==null)(r))return"";let l="";i==="[object Array]"&&(l=[]);const u=c=>{for(let m=0;m<(c||[]).length;m++){const p=c[m][a?a.label:"label"],g=c[m][a?a.value:"value"];i==="[object Array]"?r.includes(g)&&l.push(p):r===g&&(l=p),c[m].children&&c[m].children.length&&u(c[m].children)}};return u(n),l}),Tt(ki,"transformArrayToMap",(t,r,n,a)=>{function i(s,l){return s=="autoGetId"&&(a!=null&&a.useAutoGetId)?As.isCustomAttr(l)?"id":"dataFromId":s}return t==null?void 0:t.reduce((s,l)=>{const u=i(r,l),c=i(n,l);return c?s[l[u]]=l[c]:s[l[u]]=l,s},{})}),Tt(ki,"autoTableHeight",(t=270)=>{var r=0;return window.innerHeight?r=window.innerHeight:document.body&&document.body.clientHeight&&(r=document.body.clientHeight),document.documentElement&&document.documentElement.clientHeight&&(r=document.documentElement.clientHeight),r-t}),Tt(ki,"renderBomTag",t=>{const r=s=>{const l=s.match(/\d+(\.\d+)?/g);return l?l[l.length-1]:""},n=s=>{let l=0;const u=c=>{var m=c.split("");return m.reverse()};for(let c=0;c<u(s).length&&u(s)[c].match(/\d/);c++)l=l+1;return s.substring(0,s.length-l)},a=s=>ie.sortBy(ie.uniq(s.split(",")),l=>Number(r(l))),i=Object.keys(ie.groupBy(a(t),s=>n(s))).map(s=>(u=>{var c=[],m=0;const p=u.sort((g,y)=>Number(r(g))-Number(r(y)));return p.forEach((g,y)=>{y===0?c[0]=[g]:Number(r(g))-Number(r(p[y-1]))===1?c[m].push(g):c[++m]=[g]}),c})(ie.groupBy(a(t),u=>n(u))[s]).map(u=>{if(u.length>1){const c=u.map(m=>Number(r(m)));return`${s}${ie.min(c)}-${ie.max(c)}`}else return u[0]}));return ie.flatten(i).join(",")}),Tt(ki,"tidyBomTag",(t,r)=>{t=t&&t.replace(/,/g,",");const n=t.split(",").map(u=>u.replace(/([^\d]+)(\d+)-\1(\d+)/,"$1$2-$3")).map(u=>{if(u.match(/^\S+\d+-\d+$/)){const c=u.substring(0,u.match(/\d+-\d+$/).index),m=[],p=Number(u.split(c)[1].split("-")[1]),g=p<1e3?p:1e3;for(let y=Number(u.split(c)[1].split("-")[0]);y<=g;y++)m.push(`${c}${y}`);return m.join(",")}else if(u.match(/^\S+\d+-\S+\d+$/)){const c=u.split("-")[0].substring(0,u.match(/\d/).index).toUpperCase(),m=u.split("-")[0].substring(u.match(/\d/).index,u.split("-")[0].length),p=u.split("-")[1].substring(0,u.match(/\d/).index).toUpperCase(),g=u.split("-")[1].substring(u.match(/\d/).index,u.split("-")[0].length);if(c!=p)return u;{const y=[],x=Number(g),E=x<1e3?x:1e3;for(let k=Number(m);k<=E;k++)y.push(`${c}${k}`);return y.join(",")}}else return u}).join(","),a=u=>{const c=u.match(/\d+(\.\d+)?/g);return c?c[c.length-1]:""},i=u=>{let c=0;const m=p=>{var g=p.split("");return g.reverse()};for(let p=0;p<m(u).length&&m(u)[p].match(/\d/);p++)c=c+1;return u.substring(0,u.length-c)},s=u=>ie.sortBy(ie.uniq(u.split(",")),c=>Number(a(c))),l=Object.values(ie.groupBy(s(n.toLocaleUpperCase()),u=>i(u))).map(u=>u.join(","));return l.length>1e3&&(r==null||r()),l.length>1e3?l.slice(0,1e3).join(","):l.join(",")});let vt=ki;const RU="_tableSelection_1xub0_1",PU="_sideBox_1xub0_36",DU="_tableFrame_1xub0_51",ng={tableSelection:RU,sideBox:PU,tableFrame:DU},MU="_sider_item_container_wnrm0_1",Xo={sider_item_container:MU},{TreeNode:hx}=X.Tree,W4=e=>{const[t,r]=F.useState([]),[n,a]=F.useState([]),[i,s]=F.useState([]);zs(()=>{l()});const l=async()=>{var c;if(e.getInstanceMenu){const{records:m}=await e.getInstanceMenu();a(m||[])}if(e.getAttributeByTab){const m=await e.getAttributeByTab();if(m){const p=(c=m.records)==null?void 0:c.filter(g=>["Number","Note","LifeCyclePhase","Category"].includes(g.apicode));e.onGetTreeFields&&e.onGetTreeFields(p)}}};F.useEffect(()=>{e.outIsSelected&&r([])},[e.outIsSelected]);const u=c=>c.map(p=>(p.title=D.jsxs("div",{className:Xo.treeListBox,children:[D.jsxs("div",{className:Xo.titleBox,style:{display:"flex",alignItems:"center"},children:[D.jsx(He,{type:p.icon=="leftbar-folder"?p.children&&p.children.length>0&&ie.includes(i,p.id)?"content-open2":"content-fold":p.icon,style:{fontSize:"16px",color:"#333"}}),D.jsx("div",{className:Xo.name,style:{marginLeft:"2px",whiteSpace:"nowrap"},title:p.name,children:D.jsx("span",{children:p.name})})]}),D.jsx("div",{className:Te(Xo.btnBox,Xo.onHover)})]},p.id),p.children?D.jsx(hx,{title:p.title,dataRef:p,children:u(p.children)},p.id):D.jsx(hx,{title:p.title},p.id)));return D.jsx("div",{className:Xo.sider_item_container,children:D.jsx(X.Tree,{switcherIcon:D.jsx(He,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),expandedKeys:i,selectedKeys:t,onExpand:c=>{s(c)},onSelect:(c,m)=>{m.selected&&(r(c),e.onSelected&&e.onSelected(m.node.dataRef))},children:u(n)})})},FU="_main_1qtos_1",NU="_edit_cell_1qtos_23",IU="_update_style_1qtos_28",LU="_updated_style_1qtos_42",jU="_updated_redline_style_1qtos_61",$U="_table_footer_1qtos_349",zU="_loading_1qtos_361",zn={main:FU,edit_cell:NU,update_style:IU,updated_style:LU,updated_redline_style:jU,table_footer:$U,loading:zU},BU=0,ag=1,ig=2,V4=8,Zo=64,Nd=0,Y4=1,b1=typeof Symbol=="function"?Symbol.for("idx"):"$$idx";function HU(){return{vt_state:1,possible_hight_per_tr:-1,computed_h:0,re_computed:0,row_height:[],row_count:0,prev_row_count:0,_offset_top:0,_offset_head:0,_offset_tail:1,WH:0,top:0,left:0,evt:BU,end:!1,final_top:0,f_final_top:Y4,update_count:0}}function UU(e){Object.prototype.hasOwnProperty.call(e,"CLICK~__DIAGNOSIS__")||Object.defineProperty(e,"CLICK~__DIAGNOSIS__",{get(){console.debug("OoOoOoO DIAGNOSIS OoOoOoO");let t=0;for(let a=0;a<e.row_count;++a)t+=e.row_height[a];let r,n;t>e.computed_h?(r="color:rgb(15, 179, 9)",n="lower than expected"):t<e.computed_h?(r="color:rgb(202, 61, 81)",n="higher than expected"):(r="color:rgba(0, 0, 0, 0.85)",n="normal"),console.debug(`%c%d(%d)(${n})`,r,t,e.computed_h-t),console.debug("OoOoOoOoOoOoOOoOoOoOoOoOo")},configurable:!1,enumerable:!1})}function os(e,t){if(e.debug){const r=new Date,n=`${r.toLocaleTimeString()}.${r.getMilliseconds()}`;console.debug(`%c[${e.id}][${n}][${t}]`,"color:#a00",e)}}function qU(e){const t=e.target;return{target:{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft},end:t.scrollHeight-t.clientHeight===Math.round(t.scrollTop),flag:V4}}const WU=ee.forwardRef(function(t,r){return D.jsx("table",{ref:r,...t})});function VU(e){return D.jsx("tbody",{...e})}const YU=ee.forwardRef(function(t,r){const[n,a]=F.useState(!1);return D.jsx("tr",{ref:r,...t})});function GU(e,t){const{row_height:r,row_count:n,overscanRowCount:a}=e;e._scroll_y=e.scroll.y,typeof e._scroll_y=="number"?e._y=e._scroll_y:(typeof e._scroll_y=="string"||console.assert(!1,"VT: did you forget to set `scroll.y`?"),e._y=e.wrap_inst.current.parentElement.offsetHeight),console.assert(e._y>=0);let i=0,s=0,l=0,u=0;if(t===-1&&n>0){for(s=n;s>0&&u<e._y;)u+=r[--s];return[0|s,0|n,0|e.computed_h-u]}for(;s<n&&i<t;++s)i+=r[s];for(l=s;l<n&&u<e._y;++l)u+=r[l];let c=a<0?0:a;for(;s>0&&c--;)i-=r[--s];return l+=a,l>n&&(l=n),[0|s,0|l,0|i]}function G4(e,t,r,n){e._offset_top=0|t,e._offset_head=0|r,e._offset_tail=0|n}function KU(e,t,r,n,a){e.top=t,e.left=r,e.evt=n,e.end=a}function XU(e,t){if(e.WH===t)return;e.WH=t;const r=e.wrap_inst.current.style;r.height=t?(r.maxHeight=t+"px",r.maxHeight):(r.maxHeight="unset",r.maxHeight),e.on_update_wrap_style()}function px(e,t,r){if(!e.wrap_inst.current)return;const n=e.wrap_inst.current.parentElement;n.scrollTop=t,n.scrollLeft=Math.max(r,n.scrollLeft)}function K4(e,t){const r=()=>{os(e,"REPAINTING"),e.vt_state===4&&e.wrap_inst.current&&XU(e,e.computed_h),e.HND_PAINT=0};return t<0?window.requestAnimationFrame(r):window.setTimeout(r,t)}function og(e){e.HND_PAINT>0||(e.HND_PAINT=K4(e,-1))}function X4(e,t,r,n){const a=t-r,i=new Array(a).fill(n);e.row_height=e.row_height.concat(i),e.computed_h+=a*n}function ZU(e,t,r){if(t===0){e.computed_h=0,e.row_height.length=0,e.top=0;return}const n=e.row_height;let a=0;for(let i=t;i<r;++i)a+=n[i];e.computed_h-=a}function JU(e,t){e.re_computed=t-e.row_count,e.prev_row_count=e.row_count,e.row_count=t}const QU=(e,t)=>{const{style:r,context:n,...a}=e,i=F.useState(0),s=F.useRef(()=>{}),l=F.useMemo(()=>ee.createRef(),[]),u=F.useContext(n);F.useMemo(()=>{Object.assign(u,HU()),u.wrap_inst&&u.wrap_inst.current&&(u.wrap_inst.current.parentElement.onscroll=null),u.wrap_inst=l,u.top=u.initTop,u.on_update_wrap_style=()=>{u._y===0&&`${u._scroll_y}`.length&&g({flag:Zo,target:{scrollTop:u.top,scrollLeft:u.left}})},process.env.NODE_ENV==="development"&&UU(u)},[]);const c=F.useRef([]).current,m=F.useRef(0);let p;const g=F.useCallback(w=>{if(u.vt_state===4){if(w&&(c.push(w),u.f_final_top===Nd))return w.flag=Zo,p(0);c.length&&(m.current&&cancelAnimationFrame(m.current),m.current=requestAnimationFrame(p))}},[]),y=F.useCallback(w=>{g(qU(w))},[]);p=F.useCallback(w=>{if(u.vt_state!==4)return;const S=c;let f;if(!S.length)return;f=S.pop();let h=f.target.scrollTop,v=f.target.scrollLeft;const _=f.flag;os(u,`raf top: ${h}, left: ${v}`);const R=GU(u,u.f_final_top===Nd?u.final_top:h),C=R[0],P=R[1],M=R[2],U=u._offset_head,L=u._offset_tail,N=u._offset_top;let j;switch(_){case ag:os(u,"SCROLLEVT_INIT"),j=!1;break;case Zo:os(u,"SCROLLEVT_BY_HOOK"),C===U&&P===L&&M===N?(u.f_final_top=Y4,u.final_top===-1&&(h=u.computed_h-u._y),j=!0):(u.final_top===-1&&(h=M),j=!1);break;case ig:if(os(u,"SCROLLEVT_RECOMPUTE"),C===U&&P===L&&M===N){m.current=0,S.length&&g(null);return}j=!1;break;case V4:if(os(u,"SCROLLEVT_NATIVE"),m.current=0,S.length=0,u.onScroll&&u.onScroll({top:h,left:v,isEnd:f.end}),C===U&&P===L&&M===N)return;j=f.end;break}G4(u,M,C,P),KU(u,h,v,_,j),i[1](++u.update_count)},[]),F.useImperativeHandle(t,()=>{const w=S=>{u.f_final_top=Nd,u.final_top=S,g({target:{scrollTop:S,scrollLeft:-1},flag:Zo})};return{scrollTo:S=>{s.current=()=>w(S),s.current()},scrollToIndex:S=>{s.current=()=>{S>u.row_count-1&&(S=u.row_count-1),S<0&&(S=0);let f=0;for(let h=0;h<S;++h)f+=u.row_height[h];w(f)},s.current()}}},[]),F.useEffect(()=>{u.wrap_inst.current.parentElement.onscroll=y},[l]),F.useEffect(()=>{g({flag:Zo,target:{scrollLeft:u.left,scrollTop:u.top}})},[u.scroll.y]),F.useEffect(()=>{switch(u.evt){case Zo:u.f_final_top===Nd?s.current():px(u,u.top,u.left);break;case ag:case ig:px(u,u.top,u.left),c.length&&p(0);break}},[i[0]]),F.useEffect(()=>{switch(u.vt_state){case 1:break;case 2:u.vt_state=4,g({target:{scrollTop:u.top,scrollLeft:0},flag:ag});break;case 4:u.re_computed!==0&&(u.re_computed=0,g({target:{scrollTop:u.top,scrollLeft:u.left},flag:ig}));break}}),r.position="relative",r.top=u._offset_top;const{width:x,...E}=r,k=F.useMemo(()=>({width:x,minWidth:"100%",position:"relative",transform:"matrix(1, 0, 0, 1, 0, 0)"}),[x]),T=u.components.table;return D.jsx("div",{ref:l,style:k,children:D.jsx(n.Provider,{value:{...u},children:D.jsx(T,{...a,style:E})})})},eq=e=>{const{children:t,ctx:r,...n}=e,a=t[0],i=t[1],s=r.components.body.wrapper;let l=Array.isArray(i)?i.length:0,{_offset_head:u,_offset_tail:c}=r,m=[];switch(r.vt_state){case 1:l>=0&&(console.assert(u===0),console.assert(c===1),Array.isArray(i)?(m=i.slice(u,c),m[0].props.record[b1]=0):m=i,r.re_computed=l,r.prev_row_count=l,r.row_count=l);break;case 4:{if(c>l){const g=c-l;c-=g,u-=g,u<0&&(u=0),c<0&&(c=0),G4(r,r._offset_top,u,c)}r.row_count!==l&&JU(r,l),l=r.row_count;const p=r.prev_row_count;if(l<p)ZU(r,l,p);else if(l>p){const g=r.row_height;l-g.length>0?X4(r,l,g.length,r.possible_hight_per_tr):(g.fill(r.possible_hight_per_tr,p,l),r.computed_h+=r.possible_hight_per_tr*(l-p))}if(l){let g=u;m=i.slice(g,c),m.forEach(y=>y.props.record[b1]=g++)}else m=i;r.prev_row_count=r.row_count}break;case 2:console.assert(!1);break}return D.jsxs(s,{...n,children:[a,m]})},tq=e=>{const t=ee.createRef(),{ctx:r,...n}=e,a=e.children,i=r.components.body.row;if(!Array.isArray(a))return D.jsx(i,{...n,children:a});const s=a[0].props,l=s.record[b1],u=F.useRef(l),c=F.useMemo(()=>`.${s.prefixCls}-expanded-row`,[s.prefixCls]);return F.useEffect(()=>(r.vt_state===4?og(r):(console.assert(r.vt_state===1),r.vt_state=2,r.possible_hight_per_tr=t.current.offsetHeight,X4(r,r.row_count,0,r.possible_hight_per_tr),K4(r,16)),()=>og(r)),[]),F.useEffect(()=>{const m=t.current;let p=m.offsetHeight,g=m.nextSibling;for(;g&&g.matches(c);)p+=g.offsetHeight,g=g.nextSibling;const y=r.row_height[l],x=r.row_height[u.current];r.computed_h-=y,r.computed_h+=x,r.computed_h+=p-x,r.row_height[l]=p,og(r)}),D.jsx(i,{...n,ref:t})};function Z4(e,t){const{table:r,body:n,header:a}=t;e.components.body={...e.components.body,...n},n&&n.cell&&(e._vtcomponents.body.cell=n.cell),a&&(e.components.header=a,e._vtcomponents.header=a),r&&(e.components.table=r)}function rq(e,t){const r=F.useRef(ee.createContext({})).current,n=F.useContext(r),a=F.useRef({scrollTo:i=>{},scrollToIndex:i=>{}});return F.useMemo(()=>Object.assign(n,{id:(+new Date).toString(36).slice(4),initTop:0,overscanRowCount:20,debug:!1,ref:a},e()),t),F.useMemo(()=>{const i=ee.forwardRef(QU);n._vtcomponents={table:s=>D.jsx(i,{...s,context:r,ref:n.ref}),body:{wrapper:s=>D.jsx(r.Consumer,{children:()=>D.jsx(eq,{...s,ctx:n})}),row:s=>D.jsx(tq,{...s,ctx:n})}},n.components={},Z4(n,{table:WU,body:{wrapper:VU,row:YU}}),n.vt_state=1},[]),n}const mx=1,nq=2;(function(){if((typeof window=="object"&&window instanceof Window?mx:nq)&mx&&!Object.hasOwnProperty.call(window,"requestAnimationFrame")&&!window.requestAnimationFrame)throw new Error("Please using the modern browers or appropriate polyfill!")})();function aq(e,t){const r=rq(e,t||[]);return[r._vtcomponents,n=>Z4(r,n),r.ref]}const iq=({hideFooter:e,contentRef:t,tableRef:r,scroll:n,fullScreenMinusHeight:a,scrollUpdate:i,onTableHeightChange:s},l)=>{const[u,c]=F.useState(0),m=xn(n);return F.useEffect(()=>{const p=()=>{var x,E,k;const y=(T=>{for(var w=T.offsetTop,S=T.offsetParent;S!==null;)w+=S.offsetTop,S=S.offsetParent;return w})(t.current);if(r.current){const T=t.current.querySelectorAll(".frontend-table-body")[0].getElementsByTagName("div")[0],w=t.current.querySelectorAll(".frontend-table-body")[0],S=34+(e?0:15);if(T){const f=vt.autoTableHeight(l?S:y+S),h=f-(a||0);n!=null&&n.y?i?i==null||i(l,h):(c(l?h:Number((x=m.current)==null?void 0:x.y)),T.style.minHeight=(l?h:Number((E=m.current)==null?void 0:E.y))-10+"px",w.style.minHeight=(l?h:Number((k=m.current)==null?void 0:k.y))+"px"):(c(l?h:f),T.style.minHeight=(l?h:f)-10+"px",w.style.minHeight=(l?h:f)+"px")}}};return p(),window.addEventListener("resize",p),()=>{window.removeEventListener("resize",p)}},[l,n]),F.useEffect(()=>{s==null||s(u)},[u]),u};var pl={exports:{}},ml={},Id={},gx;function oq(){if(gx)return Id;gx=1,Id.__esModule=!0,Id.cloneElement=l;var e=t(F);function t(u){return u&&u.__esModule?u:{default:u}}function r(u,c){var m=Object.keys(u);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(u);c&&(p=p.filter(function(g){return Object.getOwnPropertyDescriptor(u,g).enumerable})),m.push.apply(m,p)}return m}function n(u){for(var c=1;c<arguments.length;c++){var m=arguments[c]!=null?arguments[c]:{};c%2?r(Object(m),!0).forEach(function(p){a(u,p,m[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(m)):r(Object(m)).forEach(function(p){Object.defineProperty(u,p,Object.getOwnPropertyDescriptor(m,p))})}return u}function a(u,c,m){return c=i(c),c in u?Object.defineProperty(u,c,{value:m,enumerable:!0,configurable:!0,writable:!0}):u[c]=m,u}function i(u){var c=s(u,"string");return typeof c=="symbol"?c:String(c)}function s(u,c){if(typeof u!="object"||u===null)return u;var m=u[Symbol.toPrimitive];if(m!==void 0){var p=m.call(u,c);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(u)}function l(u,c){return c.style&&u.props.style&&(c.style=n(n({},u.props.style),c.style)),c.className&&u.props.className&&(c.className=u.props.className+" "+c.className),e.default.cloneElement(u,c)}return Id}var gl={},vx;function J4(){if(vx)return gl;vx=1,gl.__esModule=!0,gl.resizableProps=void 0;var e=t(fc());pv();function t(n){return n&&n.__esModule?n:{default:n}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];var l=i[0];if(l.axis==="both"||l.axis==="y"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];var l=i[0];if(l.axis==="both"||l.axis==="x"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)}};return gl.resizableProps=r,gl}var bx;function Q4(){if(bx)return ml;bx=1,ml.__esModule=!0,ml.default=void 0;var e=s(F),t=pv(),r=oq(),n=J4(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(T){if(typeof WeakMap!="function")return null;var w=new WeakMap,S=new WeakMap;return(i=function(h){return h?S:w})(T)}function s(T,w){if(T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var S=i(w);if(S&&S.has(T))return S.get(T);var f={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in T)if(v!=="default"&&Object.prototype.hasOwnProperty.call(T,v)){var _=h?Object.getOwnPropertyDescriptor(T,v):null;_&&(_.get||_.set)?Object.defineProperty(f,v,_):f[v]=T[v]}return f.default=T,S&&S.set(T,f),f}function l(){return l=Object.assign?Object.assign.bind():function(T){for(var w=1;w<arguments.length;w++){var S=arguments[w];for(var f in S)Object.prototype.hasOwnProperty.call(S,f)&&(T[f]=S[f])}return T},l.apply(this,arguments)}function u(T,w){if(T==null)return{};var S={},f=Object.keys(T),h,v;for(v=0;v<f.length;v++)h=f[v],!(w.indexOf(h)>=0)&&(S[h]=T[h]);return S}function c(T,w){var S=Object.keys(T);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(T);w&&(f=f.filter(function(h){return Object.getOwnPropertyDescriptor(T,h).enumerable})),S.push.apply(S,f)}return S}function m(T){for(var w=1;w<arguments.length;w++){var S=arguments[w]!=null?arguments[w]:{};w%2?c(Object(S),!0).forEach(function(f){p(T,f,S[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(S)):c(Object(S)).forEach(function(f){Object.defineProperty(T,f,Object.getOwnPropertyDescriptor(S,f))})}return T}function p(T,w,S){return w=g(w),w in T?Object.defineProperty(T,w,{value:S,enumerable:!0,configurable:!0,writable:!0}):T[w]=S,T}function g(T){var w=y(T,"string");return typeof w=="symbol"?w:String(w)}function y(T,w){if(typeof T!="object"||T===null)return T;var S=T[Symbol.toPrimitive];if(S!==void 0){var f=S.call(T,w);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(T)}function x(T,w){T.prototype=Object.create(w.prototype),T.prototype.constructor=T,E(T,w)}function E(T,w){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},E(T,w)}var k=function(T){x(w,T);function w(){for(var f,h=arguments.length,v=new Array(h),_=0;_<h;_++)v[_]=arguments[_];return f=T.call.apply(T,[this].concat(v))||this,f.handleRefs={},f.lastHandleRect=null,f.slack=null,f}var S=w.prototype;return S.componentWillUnmount=function(){this.resetData()},S.resetData=function(){this.lastHandleRect=this.slack=null},S.runConstraints=function(h,v){var _=this.props,R=_.minConstraints,C=_.maxConstraints,P=_.lockAspectRatio;if(!R&&!C&&!P)return[h,v];if(P){var M=this.props.width/this.props.height,U=h-this.props.width,L=v-this.props.height;Math.abs(U)>Math.abs(L*M)?v=h/M:h=v*M}var N=h,j=v,O=this.slack||[0,0],I=O[0],z=O[1];return h+=I,v+=z,R&&(h=Math.max(R[0],h),v=Math.max(R[1],v)),C&&(h=Math.min(C[0],h),v=Math.min(C[1],v)),this.slack=[I+(N-h),z+(j-v)],[h,v]},S.resizeHandler=function(h,v){var _=this;return function(R,C){var P=C.node,M=C.deltaX,U=C.deltaY;h==="onResizeStart"&&_.resetData();var L=(_.props.axis==="both"||_.props.axis==="x")&&v!=="n"&&v!=="s",N=(_.props.axis==="both"||_.props.axis==="y")&&v!=="e"&&v!=="w";if(!(!L&&!N)){var j=v[0],O=v[v.length-1],I=P.getBoundingClientRect();if(_.lastHandleRect!=null){if(O==="w"){var z=I.left-_.lastHandleRect.left;M+=z}if(j==="n"){var B=I.top-_.lastHandleRect.top;U+=B}}_.lastHandleRect=I,O==="w"&&(M=-M),j==="n"&&(U=-U);var H=_.props.width+(L?M/_.props.transformScale:0),q=_.props.height+(N?U/_.props.transformScale:0),J=_.runConstraints(H,q);H=J[0],q=J[1];var re=H!==_.props.width||q!==_.props.height,ne=typeof _.props[h]=="function"?_.props[h]:null,se=h==="onResize"&&!re;ne&&!se&&(R.persist==null||R.persist(),ne(R,{node:P,size:{width:H,height:q},handle:v})),h==="onResizeStop"&&_.resetData()}}},S.renderResizeHandle=function(h,v){var _=this.props.handle;if(!_)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+h,ref:v});if(typeof _=="function")return _(h,v);var R=typeof _.type=="string",C=m({ref:v},R?{}:{handleAxis:h});return e.cloneElement(_,C)},S.render=function(){var h=this,v=this.props,_=v.children,R=v.className,C=v.draggableOpts;v.width,v.height,v.handle,v.handleSize,v.lockAspectRatio,v.axis,v.minConstraints,v.maxConstraints,v.onResize,v.onResizeStop,v.onResizeStart;var P=v.resizeHandles;v.transformScale;var M=u(v,a);return(0,r.cloneElement)(_,m(m({},M),{},{className:(R?R+" ":"")+"react-resizable",children:[].concat(_.props.children,P.map(function(U){var L,N=(L=h.handleRefs[U])!=null?L:h.handleRefs[U]=e.createRef();return e.createElement(t.DraggableCore,l({},C,{nodeRef:N,key:"resizableHandle-"+U,onStop:h.resizeHandler("onResizeStop",U),onStart:h.resizeHandler("onResizeStart",U),onDrag:h.resizeHandler("onResize",U)}),h.renderResizeHandle(U,N))}))}))},w}(e.Component);return ml.default=k,k.propTypes=n.resizableProps,k.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},ml}var vl={},yx;function sq(){if(yx)return vl;yx=1,vl.__esModule=!0,vl.default=void 0;var e=l(F),t=i(fc()),r=i(Q4()),n=J4(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(w){return w&&w.__esModule?w:{default:w}}function s(w){if(typeof WeakMap!="function")return null;var S=new WeakMap,f=new WeakMap;return(s=function(v){return v?f:S})(w)}function l(w,S){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var f=s(S);if(f&&f.has(w))return f.get(w);var h={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in w)if(_!=="default"&&Object.prototype.hasOwnProperty.call(w,_)){var R=v?Object.getOwnPropertyDescriptor(w,_):null;R&&(R.get||R.set)?Object.defineProperty(h,_,R):h[_]=w[_]}return h.default=w,f&&f.set(w,h),h}function u(){return u=Object.assign?Object.assign.bind():function(w){for(var S=1;S<arguments.length;S++){var f=arguments[S];for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(w[h]=f[h])}return w},u.apply(this,arguments)}function c(w,S){var f=Object.keys(w);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(w);S&&(h=h.filter(function(v){return Object.getOwnPropertyDescriptor(w,v).enumerable})),f.push.apply(f,h)}return f}function m(w){for(var S=1;S<arguments.length;S++){var f=arguments[S]!=null?arguments[S]:{};S%2?c(Object(f),!0).forEach(function(h){p(w,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(f)):c(Object(f)).forEach(function(h){Object.defineProperty(w,h,Object.getOwnPropertyDescriptor(f,h))})}return w}function p(w,S,f){return S=g(S),S in w?Object.defineProperty(w,S,{value:f,enumerable:!0,configurable:!0,writable:!0}):w[S]=f,w}function g(w){var S=y(w,"string");return typeof S=="symbol"?S:String(S)}function y(w,S){if(typeof w!="object"||w===null)return w;var f=w[Symbol.toPrimitive];if(f!==void 0){var h=f.call(w,S);if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(w)}function x(w,S){if(w==null)return{};var f={},h=Object.keys(w),v,_;for(_=0;_<h.length;_++)v=h[_],!(S.indexOf(v)>=0)&&(f[v]=w[v]);return f}function E(w,S){w.prototype=Object.create(S.prototype),w.prototype.constructor=w,k(w,S)}function k(w,S){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,v){return h.__proto__=v,h},k(w,S)}var T=function(w){E(S,w);function S(){for(var h,v=arguments.length,_=new Array(v),R=0;R<v;R++)_[R]=arguments[R];return h=w.call.apply(w,[this].concat(_))||this,h.state={width:h.props.width,height:h.props.height,propsWidth:h.props.width,propsHeight:h.props.height},h.onResize=function(C,P){var M=P.size;h.props.onResize?(C.persist==null||C.persist(),h.setState(M,function(){return h.props.onResize&&h.props.onResize(C,P)})):h.setState(M)},h}S.getDerivedStateFromProps=function(v,_){return _.propsWidth!==v.width||_.propsHeight!==v.height?{width:v.width,height:v.height,propsWidth:v.width,propsHeight:v.height}:null};var f=S.prototype;return f.render=function(){var v=this.props,_=v.handle,R=v.handleSize;v.onResize;var C=v.onResizeStart,P=v.onResizeStop,M=v.draggableOpts,U=v.minConstraints,L=v.maxConstraints,N=v.lockAspectRatio,j=v.axis;v.width,v.height;var O=v.resizeHandles,I=v.style,z=v.transformScale,B=x(v,a);return e.createElement(r.default,{axis:j,draggableOpts:M,handle:_,handleSize:R,height:this.state.height,lockAspectRatio:N,maxConstraints:L,minConstraints:U,onResizeStart:C,onResize:this.onResize,onResizeStop:P,resizeHandles:O,transformScale:z,width:this.state.width},e.createElement("div",u({},B,{style:m(m({},I),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},S}(e.Component);return vl.default=T,T.propTypes=m(m({},n.resizableProps),{},{children:t.default.element}),vl}var _x;function uq(){return _x||(_x=1,pl.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},pl.exports.Resizable=Q4().default,pl.exports.ResizableBox=sq().default),pl.exports}var lq=uq();const cq=e=>{const{onResizeOver:t,onResizeStop:r,trulyHeight:n,onResize:a,width:i,onClick:s,required:l,editable:u,formitem:c,dataIndex:m,...p}=e,g=F.useRef(),y=()=>{const S=u?c&&c.props&&c.props.disabled:!0;if(!S&&l)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(S&&l)return{fontWeight:"400"};if(!S&&!l)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(S&&!l)return{fontWeight:"400"}},x=Br({resizing:!1}),[E,k]=F.useState(0);F.useEffect(()=>{document.querySelectorAll(".react-resizable .react-resizable-handle").forEach(f=>f.addEventListener("click",h=>!1))},[]);const[T,w]=F.useState(0);return!i||m==="id"?D.jsx("th",{...p,onClick:s,style:{...p.style,...y()},onKeyDown:()=>{},className:`${p.className} ${l?"frontend-table-column-required":""}`}):D.jsx(lq.Resizable,{axis:"x",width:i+T,height:0,handle:D.jsx("span",{onClick:S=>{S.stopPropagation(),S.preventDefault()},className:Te(["react-resizable-handle",T&&"active"])}),onResize:(S,{size:f,...h})=>{const v=document.getElementById("table-resize-handle");if(v){const _=document.getElementById(`table_key_${e.tableKey}`);S.pageX>_.getBoundingClientRect().left+_.getBoundingClientRect().width||S.pageX<_.getBoundingClientRect().left?v.style.width="0px":(v.style.width="1px",v.style.background="#0563B2",v.style.zIndex="9999",v.style.top=`${h.node.getBoundingClientRect().top}px`,v.style.position="fixed",v.style.height=`${n}px`,v.style.left=`${S.pageX}px`)}t(S),x.resizing=!0,w(f.width-i)},onResizeStop:(...S)=>{var f;S[0].stopPropagation(),(f=document.getElementById("table-resize-handle"))==null||f.remove(),r(),w(0),a(...S),setTimeout(()=>{x.resizing=!1})},onResizeStart:S=>{document.getElementById(`table_key_${e.tableKey}`);const f=document.createElement("div");f.id="table-resize-handle",document.body.appendChild(f),x.resizing=!0,S.stopPropagation()},draggableOpts:{enableUserSelectHack:!1},children:D.jsx("th",{ref:g,onClick:(...S)=>{!x.resizing&&s&&s(...S)},...p,style:{...p.style,...y()},onKeyDown:()=>{},className:`${p.className} ${l?"frontend-table-column-required":""}`})})};function Ql(){return Ql=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ql.apply(this,arguments)}function eC(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var tC=F.createContext({});function dq(){return F.useContext(tC)}var fq=function(t){return F.createElement(tC.Provider,{value:t.refTracker},t.children)};function hq(){var e=new Map;return{on:function(r,n){var a;return e.has(r)?(a=e.get(r))==null||a.add(n):e.set(r,new Set([n])),this},off:function(r,n){return n?e.get(r).delete(n):e.delete(r),this},emit:function(r,n){if(process.env.NODE!=="production"){var a=r;!e.has(r)&&a!==0&&console.error("It seems that the menu you are trying to display is not renderer or you have a menu id mismatch.","You used the menu id: "+r)}return e.has(r)&&e.get(r).forEach(function(i){i(n)}),this}}}var Bf=hq();function pq(e){var t=F.useRef();return F.useEffect(function(){t.current=e},[e]),t.current}function mq(){return F.useRef(new Map).current}var wx={show:function(t){var r=t.id,n=t.event,a=t.props,i=t.position;n.preventDefault&&n.preventDefault(),Bf.emit(0).emit(r,{event:n.nativeEvent||n,props:a,position:i})},hideAll:function(){Bf.emit(0)}};function gq(e){return{show:function(r,n){process.env.NODE_ENV==="development"&&!(e!=null&&e.id)&&!(n!=null&&n.id)&&console.error("You need to provide an id when initializing the hook `useContextMenu({ id: 'your id' })` or when you display the menu `show(e, { id: 'your id' })`. The later is used to override the one defined during initialization."),wx.show({id:(n==null?void 0:n.id)||(e==null?void 0:e.id),props:(n==null?void 0:n.props)||(e==null?void 0:e.props),event:r,position:n==null?void 0:n.position})},hideAll:function(){wx.hideAll()}}}function vq(){var e=new Map,t,r,n,a,i=!1;function s(E){a=E,t=-1,n=!0}function l(){a[t].node.focus()}function u(){return t>=0&&a[t].isSubmenu}function c(){return Array.from(a[t].submenuRefTracker.values())}function m(){return t===-1?(p(),!1):!0}function p(){t+1<a.length?t++:t+1===a.length&&(t=0),i&&x(),l()}function g(){t===-1||t===0?t=a.length-1:t-1<a.length&&t--,i&&x(),l()}function y(){if(m()&&u()){var E=c(),k=a[t].node;return e.set(k,{isRoot:n,focusedIndex:t,parentNode:r||k,items:a}),k.classList.add("react-contexify__submenu--is-open"),r=k,E.length>0?(t=0,a=E):i=!0,n=!1,l(),!0}return!1}function x(){if(m()&&!n){var E=e.get(r),k=E.isRoot,T=E.items,w=E.focusedIndex,S=E.parentNode;r.classList.remove("react-contexify__submenu--is-open"),a=T,r=S,k&&(n=!0,e.clear()),i||(t=w,l())}}return{init:s,moveDown:p,moveUp:g,openSubmenu:y,closeSubmenu:x}}var y1=function(){};function rC(e){return typeof e=="function"}function nC(e){return typeof e=="string"}function bq(e){return e.type==="touchend"}function yq(e,t){return F.Children.map(F.Children.toArray(e).filter(Boolean),function(r){return F.cloneElement(r,t)})}function _q(e){var t={x:0,y:0};return bq(e)&&e.changedTouches&&e.changedTouches.length>0?(t.x=e.changedTouches[0].clientX,t.y=e.changedTouches[0].clientY):(t.x=e.clientX,t.y=e.clientY),(!t.x||t.x<0)&&(t.x=0),(!t.y||t.y<0)&&(t.y=0),t}function xx(e,t){return rC(e)?e(t):e}function wq(e){return!!(e&&(nC(e)||"exit"in e&&e.exit))}function xq(e,t){return rC(t)?Ql({},e,t(e)):Ql({},e,t)}var Sq=function(t){var r,n=t.id,a=t.theme,i=t.style,s=t.className,l=t.children,u=t.animation,c=u===void 0?"scale":u,m=t.onHidden,p=m===void 0?y1:m,g=t.onShown,y=g===void 0?y1:g,x=eC(t,["id","theme","style","className","children","animation","onHidden","onShown"]),E=F.useReducer(xq,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),k=E[0],T=E[1],w=F.useRef(null),S=F.useRef(!1),f=pq(k.visible),h=mq(),v=F.useState(function(){return vq()}),_=v[0];F.useEffect(function(){return S.current=!0,Bf.on(n,R).on(0,C),function(){Bf.off(n,R).off(0,C)}},[n]),F.useEffect(function(){S.current&&k.visible!==f&&(k.visible?y():p())},[k.visible,p,y]),F.useEffect(function(){k.visible?_.init(Array.from(h.values())):h.clear()},[k.visible,_,h]),F.useEffect(function(){if(k.visible){var H=window,q=H.innerWidth,J=H.innerHeight,re=w.current,ne=re.offsetWidth,se=re.offsetHeight,ce=k.x,le=k.y;ce+ne>q&&(ce-=ce+ne-q),le+se>J&&(le-=le+se-J),T({x:ce,y:le})}},[k.visible]),F.useEffect(function(){function H(q){switch(q.preventDefault(),q.key){case"Enter":_.openSubmenu()||C();break;case"Escape":C();break;case"ArrowUp":_.moveUp();break;case"ArrowDown":_.moveDown();break;case"ArrowRight":_.openSubmenu();break;case"ArrowLeft":_.closeSubmenu();break}}return k.visible&&(window.addEventListener("resize",C),window.addEventListener("contextmenu",C),window.addEventListener("click",C),window.addEventListener("scroll",C),window.addEventListener("keydown",H),process.env.NODE_ENV!=="development"&&window.addEventListener("blur",C)),function(){window.removeEventListener("resize",C),window.removeEventListener("contextmenu",C),window.removeEventListener("click",C),window.removeEventListener("scroll",C),window.removeEventListener("keydown",H),process.env.NODE_ENV!=="development"&&window.removeEventListener("blur",C)}},[k.visible,_]);function R(H){var q=H.event,J=H.props,re=H.position;q.stopPropagation();var ne=re||_q(q),se=ne.x,ce=ne.y;setTimeout(function(){T({visible:!0,willLeave:!1,x:se,y:ce,triggerEvent:q,propsFromTrigger:J})},0)}function C(H){var q=H;typeof q<"u"&&(q.button===2||q.ctrlKey===!0)&&q.type!=="contextmenu"||(wq(c)?T(function(J){return{willLeave:J.visible}}):T(function(J){return{visible:J.visible?!1:J.visible}}))}function P(){k.willLeave&&k.visible&&T({visible:!1,willLeave:!1})}function M(){if(!c)return null;if(nC(c)){var H;return bs((H={},H["react-contexify__will-enter--"+c]=c&&U&&!I,H["react-contexify__will-leave--"+c+" react-contexify__will-leave--'disabled'"]=c&&U&&I,H))}else if("enter"in c&&"exit"in c){var q;return bs((q={},q["react-contexify__will-enter--"+c.enter]=c.enter&&U&&!I,q["react-contexify__will-leave--"+c.exit+" react-contexify__will-leave--'disabled'"]=c.exit&&U&&I,q))}return null}var U=k.visible,L=k.triggerEvent,N=k.propsFromTrigger,j=k.x,O=k.y,I=k.willLeave,z=bs("react-contexify",s,(r={},r["react-contexify__theme--"+a]=a,r),M()),B=Ql({},i,{left:j,top:O,opacity:1});return F.createElement(fq,{refTracker:h},U&&F.createElement("div",Object.assign({},x,{className:z,onAnimationEnd:P,style:B,ref:w,role:"menu"}),yq(l,{propsFromTrigger:N,triggerEvent:L})))},Sx=function(t){var r,n=t.children,a=t.className,i=t.style,s=t.triggerEvent,l=t.data,u=t.propsFromTrigger,c=t.onClick,m=c===void 0?y1:c,p=t.disabled,g=p===void 0?!1:p,y=t.hidden,x=y===void 0?!1:y,E=eC(t,["children","className","style","triggerEvent","data","propsFromTrigger","onClick","disabled","hidden"]),k=dq(),T={data:l,triggerEvent:s,props:u},w=xx(g,T),S=xx(x,T);function f(R){T.event=R,w?R.stopPropagation():m(T)}function h(R){R&&!w&&k.set(R,{node:R,isSubmenu:!1})}function v(R){R.key==="Enter"&&(T.event=R,m(T))}if(S)return null;var _=bs("react-contexify__item",a,(r={},r["react-contexify__item--disabled"]=w,r));return F.createElement("div",Object.assign({},E,{className:_,style:i,onClick:f,onKeyDown:v,ref:h,tabIndex:-1,role:"menuitem","aria-disabled":w}),F.createElement("div",{className:"react-contexify__item__content"},n))};const Cq="_box_1hwl6_2",Eq="_transferSearch_1hwl6_2",kq="_searchBtn_1hwl6_10",Tq="_shuttle_box_1hwl6_44",Oq="_leftSearch_1hwl6_58",Aq="_noBeforeAfter_1hwl6_62",Rq="_rightSearch_1hwl6_78",Pq="_transfer_1hwl6_2",Wa={box:Cq,transferSearch:Eq,searchBtn:kq,shuttle_box:Tq,leftSearch:Oq,noBeforeAfter:Aq,rightSearch:Rq,transfer:Pq},Dq="_content_1tmh1_1",Mq={content:Dq},aC=F.forwardRef((e,t)=>{const{panes:r,loading:n,defaultActiveKey:a,onTabClick:i}=e,[s,l]=F.useState(a),{TabPane:u}=X.Tabs;return n?D.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:D.jsx(Ls,{})}):(F.useImperativeHandle(t,()=>({active:c=>{(i==null?void 0:i(c))!==!1&&l(c)}}),[s]),D.jsx("div",{className:`${Mq.content} ${e.className??""}`,children:n?D.jsx("div",{style:{padding:"10px"}}):r.length?D.jsx(X.Tabs,{animated:!1,activeKey:s,destroyInactiveTabPane:!0,tabBarGutter:30,onTabClick:c=>{(i==null?void 0:i(c))!==!1&&l(c)},children:(r||[]).map((c,m)=>D.jsx(u,{tab:D.jsxs("div",{style:{display:"flex",alignItems:"center",paddingBottom:"2px"},children:[c.icon&&D.jsx(He,{style:{marginRight:"5px",fontSize:"16px"},type:`${c.icon}`}),D.jsx("div",{style:{fontSize:"12px",lineHeight:"18px"},children:c.tab})]}),children:D.jsx("div",{style:{padding:"0px"},children:F.Children.map(e.children,p=>{var g;return((g=p==null?void 0:p.props)==null?void 0:g["data-key"])==c.tabKey?p:null})})},`${c.tabKey}`))}):D.jsx(D.Fragment,{})}))}),Fq=F.forwardRef((e,t)=>{var B;const r=e.defaultValue?Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue]:[],n=e.defaultActiveKey||"",[a,i]=F.useState(!1),[s,l]=F.useState(),[u,c]=F.useState(r),[m,p]=F.useState([]),[g,y]=F.useState(n),[x,E]=F.useState({[n]:{left:1,right:1}}),[k,T]=F.useState({[n]:{left:0,right:0}}),[w,S]=F.useState(""),[f,h]=F.useState({right:"",left:""}),[v,_]=F.useState(!1),[R,C]=F.useState({});F.useEffect(()=>{c(r),y(n),E({[n]:{left:1,right:1}})},[e.defaultActiveKey,e.defaultValue]),F.useEffect(()=>{a?j():(c(r),l(void 0),y(n),E({[n]:{left:1,right:1}}),S(""),h({right:"",left:""}),C({}))},[a]);const P=xn(f),M=xn(x),U=xn(g),L=xn(k),N=F.useMemo(()=>{const H=()=>{var q;return s||((q=e.allListOptions)==null?void 0:q[U.current])||[]};return ie.uniqBy([...H(),...m],"id")},[U,g,e.allListOptions,s,m]),j=async H=>{_(!0),await e.getListCodeItem(Object.assign({search:P.current,tabKey:U.current,pageNo:M},ie.omit(H||{},"isPaging"))).then(q=>{q&&(H!=null&&H.isPaging?l([...N,...q]):l([...q]),T(Object.assign({},L.current,{[U.current]:{left:q.total||q.length,right:0}})))}).finally(()=>{_(!1)})};F.useEffect(()=>{p(N.filter(H=>u.includes(H.id)))},[u]);const O=async()=>{var H,q;if(e.mandatory&&!u.length)return X.message.error(`${Y("sys.mustSelect.mustSelect",{placeholder:"必须选择"})}${(H=e.attr)==null?void 0:H.name}`);(q=R.ok)==null||q.call(R,[...u],g,m),i(!1)};F.useImperativeHandle(t,()=>({open(H){C(()=>H),i(!0)},submit:O,dataSource:N,targetKeys:u,loading:v}),[N,u,v]);const I=H=>{H=="left"?j():S(P.current.right)},z=F.useMemo(()=>{var H;return Array.isArray(e.columns)?e.columns:((H=e.columns)==null?void 0:H[g])||[]},[e.columns,g]);return D.jsx(To,{className:Wa.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:Y("project.tab.plan.details.window.save",{placeholder:"保存"}),width:e.modalWidth||650,visible:a,mask:!1,onOk:O,onCancel:()=>{var H;(H=R.cancel)==null||H.call(R),i(!1)},children:D.jsx("div",{className:Wa.transferBox,children:D.jsx(Ls,{spinning:v,children:D.jsx(X.Transfer,{...e.transfer||{},className:`${Wa.transfer} ${((B=e.transfer)==null?void 0:B.className)??""}`,dataSource:N,targetKeys:u,onChange:(H,q,J)=>{q=="right"?c([...e.isRadio?J:H]):c([...H])},rowKey:H=>H.id,children:H=>{var Le,he,qe,oe,De,Je,Ct,Et;const{direction:q,filteredItems:J,onItemSelectAll:re,onItemSelect:ne,selectedKeys:se,showSearch:ce}=H,le=q=="left",ye=!le,we={onSelectAll(Fe,We){if(e.isRadio)return;const Ne=We.filter(at=>!at.disabled).map(({id:at})=>at),Oe=Fe?ie.difference(Ne,se):ie.difference(se,Ne);re(Oe,Fe)},onSelect({id:Fe},We){e.isRadio&&se.splice(0,1),ne(Fe,We)},getCheckboxProps:Fe=>({disabled:Fe.Number&&!Sn.readPermission(Fe.Number)?!0:le?Fe.disabled:!1}),selectedRowKeys:se,columnWidth:13};(Le=e==null?void 0:e.pager)!=null&&Le[g];const Ee=()=>le?J:J.filter(Fe=>Fe.label.includes(w)||Fe.Description.includes(w));return D.jsxs("div",{className:Wa.box,style:e.scroll?{width:"360px"}:{},children:[le&&e.panes&&((he=e.panes)==null?void 0:he.length)!=1?D.jsx(aC,{panes:e.panes,defaultActiveKey:g,onTabClick:Fe=>{var Ne;y(Fe),(Ne=e.onTabsChange)==null||Ne.call(e,Fe);const We={...f,[q]:""};h(We),M.current[Fe]||E(Object.assign({},M.current,{[Fe]:{left:1,right:1}})),j({tabKey:Fe,search:We})}}):null,ce?D.jsx("div",{style:e.scroll?{padding:"12px",borderLeft:"1px solid #E0E0E0",borderTop:"1px solid #E0E0E0",borderRight:"1px solid #E0E0E0"}:{padding:"0px"},children:D.jsx("div",{className:`${e.scroll?Wa.noBeforeAfter:""} ${Wa.transferSearch} ${le&&((qe=e.panes)!=null&&qe.length)?Wa.leftSearch:(oe=e.panes)!=null&&oe.length?Wa.rightSearch:""}`,style:e.scroll?{margin:"0px"}:{},children:D.jsx(X.Input.Search,{placeholder:e.placeholder||Y("sys.nameOrDescription.enterNameOrDescription",{placeholder:"请输入名称或描述"}),enterButton:null,value:f[q],onChange:Fe=>{Fe.persist();const We=Fe.target.value;h({...f,[q]:We}),ye&&(We||S(""))},onSearch:I.bind(null,q),suffix:D.jsx("div",{className:Wa.searchBtn,onClick:I.bind(null,q),children:D.jsx(He,{type:"homesearch"})})})})}):null,D.jsx(xh,{rowSelection:{type:"checkbox",fixed:!0,...we},columns:z,showSorterTooltip:!1,hideFooter:!0,pagination:!1,dataSource:Ee(),scroll:{x:((De=e.scroll)==null?void 0:De.x)||300,y:((Je=e.scroll)==null?void 0:Je.y)||(le&&((Ct=e.panes)!=null&&Ct.length)?270:316)},style:{height:"100%"},pageNo:x[g][q],pageSize:le?20:void 0,total:le?(Et=k==null?void 0:k[g])==null?void 0:Et[q]:void 0,size:"small",onScroll:Fe=>{const We={...x,[g]:{...x[g],[q]:Fe}};E(We),le&&j({pageNo:We[g],isPaging:!0})},onRow:({id:Fe,disabled:We,...Ne})=>({onClick:()=>{if(!We&&le){if(e.isRadio&&se.splice(0,1),!Sn.readPermission(Ne.Number))return;ne(Fe,!se.includes(Fe))}},onDoubleClick:()=>{if(Sn.readPermission(Ne.Number)){if(le)We||(e.isRadio?c([Fe]):c([Fe,...u]));else{for(let Oe=0;Oe<u.length;Oe++)if(u[Oe]==Fe){u.splice(Oe,1);break}c([...u])}re([],!1)}}})}),e.showFooter?D.jsxs("div",{style:{marginTop:"4px"},children:[D.jsx("span",{style:{color:"#999999"},children:Y("sys.selected",{placeholder:"已选"})})," ",D.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:se.length})," ",D.jsx("span",{style:{color:"#999999"},children:Y("project.tab.plan.criticalPath.window.item",{placeholder:"条"})}),",",D.jsx("span",{style:{color:"#999999"},children:Y("project.tab.plan.criticalPath.window.total",{placeholder:"共"})})," ",D.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:ye?u.length:k[g][q]}),D.jsxs("span",{style:{color:"#999999"},children:[" ",Y("project.tab.plan.criticalPath.window.item",{placeholder:"条"})]})]}):D.jsx(D.Fragment,{})]})}})})})})}),iC=F.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{var x,E;const i=F.useRef(null),{attr:s,allListOptions:l,popoverTransfer:u}=e,c=yo(()=>{var k;(k=i.current)==null||k.open({ok:(T,w,S)=>{var f,h;["multiple","tags"].includes(e.mode)?r==null||r(T):r==null||r(T[0]),(f=u==null?void 0:u.onSubmit)==null||f.call(u,T,w,v=>p({newVal:T,allOptions:v}),S),(h=e.onBlur)==null||h.call(e)},cancel:()=>{var T;(T=e.onBlur)==null||T.call(e)}})});F.useImperativeHandle(a,()=>({focus:c}),[]);const m=F.useMemo(()=>{var T;const k=((T=u==null?void 0:u.panes)==null?void 0:T.map(w=>w.tabKey))||[String(s==null?void 0:s.listCode)];return Object.entries(l||{}).map(([w,S])=>k.includes(w)?S:[]).flat(1)},[s,l,u==null?void 0:u.panes]),p=yo(({allOptions:k,newVal:T})=>{var f;const w=((f=u==null?void 0:u.panes)==null?void 0:f.map(h=>h.tabKey))||[s==null?void 0:s.listCode];let S=[];return Object.entries(k||l||{}).some(([h,v])=>{if(w.includes(h))return v.some(_=>{if(T&&(T==null?void 0:T.length)>1)return T.includes(_.value)&&!S.includes(h)&&S.push(h),!1;{const R=_.value==((T==null?void 0:T[0])||t);return R&&(S=[h]),R}})}),S.filter(Boolean).join(",")}),g=F.useMemo(()=>{var T;const k=((T=u==null?void 0:u.panes)==null?void 0:T.map(w=>w.tabKey))||[s==null?void 0:s.listCode];return k.length==1?k[0]:p({}).split(",")[0]},[t,l,u==null?void 0:u.panes]),y=F.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return D.jsxs("div",{children:[D.jsx(ho,{...e,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:y,filterOption:(k,T)=>T.label&&T.label.indexOf(k)>=0,showSearch:!0,disabled:n,options:m.map(k=>({...k,label:Sn.readPermission(k.label)?k.label:Y("sys.noPermission",{placeholder:"无权限"})})),allowClear:!0,optionLabelProp:"label",open:!1,onChange:k=>{["multiple","tags"].includes(e.mode)?r==null||r(k):k&&k instanceof Array?r==null||r(k[0]):r==null||r("")},tagRender:({label:k})=>Sn.readPermission(k)?D.jsx(X.Tag,{color:"#0563B2",children:k}):D.jsx(pa,{}),onDropdownVisibleChange:c,onClear:()=>{["multiple","tags"].includes(e.mode)?r==null||r(""):r==null||r([])}}),D.jsx(Fq,{title:`${Y("project.tab.plan.transfer.title",{placeholder:"选择"})}${s.name}`,...Object.assign(Object.create(null),u),ref:i,attr:s,defaultActiveKey:g||((E=(x=u==null?void 0:u.panes)==null?void 0:x[0])==null?void 0:E.tabKey)||"",defaultValue:y,allListOptions:l})]})}),Nq="_shuttle_box_1962p_1",Iq="_box_1962p_5",Lq="_search_1962p_8",Ld={shuttle_box:Nq,box:Iq,search:Lq};function Cx(e){const t=F.useRef(!1),r=F.useRef({}),n=u=>{if(typeof e=="function"){const c=e();return!u&&(r.current=c),Object.assign(Object.create(null),c)}else{const c=e;return!u&&(r.current=c),Object.assign(Object.create(null),e)}},[a,i]=F.useState(n(!0));F.useEffect(()=>(typeof e=="function"?r.current=e():r.current=e,t.current=!1,()=>{t.current=!0}),[]);const s=u=>{if(!t.current)if(typeof u=="function"){const c=Object.assign(Object.create(null),u(a)||a);r.current=c,i(c)}else{const c=Object.assign(Object.create(null),r.current,u);r.current=c,i(c)}},l=()=>i(n());return vt.makeDestructurable({store:a,setStore:s,resetStore:l,latestStore:r},[a,s,l,r])}const oC=F.forwardRef((e,t)=>{var k,T,w,S;e.defaultValue&&(Array.isArray(e.defaultValue)?e.defaultValue:e.defaultValue);const r=e.rowKey||"id",n=!((k=e.attr)!=null&&k.allowMultiple),a=!!((T=e.attr)!=null&&T.required),{store:i,setStore:s,resetStore:l,latestStore:u}=Cx(()=>({visible:!1,search:"",sorters:"",filters:"",loading:!1,dataSource:[],selectedRows:[],callback:()=>{}})),c=Cx(()=>({pageNo:1,pageSize:50,total:0})),m=async f=>{s({loading:!0});try{const{data:h,total:v}=await e.getDataSource({search:u.current.search,sorters:u.current.sorters,filters:u.current.filters,...c.latestStore.current,record:e.record});s(f?{dataSource:[...i.dataSource,...h]}:{dataSource:h}),c.setStore({total:v})}catch(h){console.log(h)}finally{s({loading:!1})}},p=F.useMemo(()=>i.selectedRows.map(f=>f[r]),[i.selectedRows]);F.useEffect(()=>{i.visible?m().finally(()=>{}):(l(),c.resetStore())},[i.visible]);const g=yo(async f=>{var h,v,_;if(a&&!f&&!i.selectedRows.length){X.message.error(Y("project.attr.edit.roleOrOwner.msg",{placeholder:"请选择{name}",variate:{name:(h=e.attr)==null?void 0:h.name}}));return}(_=(v=u.current.callback).ok)==null||_.call(v,f?[f[r]]:p),s({visible:!1})});F.useImperativeHandle(t,()=>({open(f){s({callback:f,visible:!0})},submit:g,dataSource:i.dataSource,loading:i.loading}),[i.dataSource,i.loading]);const y=()=>{m()},x={onSelectAll(f,h){n||s({selectedRows:h})},onSelect(f,h){n?h?s({selectedRows:[f]}):a||s({selectedRows:[]}):s(h?{selectedRows:[...i.selectedRows,f]}:{selectedRows:i.selectedRows.filter(v=>v[r]!=f[r])})},getCheckboxProps:f=>({disabled:!1}),selectedRowKeys:p,columnWidth:13},E=F.useMemo(()=>e.generateColumns(u),[e.generateColumns]);return F.useEffect(()=>{const f=ie.debounce(h=>{(h.keyCode||h.which)==13&&u.current.visible&&h.target.dataset.search!="true"&&g()},200);return window.addEventListener("keyup",f),()=>{window.removeEventListener("keyup",f)}},[]),D.jsx(To,{className:Ld.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:Y("project.tab.plan.details.window.save",{placeholder:"保存"}),styleUnify:!0,width:e.modalWidth||660,visible:i.visible,mask:!1,onOk:g,onCancel:()=>{var f,h;s({visible:!1}),(h=(f=u.current.callback).cancel)==null||h.call(f)},footer:null,children:D.jsx("div",{onScroll:f=>f.stopPropagation(),onScrollCapture:f=>f.stopPropagation(),children:D.jsx(Ls,{spinning:i.loading,children:D.jsxs("div",{className:Ld.box,children:[D.jsx("div",{children:D.jsx("div",{className:`${Ld.search}`,children:D.jsx(X.Input.Search,{placeholder:Y("sys.prompt.enterName",{placeholder:"请输入姓名"}),enterButton:null,"data-search":!0,...e.searchProps,suffix:D.jsx("div",{className:Ld.searchBtn,onClick:y,children:D.jsx(He,{type:"homesearch"})}),value:i.search,onChange:f=>s({search:f.target.value}),onSearch:y})})}),D.jsx(xh,{rowSelection:{type:"checkbox",fixed:!0,...x},columns:E,showSorterTooltip:!1,dataSource:i.dataSource,scroll:{x:(w=e.scroll)==null?void 0:w.x,y:((S=e.scroll)==null?void 0:S.y)||300},style:{height:"100%"},...c.store,size:"small",onScroll:f=>{c.setStore({pageNo:f}),m(!0)},onFilterAndSorter:(f,h)=>{s({sorters:f,filters:h}),m()},onRow:(f,...h)=>({onClick:()=>{console.log(f,h,"FFFFFFFFFFFF")},onDoubleClick:()=>{g(f)}})})]})})})})}),sC=F.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{const i=F.useRef(null),{attr:s,allListOptions:l,selectPopupProps:u,record:c}=e,m=yo(()=>{var y;(y=i.current)==null||y.open({ok:x=>{var E,k,T;["multiple","tags"].includes(e.mode)?(r==null||r(x),(E=e.onChange)==null||E.call(e,x,l[s.listCode]||[])):((k=e.onChange)==null||k.call(e,x[0],l[s.listCode]||[]),r==null||r(x[0])),(T=e.onBlur)==null||T.call(e)},cancel:()=>{var x;(x=e.onBlur)==null||x.call(e)}})});F.useImperativeHandle(a,()=>({focus:m}),[]);const p=F.useMemo(()=>ie.omit(e,["popoverProps","attr","allListOptions"]),[e]),g=F.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return D.jsxs("div",{children:[D.jsx(ho,{...p,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:g,filterOption:(y,x)=>x.label&&x.label.indexOf(y)>=0,showSearch:!0,disabled:n,options:l[s.listCode]||[],allowClear:e.allowClear==null?!0:e.allowClear,optionLabelProp:"label",open:!1,loading:e.loading,onDropdownVisibleChange:m}),D.jsx(oC,{title:`${Y("project.tab.plan.transfer.title",{placeholder:"选择"})}${s.name}`,...Object.assign(Object.create(null),u),ref:i,attr:s,record:c,defaultValue:g})]})}),sg=[null,(e,t)=>(e=ve(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()<e.valueOf()),(e,t)=>(e=ve(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()<=e.valueOf()),(e,t)=>(e=ve(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()>e.valueOf()),(e,t)=>(e=ve(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()>=e.valueOf()),(e,t)=>t.valueOf()==e.valueOf()];function jq(e,t){const r=n=>{var i;if(!n.date||!n.type)return n.isWorkTime?!n.isWorkTime({date:new Date(t.valueOf())}):!1;const a=ve(n.date);return((i=sg[n.type])==null?void 0:i.call(sg,a,ve(t)))||(n==null?void 0:n.isWorkTime)&&!n.isWorkTime({date:new Date(t.valueOf())})};return Array.isArray(e)?e.map(a=>r(a)).some(a=>a):r(e)}const Ex={dem:"3Shape DCM (*.dcm)",sat:"ACIS (*.sat;*.asat;*.sab;*.asab)",sab:"ACIS (*.sat;*.asat;*.sab;*.asab)",asab:"ACIS (*.sat;*.asat;*.sab;*.asab)",pd:"Cadds (_pd;*._pd)",zip:"zip",model:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",exp:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",CATDrawing:"Catia V5 2D (*.CATDrawing)",CATPart:"Catia V5 3D (*.CATPart;*.CATProduct)",CATProduct:"Catia V5 3D (*.CATPart;*.CATProduct)","3dxml":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",art:"Cercon (*.art)",sdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",idt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cgr:"CGR (*.cgr)",ol:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",ed:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",edz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvs:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",dwg:"DWG 2D (*.dwg)",dxf:"DWG/DXF 3D (*.dwg;*.dxf)",fbx:"FBX (*.fbx)",f3d:"Fusion 360 (*.f3d)",ifc:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifexml:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifezip:"IFC (*.ifc;*.ifcxml;*.ifczip)",igs:"IGES 3D (*.igs;*.iges)",iges:"IGES 3D (*.igs;*.iges)",jt:"JT (*.jt)",nwd:"Navisworks (*.nwd)",obj:"OBJ (*.obj)",xmt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_t:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_b:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_txt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_bin:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",plmxml:"PLM XML (*.plmxml)","03s":"Procera (*.c3s)",drw:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",xpr:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",asm:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",xas:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",rvt:"Revit (*.rvt;*.rfa)",rfa:"Revit (*.rvt;*.rfa)","3dm":"Rhino (*.3dm)",rf:"Robface (*.rf)",smg:"SMG (*.smg;*.smggeom)",smggeom:"SMG (*.smg;*.smggeom)",dft:"Solid Edge 2D (*.dft)",par:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",psm:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",pwd:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",slddrw:"SolidWorks 2D (*.slddrw)",sldprt:"SolidWorks 3D (*.sldprt;*.sldasm)",sldasm:"SolidWorks 3D (*.sldprt;*.sldasm)",step:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stp:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpx:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpxz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpnc:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stl:"STL (*.stl)",prt:"UG NX 3D (*.prt)",vda:"VDAFS (*.vda)","03S":"Procera (*.c3s)","3DM":"Rhino (*.3dm)","3DXML":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",ART:"Cercon (*.art)",ASAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",ASM:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",CATDRAWING:"Catia V5 2D (*.CATDrawing)",CATPART:"Catia V5 3D (*.CATPart;*.CATProduct)",CATPRODUCT:"Catia V5 3D (*.CATPart;*.CATProduct)",CDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",CGR:"CGR (*.cgr)",DEM:"3Shape DCM (*.dcm)",DFT:"Solid Edge 2D (*.dft)",DLV:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DLV3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DRW:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",DWG:"DWG 2D (*.dwg)",DXF:"DWG/DXF 3D (*.dwg;*.dxf)",ED:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EDZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EXP:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",F3D:"Fusion 360 (*.f3d)",FBX:"FBX (*.fbx)",IDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",IFC:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEXML:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEZIP:"IFC (*.ifc;*.ifcxml;*.ifczip)",IGES:"IGES 3D (*.igs;*.iges)",IGS:"IGES 3D (*.igs;*.iges)",JT:"JT (*.jt)",MODEL:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",NWD:"Navisworks (*.nwd)",OBJ:"OBJ (*.obj)",OL:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PAR:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PD:"Cadds (_pd;*._pd)",PLMXML:"PLM XML (*.plmxml)",PRT:"UG NX 3D (*.prt)",PSM:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PVS:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PVZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PWD:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",RF:"Robface (*.rf)",RFA:"Revit (*.rvt;*.rfa)",RVT:"Revit (*.rvt;*.rfa)",SAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",SAT:"ACIS (*.sat;*.asat;*.sab;*.asab)",SDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",SLDASM:"SolidWorks 3D (*.sldprt;*.sldasm)",SLDDRW:"SolidWorks 2D (*.slddrw)",SLDPRT:"SolidWorks 3D (*.sldprt;*.sldasm)",SMG:"SMG (*.smg;*.smggeom)",SMGGEOM:"SMG (*.smg;*.smggeom)",STL:"STL (*.stl)",STEP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPNC:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPX:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPXZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",VDA:"VDAFS (*.vda)",XAS:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",XMT:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",XPR:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)"},$q=F.forwardRef((e,t)=>{const r=F.useRef(),n=["Input","Input.TextArea","Number","CompositeForm"],a=["Select","Date","Cascader","TreeSelect","DatePicker.RangePicker","Image","File"],i=e.formprops.type;F.useImperativeHandle(t,()=>({focusFormItem:()=>{var u;i!=="File"&&i!=="Image"&&((u=r.current)==null||u.focus())},blurFormItem:()=>{var u;i!=="File"&&i!=="Image"&&((u=r.current)==null||u.blur())}}));const s=F.useMemo(()=>{var m,p;const u=g=>(g==null?void 0:g.closest(wh))||document.body||document.documentElement;(m=e==null?void 0:e.formprops)!=null&&m.props&&!e.formprops.props.getPopupContainer&&(e.formprops.props.getPopupContainer=u);let c={getPopupContainer:u};return n.includes(i)?c={...e.formprops.props,size:"small",onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()}}:a.includes(i)&&(c={...e.formprops.props,size:"small",onChange:((p=e.formprops)==null?void 0:p.props.mode)==="multiple"||e.formprops.props.treeCheckable?void 0:e.onSave,onBlur:e.onSave,onClick:g=>{g.stopPropagation()}}),e.formprops.formatFormProps?e.formprops.formatFormProps(c,e.record,e.apicode):c},[e.record,e.formprops,e.onSave]),l=()=>{var c;let u={...s};if(e.apicode==="NewVersion")return u.options&&u.options[e.record.insId][0]&&!((c=u.options[e.record.insId][0])!=null&&c.value)||u.options&&!u.options[e.record.insId][0]?(u={...u,onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()},onChange:void 0},D.jsx(X.Input,{ref:r,...u})):D.jsx(X.Select,{ref:r,filterOption:(m,p)=>p.label&&p.label.indexOf(m)>=0,showSearch:!0,allowClear:!0,...ie.assign(u,{options:ie.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?ie.uniqBy(u.options[e.record.insId],"value").map(m=>({label:m.label.replace(Y("sys.majorVersion",{placeholder:"大版本"}),"").replace(Y("sys.minorVersion",{placeholder:"小版本"}),""),value:m.value})):ie.uniqBy(u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[],"value")})});switch(i){case"Input":return D.jsx(X.Input,{ref:r,...u});case"DatePicker.RangePicker":return D.jsx(X.DatePicker.RangePicker,{...u});case"Select":if(e.apicode==="exchanger"||e.apicode==="NewLifePhase"||e.apicode==="NewVersion"||e.apicode==="ProblemVersion"){if(e.apicode==="NewLifePhase"&&u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>!g.noShow).map(g=>Fi.isChangeInstruction(g.itemcode)?{...g,disabled:g.sort<e.record.lifecycle.sort&&!["10007010","10007006","10007014"].includes(String(e.record.lifecycle.code))||!g.status}:Fi.isStatusChange(g.itemcode)?Fi.isFile(e.record.itemCode)?{...g,disabled:!g.status}:{...g,disabled:g.sort<=e.record.lifecycle.sort&&e.record.lifecycle.apicode!=="Obsolete"||!g.status||e.record.lifecycle.apicode==="Obsolete"&&g.apicode=="Obsolete"}:{...g,disabled:!g.status||g.code==10007022})),e.apicode==="ProblemVersion"&&u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>g.value!="Draft").map(g=>({...g}))),e.apicode==="exchanger"&&u.options&&u.options[Ex[e.record.extension]]){const g=u.options[Ex[e.record.extension]].map(y=>({label:y,value:y}));return D.jsx(X.Select,{ref:r,filterOption:(y,x)=>x.label&&x.label.indexOf(y)>=0,showSearch:!0,allowClear:!0,...u,options:g})}return D.jsx(X.Select,{ref:r,filterOption:(g,y)=>y.label&&y.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...ie.assign(u,{options:ie.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?ie.uniqBy(u.options[e.record.insId],"value").map(g=>({label:g.label.replace(Y("sys.majorVersion",{placeholder:"大版本"}),"").replace(Y("sys.minorVersion",{placeholder:"小版本"}),""),value:g.value})):ie.uniqBy(u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[],"value")})})}else{if(e.apicode==="AffectRevision")return u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>g.value.indexOf("(")==-1).map(g=>({...g}))),D.jsx(X.Select,{ref:r,filterOption:(g,y)=>y.label&&y.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...ie.assign(u,{options:u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[]})});if(e.apicode==="NewStatus")return u.options.forEach(g=>{var y;!((y=e==null?void 0:e.record)!=null&&y.publishTime)&&(g.apicode==="Disable"||g.apicode==="Scrap")?g.disabled=!0:g.disabled=!1,(g.apicode==="Initial"||g.apicode==="Draft")&&(g.disabled=!0)}),D.jsx(X.Select,{ref:r,filterOption:(g,y)=>y.label&&y.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...u});if(u!=null&&u.selectPopupProps)return D.jsx(sC,{ref:r,selectProps:{...u,record:e.record}});if(u!=null&&u.popoverTransfer||u!=null&&u.popoverTable)return D.jsx(iC,{ref:r,selectProps:u})}return D.jsx(X.Select,{ref:r,filterOption:(g,y)=>y.label&&y.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...u});case"Cascader":return D.jsx(X.Cascader,{ref:r,showSearch:{filter:(g,y)=>y.some(x=>x.label&&x.label.toLowerCase().indexOf(g.toLowerCase())>-1),matchInputWidth:!1},...u});case"Date":const m=e.record.forbiddenTime,p=m&&m[e.name];return D.jsx(X.DatePicker,{ref:r,...u,disabledDate:p?g=>jq(m[e.name],g):void 0});case"Number":return D.jsx(X.InputNumber,{ref:r,...u});case"Input.TextArea":return D.jsx(X.Input.TextArea,{ref:r,...u});case"TreeSelect":return D.jsx(X.TreeSelect,{ref:r,...u});case"CompositeForm":return D.jsx(hc,{...u});default:return D.jsx(X.Input,{ref:r,...u})}};return D.jsx(X.Form.Item,{noStyle:!0,name:e.name,children:l()})}),zq="_imgOuter_16ygq_1",Bq="_imgInner_16ygq_9",kx={imgOuter:zq,imgInner:Bq},uC=e=>D.jsx(X.Image,{...e,src:e.src}),_1=e=>D.jsx("div",{className:kx.imgOuter,children:D.jsx(uC,{preview:!1,src:e.src,className:kx.imgInner,placeholder:D.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:D.jsx(He,{className:"rotate",style:{cursor:"pointer",color:"#0563b2"},type:"loading"})})})}),rt=class rt{static avoid0TypeConvert(t){return vt.avoid0TypeConvert(t)}static isEqual(t,r){function n(a){return ve.isMoment(a)?vt.momentToRawData(a):a??""}return t=n(t),r=n(r),ie.isNil(t)&&ie.isNil(r)||ie.isNaN(t)&&ie.isNaN(r)?!0:t instanceof Object?ie.isEqual(t,r):this.avoid0TypeConvert(t)==this.avoid0TypeConvert(r)}static getCellSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess&&!ie.isNil(t.inProcess[r])&&!ie.isNil(t.inProcess)&&rt.isEqual(t.inProcess[r],t[r]),i=t.newVal&&!ie.isNil(t.newVal[r])&&!ie.isNil(t.newVal)&&rt.isEqual(t.newVal[r],t[r]);return{hasOptType:n,hasInProcess:a,hasNewValue:i}}static getRowSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess?Object.keys(t.inProcess):[],i=t.newVal?Object.keys(t.newVal):[],s=a.map(u=>{const c=t.inProcess[u],m=t[u],p=rt.isEqual(c,m);return r==null||r("inProcess",u,p,c,m),p}).some(u=>!u),l=i.map(u=>{const c=t.newVal[u],m=t[u],p=rt.isEqual(c,m);return r==null||r("newVal",u,p,c,m),p}).some(u=>!u);return{hasOptType:n,hasInProcess:s,hasNewValue:l}}static isEmptyValue(t){return typeof t=="number"?!1:ie.isEmpty(t)}static sortAndFilterTable(t){const{tableColumns:r,originTableColumns:n,sortersField:a,tabInfo:i={}}=t;let{sorters:s,filters:l}=t;const u=Fi.isUser(i.itemCode||""),c=i.tab==="Delegate";if(u&&c&&l){const m=r.filter(g=>["ChangeCategory"].includes(g.apicode)).map(g=>g.dataIndex),p=ie.map(l.split("~!~"),g=>ie.split(g,"-")[0]);ie.includes(p,m[0])?l.split("~!~").map(g=>{if(m.includes(g.split("-")[0])){const y=g.split("-")[1].split(",");y&&Array.isArray(y)&&(ie.remove(y,x=>x==""||x==null),r.map(x=>(x.apicode==="Category"&&ie.forEach(x.formitem.props.options,E=>{ie.includes(y,E.itemCode)?E.isHidden=!1:E.isHidden=!0,y.length==0&&(E.isHidden=!1)}),x)))}}):r.map(g=>(g.apicode==="Category"&&ie.forEach(g.formitem.props.options,y=>{y.isHidden=!1}),g))}if(i.tab!=="History"){const m=r.filter(g=>g.dataFrom==="1").map(g=>g.dataIndex),p=r.filter(g=>g.dataFrom==="0"||g.dataFrom==="2").map(g=>g.dataIndex);if(s&&Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(s.split("-")[0])){const g=rt.getFixAttrFilterOrSortInfo({filterOrSort:s,attrs:n||r.map(y=>y.attr)});s=(g==null?void 0:g.value)||s}else m.includes(s.split("-")[0])?s=s?`attributes.${s}`:"":p.includes(s.split("-")[0])&&(s=s?`current.${s}`:"");if(l){const g=r.filter(y=>["OldVersion"].includes(y.apicode)).map(y=>y.dataIndex);l=l.split("~!~").map(y=>{if(console.log(y,"item"),g.includes(y.split("-")[0]))return`current.${y.split("-")[0]}-${y.split("-")[1]===Y("sys.label.draft",{placeholder:"草稿"})?"Draft":`${y.split("-")[1]} `}`;if(Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(y.split("-")[0])){const x=rt.getFixAttrFilterOrSortInfo({filterOrSort:y,attrs:n||r.map(E=>E.attr)});return(x==null?void 0:x.value)||l}if(m.includes(y.split("-")[0]))return y?`attributes.${y}`:"";if(p.includes(y.split("-")[0]))return y?`current.${y}`:""}).join("~!~")}}if(i.tab==="VersionRecord"&&n){const m=vt.transformArrayToMap(n,"apicode","id");s=s.replace("insVersionOrder",`attributes.${m.Revision}`),l=l.replace("insVersionOrder",`attributes.${m.Revision}`)}return{sorters:s,filters:l,sortersField:a}}static monitoringCol(t,r){var u;const n=()=>{};if(!t)return n;const a=(u=t.querySelector(".frontend-table-header"))==null?void 0:u.querySelector("colgroup");if(!a)return n;const i=a.querySelector(".frontend-table-selection-col"),s=t.querySelector(".frontend-table-body").querySelector("colgroup");let l=null;return i&&(l=new MutationObserver(async(c,m)=>{const[p]=c;if(p.type=="attributes"&&p.attributeName=="style"&&!i.inhibit&&!ie.isNil(r)){i.inhibit=!0;const g=r;if(g!=i.offsetWidth){const y=Number(g)-i.offsetWidth,x=a.children.length-2,E=ie.round(y/x,2);Array.from(a.children,(k,T)=>{const w=s.children[T];if(k==i)k.setAttribute("style",`width:${g}px;max-width:${g}px;`),w.setAttribute("style",`width:${g}px;max-width:${g}px;`);else if(T!=a.children.length-1){const S=k.style.width.replace("px","");k.setAttribute("style",`width:${Number(S)+E}px;`),w.setAttribute("style",`width:${Number(S)}px;`)}})}}else i.inhibit=!1}),l.observe(i,{attributeFilter:["style"]})),()=>{l==null||l.disconnect(),l=null}}static getFixAttrFilterOrSortInfo({filterOrSort:t,attrs:r}){let n,a;const i=t.indexOf("-");if(i!==-1?(n=t.substring(0,i),a=t.substring(i+1)):(n=t,a=""),Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(n)){const[s]=Object.entries(FIX_INS_TAbTABLE_COLUMNMAP).find(([l,u])=>n==u)||[];if(s){const l=vt.getAttrOf(r,s);if(l){l.apicode==="Version"&&(a=a===Y("sys.label.draft",{placeholder:"草稿"})?"Draft":`${a} `);const u=As.getAttributesMapId(l),c=As.isQuoteAttr(l)?"attributes":"current";return{apicode:s,id:u,attr:l,filterOrSortValue:a,prefix:c,value:`${c}.${u}-${a}`}}}}}};Tt(rt,"getTrulyHighlight",({formitem:t,highlight:r})=>{const n=["Input","Input.TextArea","Select","SelectTransfer","Date","Cascader","TreeSelect","Number"],i=(()=>{var l;return r&&r[0]?ie.isArray(r[0])&&t?(l=t.props)!=null&&l.treeCheckable||t.props.mode==="multiple"?rt.renderReadonlyItem({value:r[0],formitem:t}).split(","):rt.renderReadonlyItem({value:r[0],formitem:t}):ve.isMoment(r[0])?[ve(r[0]).format("YYYY-MM-DD")]:r:[]})()||[],s=n.includes(t==null?void 0:t.type)||!t;return{trulyHighlight:s?i:r||[],needTransform:s}}),Tt(rt,"wrapperHighLight",({highlight:t,formitem:r,value:n,originValue:a})=>{if(Sn.isMosaic(a))return D.jsx(pa,{});const{trulyHighlight:i,needTransform:s}=rt.getTrulyHighlight({highlight:t,formitem:r});return s?D.jsx(ei,{highlight:i,value:n}):n}),Tt(rt,"renderCacheCell",(t,r,n,a,i)=>{if(t.optType==="update"||t.optType==="replace"){if(t.newVal&&(t.newVal[r]||!ie.isNil(t.newVal[r])))if(rt.isEqual(t.newVal[r],t[r])){if(rt.isEqual(t.newVal[r],t[r]))return D.jsx("div",{style:{width:"100%"},children:D.jsx("div",{className:zn.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):rt.wrapperHighLight({originValue:t.newVal[r],value:rt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})})}else return D.jsxs("div",{style:{width:"100%"},children:[D.jsx("div",{className:zn.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):rt.wrapperHighLight({originValue:t.newVal[r],value:rt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),D.jsx("div",{className:zn.update_style,children:a?a({value:t[r],formitem:n,row:t}):rt.wrapperHighLight({originValue:t[r],value:rt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]});if(t.inProcess&&t.inProcess[r]!==void 0&&t.inProcess!==null&&!rt.isEqual(t.inProcess[r],t[r]))return D.jsxs("div",{style:{width:"100%"},children:[D.jsx("div",{className:zn.updated_redline_style,children:a?a({value:t.inProcess[r],formitem:n,row:t.inProcess}):rt.wrapperHighLight({originValue:t.inProcess[r],value:rt.renderReadonlyItem({value:t.inProcess[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),D.jsx("div",{className:zn.update_style,children:a?a({value:t[r],formitem:n,row:t}):rt.wrapperHighLight({originValue:t[r],value:rt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]})}return t.newVal&&t.newVal[r]!==void 0&&t.newVal!==null&&!rt.isEqual(t.newVal[r],t[r])?D.jsxs("div",{style:{width:"100%"},children:[D.jsx("div",{className:zn.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):rt.wrapperHighLight({originValue:t.newVal[r],value:rt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),D.jsx("div",{className:zn.update_style,children:a?a({value:t[r],formitem:n,row:t}):rt.wrapperHighLight({originValue:t[r],value:rt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]}):D.jsx("div",{style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:a?a({value:t[r],formitem:n,row:t}):rt.wrapperHighLight({originValue:t[r],value:rt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})}),Tt(rt,"renderReadonlyItem",({apicode:t,formitem:r,value:n,record:a})=>{var i,s,l,u,c,m;if(!r)return n;if(!r.type)return"";if(["Select","Cascader"].includes(r.type))return r.props.mode==="multiple"?ie.isArray(n)&&n instanceof Array?n.map(p=>vt.getLabelInOptions({value:p,options:(r==null?void 0:r.props.options)||[]})).join(","):n&&typeof n=="string"?n.split(",").map(p=>vt.getLabelInOptions({value:p,options:(r==null?void 0:r.props.options)||[]})).join(","):"":vt.getLabelInOptions({value:n,options:(r==null?void 0:r.props.options)||[]});if(["TreeSelect"].includes(r.type))return(i=r.props)!=null&&i.treeCheckable&&ie.isArray(n)&&n instanceof Array?n.map(p=>vt.getLabelInOptions({value:typeof p!="string"?p.value:p,options:(r==null?void 0:r.props.treeData)||[]})).join(","):vt.getLabelInOptions({value:n,options:(r==null?void 0:r.props.treeData)||[]});if(["Date"].includes(r.type))if(n)if(ve.isMoment(n)){const g=n.creationData();return n.format(((s=r==null?void 0:r.props)==null?void 0:s.format)??g.format)}else return ve(n).format(((l=r==null?void 0:r.props)==null?void 0:l.format)??"YYYY-MM-DD HH:mm:ss");else return"";else return["Image"].includes(r.type)?n&&!ie.isArray(n)?D.jsx(X.Popover,{placement:"right",content:D.jsx("div",{style:{height:"60px",width:"60px"},children:n?D.jsx(_1,{src:`/api${n}`}):D.jsx(D.Fragment,{})}),trigger:"hover",children:D.jsx("div",{style:{height:"26px",width:"26px"},children:n?D.jsx(_1,{src:`/api${n}`}):D.jsx(D.Fragment,{})})}):"":["CompositeForm"].includes(r.type)?n&&typeof n=="string"?(u=String(n))!=null&&u.includes("~%~")?`${n.split("~%~")[0]||""}${((m=ie.find((c=r.props)==null?void 0:c.options,{id:n.split("~%~")[1]}))==null?void 0:m.name)||""}`:n:"":r.isbomtag&&!ie.isArray(n)&&!(n instanceof Array)?n?vt.renderBomTag(n):"":ie.isArray(n)&&n instanceof Array?n.join(","):n??""}),Tt(rt,"renderRowClassName",t=>{const r=[];let n="";return t.shear&&r.push("shear-row"),t.optType==="add"?n="add-redline-row":t.optType==="del"&&(n="del-row"),t.dataType==="add"?n="add-row":t.dataType==="del"&&(n="del-row"),`${r.join(" ")} ${n}`}),Tt(rt,"renderVersionColumn",(t,r)=>Sn.isMosaic(t)?D.jsx(pa,{}):t==="Draft"||ie.isString(t)&&t.split(" ")[0]==="Draft"?D.jsx(ei,{highlight:r||[],value:Y("sys.label.draft",{placeholder:"草稿"})}):D.jsx(ei,{highlight:r||[],value:ie.isString(t)?t.replace(/[()]/g,"").split(" ")[0]:""}));let Za=rt;const Hq=({title:e,editable:t,children:r,dataIndex:n,record:a,handleSave:i,handleCellSelected:s,handleFill:l,handleDoubleClick:u,renderCacheCell:c,loading:m,required:p,formitem:g,rowKey:y,render:x,tableKey:E,menuId:k,highlight:T,isVersion:w,isUser:S,preRender:f,apicode:h,canselectcell:v,selectedCell:_,fillContextMenu:R,setInitialState:C,...P})=>{var Le,he,qe;const M=F.useContext(eh),[U,L]=F.useState(!1),N=F.useContext(Lv),j=F.useRef(null),O=["Input","Input.TextArea","Number"];v&&_&&(_==null?void 0:_.dataIndex)===n&&(_==null?void 0:_.record[y])==a[y]&&(_==null?void 0:_.tableKey)==E&&(P.style={...P.style,background:"#ddeffe"}),F.useEffect(()=>{var oe,De;U?(oe=j.current)==null||oe.focusFormItem():(De=j.current)==null||De.blurFormItem()},[U]);const I=oe=>{for(;oe&&oe.nodeName!=="TR";)oe=oe.parentNode;return oe},z=async(oe,De)=>{var Et,Fe,We;const Je=()=>{if(!(!e&&!n)&&De){const Ne=new MouseEvent("dblclick",{bubbles:!0,cancelable:!1});I(De==null?void 0:De.target)&&I(De==null?void 0:De.target).dispatchEvent(Ne)}};if(g&&g.props&&g.props.disabled||!g||g.props&&!g.props){Je();return}if(oe?u&&await u(a):!0){if(await N.validateFields(),oe){let Ne=a.newVal&&!ie.isNil(a.newVal[n])?a.newVal[n]:a.inProcess&&!ie.isNil(a.inProcess[n])?a.inProcess[n]:a[n];if((g==null?void 0:g.type)==="Date"){const Oe=(Et=g.props)==null?void 0:Et.format;Ne=Ne?ve(Ne,typeof Oe=="string"?Oe:"YYYY-MM-DD HH:mm:ss"):null}((g==null?void 0:g.type)==="TreeSelect"&&((Fe=g==null?void 0:g.props)!=null&&Fe.treeCheckable)||(g==null?void 0:g.type)==="Select"&&((We=g==null?void 0:g.props)==null?void 0:We.mode)==="multiple")&&(Ne==""?Ne=[]:typeof Ne=="string"&&(Ne=Ne.split(","))),N.setFieldsValue({[n]:Ne})}L(!U)}else Je()},B=async()=>{try{const oe=await N.validateFields();z(),Object.keys(oe).forEach(De=>{(oe[De]===null||oe[De]===void 0)&&(oe[De]=""),typeof oe[De]=="string"&&(oe[De]=oe[De].trim())}),i({...a,...oe})}catch{}},H=(oe,De)=>c||D.jsx("div",{className:zn.edit_cell,children:D.jsx(ei,{value:Za.renderReadonlyItem({value:oe[De],formitem:g}),highlight:le})}),{show:q}=gq({id:k}),J=()=>{v&&(s(),C&&C(oe=>({...oe,selectedCell:{dataIndex:n,record:a,tableKey:E}})))},re=oe=>{if(n){if(J(),oe.preventDefault(),g&&g.props&&g.props.disabled||!g||g.props&&!g.props)return;q(oe,{props:{key:{dataIndex:n,record:a}}})}};let ne=r;const se=a?a[n]:"",ce=F.Children.map(r,oe=>{var De;if(F.isValidElement(oe)){const Je=(De=oe==null?void 0:oe.props)==null?void 0:De.children;return!Je||!Array.isArray(Je)?null:Je.some(Et=>{const Fe=Et==null?void 0:Et.props;return Fe&&typeof Fe.className=="string"?Fe.className.includes("frontend-table-row-indent"):!1})?Je:null}else return null});if(!Sn.readPermission(se))return D.jsxs("td",{...P,children:[ce,D.jsx(pa,{inLine:!0})]});const{trulyHighlight:le}=Za.getTrulyHighlight({highlight:T,formitem:g});if(S){const oe=(M==null?void 0:M.overrideLinkCom)||"a";ne=D.jsx(oe,{userId:a[n],id:a[n],record:a,content:Za.renderReadonlyItem({value:a[n],formitem:g}),highlight:le})}else if(t){if(g.type==="Date"){const oe=(Le=g.props)==null?void 0:Le.format,De=typeof oe=="string";let Je,Ct;if(ve.isMoment(a[n])){const Et=a[n].creationData();Je=Et==null?void 0:Et.input,Ct=Et==null?void 0:Et.format}a[n]=a[n]?ve(Je||a[n],De?oe:Ct||"YYYY-MM-DD HH:mm:ss"):null}if(((he=g.props)!=null&&he.treeCheckable||((qe=g.props)==null?void 0:qe.mode)==="multiple")&&typeof a[n]=="string"&&(a[n]=a[n]?a[n].split(","):[]),U)ne=D.jsx("div",{onDoubleClick:oe=>{oe.stopPropagation()},children:D.jsx(X.Form.Item,{validateTrigger:O.includes(g.type)?"blur":"onChange",style:{margin:0},name:n,children:D.jsx($q,{name:n,ref:j,onSave:()=>B(),formprops:g,record:a,apicode:h})})});else if(!x){let oe=H(a,n);ne=D.jsxs("div",{onContextMenu:R===!1?void 0:re,title:a.newVal?Za.renderReadonlyItem({value:a.newVal[n],formitem:g}):Za.renderReadonlyItem({value:a[n],formitem:g}),className:"editable-cell-value-wrap",style:{paddingRight:24},children:[ce,oe]})}}else if(n&&!x)return w?D.jsx("td",{...P,title:a&&a[n]?a[n]==="Draft"?Y("sys.label.draft",{placeholder:"草稿"}):a[n]:"",onClick:J,children:D.jsx(ei,{value:a&&a[n]?a[n]==="Draft"?Y("sys.label.draft",{placeholder:"草稿"}):a[n]:"",highlight:le})}):D.jsx("td",{...P,title:a&&a[n]?a[n]:"",onClick:J,children:D.jsx(ei,{value:a?ie.isNil(a[n])?"":a[n]:"",highlight:le})});const ye=ne==null?void 0:ne.toString(),we=Array.isArray(ne)&&ne[0]===void 0,Ee=ye!=null&&ye.includes("[object ")?void 0:we?ye==null?void 0:ye.replace(/^\,/,""):ye;return D.jsx("td",{...P,onDoubleClick:oe=>{oe.stopPropagation(),z(!0,oe)},onClick:()=>{n&&J()},children:D.jsx("div",{title:Ee,style:{width:"100%",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},children:ne})})},Uq=()=>{function e(){return((1+Math.random())*65536|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},qq=e=>D.jsxs(Sq,{id:e.menuId,children:[D.jsx(Sx,{onClick:t=>{e.onFill&&e.onFill("up",t.props.key)},children:Y("sys.prompt.fillUp",{placeholder:"向上填充"})}),D.jsx(Sx,{onClick:t=>{e.onFill&&e.onFill("down",t.props.key)},children:Y("sys.prompt.fillDown",{placeholder:"向下填充"})})]}),Wq=e=>{const[t,r]=F.useState({}),[n,a]=F.useState({}),i=F.useRef(null),{Option:s}=X.Select,l=(g,y)=>{r(g),a(y)};return{getColumnSearchProps:F.useCallback((g,y)=>{const x=()=>{var w,S;return typeof(y==null?void 0:y.title)=="string"?y==null?void 0:y.title:(S=(w=y==null?void 0:y.search)==null?void 0:w.props)==null?void 0:S.placeholder},E=(w,S,f)=>{S()},k=(w,S)=>{w(),S()},T=(w,S,f)=>{var _,R;const h={size:"small",onChange:C=>{C&&C.target?w(C.target.value?[C.target.value]:[]):w(C?[C]:[])},style:{marginBottom:8,display:"block"}},v=D.jsx(X.Input,{size:"small",ref:i,placeholder:Y("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:x()}}),value:S[0],onPressEnter:()=>E(S,f),...ie.omit(h,["size"])});if(y.search)switch(y.search.type){case"Input":return v;case"Select":let C=(R=(_=y==null?void 0:y.search)==null?void 0:_.props)==null?void 0:R.options;return y.apicode==="ProblemVersion"&&(C=ie.uniqBy(ie.flatten(Object.values(C||{})),"value")||[],C=C.map(P=>({label:P.label==="Draft"?Y("sys.label.draft",{placeholder:"草稿"}):P.label,value:P.value}))),C=(C||[]).filter(P=>Sn.readPermission(P.label)),D.jsx(X.Select,{size:"small",onKeyUp:P=>{(P.keyCode===13||P.charCode==13)&&E(S,f)},ref:i,mode:"multiple",placeholder:`${Y("sys.label.selectOption",{placeholder:"请选择"})} ${x()}`,value:S[0],filterOption:(P,M)=>M.label&&M.label.indexOf(P)>=0,...ie.omit(h,["size"]),children:(C||[]).map(P=>{if(!P.isHidden)return F.createElement(s,{...P,value:P.value,disabled:P.disabled,key:P.value,label:P.label},D.jsx("div",{title:P.label,style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:P.label}))})});case"Date":return D.jsx(X.DatePicker,{size:"small",value:S[0],...ie.omit(h,["size"])});case"CompositeForm":return D.jsx("div",{className:"compositeFormClass",children:D.jsx(hc,{...y.formitem.props,valueType:y.valueType,value:S[0],size:"small",...ie.omit(h,["size"])})})}else return v};return y.search?{filterIcon:w=>D.jsx(gs,{style:{color:w?"#0563B2":void 0}}),filterDropdown:({setSelectedKeys:w,selectedKeys:S,confirm:f,clearFilters:h})=>D.jsxs("div",{style:{padding:8},children:[D.jsx("div",{style:{marginBottom:"5px"},children:T(w,S,f)}),D.jsxs(X.Space,{children:[D.jsx(X.Button,{type:"primary",onClick:()=>E(S,f),icon:D.jsx(gs,{}),size:"small",style:{width:90},children:Y("sys.filter",{placeholder:"筛选"})}),D.jsx(X.Button,{onClick:()=>k(h,f),size:"small",style:{width:90},children:Y("sys.action.reset",{placeholder:"重置"})})]})]}),onFilterDropdownVisibleChange:w=>{w&&(y.search.type==="Input"||y.search.type==="Select")&&setTimeout(()=>{var S;return(S=i==null?void 0:i.current)==null?void 0:S.focus()},100)}}:{}},[]),setTableFiltered:g=>{l(g.sort(t),g.screen(n))},clearFilters:g=>{l({},{}),e&&e("","","",{},{isFooterRefresh:g==null?void 0:g.isFooterRefresh})},onFiltersChange:(g,y,x,E)=>{a(y),r(x),l(x,y);let k="",T="";ie.isArray(x)?x&&x.length&&(k=x.map(S=>`${S.field}-${S.order}`).join(",")):x.field&&x.order&&(k=`${x.field}-${x.order==="ascend"?"asc":"desc"}`);const w=S=>S.map(f=>Array.isArray(f)?f.join(","):ve.isMoment(f)?f.format("YYYY-MM-DD"):f);T=ie.remove(Object.keys(y).map(S=>y[S]&&typeof y[S][0]=="string"||typeof y[S]!="string"&&y[S]&&y[S][0]?`${S}-${w(y[S]||[]).join(",")}`:null),S=>S!==null).join("~!~"),e&&e(k,T,x.field,y)},sortInfo:t,filterInfo:n}},Vq=e=>{var s,l;const t=((s=e.dataSource)==null?void 0:s.length)||0,r=e.total||0,n=e.rowSelection&&e.rowSelection.selectedRowKeys?(l=e.rowSelection.selectedRowKeys)==null?void 0:l.length:0,a={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i=D.jsx(He,{type:"update",isBackend:!0,style:{fontSize:"12px",marginLeft:"8px",color:"#999999"},onClick:()=>{e.clearFilters&&e.clearFilters({isFooterRefresh:!0})}});return e.hideFooter?D.jsx(D.Fragment,{}):D.jsxs("div",{className:`${zn.table_footer} ${e.className||""}`,children:[e.hideTableCount?D.jsx("div",{}):e.customRender?e.customRender({tableDataLen:t,total:r,selectedLen:n,boxStyles:a,refreshNode:i}):D.jsxs("div",{style:a,children:[Y("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),D.jsxs("span",{children:[" ",t,"/",r," "]}),Y("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),","," ",Y("sys.selected",{placeholder:"已选"}),D.jsx("span",{children:` ${n} `}),Y("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),i]}),e.enterFullscreen&&D.jsx("div",{children:D.jsx(He,{type:"a-front-fitscreen",style:{fontSize:"12px",color:"#999999"},isBackend:!0,onClick:()=>{e.enterFullscreen&&e.enterFullscreen()}})})]})},Yq=(e,t,r,n,a,i,s)=>{var f;const[l,u]=F.useState(!1),[c,m]=F.useState(0),[p,g]=F.useState(e.columns||[]),[y,x]=F.useState(null),[E,k]=F.useState(null),T=h=>(v,{size:_})=>{v.stopImmediatePropagation();const R=[...p];R[h]={...R[h],width:_.width},g(R)};F.useEffect(()=>{g(e.columns)},[e.columns]);const w=Number(((f=e==null?void 0:e.scroll)==null?void 0:f.y)||i)+24;return{renderColumns:p?p.filter(h=>h).map((h,v)=>ie.extend({...h,sorter:h.sorter?{}:!1,required:h.editable?h.required:!1,sortOrder:t.field===h.dataIndex&&t.order,filteredValue:r?r[h.dataIndex]||[]:[],onHeaderCell:_=>({dataIndex:h.dataIndex,width:_.width,required:h.required,editable:h.editable,trulyHeight:w,tableKey:e.tableKey,formitem:h.formitem,onResize:T(v),onResizeOver:R=>{m(R.screenX),u(!0)},onResizeStop:R=>{console.log(R),u(!1)}}),onCell:_=>{var P,M;const R=((P=h==null?void 0:h.onCell)==null?void 0:P.call(h,_))||{},C=(typeof e.rowKey=="string"?e.rowKey:(M=e.rowKey)==null?void 0:M.call(e,_))||"id";return{record:_,className:`${h.className??""} ${h.dataIndex==E&&_[C]==y?zn.loading:""}`,editable:h.editable,isVersion:h.isVersion,isUser:h.isUser,apicode:h.apicode,dataIndex:h.dataIndex,title:h.title,formitem:h.formitem,required:h.required,canselectcell:e.canselectcell,rowKey:e.rowKey||"id",tableKey:e.tableKey,menuId:n,render:h.render,highlight:r[h.dataIndex],fillContextMenu:e.fillContextMenu,selectedCell:s,renderCacheCell:Za.renderCacheCell(_,h.dataIndex,h.formitem,void 0,{highlight:r[h.dataIndex]}),handleCellSelected:()=>{e.onSelectCell&&e.onSelectCell()},handleDoubleClick:U=>{if(e.onDoubleClick){const L=e.onDoubleClick(h,U);return L instanceof Promise&&(x(_[C]),k(h.dataIndex),L.finally(()=>{x(null),k(null)})),L}else return!0},handleSave:U=>{e.onSubmit&&e.onSubmit(U,h)},...R}}},a(h.dataIndex,h))):[]}},lC="INPUT_NAMESPACE",Gq=(e,t,r,n)=>{const[a,i]=F.useState();function s(l){const u=l.toString(),c=u.indexOf(".");return c===-1?0:u.slice(c+1).length}return F.useEffect(()=>{async function l(u){var y,x,E,k,T,w,S,f,h,v;if(u.target instanceof HTMLInputElement&&((x=(y=u.target)==null?void 0:y.dataset)==null?void 0:x.type)!=lC||u.target instanceof HTMLTextAreaElement||!u.target.closest(`.${wh}`)){console.log("is Input or TextArea or not Table");return}u.preventDefault();let c=(E=u.clipboardData)==null?void 0:E.getData("text");const m=await Promise.resolve().then(()=>require("./xlsx-qn1xoUuv.js"));if(c&&r&&n){var p=m.read(c,{type:"binary"}),g=p.SheetNames;const _=m.utils.sheet_to_json(p.Sheets[g[0]],{header:1,raw:!1,defval:"",blankrows:!0}),R=n.findIndex(M=>{var U,L,N;return M.dataIndex==r.dataIndex&&M.editable&&(((U=M.formitem)==null?void 0:U.type)=="Input"||((L=M.formitem)==null?void 0:L.type)=="Input.TextArea"||((N=M.formitem)==null?void 0:N.type)=="Number")});let C=n.findIndex((M,U)=>{var L,N,j;return U>R&&(!M.editable||!(((L=M.formitem)==null?void 0:L.type)=="Input"||((N=M.formitem)==null?void 0:N.type)=="Input.TextArea"||((j=M.formitem)==null?void 0:j.type)=="Number"))});C==-1&&(C=n.length);const P=n.slice(R,C);if(P.length>0){const M=_.map(U=>U.filter(L=>U.indexOf(L)<P.length))||[];for(let U=0;U<M.length;U++){const L=M[U]||[];for(let N=0;N<L.length;N++){const j=L[N],O=((k=P[N].formitem)==null?void 0:k.type)=="Number",I=(w=(T=P[N].formitem)==null?void 0:T.props)==null?void 0:w.precision,z=(f=(S=P[N].formitem)==null?void 0:S.props)==null?void 0:f.min,B=(v=(h=P[N].formitem)==null?void 0:h.props)==null?void 0:v.max;if(O){const H=ie.toNumber(j),q=H&&(z?H>=z:!0)&&(B?H<=B:!0)&&(ie.isNumber(I)&&I>0?s(H)<=I:!0);L[N]=q?H:void 0}}}i(M)}}}return document.addEventListener("paste",l),()=>{document.removeEventListener("paste",l)}},[r,n]),{pasteData:a}},Kq=e=>`${e}Key`,ug=e=>e.keyCode==17?"ctrl":e.keyCode==18?"alt":e.keyCode==91?"meta":e.keyCode==16?"shift":e.key,Xq=(e,{shortcuts:t,namespace:r})=>{const n="+",a=(...l)=>`${e}+${l.join(n)}`,i=xn(t),s=xn(ie.fromPairs(i.current.map(([l,u])=>[a(...l),u])));F.useEffect(()=>{console.log("初始化 useShortcutKey");const l=()=>i.current.map(([y])=>y).flat(1),u=y=>{var x,E,k;(!r||((x=y.target)==null?void 0:x.id)==r)&&(c.push(ug(y)),(k=(E=s.current)[c.join(n)])==null||k.call(E,y))},c=[],m={},p=y=>{var x;if(!r||((x=y.target)==null?void 0:x.id)==r){const E=ug(y);y[Kq(e)]&&!m[E]&&(m[E]=!0,l().includes(y.key)&&c.includes(e)&&y.preventDefault(),u(y))}},g=y=>{const x=ug(y);m[x]=!1,c.pop()};return window.addEventListener("keyup",g),window.addEventListener("keydown",p),()=>{window.removeEventListener("keyup",g),window.removeEventListener("keydown",p)}},[])},Zq=(e,t)=>{const[r,n]=F.useState(!0),{clipboard:a,dataSource:i=[],rowSelection:s}=e,{selectedRowKeys:l=[]}=s||{},{childKeyName:u="children",isMark:c=!0,initialState:m,setInitialState:p}=a||{},g=String(e.rowKey||"id"),[y,x]=F.useState(!1),E=()=>y&&l.length,k=h=>v=>{E()&&h(v)},T=async(h,v)=>{var R;const _=[];_.type="shear",_.namespace=t,v.forEach(C=>{vt.isDelTableRow(C)||_.push({...C,toShear:()=>C.shear=!0})}),vt.ArrayAttributeFlat(_,u,C=>{C.toShear||(C.shear=!0)}),(!h.onBeforeShear||await h.onBeforeShear(_))&&(_.forEach(C=>{C.toShear(),delete C.toShear}),console.log("剪切",_),p&&p(C=>({...C,clipboard:_})),h.setDataSource("shear",i),(R=h.onAfterShear)==null||R.call(h,_),_.length&&(_.onPasteCallback=async C=>{var L;const P=C==t,M=[...i],U=()=>{p&&p(N=>({...N,clipboard:[]})),[..._].reverse().forEach(N=>{const j=vt.getTreeRelationNoRecursion({data:M,lookup:O=>O[g]==N[g],childrenKey:u});c&&j.self.dataType!=="add"?(j.self.shear=!1,j.self.dataType="del",vt.ArrayAttributeFlat(j.self[u],u,O=>{O.toShear||(O.shear=!1,O.dataType="del")})):j.parent?j.parent[u].splice(j.index,1):M.splice(j.index,1)}),h.setDataSource("shear",M)};return!h.onBeforeDeleteShear||await h.onBeforeDeleteShear({isSameSpace:P,deletes:_})?(U(),(L=h.onAfterDeleteShear)==null||L.call(h,{isSameSpace:P,deletes:_}),Promise.resolve(M)):Promise.reject(Y("sys.operation.cutFailed",{placeholder:"剪切失败"}))}))},w=async(h,v)=>{var R;const _=[];_.type="copy",_.namespace=t,v.forEach(C=>{vt.isDelTableRow(C)||(C.shear=!1,vt.ArrayAttributeFlat(C[u],u,P=>{P.shear=!1}),_.push({...C}))}),(!h.onBeforeCopy||await h.onBeforeCopy(_))&&(console.log("复制",_),p&&p(C=>({...C,clipboard:_})),h.setDataSource("paste",i),(R=h.onAfterCopy)==null||R.call(h,_))},S=async(h,{pasteData:v,pasteTarget:_})=>{var C,P;const R=vt.ArrayAttributeFlat(v,u).every(M=>!_.includes(M[g]));if(console.log({isNonSelf:R}),_.length==1&&v.length&&R){const U=vt.ArrayAttributeFlat(i,u).find(N=>N[g]==_[0]),L=h.pasteInto||"child";if(!h.onBeforePaste||await h.onBeforePaste({target:U,rows:v,type:L}))try{const N=await((C=v.onPasteCallback)==null?void 0:C.call(v,t))||[...i],j=vt.getTreeRelationNoRecursion({data:N,lookup:O=>O[g]==U[g],childrenKey:u});if(c){const O=I=>I.map(z=>Object.assign({...z,shear:!1,dataType:"add",[g]:vt.generateUUID(),primitiveInsId:z.primitiveInsId||z[g]},z[u]?{[u]:O(z[u].filter(B=>!I.some(H=>H[g]==B[g]))||[])}:{}));v=O(v)}if(L=="child"){const O=j.self[u];j.self[u]=[...O,...v]}else j.parent?j.parent[u].splice(j.index+1,0,...v):N.splice(j.index+1,0,...v);h.setDataSource("paste",N),(P=h.onAfterPaste)==null||P.call(h,{target:U,type:L})}catch(N){console.error(N)}}};a&&Xq(vt.isMac()?"meta":"ctrl",{shortcuts:[[["x"],k(async()=>{const h=vt.ArrayAttributeFlat(i,u).filter(v=>l.includes(v[g]));console.log({shearList:h}),T(a,h)})],[["c"],k(async()=>{const h=vt.ArrayAttributeFlat(i,u).filter(v=>l.includes(v[g]));console.log({copyList:h}),w(a,h)})],[["v"],k(async()=>{const h=(m==null?void 0:m.clipboard)||[];S(a,{pasteData:h,pasteTarget:l})})]],namespace:t});const f=F.useRef(null);return F.useEffect(()=>{var h;r||((h=f.current)==null||h.focus(),x(!0))},[l.length,l[0]]),F.useEffect(()=>{n(!1)},[]),{namespace:t,isGainFocus:y,focus:()=>{var v;const h=document.querySelector(":focus");h instanceof HTMLInputElement||h instanceof HTMLTextAreaElement||(v=f.current)==null||v.focus()},shear:T,copy:w,paste:S,FocusDom:D.jsx("input",{ref:f,"data-type":lC,type:"text",id:t,onFocus:()=>x(!0),onBlur:()=>x(!1),readOnly:!0,style:{opacity:0,position:"fixed",left:"-100%",top:"-100%",zIndex:"-10"}})}},Jq=(e,t,r,n)=>{const[a,i]=F.useState();return F.useEffect(()=>{async function s(l){if(r){const u=l.clipboardData,c=r.dataIndex,m=r.record;let p=null;if(m.newVal&&Object.hasOwn(m.newVal,c)?p=m.newVal[c]:p=m[c]||null,p)try{u.setData("text/plain",p),i(p),l.preventDefault()}catch(g){console.error("Failed to write to clipboard: ",g)}}}return document.addEventListener("copy",s),()=>{document.removeEventListener("copy",s)}},[r,n]),{copyData:a}},Lv=F.createContext(null),wh="tableTopBox",xh=F.forwardRef((e,t)=>{var M;F.useImperativeHandle(t,()=>({scrollTo:U=>{i.current.scrollTo(U)},scrollXTo:U=>{if(a.current){const L=a.current.querySelector(".frontend-table-body");L&&(L.scrollLeft=U)}},clearFilters:m,setTableFiltered:y,clipboard:P}));const[r]=F.useState(vt.generateUUID()),n=F.useRef(null),a=F.useRef(null),i=F.useRef(null),[s]=X.Form.useForm(),l=Uq(),{sortInfo:u,filterInfo:c,clearFilters:m,getColumnSearchProps:p,onFiltersChange:g,setTableFiltered:y}=Wq(e.onFilterAndSorter),[x,{toggleFullscreen:E,exitFullscreen:k}]=uS(a,{pageFullscreen:{zIndex:500}}),T=e.tableKey||r;F.useEffect(()=>{const U=L=>{L.key=="Escape"&&x&&k()};return addEventListener("keydown",U),()=>{removeEventListener("keydown",U)}});const w=iq({hideFooter:!!e.hideFooter,contentRef:n,tableRef:a,scroll:e.scroll,fullScreenMinusHeight:e.fullScreenMinusHeight||0,scrollUpdate:e.scrollUpdate,onTableHeightChange:e==null?void 0:e.onTableHeightChange},!!e.isFullscreen||x),[S,f]=aq(()=>({scroll:{y:1e3},ref:i}),[]),h={header:{cell:cq},body:{cell:Hq}};F.useMemo(()=>f(h),[f]);const{renderColumns:v}=Yq({...e,tableKey:T},u,c,l,p,w,e.selectedCell),{pasteData:_}=Gq(a,e.dataSource,e.selectedCell,e.columns);F.useEffect(()=>{var U;if(_&&e.selectedCell){const L=e.dataSource||[],N=String(e.rowKey)||"id",j=L.findIndex(J=>{var re;return J[N]==((re=e.selectedCell)==null?void 0:re.record[N])}),O=e.columns.findIndex(J=>{var re;return J.dataIndex==((re=e.selectedCell)==null?void 0:re.dataIndex)});let I=((U=_[0])==null?void 0:U.length)||0,z=(_==null?void 0:_.length)||0;const B=e.columns.slice(O,O+I),H=L.slice(j,j+z);let q=[];_.forEach((J,re)=>{if(H.length>re){const ne={};J.forEach((se,ce)=>{B.length>ce&&(ne[B[ce].dataIndex]=se,ne[N]=H[re][N])}),q.push(ne)}}),e.onPaste&&e.onPaste(vt.transformArrayToMap(q,N))}},[_]);const{copyData:R}=Jq(a,e.dataSource,e.selectedCell,e.columns);F.useEffect(()=>{R&&e.selectedCell&&e.onCopy&&e.onCopy(R)},[R]);const{run:C}=tN(async U=>{const L=e.pageNo||1,N=e.pageSize||10,j=e.total||0;Math.abs(parseInt(U.target.scrollTop+U.target.clientHeight)-U.target.scrollHeight)<1.5&&!e.loading&&L*N<j&&e.onScroll&&e.onScroll(L+1)},{wait:400}),P=Zq(e,r);return D.jsxs("div",{ref:n,id:`table_key_${T}`,className:`${zn.main} ${wh}`,style:{position:"relative",overflow:"hidden"},onClick:U=>P.focus(),onScrollCapture:U=>{U.target.scrollHeight!==24&&U.target.className==="frontend-table-body"&&(e.onBeforeScroll?e.onBeforeScroll()&&C(U):C(U))},children:[D.jsx(qq,{menuId:l,...ie.pick(e,["onFill"])}),P.FocusDom,D.jsxs(X.Form,{form:s,component:!1,children:[D.jsx(Lv.Provider,{value:s,children:D.jsx(X.Table,{className:Te(e.showcheckbox?void 0:"table-checkbox"),ref:a,rowKey:e.rowKey||"id",style:{borderBottom:"1px solid #e4e4e4",borderRight:"1px solid #e4e4e4",background:"#fff"},pagination:!1,components:S,bordered:!0,...ie.omit(e,["columns","scroll","expandable","tableKey","onScroll"]),tableKey:T,loading:{indicator:D.jsx(lc,{style:{fontSize:32},spin:!0}),spinning:!!e.loading},showSorterTooltip:!1,expandable:{indentSize:18,expandIcon:({expanded:U,onExpand:L,record:N,expandable:j})=>N.children&&N.children.length||N.hasChildren?U?D.jsx(P8,{className:"expand",onClick:O=>{L(N,O)}}):D.jsx(D8,{className:"expand",onClick:O=>{L(N,O)}}):(e.isTree||j!==void 0)&&D.jsx("span",{style:{float:"left",width:"15px",height:"1px"}}),...e.expandable},scroll:{y:w,scrollToFirstRowOnChange:!0,...ie.merge(e.scroll,{x:(M=e.scroll)==null?void 0:M.x})},columns:v,onChange:g})}),D.jsx(Vq,{...e,className:e.tableFooterClassName,clearFilters:m,enterFullscreen:e==null?void 0:e.toggleFullscreen,customRender:e.tableFooterDateRender})]})]})}),{Option:Jo}=X.Select,cC=F.forwardRef((e,t)=>{const r=F.useRef("1848553711328477186"),[n,a]=F.useState([]),[i,s]=F.useState([]),[l,u]=F.useState([]),c=Br({pageNo:1,pageSize:50,total:0}),m=Br({sorter:"",filters:"",itemCodes:`${Si.material},${Si.document},${Si.file}`,initialItemCodes:""}),p=Br({loading:!1,searchValue:"",focus:!1,excludeIds:"",objectIds:"",columns:[{title:Y("sys.label.nameRe",{placeholder:"姓名"}),ellipsis:!0,dataIndex:"Name",sorter:!0,width:155},{title:Y("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),ellipsis:!0,dataIndex:"Email",sorter:!0,width:155},{title:Y("sys.label.employeeID",{placeholder:"工号"}),ellipsis:!0,dataIndex:"EmpNo",sorter:!0,width:155}],conditionObject:[],sideChoice:0,columnsHighlight:[]});zs(()=>{var w;let T=[];for(let S of e.columns||p.columns)T.push({...S,render:!S.render&&((w=e.placeholderCode)!=null&&w.includes(S.dataIndex))?f=>D.jsx(ei,{value:f,highlight:g.numberHighLight||[]}):S.render});p.columnsHighlight=T,e.isSelect&&e.allCategories?e.getItems().then(S=>{if(S.code==200){let f=[];for(let v of S.result)v.code!=10001019&&v.code!=10001017&&v.code!=10001018&&f.push({label:v.name,value:v.code});p.conditionObject=f;let h=ie.map(f,"value").join(",");m.itemCodes=h,m.initialItemCodes=ie.cloneDeep(h),x(!0)}}):x(!0)}),F.useEffect(()=>(e.enter&&!p.focus&&l.length>0?y():document.onkeydown=null,()=>{document.onkeydown=null}),[l,p.focus]),F.useImperativeHandle(t,()=>({getLoading:T=>{p.loading=T},backfill:T=>{u(T)}}));const g=Br({numberHighLight:[]}),y=()=>{document.onkeydown=function(T){var w=window.event||T,S=w.keyCode||w.which;if(S==13&&!p.loading){if(e.maxSelect&&l.length+(e.value||[]).length>e.maxSelect){X.message.error(Y("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}let f=l.length?ie.map(l,"id").join(","):"";e.onChange&&e.onChange(f),e.handleSubmit&&e.handleSubmit(l)}}},x=async(T=!1,w)=>{p.loading=!0;const{pageNo:S,pageSize:f}=c,{filters:h,sorter:v,itemCodes:_}=m;let R={...e.params};if(p.searchValue&&(e.formate=="1"||e.formate=="2"?R.orQuery=e.params.columns.split(",").map(L=>L+"-"+p.searchValue).join("~!~"):R.keyword=p.searchValue),!e.getUrlData){a([]),c.total=0,p.loading=!1;return}const{records:C,total:P,columns:M}=await e.getUrlData({pageNo:S,pageSize:f,filters:h,sorter:v,itemCodes:_,refreshSize:w,searchValue:p.searchValue,sideChoice:p.sideChoice,params:R});M&&(p.columns=M),p.loading=!1;const U=C||[];c.total=P,T?(a(U),s(ie.cloneDeep(U)),e.onInit&&e.onInit(U)):(a([...n,...U]),s(ie.cloneDeep([...n,...U])))},E=T=>{T=="0"?m.itemCodes=m.initialItemCodes:m.itemCodes=T,a([]),u([]),c.pageNo=1,p.searchValue="",x(!0,c.pageSize)},k=T=>{u([]),e.searchChange&&e.searchChange(T),p.searchValue=T,g.numberHighLight=T?[T]:[],c.pageNo=1,x(!0)};return D.jsx(To,{width:e.width,forceRender:!0,className:ng.tableSelection,modalTitle:e.title,mask:!1,visible:e.visible,maskClosable:!1,onCancel:()=>{e.onCancel&&e.onCancel()},footer:null,destroyOnClose:!0,onOk:async()=>{e.handleSubmit&&e.handleSubmit(l)},children:D.jsxs("div",{style:e.isBroadside?{display:"flex"}:{},children:[e.isBroadside&&D.jsx("div",{className:ng.sideBox,style:{paddingRight:e.isLibrary?"12px":"0px",minWidth:e.isLibrary?"110px":void 0,overflow:"hidden"},children:e.isLibrary?D.jsx(W4,{itemCode:Si.technology,onGetTreeFields:T=>{},onSelected:T=>{r.current=T.id,c.pageNo=1,x(!0)},outIsSelected:!1,getInstanceMenu:()=>e.getInstanceMenu&&e.getInstanceMenu(),getAttributeByTab:()=>e.getAttributeByTab&&e.getAttributeByTab()}):[Y("sys.myCreated",{placeholder:"我创建的"}),Y("sys.label.all",{placeholder:"全部"})].map((T,w)=>D.jsx("div",{onClick:()=>{p.sideChoice=w,c.pageNo=1,x(!0)},style:{marginBottom:"12px",cursor:"pointer",color:w==p.sideChoice?"#0563b2":""},children:T},w))}),D.jsxs("div",{style:{width:(e.isBroadside,"100%"),overflow:"hidden"},children:[!e.noSearch&&D.jsx(X.Form.Item,{rules:[{required:!1}],children:D.jsxs("div",{style:{display:"flex"},children:[e.isSelect&&D.jsxs(D.Fragment,{children:[e.allCategories&&p.conditionObject.length>0&&D.jsxs(X.Select,{disabled:p.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:T=>{E(T)},children:[D.jsx(Jo,{value:"0",children:Y("sys.label.all",{placeholder:"全部"})}),"(",p.conditionObject.map(T=>D.jsx(Jo,{value:T.value,children:T.label})),")"]}),!e.allCategories&&D.jsxs(X.Select,{disabled:p.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:T=>{E(T)},children:[D.jsx(Jo,{value:"0",children:Y("sys.label.all",{placeholder:"全部"})}),D.jsx(Jo,{value:Si.material,children:Y("sys.label.material",{placeholder:"物料"})}),D.jsx(Jo,{value:Si.document,children:Y("sys.document.document",{placeholder:"文档"})}),D.jsx(Jo,{value:Si.file,children:Y("sys.label.file",{placeholder:"文件"})})]})]}),D.jsx(X.Input,{style:{width:240},onBlur:()=>{p.focus=!1},onFocus:()=>{p.focus=!0},allowClear:!0,value:p.searchValue,placeholder:e.placeholder||Y("sys.enterSearch",{placeholder:"请输入搜索内容"}),suffix:D.jsx(He,{type:"content-search",style:{color:"#BABABA"},onClick:()=>{k(p.searchValue)}}),onChange:T=>{p.searchValue=T.target.value,T.target.value||(u([]),e.searchChange&&e.searchChange(""),c.pageNo=1,g.numberHighLight=[],x(!0))},onPressEnter:T=>{k(T.target.value)}})]})}),e.isDownload&&D.jsxs("div",{style:{display:"flex",marginBottom:"12px"},children:[D.jsx(He,{disabled:!l.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(l,"1")},children:Y("sys.label.download",{placeholder:"下载"})}),D.jsx("span",{style:{marginRight:"24px"}}),D.jsxs(He,{disabled:!l.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(l,"2")},children:[Y("sys.label.download",{placeholder:"下载"}),"PDF"]})]}),D.jsx("div",{className:ng.tableFrame,style:{display:"flex"},children:D.jsx(xh,{onSelectCell:()=>{u([])},expandable:{expandIconColumnIndex:e.isLibrary?2:void 0},rowSelection:{columnWidth:15,fixed:"left",hideSelectAll:!e.isCheckbox,selectedRowKeys:l.map(T=>T.id),onChange:(T,w)=>{e.isCheckbox?u(w):w.length?u([w.pop()]):u([])},getCheckboxProps:T=>({disabled:T.number==="~#~"||!!(e.convertFun&&ie.includes(T.unique,"-"))})},onRow:T=>({onDoubleClick:()=>{if(T.number!=="~#~")if(l.length>1){if(e.maxSelect&&l.length+(e.value||[]).length>e.maxSelect){X.message.error(Y("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}e.onChange&&e.onChange(ie.map(l,"id").join(",")),e.handleSubmit&&e.handleSubmit(l)}else u([T]),e.onChange&&e.onChange(T.id),e.handleSubmit&&e.handleSubmit([T])}}),loading:p.loading,dataSource:n,columns:p.columnsHighlight,...c,scroll:{y:e.height||200},onScroll:T=>{c.pageNo=T,x()},onFilterAndSorter:(T,w,S)=>{if(u([]),e.isBuiltInSort)if(T){let f=ie.orderBy(n,[T.split("-")[0]],[T.split("-")[1]]);a(f)}else a(i);else{if(e.isUseRuleSort){const f=Za.sortAndFilterTable({sorters:T,filters:w,sortersField:S,tableColumns:e.columns});m.sorter=f.sorters,m.filters=f.filters}else m.sorter=T,m.filters=w;c.pageNo=1,x(!0)}}})})]})]})})}),Qq="_selectFrameBox_mktv5_1",eW={selectFrameBox:Qq},dC=F.forwardRef((e,t)=>{var s;const[r,n]=F.useState(e.value);F.useEffect(()=>{n(e.value)},[e.value]);const a=Br({visible:!1,options:[],enter:!1});F.useEffect(()=>{e.options&&e.options.length&&(a.options=e.options)},[e.options]);const i=()=>{var m;const l=(m=e.params)==null?void 0:m.ids,u=l?l.join(","):"",c=e.isCheckbox?r&&r.join(","):r;return`${u}${c!=null&&c.length&&u?",":""}${c??""}`};return D.jsxs("div",{className:eW.selectFrameBox,style:e.width?{width:e.width}:void 0,children:[e.disabled&&e.userLink?D.jsx("div",{children:(s=ie.filter(e.options,l=>l.id==r)[0])==null?void 0:s.Name}):D.jsxs("div",{style:{display:"flex",gap:"5px"},children:[D.jsx(X.Select,{style:{minWidth:"80px"},mode:"multiple",allowClear:!0,open:!1,showSearch:!1,disabled:e.disabled,value:r||void 0,options:a.options,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"},placeholder:e.placeholder||Y("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{e.disabled||(a.visible=!0,a.enter=!0)},onChange:l=>{e.onChange&&e.onChange(l)},tagRender:l=>Sn.readPermission(l.label)?D.jsx(X.Tag,{color:"blue",closable:!0,style:{borderRadius:"0",border:"none",fontSize:"12px",padding:"2px 7px"},closeIcon:D.jsx(He,{type:"close",style:{fontSize:"12px",cursor:"pointer"},onClick:()=>{const u=r.filter(c=>c!==l.value);n(u),e.onChange&&e.onChange(u)}}),children:l.label},l.value):D.jsx(pa,{})}),e.showButton?D.jsx(X.Button,{onClick:()=>{a.visible=!0,a.enter=!0},style:{display:"flex",height:"32px",width:"32px",background:"#fafafa",alignItems:"center",justifyContent:"center"},children:D.jsx(He,{type:"content-search",style:{fontSize:"16px"}})}):D.jsx(D.Fragment,{})]}),a.visible&&D.jsx(cC,{visible:a.visible,title:e.title||Y("sys.label.selectOption",{placeholder:"请选择"}),width:e.modalWidth,value:e.value,formate:e.formate,noSearch:e.noSearch,isUseRuleSort:e.isUseRuleSort,getUrlData:async l=>{const{records:u,total:c}=await e.getUrlData(l);return{records:u,total:c}},getItems:()=>e.getItems&&e.getItems()||[],params:{...e.params,ids:i()},getInstanceMenu:()=>e.getInstanceMenu&&e.getInstanceMenu(),getAttributeByTab:()=>e.getAttributeByTab&&e.getAttributeByTab(),isLibrary:e.isLibrary,isBroadside:e.isBroadside,height:e.height,enter:a.enter,placeholder:e.searchPlaceholder||Y("sys.enterKeyword.enterKeyword",{placeholder:"请输入关键字"}),placeholderCode:e.placeholderCode||"",columns:e.columns,isCheckbox:e.isCheckbox,maxSelect:e.maxSelect,onChange:l=>{if(e.isCheckbox){let u=ie.compact(ie.concat(r,l.split(",")));e.onChange&&e.onChange(l?u:void 0)}else e.onChange&&e.onChange(l)},handleSubmit:l=>{e.isCheckbox?a.options=ie.concat(a.options,l):a.options=l,e.onSubmit&&e.onSubmit(a.options),a.visible=!1,a.enter=!1},onInit:l=>{a.options=l},onCancel:()=>{a.visible=!1,a.enter=!1}})]})}),tW="_searchTextTips_daoe4_1",rW={searchTextTips:tW};function nW({fetchOptions:e,debounceTimeout:t=500,...r}){const[n,a]=F.useState(!1),[i,s]=F.useState([]),l=F.useRef(0);F.useEffect(()=>{s(r.options)},[r.options]);const u=F.useMemo(()=>{const c=m=>{l.current+=1;const p=l.current;s([]),a(!0),e(m,r).then(g=>{p===l.current&&(s(g),a(!1))})};return ie.debounce(c,t)},[e,t]);return D.jsx(X.Select,{...r,labelInValue:!0,showArrow:!0,filterOption:!1,onSearch:u,notFoundContent:n?D.jsx("div",{style:{textAlign:"center"},children:D.jsx(X.Spin,{size:"small"})}):D.jsx(X.Empty,{image:X.Empty.PRESENTED_IMAGE_SIMPLE}),options:i,onBlur:()=>{s(r.options)},url:void 0,ischeckbox:void 0,dropdownRender:c=>D.jsxs(D.Fragment,{children:[c,D.jsx(X.Divider,{style:{margin:"8px 0"}}),D.jsx("div",{className:rW.searchTextTips,children:`${Y("sys.resultDisplayLimit",{placeholder:"结果只显示前{count}条",variate:{count:100}})},${Y("sys.input.enterExactQuery",{placeholder:"请输入参数精确查询"})}`})]})})}async function Tx(e,t){var i,s;let r,n={pageNo:1,pageSize:100,...t.params};e&&(n.andQuery=`${t.params.andQuery}~!~${t.fieldNames.label}-${e}`),typeof t.url=="function"?r=await t.url(n):r=await t.getPageList(t.url,n,ie.includes(t.url,"opendata"));let a;return(i=t.fieldNames)!=null&&i.label?a=ie.reject((s=r.result)==null?void 0:s.records,l=>{var u;return l[(u=t.fieldNames)==null?void 0:u.label]==="~#~"}):a=r.result.records,a}const aW=F.forwardRef((e,t)=>{const[r,n]=F.useState(e.value),[a,i]=F.useState([]);return zs(async()=>{i(await Tx("",e))}),D.jsx(nW,{...e,showSearch:!0,mode:e.ischeckbox?"multiple":void 0,value:r,fetchOptions:Tx,style:{width:"100%"},options:a,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"}})}),iW=e=>D.jsx(D.Fragment,{}),bf=e=>D.jsx(X.TreeSelect,{...e,showSearch:!0,treeNodeFilterProp:"label",getPopupContainer:t=>t.parentNode||document.body}),fC=F.forwardRef((e,t)=>{const r=F.useContext(eh),n=(r==null?void 0:r.formItemCom)||{},a=F.useCallback((l,u)=>{var g,y;const{type:c,cannotread:m,props:p}=l;if(m!=="0"){let x=!1;if(typeof e.readOnly=="boolean"?x=e.readOnly:typeof e.readOnly=="function"&&(x=e.readOnly()),c==="Input")return x?D.jsx(uf,{...p,placeholder:"",disabled:x||(p==null?void 0:p.disabled)}):D.jsx(uf,{...p});if(c==="Select")return p!=null&&p.loading?(u="",D.jsx(X.Form.Item,{noStyle:!0,children:D.jsx(ho,{...p,options:[],loading:!0,value:((y=(g=e==null?void 0:e.content)==null?void 0:g.props)==null?void 0:y.mode)==="multiple"?[]:"",disabled:x||(p==null?void 0:p.disabled)})})):p!=null&&p.options&&p.options.length?typeof u=="string"&&u.split(",").length>1&&(p==null?void 0:p.mode)!=="multiple"?e.readOnly?D.jsx("span",{style:{paddingLeft:"5px"},children:u.split(",").map(E=>D.jsx(X.Tag,{children:vt.getLabelInOptions({value:E,options:(p==null?void 0:p.options)||[]})},E))}):(p.options=[...p==null?void 0:p.options,{label:u.split(",").map(E=>vt.getLabelInOptions({value:E,options:(p==null?void 0:p.options)||[]})).join(","),disabled:!0,value:u}],D.jsx(ho,{filterOption:(E,k)=>k.label&&k.label.indexOf(E)>=0,...p,showSearch:!0,disabled:x||(p==null?void 0:p.disabled)})):D.jsx(ho,{filterOption:(E,k)=>k.label&&k.label.indexOf(E)>=0,...p,showSearch:!0,disabled:x||(p==null?void 0:p.disabled)}):D.jsx(ho,{...p,showSearch:!0,options:[],disabled:x||(p==null?void 0:p.disabled)});if(c==="PopupSelect")return p.options===void 0||p.options.length>0?D.jsx(dC,{...p,title:e.label,disabled:x||(p==null?void 0:p.disabled)},e.name):"";if(c==="SearchSelect")return D.jsx(aW,{...p},e.name);if(c==="Checkbox")return D.jsx(X.Checkbox,{...p,disabled:x||(p==null?void 0:p.disabled)});if(c==="Checkbox.Group")return D.jsx(X.Checkbox.Group,{...p,disabled:x||(p==null?void 0:p.disabled)});if(c==="Input.TextArea")return x?D.jsx(X.Input.TextArea,{...p,disabled:!0}):D.jsx(X.Input.TextArea,{...p});if(c==="Input.Password")return x?D.jsx(X.Input.Password,{...p,disabled:!0}):D.jsx(X.Input.Password,{...p});if(c==="Date")return x?D.jsx(X.DatePicker,{...p,size:"middle",placeholder:"",disabled:x||(p==null?void 0:p.disabled)}):D.jsx(X.DatePicker,{...p});if(c==="DatePicker.RangePicker")return x?D.jsx(X.DatePicker.RangePicker,{...p,disabled:x||(p==null?void 0:p.disabled),placeholder:["",""],separator:""}):D.jsx(X.DatePicker.RangePicker,{...p});if(c==="TimePicker.RangePicker")return x?D.jsx(X.TimePicker.RangePicker,{...p,disabled:x||(p==null?void 0:p.disabled)}):D.jsx(X.TimePicker.RangePicker,{...p});if(c==="Switch")return D.jsx(X.Switch,{...p,disabled:x||(p==null?void 0:p.disabled)});if(c==="Number")return(p==null?void 0:p.apicode)==="FileSize"?D.jsx(uf,{...p,disabled:x||(p==null?void 0:p.disabled)},p.id):x?D.jsx(X.InputNumber,{...p,placeholder:"",disabled:x||(p==null?void 0:p.disabled)}):D.jsx(X.InputNumber,{...p});if(c==="Cascader")return x?D.jsx(X.Cascader,{...p,placeholder:"",disabled:x||(p==null?void 0:p.disabled)}):D.jsx(X.Cascader,{showSearch:{filter:(E,k)=>k.some(T=>T.label&&T.label.toLowerCase().indexOf(E.toLowerCase())>-1),matchInputWidth:!1},...p});if(c==="TreeSelect")return p.treeData&&p.treeData.length?x?D.jsx(bf,{...p,disabled:x||(p==null?void 0:p.disabled),showSearch:!0,treeNodeFilterProp:"label"}):D.jsx(bf,{...p,showSearch:!0,treeNodeFilterProp:"label"}):D.jsx(bf,{disabled:x||(p==null?void 0:p.disabled)});if(c==="Radio")return x?D.jsx(X.Radio,{...p,disabled:x||(p==null?void 0:p.disabled)}):D.jsx(X.Radio,{...p});if(c==="Radio.Group")return x?D.jsx(X.Radio.Group,{...p,disabled:x||(p==null?void 0:p.disabled)}):D.jsx(X.Radio.Group,{...p});if(c==="Slider")return D.jsx(X.Slider,{...p,disabled:x||(p==null?void 0:p.disabled)});if(c==="Markdown")return D.jsx(WS,{...p,readOnly:x||(p==null?void 0:p.disabled)});if(c==="SelectPopup")return D.jsx(sC,{selectProps:p,readOnly:x||(p==null?void 0:p.disabled)});if(c==="SelectTransfer")return D.jsx(iC,{selectProps:p,readOnly:x||(p==null?void 0:p.disabled)});if(c==="CompositeForm")return D.jsx(hc,{...p,readOnly:x||(p==null?void 0:p.disabled)});if(c==="Title")return D.jsx(iW,{...p,readOnly:x||(p==null?void 0:p.disabled)});if(n[c]){const E=n[c];return D.jsx(E,{type:c,...p,name:e.name,disabled:x||(p==null?void 0:p.disabled)},e.name)}return D.jsx("span",{children:u})}else return D.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}})},[e.readOnly]),i=F.useMemo(()=>e.ignoreNoWhiteSpaceStart?e.rules:e.content.type==="Input"||e.content.type==="Input.TextArea"?ie.concat(e.NoWhiteSpaceStart,e.rules||[]):e.rules,[e.rules,e.ignoreNoWhiteSpaceStart]),s=e.content.type=="Title";return D.jsx(X.Form.Item,{colon:!1,...ie.omit(e,["readOnly","content","ignoreNoWhiteSpaceStart"]),className:Te(A$.main,e.className,s?GLOBAL_ATTR_TITLE:"",{readOnly:e.readOnly}),"data-type":e.content.type,validateFirst:!0,validateTrigger:["onBlur","onChange"],rules:i,children:a(e.content,e.name)})}),oW="_itemsCreated_ow91h_1",sW="_rowBox_ow91h_4",uW="_labelLength_ow91h_8",Qo={itemsCreated:oW,rowBox:sW,labelLength:uW},lW="_advanced_search_content_775l0_1",cW="_disableBg_775l0_1",dW="_checkboxWidth_775l0_15",fW="_radioWidth_775l0_18",hW="_conditions_head_775l0_21",pW="_head1_775l0_29",mW="_head2_775l0_32",gW="_head3_775l0_35",vW="_head4_775l0_38",bW="_properties_box_775l0_41",yW="_className_tips_775l0_44",_W="_groupHeader_775l0_49",wW="_iconBtn_775l0_52",xW="_properties_item_775l0_61",SW="_left_tips_775l0_84",CW="_state_type_775l0_87",EW="_verification_775l0_100",kW="_verificationBorder_775l0_121",Ie={advanced_search_content:lW,disableBg:cW,checkboxWidth:dW,radioWidth:fW,conditions_head:hW,head1:pW,head2:mW,head3:gW,head4:vW,properties_box:bW,className_tips:yW,groupHeader:_W,iconBtn:wW,properties_item:xW,left_tips:SW,state_type:CW,verification:EW,verificationBorder:kW},TW="_shuttle_box_tufhg_1",OW="_transferBox_tufhg_4",AW="_selectNum_tufhg_7",jd={shuttle_box:TW,transferBox:OW,selectNum:AW},RW=e=>{const t=Br({dataSource:[],targetKeys:[],columns:[]}),r=l=>l&&ie.isString(l)&&l.includes("~#~")?D.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}}):l;F.useEffect(()=>{t.dataSource=e.dataSource,t.targetKeys=e.targetKeys;let l=[];for(let u of e.columns)l.push({...u,ellipsis:!0,sorter:(c,m)=>{const p=u.dataIndex||"";return c[p]!=null&&m[p]!=null?ie.isString(c[p])&&ie.isString(m[p])?c[p].localeCompare(m[p]):ie.isNumber(c[p])&&ie.isNumber(m[p])?c[p]-m[p]:0:0},render:u.render?u.render:r});t.columns=l},[e.dataSource,e.targetKeys]);const n=({...l})=>D.jsx(X.Transfer,{...l,rowKey:u=>u.id,children:({direction:u,filteredItems:c,onItemSelectAll:m,onItemSelect:p,selectedKeys:g})=>{const y={onSelectAll(x,E){const k=E.filter(w=>!w.disabled).map(({id:w})=>w),T=x?ie.difference(k,g):ie.difference(g,k);m(T,x)},onSelect({id:x},E){e.isRadio&&g.splice(0,1),p(x,E)},getCheckboxProps:x=>({disabled:x.name=="~#~"||x.number=="~#~"||x.empNo=="~#~"?!0:u=="left"?x.disabled:!1}),selectedRowKeys:g};return D.jsxs(D.Fragment,{children:[D.jsx(X.Table,{rowSelection:{type:e.isRadio?"radio":"checkbox",...y},columns:t.columns,showSorterTooltip:!1,pagination:!1,dataSource:c,scroll:{y:301},style:{height:"338px"},size:"small",onRow:x=>({onClick:()=>{x.name=="~#~"||x.empNo=="~#~"||!x.disabled&&u==="left"&&(e.isRadio&&g.splice(0,1),p(x.id,!g.includes(x.id)))},onDoubleClick:()=>{if(!(x.name=="~#~"||x.empNo=="~#~")){if(u==="left")x.disabled||(e.isRadio&&(t.targetKeys=[]),t.targetKeys.unshift(x.id));else for(let E=0;E<t.targetKeys.length;E++)if(t.targetKeys[E]==x.id){t.targetKeys.splice(E,1);break}}}})}),u==="left"?D.jsxs("div",{className:jd.selectNum,children:[e.defaultPageSize!==50?`${Y("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}})}`:Y("sys.maxDisplay50",{placeholder:"最多显示50条"})," ",", ",Y("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),c.length,Y("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]}):D.jsxs("div",{className:jd.selectNum,children:[Y("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}}),",",Y("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),c.length,Y("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]})]})}}),a=l=>{e.isRadio?t.targetKeys=[l[0]]:t.targetKeys=l},i=async()=>{let l=[];for(let u=0;u<t.targetKeys.length;u++)for(let c=0;c<t.dataSource.length;c++)if(t.targetKeys[u]==t.dataSource[c].id){l.push(t.dataSource[c]);break}e.onSubmit&&e.onSubmit(l)},s=()=>{if(e.columns.length>0){let l=[Y("project.workflow.status",{placeholder:"状态"}),Y("sys.import.category",{placeholder:"分类"})];return Y("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:ie.without(ie.map(e.columns,"title"),...l).join("、")}})}return Y("sys.enterSearch",{placeholder:"请输入搜索内容"})};return D.jsx(To,{className:jd.shuttle_box,modalTitle:e.title,okText:Y("project.tab.plan.details.window.save",{placeholder:"保存"}),width:850,visible:e.visible,onOk:()=>{i()},onCancel:()=>{e.onCancel&&e.onCancel()},children:D.jsx("div",{className:jd.transferBox,children:D.jsx(Ls,{spinning:e.loading,children:D.jsx(n,{dataSource:t.dataSource,targetKeys:t.targetKeys,showSearch:!0,locale:{searchPlaceholder:e.searchPlaceholder||s()},showSelectAll:!1,onChange:a,filterOption:(l,u)=>u.Name&&u.Name.indexOf(l)!==-1||u.EmpNo&&u.EmpNo.indexOf(l)!==-1||u.empNo&&u.empNo.indexOf(l)!==-1||u.email&&u.email.indexOf(l)!==-1||u.name&&u.name.indexOf(l)!==-1||u.workflowName&&u.workflowName.indexOf(l)!==-1||u.code&&String(u.code).indexOf(l)!==-1||u.description&&u.description.indexOf(l)!==-1})})})})},{RangePicker:Ox}=X.DatePicker,{Option:lg}=X.Select,{TreeNode:Ax}=X.Tree,{confirm:kee}=X.Modal,PW=[{value:"and",label:Y("sys.query.builder.condit.and",{placeholder:"与"})},{value:"or",label:Y("sys.query.builder.condit.or",{placeholder:"或"})}],hC=F.forwardRef((e,t)=>{F.useRef();const r=F.useRef(null),n=F.useRef(null),a="YYYY-MM-DD HH:mm:ss",i={10002011:10001001,10002021:10001002,10002035:10001006,10002053:10001021,10002054:10001023,10002055:10001022},s=Br({1:[{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:Y("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:Y("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],2:[{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:Y("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:Y("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],3:[{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],4:[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:Y("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:Y("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:Y("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:Y("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],5:[[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"in",label:Y("sys.condition.in",{placeholder:"在"})},{value:"!in",label:Y("sys.condition.notIn",{placeholder:"不在"})},{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}]],6:[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"between",label:Y("sys.condition.in",{placeholder:"在"})},{value:"gt",label:Y("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:Y("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:Y("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:Y("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],7:[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:Y("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:Y("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:Y("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:Y("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})}],8:[{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],9:[{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],10:[{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],12:[{value:"contain",label:Y("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:Y("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:Y("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:Y("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}],13:[{value:"eq",label:Y("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:Y("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:Y("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:Y("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:Y("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:Y("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:Y("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:Y("sys.condition.isNotEmpty",{placeholder:"不为空"})}]}),l=["ProductRoleList","CategoryList","VersionList","ProductList","LifePhaseList","WorkflowList","WorkflowNodeList"],u=Br({verification:!1,useThrottle:!0,treeChoice:"",verifyRoute:!1,formCofing:{base_item_id:"",base_item_name:"",object_id:"",object_name:"",relations:[{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}),c=Br({routineData:[],treeData:[],treeDefine:[],treeDefineKey:[],treeIndex1:null,treeIndex2:null,treeLoading:!1,treeVisible:!1,treeCheckable:!1,titleName:"",dataSource:[],loading:!1,visibleTransfer:!1,targetKeys:[],isRadio:!1,isUserCode:"",department:!1,saveSearchVisible:!1,selectedKeys:""});F.useImperativeHandle(t,()=>({getValue:()=>u.formCofing,onVerification:C=>{u.verification=C},setCondition:(C,P)=>{P==0?(u.formCofing.base_item_id=C.value,u.formCofing.base_item_name=C.label):(u.formCofing.object_id=(C==null?void 0:C.value)||"",u.formCofing.object_name=(C==null?void 0:C.label)||"")},emptyCondition:C=>{C&&(u.formCofing.base_item_id="",u.formCofing.base_item_name="",u.formCofing.object_id="",u.formCofing.object_name=""),u.verification=!1,u.formCofing.relations=[{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]},setConditionValue:C=>{u.formCofing=C},searchBtn:()=>{m()},defaultValue:()=>{var P;const C=(P=e.typeData[0])==null?void 0:P.children.filter(M=>M.apicode==="Number"||M.apicode==="Name"||M.apicode==="Description")[0];u.formCofing.relations=[{join:"and",isGroup:!1,relation:[{attribute:{id:[e.typeData[0].value,C.id],name:`${e.typeData[0].label}/${C.name}`,lastSelected:C,type:C.valueType||"",rawType:C.valueType||"",tab_code:e.typeData[0].value,dataFrom:C.dataFrom||"",dataFromId:C.dataFromId||"",apicode:C.apicode,operator:"contain",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}));const m=C=>{if(u.verification=!1,!u.formCofing.base_item_id){X.message.warning(Y("sys.import.selectCategory",{placeholder:"请选择分类"}));return}let P=ie.cloneDeep(u.formCofing.relations);P.length==1&&(x(P),P=ie.compact(P));for(let[M,U]of P.entries())for(let L of U.relation){if(!L.attribute.name||!L.attribute.operator||L.attribute.operator!="null"&&L.attribute.operator!="!null"&&!L.attribute.value){u.verification=!0;return}M!=0&&(U.join=P[M-1].relation[P[M-1].relation.length-1].attribute.attr_join)}u.formCofing.base_item_id,u.formCofing.base_item_name,u.formCofing.object_id,u.formCofing.object_name},p=(C,P)=>C=="5"&&P?P.listCode==10005213?s[C][2]:!P.allowMultiple||P.apicode=="LifeCyclePhase"||P.apicode=="Category"?s[C][0]:P.listType=="0"?s[C][1]:P.listType=="2"?s[C][2]:s[C][3]:s[C],g=()=>{u.formCofing.relations[c.treeIndex1].relation[c.treeIndex2].attribute.value=c.treeDefine.join(","),u.formCofing.relations[c.treeIndex1].relation[c.treeIndex2].attribute.valueTreeKey=c.treeDefineKey,c.titleName="",c.treeVisible=!1},y=(C,P)=>P.some(M=>M.label&&M.label.toLowerCase().indexOf(C.toLowerCase())>-1),x=C=>C.map((P,M)=>(P.relation.forEach((U,L)=>{let N=U.attribute;!N.name&&!N.operator&&!N.value&&delete P.relation[L]}),P.relation=ie.compact(P.relation),P.relation.length==0&&delete C[M],P)),E=C=>{let P=[];if(C)for(let M of C)P.push({label:M.showName||M.name,value:M.id,disabled:!M.status});return P},k=C=>C.map(P=>P.children?D.jsx(Ax,{title:c.department?P.title:P.name,children:k(P.children)},P.id):D.jsx(Ax,{title:c.department?P.title:P.name},P.id)),T=(C,P)=>D.jsx(rh,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},searchWords:[P?P.toString():""],textToHighlight:C?C.toString():""}),w=()=>{n.current&&setTimeout(()=>{n.current.scroll({top:n.current.scrollTop+38,behavior:"smooth"})},100)},S=(C,P,M,U)=>{!M||M&&C.relation.length>1&&U==C.relation.length-1?u.formCofing.relations.splice(P+1,0,{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}):u.formCofing.relations[P].relation.splice(U+1,0,{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}),_(C),w()},f=C=>{u.formCofing.relations.splice(C+1,0,{join:"and",isGroup:!0,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}),w()},h=C=>{u.formCofing.relations.splice(C,1)},v=(C,P,M,U)=>{M&&C.relation.length>1?(C.relation.splice(U,1),_(C)):u.formCofing.relations.splice(P,1)},_=C=>{for(let P=0;P<C.relation.length;P++)C.relation[P].attribute.forbidden=!0,C.relation.length>1&&C.relation.length-1!=P&&(C.relation[P].attribute.forbidden=!1)},R=(C,P,M,U,L)=>{if(M&&(M.apicode=="OrgName"||M.apicode=="CreateUserDepartment"))return D.jsx(X.Select,{className:`
|
|
333
333
|
${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
|
|
334
334
|
${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
|
|
335
335
|
${Ie.radioWidth}
|
|
336
|
-
`,value:C.attribute.value&&C.attribute.value.split(",")||void 0,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,open:!1,suffixIcon:D.jsx(gs,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:Y("sys.label.selectOption",{placeholder:"请选择"})}),onClick:()=>{C.attribute.operator!="null"&&C.attribute.operator!="!null"&&!e.readOnly&&(c.treeLoading=!0,c.treeVisible=!0,c.treeIndex1=U,c.treeIndex2=L,c.titleName=Y("sys.selection.chooseDepartment",{placeholder:Y("sys.selection.chooseDepartment",{placeholder:"选择部门"})}),c.treeDefine=C.attribute.value.split(","),c.treeDefineKey=C.attribute.valueTreeKey,c.treeCheckable=M.allowMultiple,c.department=!0,e.treeList().then(N=>{c.treeData=N.result,setTimeout(()=>{c.treeLoading=!1},200)}).catch(()=>{c.treeLoading=!1}))},onChange:N=>{c.treeDefine=N,C.attribute.value=N.join(",")}});if(P=="4")return D.jsx(
|
|
336
|
+
`,value:C.attribute.value&&C.attribute.value.split(",")||void 0,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,open:!1,suffixIcon:D.jsx(gs,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:Y("sys.label.selectOption",{placeholder:"请选择"})}),onClick:()=>{C.attribute.operator!="null"&&C.attribute.operator!="!null"&&!e.readOnly&&(c.treeLoading=!0,c.treeVisible=!0,c.treeIndex1=U,c.treeIndex2=L,c.titleName=Y("sys.selection.chooseDepartment",{placeholder:Y("sys.selection.chooseDepartment",{placeholder:"选择部门"})}),c.treeDefine=C.attribute.value.split(","),c.treeDefineKey=C.attribute.valueTreeKey,c.treeCheckable=M.allowMultiple,c.department=!0,e.treeList().then(N=>{c.treeData=N.result,setTimeout(()=>{c.treeLoading=!1},200)}).catch(()=>{c.treeLoading=!1}))},onChange:N=>{c.treeDefine=N,C.attribute.value=N.join(",")}});if(P=="4")return D.jsx(X.InputNumber,{placeholder:Y("sys.input.number",{placeholder:"请输入数字"}),className:`
|
|
337
337
|
${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
|
|
338
338
|
${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
|
|
339
|
-
`,value:C.attribute.value,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,style:{width:"100%",lineHeight:"28px"},onChange:N=>{C.attribute.value=N}});if(P=="5")return M&&(M.listType=="1"||M.listType=="3"&&M.listCode!==10005222)?D.jsx(
|
|
339
|
+
`,value:C.attribute.value,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,style:{width:"100%",lineHeight:"28px"},onChange:N=>{C.attribute.value=N}});if(P=="5")return M&&(M.listType=="1"||M.listType=="3"&&M.listCode!==10005222)?D.jsx(X.Tooltip,{placement:"left",title:ie.map(C.attribute.valueKey,"label").join(","),children:D.jsx(X.Select,{className:`
|
|
340
340
|
${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
|
|
341
341
|
${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
|
|
342
342
|
${M.allowMultiple?Ie.checkboxWidth:Ie.radioWidth}
|
|
343
|
-
`,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,open:!1,showArrow:!0,suffixIcon:D.jsx(gs,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{if(C.attribute.operator!="null"&&C.attribute.operator!="!null"&&!e.readOnly){if(c.loading=!0,M.apicode=="OldLifePhase"||M.apicode=="NewLifePhase"){c.isUserCode=M.apicode,c.visibleTransfer=!0,c.treeIndex1=U,c.treeIndex2=L,c.isRadio=!M.allowMultiple,e.getLifecycles(i[M.tabCode]).then(j=>{for(let O of j.result.records||[])O.id=String(O.code);c.dataSource=j.result.records||[],c.targetKeys=C.attribute.value.split(","),c.loading=!1});return}let N=M.apicode=="Category"&&C.attribute.tab_code!="10002001"?M.itemCode:u.formCofing.base_item_id;e.getListbycode(M.listCode).then(j=>{let O="",I;j.result.apicode=="CategoryList"?(O=`item_code=${N}`,I=1):j.result.apicode=="VersionList"||j.result.apicode=="ProductList"||(j.result.apicode=="LifePhaseList"||j.result.apicode=="WorkflowList"||j.result.apicode=="WorkflowNodeList")&&(j.result.apicode=="LifePhaseList"&&M.valueType=="10"?O=`item_code=${M.itemCode}`:j.result.apicode=="LifePhaseList"&&M.itemCode==10001006&&u.formCofing.base_item_id==10001001?O="item_code=10001006":j.result.apicode=="LifePhaseList"&&M.itemCode==10001001&&(u.formCofing.base_item_id==10001014||u.formCofing.base_item_id==10001006)?O="item_code=10001001":(j.result.apicode=="WorkflowList"||j.result.apicode=="WorkflowNodeList")&&u.formCofing.base_item_id==10001014?O="item_code=10001011":(j.result.apicode=="WorkflowList"||j.result.apicode=="WorkflowNodeList")&&u.formCofing.base_item_id==10001012?O="item_code=10001020":j.result.apicode=="LifePhaseList"&&C.attribute.tab_code=="10002024"&&(u.formCofing.base_item_id==10001003||u.formCofing.base_item_id==10001004||u.formCofing.base_item_id==10001005)?O="item_code=10001001":j.result.apicode=="WorkflowList"||j.result.apicode=="LifePhaseList"?O=`item_code=${M.itemCode}`:O=u.formCofing.object_id?`item_code=${N} and object_id=${u.formCofing.object_id}`:`item_code=${u.formCofing.base_item_id}`),M.listType=="1"?j.result.apicode=="WorkflowNodeList"?(c.isUserCode="WorkflowNodeList",c.visibleTransfer=!0,c.treeIndex1=U,c.treeIndex2=L,c.isRadio=!M.allowMultiple,e.getTreeList(j.result.code,O).then(z=>{if(z.code==200){let B=[];for(let H of z.result||[])B.push({name:H,id:H});c.dataSource=B,c.targetKeys=C.attribute.value.split(","),c.loading=!1}})):j.result.apicode=="CategoryList"?(c.isUserCode="CategoryList",c.visibleTransfer=!0,c.treeIndex1=U,c.treeIndex2=L,c.isRadio=!M.allowMultiple,e.getTreeList(j.result.code,O).then(z=>{if(z.code==200){for(let B of z.result||[])B.statusText=B.status?Y("sys.label.enable",{placeholder:"启用"}):Y("sys.disable.disable",{placeholder:"禁用"});c.dataSource=z.result||[],c.targetKeys=C.attribute.value.split(","),c.loading=!1}})):e.getOverview(j.result.conditionId).then(z=>{z.result.itemCode=="10001017"?c.isUserCode="10001017":z.result.itemCode=="10001018"?c.isUserCode="10001018":c.isUserCode=z.result.apicode,c.visibleTransfer=!0,c.treeIndex1=U,c.treeIndex2=L,c.isRadio=!M.allowMultiple,e.getInstanceParams({itemCodes:[z.result.itemCode],baseItemId:u.formCofing.base_item_id}).then(B=>{for(let H of B.result)z.result.itemCode=="10001017"?(H.name=H.number,H.email=H.insDesc):(H.code=H.number,H.name=H.number,H.description=H.insDesc);c.dataSource=B.result,c.targetKeys=C.attribute.value.split(","),z.result.itemCode=="10001017"&&(c.dataSource=ie.concat({name:"$USER",id:"$USER",email:""},c.dataSource)),c.loading=!1})}):(M.tabCode===10002005?O="item_code<>10001018 and item_code <>10001017":M.tabCode===10002004?O=`item_code in (${C.attribute.routineData.map(z=>z.code).join(",")})`:M.listCode===10005250&&(O=`change_instance_item_code=${u.formCofing.base_item_id}`),(u.formCofing.base_item_id==10001004||u.formCofing.base_item_id==10001005)&&M.tabCode==10002024&&M.apicode=="LifeCyclePhase"&&(O="whereData=10001001"),j.result.code==10005256?c.isUserCode=j.result.code:c.isUserCode=j.result.apicode,c.visibleTransfer=!0,c.treeIndex1=U,c.treeIndex2=L,c.isRadio=!M.allowMultiple,e.getTreeList(M.listCode,O,I).then(z=>{if(z.code==200){if(z.result&&z.result.length&&z.result[0].nodes){let B=[],H={1:Y("sys.label.start",{placeholder:"开始"}),2:Y("sys.label.review",{placeholder:"审核"}),3:Y("sys.label.publish",{placeholder:"发布"}),4:Y("project.tab.plan.delete.tips.title.confirm",{placeholder:"确认"}),5:Y("sys.label.end",{placeholder:"结束"})};for(let q of z.result)for(let J of q.nodes||[])B.push({name:q.wfName+"."+J.name,id:q.wfId+"."+J.id,type:H[J.type]});c.dataSource=B}else{if(c.isUserCode=="LifePhaseList")for(let B of z.result||[])B.id=String(B.code);if(j.result.code==10005250)for(let B of z.result||[])B.code=B.changeInstanceNo,B.description=B.changeInstanceDesc;if(j.result.code==10005173&&(M.apicode=="Product"?z.result=z.result.filter(B=>B.productType=="product"):z.result=z.result.filter(B=>B.productType=="library")),M.tabCode===10002005||M.tabCode===10002004)for(let B of z.result||[])B.name=B.itemName?B.itemName+"."+B.name:B.name;c.dataSource=z.result||[],M.apicode=="Product"&&(c.dataSource=ie.concat({name:"$MYPRODUCTS",id:"$MYPRODUCTS",description:""},c.dataSource)),M.listCode==10005256&&(c.dataSource=ie.concat({id:"$USER",name:"$USER"},c.dataSource))}c.targetKeys=C.attribute.value.split(","),c.loading=!1}}))})}},value:C.attribute.value&&C.attribute.value.split(",")||void 0,onChange:(N,j)=>{C.attribute.value=N.join(","),C.attribute.valueKey=j.map(O=>({label:O.key,value:O.value}))},children:C.attribute.valueKey.map(N=>D.jsx(lg,{value:N.value,children:N.label},N.label))})}):M&&(M.listType=="2"||M.listCode===10005222)?D.jsx(
|
|
343
|
+
`,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,open:!1,showArrow:!0,suffixIcon:D.jsx(gs,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{if(C.attribute.operator!="null"&&C.attribute.operator!="!null"&&!e.readOnly){if(c.loading=!0,M.apicode=="OldLifePhase"||M.apicode=="NewLifePhase"){c.isUserCode=M.apicode,c.visibleTransfer=!0,c.treeIndex1=U,c.treeIndex2=L,c.isRadio=!M.allowMultiple,e.getLifecycles(i[M.tabCode]).then(j=>{for(let O of j.result.records||[])O.id=String(O.code);c.dataSource=j.result.records||[],c.targetKeys=C.attribute.value.split(","),c.loading=!1});return}let N=M.apicode=="Category"&&C.attribute.tab_code!="10002001"?M.itemCode:u.formCofing.base_item_id;e.getListbycode(M.listCode).then(j=>{let O="",I;j.result.apicode=="CategoryList"?(O=`item_code=${N}`,I=1):j.result.apicode=="VersionList"||j.result.apicode=="ProductList"||(j.result.apicode=="LifePhaseList"||j.result.apicode=="WorkflowList"||j.result.apicode=="WorkflowNodeList")&&(j.result.apicode=="LifePhaseList"&&M.valueType=="10"?O=`item_code=${M.itemCode}`:j.result.apicode=="LifePhaseList"&&M.itemCode==10001006&&u.formCofing.base_item_id==10001001?O="item_code=10001006":j.result.apicode=="LifePhaseList"&&M.itemCode==10001001&&(u.formCofing.base_item_id==10001014||u.formCofing.base_item_id==10001006)?O="item_code=10001001":(j.result.apicode=="WorkflowList"||j.result.apicode=="WorkflowNodeList")&&u.formCofing.base_item_id==10001014?O="item_code=10001011":(j.result.apicode=="WorkflowList"||j.result.apicode=="WorkflowNodeList")&&u.formCofing.base_item_id==10001012?O="item_code=10001020":j.result.apicode=="LifePhaseList"&&C.attribute.tab_code=="10002024"&&(u.formCofing.base_item_id==10001003||u.formCofing.base_item_id==10001004||u.formCofing.base_item_id==10001005)?O="item_code=10001001":j.result.apicode=="WorkflowList"||j.result.apicode=="LifePhaseList"?O=`item_code=${M.itemCode}`:O=u.formCofing.object_id?`item_code=${N} and object_id=${u.formCofing.object_id}`:`item_code=${u.formCofing.base_item_id}`),M.listType=="1"?j.result.apicode=="WorkflowNodeList"?(c.isUserCode="WorkflowNodeList",c.visibleTransfer=!0,c.treeIndex1=U,c.treeIndex2=L,c.isRadio=!M.allowMultiple,e.getTreeList(j.result.code,O).then(z=>{if(z.code==200){let B=[];for(let H of z.result||[])B.push({name:H,id:H});c.dataSource=B,c.targetKeys=C.attribute.value.split(","),c.loading=!1}})):j.result.apicode=="CategoryList"?(c.isUserCode="CategoryList",c.visibleTransfer=!0,c.treeIndex1=U,c.treeIndex2=L,c.isRadio=!M.allowMultiple,e.getTreeList(j.result.code,O).then(z=>{if(z.code==200){for(let B of z.result||[])B.statusText=B.status?Y("sys.label.enable",{placeholder:"启用"}):Y("sys.disable.disable",{placeholder:"禁用"});c.dataSource=z.result||[],c.targetKeys=C.attribute.value.split(","),c.loading=!1}})):e.getOverview(j.result.conditionId).then(z=>{z.result.itemCode=="10001017"?c.isUserCode="10001017":z.result.itemCode=="10001018"?c.isUserCode="10001018":c.isUserCode=z.result.apicode,c.visibleTransfer=!0,c.treeIndex1=U,c.treeIndex2=L,c.isRadio=!M.allowMultiple,e.getInstanceParams({itemCodes:[z.result.itemCode],baseItemId:u.formCofing.base_item_id}).then(B=>{for(let H of B.result)z.result.itemCode=="10001017"?(H.name=H.number,H.email=H.insDesc):(H.code=H.number,H.name=H.number,H.description=H.insDesc);c.dataSource=B.result,c.targetKeys=C.attribute.value.split(","),z.result.itemCode=="10001017"&&(c.dataSource=ie.concat({name:"$USER",id:"$USER",email:""},c.dataSource)),c.loading=!1})}):(M.tabCode===10002005?O="item_code<>10001018 and item_code <>10001017":M.tabCode===10002004?O=`item_code in (${C.attribute.routineData.map(z=>z.code).join(",")})`:M.listCode===10005250&&(O=`change_instance_item_code=${u.formCofing.base_item_id}`),(u.formCofing.base_item_id==10001004||u.formCofing.base_item_id==10001005)&&M.tabCode==10002024&&M.apicode=="LifeCyclePhase"&&(O="whereData=10001001"),j.result.code==10005256?c.isUserCode=j.result.code:c.isUserCode=j.result.apicode,c.visibleTransfer=!0,c.treeIndex1=U,c.treeIndex2=L,c.isRadio=!M.allowMultiple,e.getTreeList(M.listCode,O,I).then(z=>{if(z.code==200){if(z.result&&z.result.length&&z.result[0].nodes){let B=[],H={1:Y("sys.label.start",{placeholder:"开始"}),2:Y("sys.label.review",{placeholder:"审核"}),3:Y("sys.label.publish",{placeholder:"发布"}),4:Y("project.tab.plan.delete.tips.title.confirm",{placeholder:"确认"}),5:Y("sys.label.end",{placeholder:"结束"})};for(let q of z.result)for(let J of q.nodes||[])B.push({name:q.wfName+"."+J.name,id:q.wfId+"."+J.id,type:H[J.type]});c.dataSource=B}else{if(c.isUserCode=="LifePhaseList")for(let B of z.result||[])B.id=String(B.code);if(j.result.code==10005250)for(let B of z.result||[])B.code=B.changeInstanceNo,B.description=B.changeInstanceDesc;if(j.result.code==10005173&&(M.apicode=="Product"?z.result=z.result.filter(B=>B.productType=="product"):z.result=z.result.filter(B=>B.productType=="library")),M.tabCode===10002005||M.tabCode===10002004)for(let B of z.result||[])B.name=B.itemName?B.itemName+"."+B.name:B.name;c.dataSource=z.result||[],M.apicode=="Product"&&(c.dataSource=ie.concat({name:"$MYPRODUCTS",id:"$MYPRODUCTS",description:""},c.dataSource)),M.listCode==10005256&&(c.dataSource=ie.concat({id:"$USER",name:"$USER"},c.dataSource))}c.targetKeys=C.attribute.value.split(","),c.loading=!1}}))})}},value:C.attribute.value&&C.attribute.value.split(",")||void 0,onChange:(N,j)=>{C.attribute.value=N.join(","),C.attribute.valueKey=j.map(O=>({label:O.key,value:O.value}))},children:C.attribute.valueKey.map(N=>D.jsx(lg,{value:N.value,children:N.label},N.label))})}):M&&(M.listType=="2"||M.listCode===10005222)?D.jsx(X.Tooltip,{title:C.attribute.value,children:D.jsx(X.Select,{className:`
|
|
344
344
|
${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
|
|
345
345
|
${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
|
|
346
346
|
${M.allowMultiple?Ie.checkboxWidth:Ie.radioWidth}
|
|
347
|
-
`,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",value:C.attribute.value&&C.attribute.value.split(",")||void 0,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,open:!1,clearIcon:!1,showArrow:!0,suffixIcon:D.jsx(gs,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{C.attribute.operator!="null"&&C.attribute.operator!="!null"&&!e.readOnly&&(c.treeLoading=!0,c.treeVisible=!0,c.treeIndex1=U,c.treeIndex2=L,c.treeDefine=C.attribute.value.split(","),c.treeDefineKey=C.attribute.valueTreeKey,c.treeCheckable=M.allowMultiple,c.department=!1,e.getTreeList(M.listCode).then(N=>{N.code==200&&(c.treeData=N.result,M.apicode=="ProductModel"&&(c.treeData=ie.concat({name:"$MYPRODUCTMODELS",id:"$MYPRODUCTMODELS"},c.treeData)),setTimeout(()=>{c.treeLoading=!1},200))}).catch(()=>{c.treeLoading=!1}))},onChange:N=>{c.treeDefine=N,C.attribute.valueTreeKey.shift(),C.attribute.value=N.join(",")}})}):C.attribute.tab_code==10002004||C.attribute.tab_code==10002005?D.jsx(
|
|
347
|
+
`,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",value:C.attribute.value&&C.attribute.value.split(",")||void 0,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,open:!1,clearIcon:!1,showArrow:!0,suffixIcon:D.jsx(gs,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{C.attribute.operator!="null"&&C.attribute.operator!="!null"&&!e.readOnly&&(c.treeLoading=!0,c.treeVisible=!0,c.treeIndex1=U,c.treeIndex2=L,c.treeDefine=C.attribute.value.split(","),c.treeDefineKey=C.attribute.valueTreeKey,c.treeCheckable=M.allowMultiple,c.department=!1,e.getTreeList(M.listCode).then(N=>{N.code==200&&(c.treeData=N.result,M.apicode=="ProductModel"&&(c.treeData=ie.concat({name:"$MYPRODUCTMODELS",id:"$MYPRODUCTMODELS"},c.treeData)),setTimeout(()=>{c.treeLoading=!1},200))}).catch(()=>{c.treeLoading=!1}))},onChange:N=>{c.treeDefine=N,C.attribute.valueTreeKey.shift(),C.attribute.value=N.join(",")}})}):C.attribute.tab_code==10002004||C.attribute.tab_code==10002005?D.jsx(X.Cascader,{className:`
|
|
348
348
|
${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
|
|
349
349
|
${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
|
|
350
|
-
`,value:C.attribute.value||void 0,dropdownClassName:"cascaderPopup",style:{width:"158px"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,options:C.attribute.routineData,showSearch:{filter:y,matchInputWidth:!1},onChange:N=>{C.attribute.value=N.map(String)}}):M&&M.allowMultiple?D.jsx(
|
|
350
|
+
`,value:C.attribute.value||void 0,dropdownClassName:"cascaderPopup",style:{width:"158px"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,options:C.attribute.routineData,showSearch:{filter:y,matchInputWidth:!1},onChange:N=>{C.attribute.value=N.map(String)}}):M&&M.allowMultiple?D.jsx(X.Tooltip,{title:ie.compact(ie.map(C.attribute.routineData,N=>{for(let j of C.attribute.value.split(","))if(j==N.value)return N.label})).join(","),children:D.jsx(X.Select,{className:`
|
|
351
351
|
${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
|
|
352
352
|
${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
|
|
353
353
|
${Ie.checkboxWidth}
|
|
354
|
-
`,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",showArrow:!0,value:C.attribute.value&&C.attribute.value.split(",")||void 0,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,optionFilterProp:"label",style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),open:c["open"+U+L],onFocus:()=>{c["open"+U+L]=!0},onChange:N=>{C.attribute.value=N.join(",")},onSearch:N=>{C.attribute.LighHeight=N},onBlur:()=>{C.attribute.LighHeight="",c["open"+U+L]=!1},filterOption:(N,j)=>j.key.toLowerCase().indexOf(N.toLowerCase())>=0,children:C.attribute.routineData.map(N=>D.jsx(lg,{value:N.value,disabled:N.disabled,children:T(N.label,C.attribute.LighHeight)},N.label))})}):D.jsx(
|
|
354
|
+
`,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",showArrow:!0,value:C.attribute.value&&C.attribute.value.split(",")||void 0,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,optionFilterProp:"label",style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),open:c["open"+U+L],onFocus:()=>{c["open"+U+L]=!0},onChange:N=>{C.attribute.value=N.join(",")},onSearch:N=>{C.attribute.LighHeight=N},onBlur:()=>{C.attribute.LighHeight="",c["open"+U+L]=!1},filterOption:(N,j)=>j.key.toLowerCase().indexOf(N.toLowerCase())>=0,children:C.attribute.routineData.map(N=>D.jsx(lg,{value:N.value,disabled:N.disabled,children:T(N.label,C.attribute.LighHeight)},N.label))})}):D.jsx(X.Tooltip,{title:ie.compact(ie.map(C.attribute.routineData,N=>{if(C.attribute.value==N.value)return N.label})).join(","),children:D.jsx(X.Select,{ref:r,className:`
|
|
355
355
|
${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
|
|
356
356
|
${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
|
|
357
357
|
${Ie.radioWidth}
|
|
358
|
-
`,value:C.attribute.value||void 0,showSearch:!0,optionFilterProp:"label",disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),onChange:N=>{C.attribute.value=N,r==null||r.current.blur()},onSearch:N=>{C.attribute.LighHeight=N},open:c["open"+U+L],onFocus:()=>{c["open"+U+L]=!0},onBlur:()=>{C.attribute.LighHeight="",c["open"+U+L]=!1},filterOption:(N,j)=>j.key.toLowerCase().indexOf(N.toLowerCase())>=0,children:C.attribute.routineData.map(N=>D.jsx(lg,{value:N.value,disabled:N.disabled,children:T(N.label,C.attribute.LighHeight)},N.label))})});if(P=="6")return C.attribute.operator=="between"?D.jsx(
|
|
358
|
+
`,value:C.attribute.value||void 0,showSearch:!0,optionFilterProp:"label",disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),onChange:N=>{C.attribute.value=N,r==null||r.current.blur()},onSearch:N=>{C.attribute.LighHeight=N},open:c["open"+U+L],onFocus:()=>{c["open"+U+L]=!0},onBlur:()=>{C.attribute.LighHeight="",c["open"+U+L]=!1},filterOption:(N,j)=>j.key.toLowerCase().indexOf(N.toLowerCase())>=0,children:C.attribute.routineData.map(N=>D.jsx(lg,{value:N.value,disabled:N.disabled,children:T(N.label,C.attribute.LighHeight)},N.label))})});if(P=="6")return C.attribute.operator=="between"?D.jsx(X.Tooltip,{title:C.attribute.value.split(",")[0]&&C.attribute.value.split(",")[0]+" ~ "+C.attribute.value.split(",")[1],children:D.jsx(Ox,{className:u.verification&&!C.attribute.value&&Ie.verification,showTime:!0,style:{width:"100%"},value:C.attribute.value.split(",")[0]?[ve(C.attribute.value.split(",")[0],a),ve(C.attribute.value.split(",")[1],a)]:void 0,format:a,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,onChange:(N,j)=>{j[0]?C.attribute.value=j.join(","):C.attribute.value=""}})}):D.jsx(X.DatePicker,{className:`
|
|
359
359
|
${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
|
|
360
360
|
${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
|
|
361
|
-
`,showTime:!0,style:{width:"100%",borderRadius:0},value:C.attribute.value?ve(C.attribute.value,a):void 0,format:a,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||C.attribute.operator=="between"||e.readOnly,onChange:(N,j)=>{C.attribute.value=j}});if(P=="7")return D.jsx(
|
|
361
|
+
`,showTime:!0,style:{width:"100%",borderRadius:0},value:C.attribute.value?ve(C.attribute.value,a):void 0,format:a,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||C.attribute.operator=="between"||e.readOnly,onChange:(N,j)=>{C.attribute.value=j}});if(P=="7")return D.jsx(X.Tooltip,{title:C.attribute.value.split(",")[0]&&C.attribute.value.split(",")[0]+" ~ "+C.attribute.value.split(",")[1],children:D.jsx(Ox,{className:u.verification&&!C.attribute.value&&Ie.verification,showTime:!0,style:{width:"100%"},value:C.attribute.value.split(",")[0]?[ve(C.attribute.value.split(",")[0],a),ve(C.attribute.value.split(",")[1],a)]:void 0,format:a,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,onChange:(N,j)=>{C.attribute.value=j.join(",")}})});if(P=="12"||P=="13"){let N=C.attribute.lastSelected;return D.jsx("div",{className:u.verification&&!C.attribute.value&&Ie.verificationBorder,children:D.jsx(hc,{value:C.attribute.value,min:N==null?void 0:N.minValue,max:N==null?void 0:N.maxValue,maxLength:N==null?void 0:N.maxLength,precision:N==null?void 0:N.precision,valueType:N==null?void 0:N.valueType,options:C.attribute.routineData,readOnly:!1,onChange:j=>{C.attribute.value=j}})})}else return D.jsx(X.Input,{className:`
|
|
362
362
|
${u.verification&&!C.attribute.value&&C.attribute.operator!="null"&&C.attribute.operator!="!null"&&Ie.verification}
|
|
363
363
|
${(C.attribute.operator=="null"||C.attribute.operator=="!null")&&Ie.disableBg}
|
|
364
|
-
`,placeholder:Y("sys.input.text",{placeholder:"请输入文本"}),value:C.attribute.value,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,style:{padding:"5px 11px"},onChange:N=>{C.attribute.value=N.target.value}})};return D.jsxs("div",{className:Ie.advanced_search_content,style:{minWidth:e.horizontalStyle?"900px":"700px"},children:[!e.horizontalStyle&&D.jsxs("div",{className:Ie.conditions_head,children:[D.jsx("div",{className:Ie.head1,children:Y("sys.property",{placeholder:"属性"})}),D.jsx("div",{className:Ie.head2,children:Y("sys.operator",{placeholder:"运算符"})}),D.jsx("div",{className:Ie.head3,children:Y("sys.value",{placeholder:"值"})}),D.jsx("div",{className:Ie.head4,children:Y("sys.connector",{placeholder:"连接符"})})]}),D.jsxs("div",{ref:n,className:Ie.properties_box,style:{background:e.horizontalStyle?"#fff":"#f8f9f9",height:e.horizontalStyle?"147px":"240px"},children:[D.jsxs("div",{className:Ie.className_tips,children:[D.jsxs("span",{style:{width:160,marginLeft:"12px"},className:Ie.left_tips,children:[Y("sys.property",{placeholder:"属性"}),":"]}),D.jsxs("span",{style:{width:92,marginLeft:"3px"},className:Ie.left_tips,children:[Y("sys.operator",{placeholder:"运算符"}),":"]}),D.jsxs("span",{style:{flex:1,marginLeft:"5px"},className:Ie.left_tips,children:[Y("sys.valueRe",{placeholder:"数值"}),":"]}),D.jsxs("span",{style:{width:145},className:Ie.left_tips,children:[Y("sys.connector",{placeholder:"连接符"}),":"]})]}),u.formCofing.relations.map((C,P)=>D.jsxs("div",{children:[C.isGroup&&D.jsx("div",{className:Ie.groupHeader,children:D.jsxs(
|
|
364
|
+
`,placeholder:Y("sys.input.text",{placeholder:"请输入文本"}),value:C.attribute.value,disabled:C.attribute.operator=="null"||C.attribute.operator=="!null"||e.readOnly,style:{padding:"5px 11px"},onChange:N=>{C.attribute.value=N.target.value}})};return D.jsxs("div",{className:Ie.advanced_search_content,style:{minWidth:e.horizontalStyle?"900px":"700px"},children:[!e.horizontalStyle&&D.jsxs("div",{className:Ie.conditions_head,children:[D.jsx("div",{className:Ie.head1,children:Y("sys.property",{placeholder:"属性"})}),D.jsx("div",{className:Ie.head2,children:Y("sys.operator",{placeholder:"运算符"})}),D.jsx("div",{className:Ie.head3,children:Y("sys.value",{placeholder:"值"})}),D.jsx("div",{className:Ie.head4,children:Y("sys.connector",{placeholder:"连接符"})})]}),D.jsxs("div",{ref:n,className:Ie.properties_box,style:{background:e.horizontalStyle?"#fff":"#f8f9f9",height:e.horizontalStyle?"147px":"240px"},children:[D.jsxs("div",{className:Ie.className_tips,children:[D.jsxs("span",{style:{width:160,marginLeft:"12px"},className:Ie.left_tips,children:[Y("sys.property",{placeholder:"属性"}),":"]}),D.jsxs("span",{style:{width:92,marginLeft:"3px"},className:Ie.left_tips,children:[Y("sys.operator",{placeholder:"运算符"}),":"]}),D.jsxs("span",{style:{flex:1,marginLeft:"5px"},className:Ie.left_tips,children:[Y("sys.valueRe",{placeholder:"数值"}),":"]}),D.jsxs("span",{style:{width:145},className:Ie.left_tips,children:[Y("sys.connector",{placeholder:"连接符"}),":"]})]}),u.formCofing.relations.map((C,P)=>D.jsxs("div",{children:[C.isGroup&&D.jsx("div",{className:Ie.groupHeader,children:D.jsxs(X.Row,{justify:"space-between",align:"middle",children:[D.jsx(X.Col,{className:Ie.optSelect,children:D.jsx(X.Select,{value:C.join,style:{width:70},disabled:e.readOnly,options:PW,onChange:M=>{C.join=M}})}),D.jsx(X.Col,{style:{marginRight:"8px"},children:D.jsx(He,{isBackend:!0,className:Ie.iconBtn,tooltip:{title:Y("sys.query.builder.condit.deleteGroup",{placeholder:"删除组"})},type:"delete",onClick:()=>{h(P)}})})]})}),C.relation.map((M,U)=>{var L;return D.jsxs("div",{className:Ie.properties_item,children:[D.jsx(X.Cascader,{style:{width:160},className:u.verification&&!M.attribute.name&&Ie.verification,showSearch:{filter:y,matchInputWidth:!1},value:((L=e.typeData)==null?void 0:L.length)>0&&M.attribute.id||void 0,options:e.typeData,placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),disabled:e.readOnly,suffixIcon:D.jsx(He,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),dropdownClassName:"cascaderPopup",onChange:async(N,j)=>{M.attribute.value="",M.attribute.routineData=[],M.attribute.valueKey=[],M.attribute.valueTreeKey=[],c.treeDefine=[],M.attribute.id=N,M.attribute.name=ie.map(j,"label").join("/"),M.attribute.lastSelected=await ie.last(j);const O=await ie.last(j);M.attribute.type=O&&O.valueType||"",M.attribute.rawType=(M.attribute.type=="10"?O&&O.rawType:M.attribute.type)||"",M.attribute.type=="10"&&(N[2]&&(N[2]=N[2].split("-")[1],M.attribute.id=N),M.attribute.inputType=O.inputType,M.attribute.referenceApicode=O.referenceApicode,M.attribute.referenceAttrId=O.referenceAttrId),M.attribute.tab_code=j&&(j[0].value.includes("-")?j[0].value.split("-")[0]:j[0].value)||"",M.attribute.dataFrom=O&&O.dataFrom||"",M.attribute.dataFromId=O&&O.dataFromId||"",M.attribute.apicode=O&&O.apicode||"",M.attribute.whereData=j&&(j[0].value.includes("-")?j[0].value.split("-")[1]=="1"?"published":"notPublished":"")||"",M.attribute.type==""?M.attribute.operator="":M.attribute.type=="5"?O.listCode==10005213?M.attribute.operator=s[M.attribute.type]&&s[M.attribute.type][2][0].value:!O.allowMultiple||O.apicode=="LifeCyclePhase"||O.apicode=="Category"?M.attribute.operator=s[M.attribute.type]&&s[M.attribute.type][0][0].value:O.listType=="0"?M.attribute.operator=s[M.attribute.type]&&s[M.attribute.type][1][0].value:O.listType=="2"?M.attribute.operator=s[M.attribute.type]&&s[M.attribute.type][2][0].value:M.attribute.operator=s[M.attribute.type]&&s[M.attribute.type][3][0].value:M.attribute.operator=s[M.attribute.type]&&s[M.attribute.type][0].value,O&&O.apicode=="LifeCyclePhase"?u.formCofing.object_id?e.getLifecyclesNopage(u.formCofing.object_id,O&&O.itemCode).then(I=>{I.code==200&&(M.attribute.routineData=E(I.result))}):e.getLifecycles(O&&O.itemCode).then(I=>{I.code==200&&(M.attribute.routineData=E(I.result.records))}):O&&(O.apicode=="Category"||O.apicode=="Workflow")?N&&N[0]==10002004?e.getHistory().then(I=>{if(I.code==200){for(let z of I.result)z.label=z.name,z.value=String(z.code),z.children&&z.children.forEach(B=>{B.label=B.name,B.value=B.id});M.attribute.routineData=I.result}}):N&&N[0]==10002005?e.getRelation().then(I=>{if(I.code==200){for(let z of I.result)z.label=z.name,z.value=String(z.code),z.children&&z.children.forEach(B=>{B.label=B.name,B.value=B.id});M.attribute.routineData=I.result}}):u.formCofing.object_id?(M.attribute.routineData=e.subcategory,M.attribute.value=u.formCofing.object_id):e.getObjects(O&&O.itemCode).then(I=>{I.code==200&&(M.attribute.routineData=E(I.result.records))}):O&&(O.apicode=="ProductRoles"||O.apicode=="ApproveRole")&&e.getRoles().then(I=>{I.code==200&&(M.attribute.routineData=E(I.result.records))}),O&&O.listType=="0"&&e.getTreeList(O.listCode).then(I=>{I.code==200&&(M.attribute.routineData=E(I.result))})}}),D.jsx(X.Select,{style:{width:92,margin:"0 5px"},className:u.verification&&!M.attribute.operator&&Ie.verification,placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),disabled:e.readOnly,suffixIcon:D.jsx(He,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),value:M.attribute.operator||void 0,options:M.attribute.type&&p(M.attribute.type,M.attribute.lastSelected),onChange:N=>{M.attribute.operator=N,M.attribute.value="",M.attribute.valueTreeKey=[],M.attribute.valueKey=[],c.treeDefine=[]}}),D.jsx("div",{className:Ie.state_type,children:R(M,M.attribute.rawType,M.attribute.lastSelected,P,U)}),D.jsx(X.Select,{style:{width:60},disabled:e.readOnly,value:M.attribute.attr_join,options:[{value:"and",label:Y("sys.condition.and",{placeholder:"与"})},{value:"or",label:Y("sys.condition.or",{placeholder:"或"})}],suffixIcon:D.jsx(He,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:N=>{M.attribute.attr_join=N}}),D.jsx(He,{isBackend:!0,className:Ie.iconBtn,type:"add",onClick:()=>{S(C,P,C.isGroup,U)}}),D.jsx(He,{isBackend:!0,disabled:!C.isGroup&&P==0,className:Ie.iconBtn,type:"delete",onClick:()=>{v(C,P,C.isGroup,U)}}),C.isGroup&&U<C.relation.length-1?D.jsx("div",{style:{width:"26px"}}):D.jsx(He,{isBackend:!0,className:Ie.iconBtn,type:"addGroups",onClick:()=>{f(P)}})]},U)})]},P))]}),D.jsx(To,{modalTitle:c.titleName||Y("sys.selection.chooseRange",{placeholder:"选择范围"}),visible:c.treeVisible,width:500,destroyOnClose:!0,onCancel:()=>{c.titleName="",c.treeVisible=!1},onOk:()=>{g()},children:D.jsx(Ls,{spinning:c.treeLoading,style:{minHeight:"455px"},children:D.jsxs("div",{style:{minHeight:"455px"},className:`
|
|
365
365
|
${Ie.TreeModalStyle} ${c.titleName==Y("sys.selection.chooseDepartment",{placeholder:"选择部门"})&&Ie.TreeDepartmentHeight}
|
|
366
|
-
`,children:[c.titleName==Y("sys.selection.chooseDepartment",{placeholder:"选择部门"})&&D.jsx(Z.Checkbox.Group,{className:Ie.TreeDepartmentCheckbox,value:c.treeDefine,options:["$DEPARTMENT"],onChange:C=>{c.treeDefine=C,c.treeDefineKey=C}}),c.treeData&&c.treeData.length>0&&!c.treeLoading&&D.jsx(Z.Tree,{defaultExpandAll:!0,height:435,checkable:!0,blockNode:!0,selectable:!1,checkedKeys:c.treeDefineKey||[],checkStrictly:!0,onCheck:(C,{checkedNodes:P})=>{let M=ie.map(P,"title");c.treeCheckable?(c.treeDefineKey=C.checked,c.treeDefine=M):(c.treeDefineKey=C.checked.length===0?[]:[C.checked[C.checked.length-1]],c.treeDefine=M.length===0?[]:[M[M.length-1]])},children:k(c.treeData)})]})})}),c.visibleTransfer&&D.jsx(RW,{title:Y("sys.addValue",{placeholder:"添加值"}),visible:c.visibleTransfer,dataSource:c.dataSource,targetKeys:c.targetKeys,loading:c.loading,isRadio:c.isRadio,columns:c.isUserCode=="10001017"||c.isUserCode=="10005256"?[{title:Y("sys.label.nameRe",{placeholder:"姓名"}),dataIndex:"name"},{title:Y("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),dataIndex:"email"}]:c.isUserCode=="10001018"||c.isUserCode=="LifeCyclePhase"||c.isUserCode=="ProductList"||c.isUserCode=="StatusList"||c.isUserCode=="Category"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:Y("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:c.isUserCode=="AllProjectsList"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:Y("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"insDesc"}]:c.isUserCode=="OldLifePhase"||c.isUserCode=="NewLifePhase"||c.isUserCode=="LifePhaseList"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"showName"},{title:Y("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:c.isUserCode=="AllEnableManufactures"||c.isUserCode=="AllSupplier"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"number"},{title:Y("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:c.isUserCode=="CategoryList"||c.isUserCode=="ClassifyList"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:Y("project.workflow.status",{placeholder:"状态"}),dataIndex:"status",render:C=>C?Y("sys.label.enable",{placeholder:"启用"}):Y("sys.disable.disable",{placeholder:"禁用"})}]:c.isUserCode=="WorkflowNodeList"||c.isUserCode=="AllCalendars"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"name"}]:c.isUserCode=="WorkflowList"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"workflowName"},{title:Y("sys.import.category",{placeholder:"分类"}),dataIndex:"changeObject"}]:[{title:Y("sys.label.number",{placeholder:"编号"}),dataIndex:"code"},{title:Y("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}],onCancel:()=>{c.isUserCode="",c.visibleTransfer=!1},onSubmit:C=>{let P=[],M=[],U=["10001017","10005256","10001018","LifeCyclePhase","Category","CategoryList","ClassifyList","StatusList","WorkflowNodeList","AllCalendars","AllProjectsList"];for(let L of C)U.includes(c.isUserCode)||l.includes(c.isUserCode)?L.name=="$USER"?(M.push(L.name),P.push({label:L.name,value:L.name})):c.isUserCode=="WorkflowList"?(M.push(L.id),P.push({label:L.workflowName,value:L.id})):c.isUserCode=="LifePhaseList"?(M.push(L.id),P.push({label:L.showName,value:L.id})):(M.push(L.id),P.push({label:L.name,value:L.id})):c.isUserCode=="OldLifePhase"||c.isUserCode=="NewLifePhase"?(M.push(L.id),P.push({label:L.showName,value:L.id})):c.isUserCode=="AllEnableManufactures"||c.isUserCode=="AllSupplier"?(M.push(L.id),P.push({label:L.number,value:L.id})):(M.push(L.id),P.push({label:L.code,value:L.id}));console.log(M),console.log(P),u.formCofing.relations[c.treeIndex1].relation[c.treeIndex2].attribute.value=M.join(","),u.formCofing.relations[c.treeIndex1].relation[c.treeIndex2].attribute.valueKey=P,console.log(u),c.isUserCode="",c.visibleTransfer=!1}})]})}),{Option:Rx}=Z.Select,DW=e=>{var g;const[t]=Z.Form.useForm(),r=F.useRef(null),[n,a]=F.useState(""),[i,s]=F.useState([]),[l,u]=F.useState([]);zs(()=>{console.log(e)});const c=Br({type1:void 0,type2:void 0}),m=(y,x)=>D.jsx(rh,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},caseSensitive:!0,searchWords:[x?x.toString():""],textToHighlight:y?y.toString():""}),p=()=>{var y;c.type1=void 0,c.type2=void 0,c.popUpSelect=[],s([]),(y=r.current)==null||y.emptyCondition(!0),t.setFieldsValue({type1:void 0})};return D.jsxs("div",{className:Qo.itemsCreated,children:[D.jsx("div",{className:Qo.classifyBox,children:D.jsxs(Z.Row,{gutter:8,className:Qo.rowBox,children:[D.jsxs(Z.Col,{span:12,className:Qo.labelLength,children:[Y("sys.import.category",{placeholder:"分类"}),":"]}),D.jsxs(Z.Col,{span:12,className:Qo.labelLength,children:[Y("sys.import.subCategory",{placeholder:"子分类"}),":"]}),D.jsx(Z.Col,{span:12,children:D.jsx(Z.Form,{form:t,children:D.jsx(Z.Form.Item,{name:"type1",children:D.jsx(Z.Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",value:c.type1||void 0,style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),suffixIcon:D.jsx(He,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:(y,x)=>{var E,k,T;c.type1=y,c.type2=void 0,c.fields=[],c.popUpSelect=[],c.sortColum=[],c.searchConditionData={base_item_id:(x==null?void 0:x.value)||"",base_item_name:(x==null?void 0:x.label)||"",object_id:"",object_name:"",relations:[]},(E=r.current)==null||E.emptyCondition(!0),y?((k=r.current)==null||k.setCondition(x,0),e.getInterface(y,"",!0)):(s([]),(T=r.current)==null||T.setCondition(x))},onSearch:y=>{a(y)},onBlur:()=>{a("")},filterOption:(y,x)=>x.label.toLowerCase().indexOf(y.toLowerCase())>=0,children:(g=e.advancedSearchClassify)==null?void 0:g.map(y=>D.jsx(Rx,{label:y.label,value:y.value,disabled:y.disabled,children:m(y.label,n)},y.value))})})})}),D.jsx(Z.Col,{span:12,children:D.jsx(Z.Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",value:c.type2||void 0,style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),suffixIcon:D.jsx(He,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:(y,x)=>{var E,k,T;c.type2=y,c.subcategoryApicode=(x==null?void 0:x.apicode)||"",(E=r.current)==null||E.emptyCondition(),y?((k=r.current)==null||k.setCondition(x,1),e.getAttribute(c.type1,y,!0)):((T=r.current)==null||T.setCondition("",1),e.getAttribute(c.type1))},onSearch:y=>{a(y)},onBlur:()=>{a("")},filterOption:(y,x)=>x.label.toLowerCase().indexOf(y.toLowerCase())>=0,children:i.map(y=>D.jsx(Rx,{label:y.label,value:y.value,apicode:y.apicode,disabled:y.disabled,children:m(y.label,n)},y.value))})})]})}),D.jsx("div",{className:Qo.materialCondition,children:D.jsx(h4,{ref:r,horizontalStyle:!0,typeData:c.typeData,subcategory:i,searchTree:l,cleanUpBtn:c.conditionObj&&!c.conditionObj.canDel&&c.conditionObj.searchType=="private",conditionObj:c.conditionObj,eliminateSearch:()=>{p()}})})]})},MW="_scrollBarAssembly_1gh57_1",FW="_buttonChangeTop_1gh57_6",NW="_iconBox_1gh57_22",IW="_topButton_1gh57_28",LW="_buttonChange_1gh57_6",jW="_rightButton_1gh57_56",Qr={scrollBarAssembly:MW,buttonChangeTop:FW,iconBox:NW,topButton:IW,buttonChange:LW,rightButton:jW},$W=e=>{var a;const t=F.useRef(null),r=RN(t),n=Br({scrollLeft:0,clientWidth:0,scrollWidth:0,scrollTop:0,clientHeight:0,scrollHeight:0});return F.useEffect(()=>{const i=()=>{var s,l,u,c,m,p;e.direction?(n.scrollTop=(s=t.current)==null?void 0:s.scrollTop,n.clientHeight=(l=t.current)==null?void 0:l.clientHeight,n.scrollHeight=(u=t.current)==null?void 0:u.scrollHeight):(n.scrollLeft=(c=t.current)==null?void 0:c.scrollLeft,n.clientWidth=(m=t.current)==null?void 0:m.clientWidth,n.scrollWidth=(p=t.current)==null?void 0:p.scrollWidth)};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[(a=e.dataList)==null?void 0:a.length,r,e.resetButton]),D.jsxs("div",{className:Qr.scrollBarAssembly,ref:t,style:{...e.style},onScroll:i=>{e.direction?(n.scrollTop=i.target.scrollTop,n.clientHeight=i.target.clientHeight,n.scrollHeight=i.target.scrollHeight):(n.scrollLeft=i.target.scrollLeft,n.clientWidth=i.target.clientWidth,n.scrollWidth=i.target.scrollWidth)},onWheel:i=>{ie.includes(i.target.className,"frontend-select-dropdown")||ie.includes(i.target.className,"frontend-select-item")||ie.includes(i.target.className,"frontend-select-item-option-content")||(e.direction?i.currentTarget.scrollTop+=i.deltaY:i.currentTarget.scrollLeft+=i.deltaY)},children:[!e.loading&&(e.direction?n.scrollTop!=0:n.scrollLeft!=0)&&D.jsx("div",{className:Te(Qr.columnBox,{[Qr.buttonChangeTop]:e.direction,[Qr.buttonChange]:!e.direction,[e.class]:e.class}),onClick:i=>{var s,l;i.stopPropagation(),e.direction?(s=t.current)==null||s.scrollTo({top:n.scrollTop-n.clientHeight,behavior:"smooth"}):(l=t.current)==null||l.scrollTo({left:n.scrollLeft-n.clientWidth,behavior:"smooth"})},children:e.direction?D.jsx(W8,{className:Qr.iconBox}):D.jsx($8,{className:Qr.iconBox})}),e.children,!e.loading&&(e.direction?n.clientHeight+n.scrollTop+1<n.scrollHeight:n.clientWidth+n.scrollLeft<n.scrollWidth)&&D.jsx("div",{className:Te(Qr.columnBox,{[Qr.buttonChangeTop]:e.direction,[Qr.topButton]:e.direction,[Qr.buttonChange]:!e.direction,[Qr.rightButton]:!e.direction,[e.class]:e.class}),onClick:i=>{var s,l;i.stopPropagation(),e.direction?(s=t.current)==null||s.scrollTo({top:n.scrollTop+n.clientHeight,behavior:"smooth"}):(l=t.current)==null||l.scrollTo({left:n.scrollLeft+n.clientWidth,behavior:"smooth"})},children:e.direction?D.jsx(L8,{className:Qr.iconBox}):D.jsx(q8,{className:Qr.iconBox})})]})},zW="_plmPublicTree_14kqh_1",BW="_treeListBox_14kqh_1",HW="_onDisable_14kqh_8",UW="_onHover_14kqh_11",qW="_titleBox_14kqh_17",WW="_name_14kqh_21",VW="_btnBox_14kqh_27",YW="_hoverStyle_14kqh_35",hr={plmPublicTree:zW,treeListBox:BW,onDisable:HW,onHover:UW,titleBox:qW,name:WW,btnBox:VW,hoverStyle:YW},{TreeNode:Px}=Z.Tree,{confirm:GW}=Z.Modal,KW=e=>{const t=F.useRef(),[r,n]=F.useState([]),[a,i]=F.useState([]),[s,l]=F.useState([]),u=Br({startDragObj:{}});F.useEffect(()=>(u.addVisible?c():document.onkeydown=null,()=>{document.onkeydown=null}),[u.addVisible]);const c=()=>{document.onkeydown=function(S){var f=window.event||S,h=f.keyCode||f.which;h==13&&!e.confirmLoading&&m()}};zs(()=>{let S=[];for(let f of e.treeCrumbs||[])S.push(f.id);i(S)});const m=async()=>{var h;const S=await((h=t.current)==null?void 0:h.validateFields()),f=await e.addRun({canDel:!0,folderType:u.treeObj.folderType,level:u.treeObj.level+1,name:S.name,parentId:u.treeObj.id,sort:u.treeObj.children&&u.treeObj.children.length.length>0?u.treeObj.children.length.length+1:1});f.warning?Z.message.warning(f.result):Z.message.success(f.result),u.addVisible=!1,e.getTreeList&&e.getTreeList()},p=(S,f="id")=>{var h=[];const v=_=>{for(var R=0,C=_.length;R<C;R++){const P=_[R];if(P.children&&P.children.length||P.conditionList&&!e.closeCondition){let M=[];P.conditionList&&!e.closeCondition?M=ie.concat(P.children||[],P.conditionList):M=P.children,h.push(P[f]),v(M)}}};return v(S),h},g=S=>{y(S,e.treeData),n(e.treeData.slice())},y=(S,f)=>f.forEach(h=>{h.id===S?h.isEditable=!0:h.isEditable=!1,h.name=h.defaultValue,h.children&&y(S,h.children),h.conditionList&&y(S,h.conditionList)}),x=(S,f)=>{E(f,S.target.value,e.treeData),n(e.treeData.slice())},E=(S,f,h)=>h.forEach(v=>{v.id===S&&(v.name=f),v.children&&E(S,f,v.children),v.conditionList&&E(S,f,v.conditionList)}),k=(S,f)=>{T(S,f,e.treeData),n(e.treeData.slice())},T=(S,f,h)=>h.forEach(v=>{v.isEditable=!1,v.id===S&&(v.name=f),v.children&&T(S,f,v.children),v.conditionList&&T(S,f,v.conditionList)}),w=S=>S==null?void 0:S.map(h=>{if(h.isEditable?h.title=D.jsxs("div",{className:hr.treeListBox,children:[D.jsxs("div",{className:hr.titleBox,children:[D.jsx(He,{type:h.content?"homesearch":ie.includes(a,h.id)?"content-open2":"content-fold",style:{cursor:"pointer",fontSize:"16px",color:"#333",padding:"3px",borderRadius:"1px"}}),D.jsx(Z.Input,{size:"small",maxLength:16,value:h.name,onChange:v=>{x(v,h.id)}})]}),D.jsxs("div",{className:hr.btnBox,children:[D.jsx(N8,{style:{marginRight:"5px"},className:hr.hoverStyle,onClick:v=>{v.stopPropagation(),k(h.id,h.defaultValue)}}),e.editLoading||e.editConditioLoading?D.jsx(lc,{spin:!0}):D.jsx(M8,{className:hr.hoverStyle,onClick:async v=>{v.stopPropagation(),h.name===u.treeName?k(h.id,h.defaultValue):(h.content?await e.conditionEdit({id:h.id,searchFolderId:h.searchFolderId,searchType:h.searchType,itemCode:h.itemCode,conditionName:h.name,conditionObject:h.conditionObject,content:h.content,sort:h.sort,canDel:h.canDel}):await e.editRun({id:h.id,parentId:h.parentId,name:h.name,folderType:h.folderType,sort:h.sort,canDel:h.canDel,level:h.level}),e.getTreeList&&e.getTreeList())}})]})]},h.id):h.title=D.jsxs("div",{className:hr.treeListBox,children:[D.jsxs("div",{className:hr.titleBox,children:[D.jsx(He,{type:h.content||h.searchType=="change"?"homesearch":ie.includes(a,h.id)?"content-open2":"content-fold",style:{cursor:"pointer",fontSize:"16px",color:"#333",padding:"3px",borderRadius:"1px"}}),D.jsx("div",{className:hr.name,title:h.name,children:D.jsx("span",{children:h.name})})]}),D.jsxs("div",{className:Te({[hr.btnBox]:!0,[hr.onHover]:!e.readOnly,[hr.onDisable]:e.readOnly}),children:[h.level<4&&h.isAuth&&D.jsx(iv,{className:hr.hoverStyle,onClick:v=>{v.preventDefault(),u.treeObj=h,u.addVisible=!0}}),h.level==1&&D.jsx("div",{onClick:v=>{v.stopPropagation()},children:D.jsx(He,{className:hr.hoverStyle,type:ie.intersection(p([h]),a).length==p([h]).length?"content-openmode":"content-open",style:{color:"#3C3C3C",cursor:"pointer",fontSize:"13px",marginLeft:"5px"},onClick:()=>{ie.intersection(p([h]),a).length==p([h]).length?i(ie.difference(a,p([h]))):i(ie.uniq(ie.concat(a,p([h]))))}})}),h.level!=1&&h.canDel&&D.jsx(z8,{className:hr.hoverStyle,style:{marginLeft:"5px"},onClick:v=>{v.stopPropagation(),GW(ZS({title:Y("project.tab.plan.delete.tips.title.confirm",{placeholder:"确认"}),content:`${Y("sys.label.deleteConfirmation",{placeholder:"删除后将不可恢复"})},${Y("sys.label.confirmDelete",{placeholder:"请确认是否删除"})}?`,onOk(){return new Promise(async(_,R)=>{h.content?e.conditionDelete({id:h.id}).then(C=>{C.warning?Z.message.warning(C.message):Z.message.success(C.message),_(!0),e.getTreeList&&e.getTreeList(h.id)}).catch(()=>{_(!0)}):e.deleteFolder({id:h.id}).then(C=>{C.warning?Z.message.warning(C.message):Z.message.success(C.message),_(!0),e.getTreeList&&e.getTreeList()}).catch(()=>{_(!0)})})}}))}}),h.level!=1&&(h.itemCode?h.isConditionNameAuth:h.isAuth)&&D.jsx(He,{className:hr.hoverStyle,type:"content-edit",style:{color:"#3C3C3C",cursor:"pointer",fontSize:"12px",marginLeft:"5px"},onClick:v=>{v.stopPropagation(),u.treeName=h.name,g(h.id)}})]})]},h.id),h.children||h.conditionList&&!e.closeCondition){let v=[];return h.conditionList&&!e.closeCondition?v=ie.concat(h.children||[],h.conditionList):v=h.children,D.jsx(Px,{title:h.title,dataRef:h,children:w(v)},h.id)}return D.jsx(Px,{title:h.title,dataRef:h},h.id)});return D.jsxs("div",{className:hr.plmPublicTree,children:[D.jsx(Z.Tree,{switcherIcon:D.jsx(He,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),draggable:e.closeDrag?!1:{icon:!1},expandedKeys:a,selectedKeys:e.selectedKeys,onExpand:S=>{i(S)},onSelect:(S,f)=>{var h,v,_;if(e.closeCondition){if(((h=f.node.dataRef)==null?void 0:h.folderType)==="change")return}else if(!((v=f.node.dataRef)!=null&&v.content)&&((_=f.node.dataRef)==null?void 0:_.searchType)!=="change")return;e.onSelect&&e.onSelect(S,f)},allowDrop:e.closeDrag?void 0:({dropNode:S,dropPosition:f})=>f!=-1&&u.startDragObj.folderType==S.dataRef.folderType&&(u.startDragObj.id.length>S.key.length&&f==0&&u.startDragObj.level-S.dataRef.level==1||u.startDragObj.id.length==S.key.length&&f!=0),onDragStart:e.closeDrag?void 0:S=>{u.startDragObj=S.node.dataRef},children:w(e.treeData)}),D.jsx(To,{modalTitle:Y("sys.label.createFolder",{placeholder:"新建文件夹"}),mask:!1,width:400,visible:u.addVisible,maskClosable:!1,okText:Y("project.tab.plan.details.window.save",{placeholder:"保存"}),onCancel:()=>{u.addVisible=!1},style:{top:"25vh"},className:hr.container,destroyOnClose:!0,onOk:async()=>{m()},confirmLoading:e.confirmLoading,children:D.jsx(QS,{ref:t,size:"middle",labelAlign:"left",labelCol:{style:{width:80}},children:D.jsx(f4,{name:"name",label:Y("sys.label.name",{placeholder:"名称"}),content:{type:"Input",props:{maxLength:16,placeholder:Y("sys.name.enterName",{placeholder:"请输入名称"})}},rules:[{required:!0,message:Y("sys.category.nameEmpty",{placeholder:"名称不能为空"})}]})})})]})},XW="1.0.5",ZW=F.createContext({}),JW={classNames:{},styles:{},className:"",style:{}},Ws=e=>{const t=F.useContext(ZW);return F.useMemo(()=>({...JW,...t[e]}),[t[e]])};function nt(){return nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nt.apply(null,arguments)}function ga(){const{getPrefixCls:e,direction:t,csp:r,iconPrefixCls:n,theme:a}=F.useContext(Z.ConfigProvider.ConfigContext);return{theme:a,getPrefixCls:e,direction:t,csp:r,iconPrefixCls:n}}process.env.NODE_ENV;function Zn(e){var t=ee.useRef();t.current=e;var r=ee.useCallback(function(){for(var n,a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return r}var Dx=process.env.NODE_ENV!=="test"&&ji()?ee.useLayoutEffect:ee.useEffect,jv=function(t,r){var n=ee.useRef(!0);Dx(function(){return t(n.current)},r),Dx(function(){return n.current=!1,function(){n.current=!0}},[])},Mx=function(t,r){jv(function(n){if(!n)return t()},r)};function ec(e){var t=ee.useRef(!1),r=ee.useState(e),n=Ge(r,2),a=n[0],i=n[1];ee.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(l,u){u&&t.current||i(l)}return[a,s]}function cg(e){return e!==void 0}function Sh(e,t){var r=t||{},n=r.defaultValue,a=r.value,i=r.onChange,s=r.postState,l=ec(function(){return cg(a)?a:cg(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),u=Ge(l,2),c=u[0],m=u[1],p=a!==void 0?a:c,g=s?s(p):p,y=Zn(i),x=ec([p]),E=Ge(x,2),k=E[0],T=E[1];Mx(function(){var S=k[0];c!==S&&y(c,S)},[k]),Mx(function(){cg(a)||m(a)},[a]);var w=Zn(function(S,f){m(S,f),T([p],f)});return[g,w]}var $d={exports:{}},xt={};/**
|
|
366
|
+
`,children:[c.titleName==Y("sys.selection.chooseDepartment",{placeholder:"选择部门"})&&D.jsx(X.Checkbox.Group,{className:Ie.TreeDepartmentCheckbox,value:c.treeDefine,options:["$DEPARTMENT"],onChange:C=>{c.treeDefine=C,c.treeDefineKey=C}}),c.treeData&&c.treeData.length>0&&!c.treeLoading&&D.jsx(X.Tree,{defaultExpandAll:!0,height:435,checkable:!0,blockNode:!0,selectable:!1,checkedKeys:c.treeDefineKey||[],checkStrictly:!0,onCheck:(C,{checkedNodes:P})=>{let M=ie.map(P,"title");c.treeCheckable?(c.treeDefineKey=C.checked,c.treeDefine=M):(c.treeDefineKey=C.checked.length===0?[]:[C.checked[C.checked.length-1]],c.treeDefine=M.length===0?[]:[M[M.length-1]])},children:k(c.treeData)})]})})}),c.visibleTransfer&&D.jsx(RW,{title:Y("sys.addValue",{placeholder:"添加值"}),visible:c.visibleTransfer,dataSource:c.dataSource,targetKeys:c.targetKeys,loading:c.loading,isRadio:c.isRadio,columns:c.isUserCode=="10001017"||c.isUserCode=="10005256"?[{title:Y("sys.label.nameRe",{placeholder:"姓名"}),dataIndex:"name"},{title:Y("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),dataIndex:"email"}]:c.isUserCode=="10001018"||c.isUserCode=="LifeCyclePhase"||c.isUserCode=="ProductList"||c.isUserCode=="StatusList"||c.isUserCode=="Category"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:Y("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:c.isUserCode=="AllProjectsList"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:Y("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"insDesc"}]:c.isUserCode=="OldLifePhase"||c.isUserCode=="NewLifePhase"||c.isUserCode=="LifePhaseList"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"showName"},{title:Y("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:c.isUserCode=="AllEnableManufactures"||c.isUserCode=="AllSupplier"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"number"},{title:Y("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:c.isUserCode=="CategoryList"||c.isUserCode=="ClassifyList"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:Y("project.workflow.status",{placeholder:"状态"}),dataIndex:"status",render:C=>C?Y("sys.label.enable",{placeholder:"启用"}):Y("sys.disable.disable",{placeholder:"禁用"})}]:c.isUserCode=="WorkflowNodeList"||c.isUserCode=="AllCalendars"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"name"}]:c.isUserCode=="WorkflowList"?[{title:Y("sys.label.name",{placeholder:"名称"}),dataIndex:"workflowName"},{title:Y("sys.import.category",{placeholder:"分类"}),dataIndex:"changeObject"}]:[{title:Y("sys.label.number",{placeholder:"编号"}),dataIndex:"code"},{title:Y("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}],onCancel:()=>{c.isUserCode="",c.visibleTransfer=!1},onSubmit:C=>{let P=[],M=[],U=["10001017","10005256","10001018","LifeCyclePhase","Category","CategoryList","ClassifyList","StatusList","WorkflowNodeList","AllCalendars","AllProjectsList"];for(let L of C)U.includes(c.isUserCode)||l.includes(c.isUserCode)?L.name=="$USER"?(M.push(L.name),P.push({label:L.name,value:L.name})):c.isUserCode=="WorkflowList"?(M.push(L.id),P.push({label:L.workflowName,value:L.id})):c.isUserCode=="LifePhaseList"?(M.push(L.id),P.push({label:L.showName,value:L.id})):(M.push(L.id),P.push({label:L.name,value:L.id})):c.isUserCode=="OldLifePhase"||c.isUserCode=="NewLifePhase"?(M.push(L.id),P.push({label:L.showName,value:L.id})):c.isUserCode=="AllEnableManufactures"||c.isUserCode=="AllSupplier"?(M.push(L.id),P.push({label:L.number,value:L.id})):(M.push(L.id),P.push({label:L.code,value:L.id}));console.log(M),console.log(P),u.formCofing.relations[c.treeIndex1].relation[c.treeIndex2].attribute.value=M.join(","),u.formCofing.relations[c.treeIndex1].relation[c.treeIndex2].attribute.valueKey=P,console.log(u),c.isUserCode="",c.visibleTransfer=!1}})]})}),{Option:Rx}=X.Select,DW=e=>{var g;const[t]=X.Form.useForm(),r=F.useRef(null),[n,a]=F.useState(""),[i,s]=F.useState([]),[l,u]=F.useState([]);zs(()=>{console.log(e)});const c=Br({type1:void 0,type2:void 0}),m=(y,x)=>D.jsx(rh,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},caseSensitive:!0,searchWords:[x?x.toString():""],textToHighlight:y?y.toString():""}),p=()=>{var y;c.type1=void 0,c.type2=void 0,c.popUpSelect=[],s([]),(y=r.current)==null||y.emptyCondition(!0),t.setFieldsValue({type1:void 0})};return D.jsxs("div",{className:Qo.itemsCreated,children:[D.jsx("div",{className:Qo.classifyBox,children:D.jsxs(X.Row,{gutter:8,className:Qo.rowBox,children:[D.jsxs(X.Col,{span:12,className:Qo.labelLength,children:[Y("sys.import.category",{placeholder:"分类"}),":"]}),D.jsxs(X.Col,{span:12,className:Qo.labelLength,children:[Y("sys.import.subCategory",{placeholder:"子分类"}),":"]}),D.jsx(X.Col,{span:12,children:D.jsx(X.Form,{form:t,children:D.jsx(X.Form.Item,{name:"type1",children:D.jsx(X.Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",value:c.type1||void 0,style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),suffixIcon:D.jsx(He,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:(y,x)=>{var E,k,T;c.type1=y,c.type2=void 0,c.fields=[],c.popUpSelect=[],c.sortColum=[],c.searchConditionData={base_item_id:(x==null?void 0:x.value)||"",base_item_name:(x==null?void 0:x.label)||"",object_id:"",object_name:"",relations:[]},(E=r.current)==null||E.emptyCondition(!0),y?((k=r.current)==null||k.setCondition(x,0),e.getInterface(y,"",!0)):(s([]),(T=r.current)==null||T.setCondition(x))},onSearch:y=>{a(y)},onBlur:()=>{a("")},filterOption:(y,x)=>x.label.toLowerCase().indexOf(y.toLowerCase())>=0,children:(g=e.advancedSearchClassify)==null?void 0:g.map(y=>D.jsx(Rx,{label:y.label,value:y.value,disabled:y.disabled,children:m(y.label,n)},y.value))})})})}),D.jsx(X.Col,{span:12,children:D.jsx(X.Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",value:c.type2||void 0,style:{width:"100%"},placeholder:Y("sys.label.selectOption",{placeholder:"请选择"}),suffixIcon:D.jsx(He,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:(y,x)=>{var E,k,T;c.type2=y,c.subcategoryApicode=(x==null?void 0:x.apicode)||"",(E=r.current)==null||E.emptyCondition(),y?((k=r.current)==null||k.setCondition(x,1),e.getAttribute(c.type1,y,!0)):((T=r.current)==null||T.setCondition("",1),e.getAttribute(c.type1))},onSearch:y=>{a(y)},onBlur:()=>{a("")},filterOption:(y,x)=>x.label.toLowerCase().indexOf(y.toLowerCase())>=0,children:i.map(y=>D.jsx(Rx,{label:y.label,value:y.value,apicode:y.apicode,disabled:y.disabled,children:m(y.label,n)},y.value))})})]})}),D.jsx("div",{className:Qo.materialCondition,children:D.jsx(hC,{ref:r,horizontalStyle:!0,typeData:c.typeData,subcategory:i,searchTree:l,cleanUpBtn:c.conditionObj&&!c.conditionObj.canDel&&c.conditionObj.searchType=="private",conditionObj:c.conditionObj,eliminateSearch:()=>{p()}})})]})},MW="_scrollBarAssembly_1gh57_1",FW="_buttonChangeTop_1gh57_6",NW="_iconBox_1gh57_22",IW="_topButton_1gh57_28",LW="_buttonChange_1gh57_6",jW="_rightButton_1gh57_56",Qr={scrollBarAssembly:MW,buttonChangeTop:FW,iconBox:NW,topButton:IW,buttonChange:LW,rightButton:jW},$W=e=>{var a;const t=F.useRef(null),r=RN(t),n=Br({scrollLeft:0,clientWidth:0,scrollWidth:0,scrollTop:0,clientHeight:0,scrollHeight:0});return F.useEffect(()=>{const i=()=>{var s,l,u,c,m,p;e.direction?(n.scrollTop=(s=t.current)==null?void 0:s.scrollTop,n.clientHeight=(l=t.current)==null?void 0:l.clientHeight,n.scrollHeight=(u=t.current)==null?void 0:u.scrollHeight):(n.scrollLeft=(c=t.current)==null?void 0:c.scrollLeft,n.clientWidth=(m=t.current)==null?void 0:m.clientWidth,n.scrollWidth=(p=t.current)==null?void 0:p.scrollWidth)};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[(a=e.dataList)==null?void 0:a.length,r,e.resetButton]),D.jsxs("div",{className:Qr.scrollBarAssembly,ref:t,style:{...e.style},onScroll:i=>{e.direction?(n.scrollTop=i.target.scrollTop,n.clientHeight=i.target.clientHeight,n.scrollHeight=i.target.scrollHeight):(n.scrollLeft=i.target.scrollLeft,n.clientWidth=i.target.clientWidth,n.scrollWidth=i.target.scrollWidth)},onWheel:i=>{ie.includes(i.target.className,"frontend-select-dropdown")||ie.includes(i.target.className,"frontend-select-item")||ie.includes(i.target.className,"frontend-select-item-option-content")||(e.direction?i.currentTarget.scrollTop+=i.deltaY:i.currentTarget.scrollLeft+=i.deltaY)},children:[!e.loading&&(e.direction?n.scrollTop!=0:n.scrollLeft!=0)&&D.jsx("div",{className:Te(Qr.columnBox,{[Qr.buttonChangeTop]:e.direction,[Qr.buttonChange]:!e.direction,[e.class]:e.class}),onClick:i=>{var s,l;i.stopPropagation(),e.direction?(s=t.current)==null||s.scrollTo({top:n.scrollTop-n.clientHeight,behavior:"smooth"}):(l=t.current)==null||l.scrollTo({left:n.scrollLeft-n.clientWidth,behavior:"smooth"})},children:e.direction?D.jsx(W8,{className:Qr.iconBox}):D.jsx($8,{className:Qr.iconBox})}),e.children,!e.loading&&(e.direction?n.clientHeight+n.scrollTop+1<n.scrollHeight:n.clientWidth+n.scrollLeft<n.scrollWidth)&&D.jsx("div",{className:Te(Qr.columnBox,{[Qr.buttonChangeTop]:e.direction,[Qr.topButton]:e.direction,[Qr.buttonChange]:!e.direction,[Qr.rightButton]:!e.direction,[e.class]:e.class}),onClick:i=>{var s,l;i.stopPropagation(),e.direction?(s=t.current)==null||s.scrollTo({top:n.scrollTop+n.clientHeight,behavior:"smooth"}):(l=t.current)==null||l.scrollTo({left:n.scrollLeft+n.clientWidth,behavior:"smooth"})},children:e.direction?D.jsx(L8,{className:Qr.iconBox}):D.jsx(q8,{className:Qr.iconBox})})]})},zW="_plmPublicTree_14kqh_1",BW="_treeListBox_14kqh_1",HW="_onDisable_14kqh_8",UW="_onHover_14kqh_11",qW="_titleBox_14kqh_17",WW="_name_14kqh_21",VW="_btnBox_14kqh_27",YW="_hoverStyle_14kqh_35",hr={plmPublicTree:zW,treeListBox:BW,onDisable:HW,onHover:UW,titleBox:qW,name:WW,btnBox:VW,hoverStyle:YW},{TreeNode:Px}=X.Tree,{confirm:GW}=X.Modal,KW=e=>{const t=F.useRef(),[r,n]=F.useState([]),[a,i]=F.useState([]),[s,l]=F.useState([]),u=Br({startDragObj:{}});F.useEffect(()=>(u.addVisible?c():document.onkeydown=null,()=>{document.onkeydown=null}),[u.addVisible]);const c=()=>{document.onkeydown=function(S){var f=window.event||S,h=f.keyCode||f.which;h==13&&!e.confirmLoading&&m()}};zs(()=>{let S=[];for(let f of e.treeCrumbs||[])S.push(f.id);i(S)});const m=async()=>{var h;const S=await((h=t.current)==null?void 0:h.validateFields()),f=await e.addRun({canDel:!0,folderType:u.treeObj.folderType,level:u.treeObj.level+1,name:S.name,parentId:u.treeObj.id,sort:u.treeObj.children&&u.treeObj.children.length.length>0?u.treeObj.children.length.length+1:1});f.warning?X.message.warning(f.result):X.message.success(f.result),u.addVisible=!1,e.getTreeList&&e.getTreeList()},p=(S,f="id")=>{var h=[];const v=_=>{for(var R=0,C=_.length;R<C;R++){const P=_[R];if(P.children&&P.children.length||P.conditionList&&!e.closeCondition){let M=[];P.conditionList&&!e.closeCondition?M=ie.concat(P.children||[],P.conditionList):M=P.children,h.push(P[f]),v(M)}}};return v(S),h},g=S=>{y(S,e.treeData),n(e.treeData.slice())},y=(S,f)=>f.forEach(h=>{h.id===S?h.isEditable=!0:h.isEditable=!1,h.name=h.defaultValue,h.children&&y(S,h.children),h.conditionList&&y(S,h.conditionList)}),x=(S,f)=>{E(f,S.target.value,e.treeData),n(e.treeData.slice())},E=(S,f,h)=>h.forEach(v=>{v.id===S&&(v.name=f),v.children&&E(S,f,v.children),v.conditionList&&E(S,f,v.conditionList)}),k=(S,f)=>{T(S,f,e.treeData),n(e.treeData.slice())},T=(S,f,h)=>h.forEach(v=>{v.isEditable=!1,v.id===S&&(v.name=f),v.children&&T(S,f,v.children),v.conditionList&&T(S,f,v.conditionList)}),w=S=>S==null?void 0:S.map(h=>{if(h.isEditable?h.title=D.jsxs("div",{className:hr.treeListBox,children:[D.jsxs("div",{className:hr.titleBox,children:[D.jsx(He,{type:h.content?"homesearch":ie.includes(a,h.id)?"content-open2":"content-fold",style:{cursor:"pointer",fontSize:"16px",color:"#333",padding:"3px",borderRadius:"1px"}}),D.jsx(X.Input,{size:"small",maxLength:16,value:h.name,onChange:v=>{x(v,h.id)}})]}),D.jsxs("div",{className:hr.btnBox,children:[D.jsx(N8,{style:{marginRight:"5px"},className:hr.hoverStyle,onClick:v=>{v.stopPropagation(),k(h.id,h.defaultValue)}}),e.editLoading||e.editConditioLoading?D.jsx(lc,{spin:!0}):D.jsx(M8,{className:hr.hoverStyle,onClick:async v=>{v.stopPropagation(),h.name===u.treeName?k(h.id,h.defaultValue):(h.content?await e.conditionEdit({id:h.id,searchFolderId:h.searchFolderId,searchType:h.searchType,itemCode:h.itemCode,conditionName:h.name,conditionObject:h.conditionObject,content:h.content,sort:h.sort,canDel:h.canDel}):await e.editRun({id:h.id,parentId:h.parentId,name:h.name,folderType:h.folderType,sort:h.sort,canDel:h.canDel,level:h.level}),e.getTreeList&&e.getTreeList())}})]})]},h.id):h.title=D.jsxs("div",{className:hr.treeListBox,children:[D.jsxs("div",{className:hr.titleBox,children:[D.jsx(He,{type:h.content||h.searchType=="change"?"homesearch":ie.includes(a,h.id)?"content-open2":"content-fold",style:{cursor:"pointer",fontSize:"16px",color:"#333",padding:"3px",borderRadius:"1px"}}),D.jsx("div",{className:hr.name,title:h.name,children:D.jsx("span",{children:h.name})})]}),D.jsxs("div",{className:Te({[hr.btnBox]:!0,[hr.onHover]:!e.readOnly,[hr.onDisable]:e.readOnly}),children:[h.level<4&&h.isAuth&&D.jsx(iv,{className:hr.hoverStyle,onClick:v=>{v.preventDefault(),u.treeObj=h,u.addVisible=!0}}),h.level==1&&D.jsx("div",{onClick:v=>{v.stopPropagation()},children:D.jsx(He,{className:hr.hoverStyle,type:ie.intersection(p([h]),a).length==p([h]).length?"content-openmode":"content-open",style:{color:"#3C3C3C",cursor:"pointer",fontSize:"13px",marginLeft:"5px"},onClick:()=>{ie.intersection(p([h]),a).length==p([h]).length?i(ie.difference(a,p([h]))):i(ie.uniq(ie.concat(a,p([h]))))}})}),h.level!=1&&h.canDel&&D.jsx(z8,{className:hr.hoverStyle,style:{marginLeft:"5px"},onClick:v=>{v.stopPropagation(),GW(ZS({title:Y("project.tab.plan.delete.tips.title.confirm",{placeholder:"确认"}),content:`${Y("sys.label.deleteConfirmation",{placeholder:"删除后将不可恢复"})},${Y("sys.label.confirmDelete",{placeholder:"请确认是否删除"})}?`,onOk(){return new Promise(async(_,R)=>{h.content?e.conditionDelete({id:h.id}).then(C=>{C.warning?X.message.warning(C.message):X.message.success(C.message),_(!0),e.getTreeList&&e.getTreeList(h.id)}).catch(()=>{_(!0)}):e.deleteFolder({id:h.id}).then(C=>{C.warning?X.message.warning(C.message):X.message.success(C.message),_(!0),e.getTreeList&&e.getTreeList()}).catch(()=>{_(!0)})})}}))}}),h.level!=1&&(h.itemCode?h.isConditionNameAuth:h.isAuth)&&D.jsx(He,{className:hr.hoverStyle,type:"content-edit",style:{color:"#3C3C3C",cursor:"pointer",fontSize:"12px",marginLeft:"5px"},onClick:v=>{v.stopPropagation(),u.treeName=h.name,g(h.id)}})]})]},h.id),h.children||h.conditionList&&!e.closeCondition){let v=[];return h.conditionList&&!e.closeCondition?v=ie.concat(h.children||[],h.conditionList):v=h.children,D.jsx(Px,{title:h.title,dataRef:h,children:w(v)},h.id)}return D.jsx(Px,{title:h.title,dataRef:h},h.id)});return D.jsxs("div",{className:hr.plmPublicTree,children:[D.jsx(X.Tree,{switcherIcon:D.jsx(He,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),draggable:e.closeDrag?!1:{icon:!1},expandedKeys:a,selectedKeys:e.selectedKeys,onExpand:S=>{i(S)},onSelect:(S,f)=>{var h,v,_;if(e.closeCondition){if(((h=f.node.dataRef)==null?void 0:h.folderType)==="change")return}else if(!((v=f.node.dataRef)!=null&&v.content)&&((_=f.node.dataRef)==null?void 0:_.searchType)!=="change")return;e.onSelect&&e.onSelect(S,f)},allowDrop:e.closeDrag?void 0:({dropNode:S,dropPosition:f})=>f!=-1&&u.startDragObj.folderType==S.dataRef.folderType&&(u.startDragObj.id.length>S.key.length&&f==0&&u.startDragObj.level-S.dataRef.level==1||u.startDragObj.id.length==S.key.length&&f!=0),onDragStart:e.closeDrag?void 0:S=>{u.startDragObj=S.node.dataRef},children:w(e.treeData)}),D.jsx(To,{modalTitle:Y("sys.label.createFolder",{placeholder:"新建文件夹"}),mask:!1,width:400,visible:u.addVisible,maskClosable:!1,okText:Y("project.tab.plan.details.window.save",{placeholder:"保存"}),onCancel:()=>{u.addVisible=!1},style:{top:"25vh"},className:hr.container,destroyOnClose:!0,onOk:async()=>{m()},confirmLoading:e.confirmLoading,children:D.jsx(QS,{ref:t,size:"middle",labelAlign:"left",labelCol:{style:{width:80}},children:D.jsx(fC,{name:"name",label:Y("sys.label.name",{placeholder:"名称"}),content:{type:"Input",props:{maxLength:16,placeholder:Y("sys.name.enterName",{placeholder:"请输入名称"})}},rules:[{required:!0,message:Y("sys.category.nameEmpty",{placeholder:"名称不能为空"})}]})})})]})},XW="1.0.5",ZW=F.createContext({}),JW={classNames:{},styles:{},className:"",style:{}},Ws=e=>{const t=F.useContext(ZW);return F.useMemo(()=>({...JW,...t[e]}),[t[e]])};function nt(){return nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nt.apply(null,arguments)}function ga(){const{getPrefixCls:e,direction:t,csp:r,iconPrefixCls:n,theme:a}=F.useContext(X.ConfigProvider.ConfigContext);return{theme:a,getPrefixCls:e,direction:t,csp:r,iconPrefixCls:n}}process.env.NODE_ENV;function Zn(e){var t=ee.useRef();t.current=e;var r=ee.useCallback(function(){for(var n,a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return r}var Dx=process.env.NODE_ENV!=="test"&&ji()?ee.useLayoutEffect:ee.useEffect,jv=function(t,r){var n=ee.useRef(!0);Dx(function(){return t(n.current)},r),Dx(function(){return n.current=!1,function(){n.current=!0}},[])},Mx=function(t,r){jv(function(n){if(!n)return t()},r)};function ec(e){var t=ee.useRef(!1),r=ee.useState(e),n=Ge(r,2),a=n[0],i=n[1];ee.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(l,u){u&&t.current||i(l)}return[a,s]}function cg(e){return e!==void 0}function Sh(e,t){var r=t||{},n=r.defaultValue,a=r.value,i=r.onChange,s=r.postState,l=ec(function(){return cg(a)?a:cg(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),u=Ge(l,2),c=u[0],m=u[1],p=a!==void 0?a:c,g=s?s(p):p,y=Zn(i),x=ec([p]),E=Ge(x,2),k=E[0],T=E[1];Mx(function(){var S=k[0];c!==S&&y(c,S)},[k]),Mx(function(){cg(a)||m(a)},[a]);var w=Zn(function(S,f){m(S,f),T([p],f)});return[g,w]}var $d={exports:{}},xt={};/**
|
|
367
367
|
* @license React
|
|
368
368
|
* react-is.production.min.js
|
|
369
369
|
*
|
|
@@ -379,8 +379,8 @@ ve.version="2.30.1";R$(Nt);ve.fn=be;ve.min=bB;ve.max=yB;ve.now=_B;ve.utc=va;ve.u
|
|
|
379
379
|
*
|
|
380
380
|
* This source code is licensed under the MIT license found in the
|
|
381
381
|
* LICENSE file in the root directory of this source tree.
|
|
382
|
-
*/var Nx;function eV(){return Nx||(Nx=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),x=!1,E=!1,k=!1,T=!1,w=!1,S;S=Symbol.for("react.module.reference");function f(oe){return!!(typeof oe=="string"||typeof oe=="function"||oe===r||oe===a||w||oe===n||oe===c||oe===m||T||oe===y||x||E||k||typeof oe=="object"&&oe!==null&&(oe.$$typeof===g||oe.$$typeof===p||oe.$$typeof===i||oe.$$typeof===s||oe.$$typeof===u||oe.$$typeof===S||oe.getModuleId!==void 0))}function h(oe){if(typeof oe=="object"&&oe!==null){var De=oe.$$typeof;switch(De){case e:var Je=oe.type;switch(Je){case r:case a:case n:case c:case m:return Je;default:var Ct=Je&&Je.$$typeof;switch(Ct){case l:case s:case u:case g:case p:case i:return Ct;default:return De}}case t:return De}}}var v=s,_=i,R=e,C=u,P=r,M=g,U=p,L=t,N=a,j=n,O=c,I=m,z=!1,B=!1;function H(oe){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function q(oe){return B||(B=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function J(oe){return h(oe)===s}function re(oe){return h(oe)===i}function ne(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===e}function se(oe){return h(oe)===u}function ce(oe){return h(oe)===r}function le(oe){return h(oe)===g}function ye(oe){return h(oe)===p}function we(oe){return h(oe)===t}function Ee(oe){return h(oe)===a}function Le(oe){return h(oe)===n}function he(oe){return h(oe)===c}function qe(oe){return h(oe)===m}St.ContextConsumer=v,St.ContextProvider=_,St.Element=R,St.ForwardRef=C,St.Fragment=P,St.Lazy=M,St.Memo=U,St.Portal=L,St.Profiler=N,St.StrictMode=j,St.Suspense=O,St.SuspenseList=I,St.isAsyncMode=H,St.isConcurrentMode=q,St.isContextConsumer=J,St.isContextProvider=re,St.isElement=ne,St.isForwardRef=se,St.isFragment=ce,St.isLazy=le,St.isMemo=ye,St.isPortal=we,St.isProfiler=Ee,St.isStrictMode=Le,St.isSuspense=he,St.isSuspenseList=qe,St.isValidElementType=f,St.typeOf=h}()),St}var Ix;function tV(){return Ix||(Ix=1,process.env.NODE_ENV==="production"?$d.exports=QW():$d.exports=eV()),$d.exports}var dg=tV(),rV=Symbol.for("react.element"),nV=Symbol.for("react.transitional.element"),aV=Symbol.for("react.fragment");function iV(e){return e&&Mt(e)==="object"&&(e.$$typeof===rV||e.$$typeof===nV)&&e.type===aV}var oV=Number(F.version.split(".")[0]),sV=function(t,r){typeof t=="function"?t(r):Mt(t)==="object"&&t&&"current"in t&&(t.current=r)},uV=function(t){var r,n;if(!t)return!1;if(
|
|
383
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eo(e){return dV(e)||fV(e)||p8(e)||hV()}const bc=F.createContext(null);function Lx(e){const{getDropContainer:t,className:r,prefixCls:n,children:a}=e,{disabled:i}=F.useContext(bc),[s,l]=F.useState(),[u,c]=F.useState(null);if(F.useEffect(()=>{const g=t==null?void 0:t();s!==g&&l(g)},[t]),F.useEffect(()=>{if(s){const g=()=>{c(!0)},y=k=>{k.preventDefault()},x=k=>{k.relatedTarget||c(!1)},E=k=>{c(!1),k.preventDefault()};return document.addEventListener("dragenter",g),document.addEventListener("dragover",y),document.addEventListener("dragleave",x),document.addEventListener("drop",E),()=>{document.removeEventListener("dragenter",g),document.removeEventListener("dragover",y),document.removeEventListener("dragleave",x),document.removeEventListener("drop",E)}}},[!!s]),!(t&&s&&!i))return null;const p=`${n}-drop-area`;return zl.createPortal(F.createElement("div",{className:Te(p,r,{[`${p}-on-body`]:s.tagName==="BODY"}),style:{display:u?"block":"none"}},a),s)}var
|
|
382
|
+
*/var Nx;function eV(){return Nx||(Nx=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),x=!1,E=!1,k=!1,T=!1,w=!1,S;S=Symbol.for("react.module.reference");function f(oe){return!!(typeof oe=="string"||typeof oe=="function"||oe===r||oe===a||w||oe===n||oe===c||oe===m||T||oe===y||x||E||k||typeof oe=="object"&&oe!==null&&(oe.$$typeof===g||oe.$$typeof===p||oe.$$typeof===i||oe.$$typeof===s||oe.$$typeof===u||oe.$$typeof===S||oe.getModuleId!==void 0))}function h(oe){if(typeof oe=="object"&&oe!==null){var De=oe.$$typeof;switch(De){case e:var Je=oe.type;switch(Je){case r:case a:case n:case c:case m:return Je;default:var Ct=Je&&Je.$$typeof;switch(Ct){case l:case s:case u:case g:case p:case i:return Ct;default:return De}}case t:return De}}}var v=s,_=i,R=e,C=u,P=r,M=g,U=p,L=t,N=a,j=n,O=c,I=m,z=!1,B=!1;function H(oe){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function q(oe){return B||(B=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function J(oe){return h(oe)===s}function re(oe){return h(oe)===i}function ne(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===e}function se(oe){return h(oe)===u}function ce(oe){return h(oe)===r}function le(oe){return h(oe)===g}function ye(oe){return h(oe)===p}function we(oe){return h(oe)===t}function Ee(oe){return h(oe)===a}function Le(oe){return h(oe)===n}function he(oe){return h(oe)===c}function qe(oe){return h(oe)===m}St.ContextConsumer=v,St.ContextProvider=_,St.Element=R,St.ForwardRef=C,St.Fragment=P,St.Lazy=M,St.Memo=U,St.Portal=L,St.Profiler=N,St.StrictMode=j,St.Suspense=O,St.SuspenseList=I,St.isAsyncMode=H,St.isConcurrentMode=q,St.isContextConsumer=J,St.isContextProvider=re,St.isElement=ne,St.isForwardRef=se,St.isFragment=ce,St.isLazy=le,St.isMemo=ye,St.isPortal=we,St.isProfiler=Ee,St.isStrictMode=Le,St.isSuspense=he,St.isSuspenseList=qe,St.isValidElementType=f,St.typeOf=h}()),St}var Ix;function tV(){return Ix||(Ix=1,process.env.NODE_ENV==="production"?$d.exports=QW():$d.exports=eV()),$d.exports}var dg=tV(),rV=Symbol.for("react.element"),nV=Symbol.for("react.transitional.element"),aV=Symbol.for("react.fragment");function iV(e){return e&&Mt(e)==="object"&&(e.$$typeof===rV||e.$$typeof===nV)&&e.type===aV}var oV=Number(F.version.split(".")[0]),sV=function(t,r){typeof t=="function"?t(r):Mt(t)==="object"&&t&&"current"in t&&(t.current=r)},uV=function(t){var r,n;if(!t)return!1;if(pC(t)&&oV>=19)return!0;var a=dg.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==dg.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==dg.ForwardRef)};function pC(e){return F.isValidElement(e)&&!iV(e)}var lV=function(t){if(t&&pC(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};function cV(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function dV(e){if(Array.isArray(e))return $g(e)}function fV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
383
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eo(e){return dV(e)||fV(e)||p8(e)||hV()}const bc=F.createContext(null);function Lx(e){const{getDropContainer:t,className:r,prefixCls:n,children:a}=e,{disabled:i}=F.useContext(bc),[s,l]=F.useState(),[u,c]=F.useState(null);if(F.useEffect(()=>{const g=t==null?void 0:t();s!==g&&l(g)},[t]),F.useEffect(()=>{if(s){const g=()=>{c(!0)},y=k=>{k.preventDefault()},x=k=>{k.relatedTarget||c(!1)},E=k=>{c(!1),k.preventDefault()};return document.addEventListener("dragenter",g),document.addEventListener("dragover",y),document.addEventListener("dragleave",x),document.addEventListener("drop",E),()=>{document.removeEventListener("dragenter",g),document.removeEventListener("dragover",y),document.removeEventListener("dragleave",x),document.removeEventListener("drop",E)}}},[!!s]),!(t&&s&&!i))return null;const p=`${n}-drop-area`;return zl.createPortal(F.createElement("div",{className:Te(p,r,{[`${p}-on-body`]:s.tagName==="BODY"}),style:{display:u?"block":"none"}},a),s)}var mC=F.createContext({});const ir=Math.round;function fg(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)n[a]=t(n[a]||0,r[a]||"",a);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const jx=(e,t,r)=>r===0?e:e/100;function bl(e,t){const r=t||255;return e>r?r:e<0?0:e}class Hr{constructor(t){Ae(this,"isValid",!0),Ae(this,"r",0),Ae(this,"g",0),Ae(this,"b",0),Ae(this,"a",1),Ae(this,"_h",void 0),Ae(this,"_s",void 0),Ae(this,"_l",void 0),Ae(this,"_v",void 0),Ae(this,"_max",void 0),Ae(this,"_min",void 0),Ae(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let a=function(i){return n.startsWith(i)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):a("rgb")?this.fromRgbString(n):a("hsl")?this.fromHslString(n):(a("hsv")||a("hsb"))&&this.fromHsvString(n)}else if(t instanceof Hr)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=bl(t.r),this.g=bl(t.g),this.b=bl(t.b),this.a=typeof t.a=="number"?bl(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const s=i/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),a=t(this.b);return .2126*r+.7152*n+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=ir(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:r,s:n,l:a,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:r,s:n,l:a,a:this.a})}mix(t,r=50){const n=this._c(t),a=r/100,i=l=>(n[l]-this[l])*a+this[l],s={r:ir(i("r")),g:ir(i("g")),b:ir(i("b")),a:ir(i("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),a=i=>ir((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:a("r"),g:a("g"),b:a("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=ir(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=ir(this.getSaturation()*100),n=ir(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${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 this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const a=this.clone();return a[t]=bl(r,n),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(a,i){return parseInt(r[a]+r[i||a],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof a=="number"?a:1,r<=0){const g=ir(n*255);this.r=g,this.g=g,this.b=g}let i=0,s=0,l=0;const u=t/60,c=(1-Math.abs(2*n-1))*r,m=c*(1-Math.abs(u%2-1));u>=0&&u<1?(i=c,s=m):u>=1&&u<2?(i=m,s=c):u>=2&&u<3?(s=c,l=m):u>=3&&u<4?(s=m,l=c):u>=4&&u<5?(i=m,l=c):u>=5&&u<6&&(i=c,l=m);const p=n-c/2;this.r=ir((i+p)*255),this.g=ir((s+p)*255),this.b=ir((l+p)*255)}fromHsv({h:t,s:r,v:n,a}){this._h=t%360,this._s=r,this._v=n,this.a=typeof a=="number"?a:1;const i=ir(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const s=t/60,l=Math.floor(s),u=s-l,c=ir(n*(1-r)*255),m=ir(n*(1-r*u)*255),p=ir(n*(1-r*(1-u))*255);switch(l){case 0:this.g=p,this.b=c;break;case 1:this.r=m,this.b=c;break;case 2:this.r=c,this.b=p;break;case 3:this.r=c,this.g=m;break;case 4:this.r=p,this.g=c;break;case 5:default:this.g=c,this.b=m;break}}fromHsvString(t){const r=fg(t,jx);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=fg(t,jx);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=fg(t,(n,a)=>a.includes("%")?ir(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var zd=2,$x=.16,pV=.05,mV=.05,gV=.15,gC=5,vC=4,vV=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function zx(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-zd*t:Math.round(e.h)+zd*t:n=r?Math.round(e.h)+zd*t:Math.round(e.h)-zd*t,n<0?n+=360:n>=360&&(n-=360),n}function Bx(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-$x*t:t===vC?n=e.s+$x:n=e.s+pV*t,n>1&&(n=1),r&&t===gC&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function Hx(e,t,r){var n;return r?n=e.v+mV*t:n=e.v-gV*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function bV(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new Hr(e),a=n.toHsv(),i=gC;i>0;i-=1){var s=new Hr({h:zx(a,i,!0),s:Bx(a,i,!0),v:Hx(a,i,!0)});r.push(s)}r.push(n);for(var l=1;l<=vC;l+=1){var u=new Hr({h:zx(a,l),s:Bx(a,l),v:Hx(a,l)});r.push(u)}return t.theme==="dark"?vV.map(function(c){var m=c.index,p=c.amount;return new Hr(t.backgroundColor||"#141414").mix(r[m],p).toHexString()}):r.map(function(c){return c.toHexString()})}var w1=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];w1.primary=w1[5];function bC(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function yV(e){return bC(e)instanceof ShadowRoot}function _V(e){return yV(e)?bC(e):null}function wV(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function xV(e,t){ko(e,"[@ant-design/icons] ".concat(t))}function Ux(e){return Mt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Mt(e.icon)==="object"||typeof e.icon=="function")}function qx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[wV(r)]=n}return t},{})}function x1(e,t,r){return r?F.createElement(e.tag,pe(pe({key:t},qx(e.attrs)),r),(e.children||[]).map(function(n,a){return x1(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):F.createElement(e.tag,pe({key:t},qx(e.attrs)),(e.children||[]).map(function(n,a){return x1(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function yC(e){return bV(e)[0]}function _C(e){return e?Array.isArray(e)?e:[e]:[]}var SV=`
|
|
384
384
|
.anticon {
|
|
385
385
|
display: inline-flex;
|
|
386
386
|
align-items: center;
|
|
@@ -435,9 +435,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
435
435
|
transform: rotate(360deg);
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
|
-
`,CV=function(t){var r=F.useContext(
|
|
438
|
+
`,CV=function(t){var r=F.useContext(mC),n=r.csp,a=r.prefixCls,i=r.layer,s=SV;a&&(s=s.replace(/anticon/g,a)),i&&(s="@layer ".concat(i,` {
|
|
439
439
|
`).concat(s,`
|
|
440
|
-
}`)),F.useEffect(function(){var l=t.current,u=_V(l);bo(s,"@ant-design-icons",{prepend:!i,csp:n,attachTo:u})},[])},EV=["icon","className","onClick","style","primaryColor","secondaryColor"],Il={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function kV(e){var t=e.primaryColor,r=e.secondaryColor;Il.primaryColor=t,Il.secondaryColor=r||y4(t),Il.calculated=!!r}function TV(){return pe({},Il)}var Vs=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,s=t.primaryColor,l=t.secondaryColor,u=Ii(t,EV),c=ee.useRef(),m=Il;if(s&&(m={primaryColor:s,secondaryColor:l||y4(s)}),CV(c),xV(Ux(r),"icon should be icon definiton, but got ".concat(r)),!Ux(r))return null;var p=r;return p&&typeof p.icon=="function"&&(p=pe(pe({},p),{},{icon:p.icon(m.primaryColor,m.secondaryColor)})),x1(p.icon,"svg-".concat(p.name),pe(pe({className:n,onClick:a,style:i,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:c}))};Vs.displayName="IconReact";Vs.getTwoToneColors=TV;Vs.setTwoToneColors=kV;function w4(e){var t=_4(e),r=Ge(t,2),n=r[0],a=r[1];return Vs.setTwoToneColors({primaryColor:n,secondaryColor:a})}function OV(){var e=Vs.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var AV=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];w4(w1.primary);var Xt=ee.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,s=e.tabIndex,l=e.onClick,u=e.twoToneColor,c=Ii(e,AV),m=ee.useContext(m4),p=m.prefixCls,g=p===void 0?"anticon":p,y=m.rootClassName,x=Te(y,g,Ae(Ae({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!a||n.name==="loading"),r),E=s;E===void 0&&l&&(E=-1);var k=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,T=_4(u),w=Ge(T,2),S=w[0],f=w[1];return ee.createElement("span",nt({role:"img","aria-label":n.name},c,{ref:t,tabIndex:E,onClick:l,className:x}),ee.createElement(Vs,{icon:n,primaryColor:S,secondaryColor:f,style:k}))});Xt.displayName="AntdIcon";Xt.getTwoToneColor=OV;Xt.setTwoToneColor=w4;var RV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:lM}))},x4=ee.forwardRef(RV);process.env.NODE_ENV!=="production"&&(x4.displayName="ArrowUpOutlined");var PV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:cM}))},S4=ee.forwardRef(PV);process.env.NODE_ENV!=="production"&&(S4.displayName="AudioMutedOutlined");var DV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:dM}))},C4=ee.forwardRef(DV);process.env.NODE_ENV!=="production"&&(C4.displayName="AudioOutlined");var MV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:bM}))},E4=ee.forwardRef(MV);process.env.NODE_ENV!=="production"&&(E4.displayName="ClearOutlined");var FV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:yM}))},k4=ee.forwardRef(FV);process.env.NODE_ENV!=="production"&&(k4.displayName="CloseCircleFilled");var NV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:F8}))},T4=ee.forwardRef(NV);process.env.NODE_ENV!=="production"&&(T4.displayName="CloseOutlined");var IV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:EM}))},O4=ee.forwardRef(IV);process.env.NODE_ENV!=="production"&&(O4.displayName="EllipsisOutlined");var LV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:kM}))},A4=ee.forwardRef(LV);process.env.NODE_ENV!=="production"&&(A4.displayName="FileExcelFilled");var jV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:TM}))},R4=ee.forwardRef(jV);process.env.NODE_ENV!=="production"&&(R4.displayName="FileImageFilled");var $V=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:OM}))},P4=ee.forwardRef($V);process.env.NODE_ENV!=="production"&&(P4.displayName="FileMarkdownFilled");var zV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:AM}))},D4=ee.forwardRef(zV);process.env.NODE_ENV!=="production"&&(D4.displayName="FilePdfFilled");var BV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:RM}))},M4=ee.forwardRef(BV);process.env.NODE_ENV!=="production"&&(M4.displayName="FilePptFilled");var HV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:PM}))},F4=ee.forwardRef(HV);process.env.NODE_ENV!=="production"&&(F4.displayName="FileTextFilled");var UV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:DM}))},N4=ee.forwardRef(UV);process.env.NODE_ENV!=="production"&&(N4.displayName="FileWordFilled");var qV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:MM}))},I4=ee.forwardRef(qV);process.env.NODE_ENV!=="production"&&(I4.displayName="FileZipFilled");var WV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:j8}))},L4=ee.forwardRef(WV);process.env.NODE_ENV!=="production"&&(L4.displayName="LeftOutlined");var VV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:H8}))},j4=ee.forwardRef(VV);process.env.NODE_ENV!=="production"&&(j4.displayName="PlusOutlined");var YV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:U8}))},$4=ee.forwardRef(YV);process.env.NODE_ENV!=="production"&&($4.displayName="RightOutlined");function Wx(e){return e instanceof HTMLElement||e instanceof SVGElement}function GV(e){return e&&Mt(e)==="object"&&Wx(e.nativeElement)?e.nativeElement:Wx(e)?e:null}function KV(e){var t=GV(e);if(t)return t;if(e instanceof F.Component){var r;return(r=zl.findDOMNode)===null||r===void 0?void 0:r.call(zl,e)}return null}var XV=ee.createContext({});function ya(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h8(n.key),n)}}function _a(e,t,r){return t&&Vx(e.prototype,t),r&&Vx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function S1(e,t){return S1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},S1(e,t)}function Ch(e,t){if(typeof t!="function"&&t!==null)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&&S1(e,t)}function Hf(e){return Hf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hf(e)}function z4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z4=function(){return!!e})()}function wo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZV(e,t){if(t&&(Mt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wo(e)}function Eh(e){var t=z4();return function(){var r,n=Hf(e);if(t){var a=Hf(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return ZV(this,r)}}var JV=function(e){Ch(r,e);var t=Eh(r);function r(){return ya(this,r),t.apply(this,arguments)}return _a(r,[{key:"render",value:function(){return this.props.children}}]),r}(ee.Component);function QV(e){var t=ee.useReducer(function(l){return l+1},0),r=Ge(t,2),n=r[1],a=ee.useRef(e),i=Zn(function(){return a.current}),s=Zn(function(l){a.current=typeof l=="function"?l(a.current):l,n()});return[i,s]}var Ci="none",Bd="appear",Hd="enter",Ud="leave",Yx="none",Bn="prepare",ds="start",fs="active",$v="end",B4="prepared";function Gx(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function eY(e,t){var r={animationend:Gx("Animation","AnimationEnd"),transitionend:Gx("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var tY=eY(ji(),typeof window<"u"?window:{}),H4={};if(ji()){var rY=document.createElement("div");H4=rY.style}var qd={};function U4(e){if(qd[e])return qd[e];var t=tY[e];if(t)for(var r=Object.keys(t),n=r.length,a=0;a<n;a+=1){var i=r[a];if(Object.prototype.hasOwnProperty.call(t,i)&&i in H4)return qd[e]=t[i],qd[e]}return""}var q4=U4("animationend"),W4=U4("transitionend"),V4=!!(q4&&W4),Kx=q4||"animationend",Xx=W4||"transitionend";function Zx(e,t){if(!e)return null;if(Mt(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const nY=function(e){var t=F.useRef();function r(a){a&&(a.removeEventListener(Xx,e),a.removeEventListener(Kx,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(Xx,e),a.addEventListener(Kx,e),t.current=a)}return ee.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var Y4=ji()?F.useLayoutEffect:F.useEffect,G4=function(t){return+setTimeout(t,16)},K4=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(G4=function(t){return window.requestAnimationFrame(t)},K4=function(t){return window.cancelAnimationFrame(t)});var Jx=0,kh=new Map;function X4(e){kh.delete(e)}var Uf=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Jx+=1;var n=Jx;function a(i){if(i===0)X4(n),t();else{var s=G4(function(){a(i-1)});kh.set(n,s)}}return a(r),n};Uf.cancel=function(e){var t=kh.get(e);return X4(e),K4(t)};process.env.NODE_ENV!=="production"&&(Uf.ids=function(){return kh});const aY=function(){var e=ee.useRef(null);function t(){Uf.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Uf(function(){a<=1?n({isCanceled:function(){return i!==e.current}}):r(n,a-1)});e.current=i}return ee.useEffect(function(){return function(){t()}},[]),[r,t]};var iY=[Bn,ds,fs,$v],oY=[Bn,B4],Z4=!1,sY=!0;function J4(e){return e===fs||e===$v}const uY=function(e,t,r){var n=ec(Yx),a=Ge(n,2),i=a[0],s=a[1],l=aY(),u=Ge(l,2),c=u[0],m=u[1];function p(){s(Bn,!0)}var g=t?oY:iY;return Y4(function(){if(i!==Yx&&i!==$v){var y=g.indexOf(i),x=g[y+1],E=r(i);E===Z4?s(x,!0):x&&c(function(k){function T(){k.isCanceled()||s(x,!0)}E===!0?T():Promise.resolve(E).then(T)})}},[e,i]),ee.useEffect(function(){return function(){m()}},[]),[p,i]};function lY(e,t,r,n){var a=n.motionEnter,i=a===void 0?!0:a,s=n.motionAppear,l=s===void 0?!0:s,u=n.motionLeave,c=u===void 0?!0:u,m=n.motionDeadline,p=n.motionLeaveImmediately,g=n.onAppearPrepare,y=n.onEnterPrepare,x=n.onLeavePrepare,E=n.onAppearStart,k=n.onEnterStart,T=n.onLeaveStart,w=n.onAppearActive,S=n.onEnterActive,f=n.onLeaveActive,h=n.onAppearEnd,v=n.onEnterEnd,_=n.onLeaveEnd,R=n.onVisibleChanged,C=ec(),P=Ge(C,2),M=P[0],U=P[1],L=QV(Ci),N=Ge(L,2),j=N[0],O=N[1],I=ec(null),z=Ge(I,2),B=z[0],H=z[1],q=j(),J=F.useRef(!1),re=F.useRef(null);function ne(){return r()}var se=F.useRef(!1);function ce(){O(Ci),H(null,!0)}var le=Zn(function(Ne){var Oe=j();if(Oe!==Ci){var at=ne();if(!(Ne&&!Ne.deadline&&Ne.target!==at)){var Pr=se.current,Wr;Oe===Bd&&Pr?Wr=h==null?void 0:h(at,Ne):Oe===Hd&&Pr?Wr=v==null?void 0:v(at,Ne):Oe===Ud&&Pr&&(Wr=_==null?void 0:_(at,Ne)),Pr&&Wr!==!1&&ce()}}}),ye=nY(le),we=Ge(ye,1),Ee=we[0],Le=function(Oe){switch(Oe){case Bd:return Ae(Ae(Ae({},Bn,g),ds,E),fs,w);case Hd:return Ae(Ae(Ae({},Bn,y),ds,k),fs,S);case Ud:return Ae(Ae(Ae({},Bn,x),ds,T),fs,f);default:return{}}},he=ee.useMemo(function(){return Le(q)},[q]),qe=uY(q,!e,function(Ne){if(Ne===Bn){var Oe=he[Bn];return Oe?Oe(ne()):Z4}if(Je in he){var at;H(((at=he[Je])===null||at===void 0?void 0:at.call(he,ne(),null))||null)}return Je===fs&&q!==Ci&&(Ee(ne()),m>0&&(clearTimeout(re.current),re.current=setTimeout(function(){le({deadline:!0})},m))),Je===B4&&ce(),sY}),oe=Ge(qe,2),De=oe[0],Je=oe[1],Ct=J4(Je);se.current=Ct;var Et=F.useRef(null);Y4(function(){if(!(J.current&&Et.current===t)){U(t);var Ne=J.current;J.current=!0;var Oe;!Ne&&t&&l&&(Oe=Bd),Ne&&t&&i&&(Oe=Hd),(Ne&&!t&&c||!Ne&&p&&!t&&c)&&(Oe=Ud);var at=Le(Oe);Oe&&(e||at[Bn])?(O(Oe),De()):O(Ci),Et.current=t}},[t]),F.useEffect(function(){(q===Bd&&!l||q===Hd&&!i||q===Ud&&!c)&&O(Ci)},[l,i,c]),F.useEffect(function(){return function(){J.current=!1,clearTimeout(re.current)}},[]);var Fe=ee.useRef(!1);F.useEffect(function(){M&&(Fe.current=!0),M!==void 0&&q===Ci&&((Fe.current||M)&&(R==null||R(M)),Fe.current=!0)},[M,q]);var We=B;return he[Bn]&&Je===ds&&(We=pe({transition:"none"},We)),[q,Je,We,M??t]}function cY(e){var t=e;Mt(e)==="object"&&(t=e.transitionSupport);function r(a,i){return!!(a.motionName&&t&&i!==!1)}var n=ee.forwardRef(function(a,i){var s=a.visible,l=s===void 0?!0:s,u=a.removeOnLeave,c=u===void 0?!0:u,m=a.forceRender,p=a.children,g=a.motionName,y=a.leavedClassName,x=a.eventProps,E=ee.useContext(XV),k=E.motion,T=r(a,k),w=F.useRef(),S=F.useRef();function f(){try{return w.current instanceof HTMLElement?w.current:KV(S.current)}catch{return null}}var h=lY(T,l,f,a),v=Ge(h,4),_=v[0],R=v[1],C=v[2],P=v[3],M=ee.useRef(P);P&&(M.current=!0);var U=ee.useCallback(function(z){w.current=z,sV(i,z)},[i]),L,N=pe(pe({},x),{},{visible:l});if(!p)L=null;else if(_===Ci)P?L=p(pe({},N),U):!c&&M.current&&y?L=p(pe(pe({},N),{},{className:y}),U):m||!c&&!y?L=p(pe(pe({},N),{},{style:{display:"none"}}),U):L=null;else{var j;R===Bn?j="prepare":J4(R)?j="active":R===ds&&(j="start");var O=Zx(g,"".concat(_,"-").concat(j));L=p(pe(pe({},N),{},{className:Te(Zx(g,_),Ae(Ae({},O,O&&j),g,typeof g=="string")),style:C}),U)}if(ee.isValidElement(L)&&uV(L)){var I=lV(L);I||(L=ee.cloneElement(L,{ref:U}))}return ee.createElement(JV,{ref:S},L)});return n.displayName="CSSMotion",n}const Q4=cY(V4);var C1="add",E1="keep",k1="remove",hg="removed";function dY(e){var t;return e&&Mt(e)==="object"&&"key"in e?t=e:t={key:e},pe(pe({},t),{},{key:String(t.key)})}function T1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(dY)}function fY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,a=t.length,i=T1(e),s=T1(t);i.forEach(function(c){for(var m=!1,p=n;p<a;p+=1){var g=s[p];if(g.key===c.key){n<p&&(r=r.concat(s.slice(n,p).map(function(y){return pe(pe({},y),{},{status:C1})})),n=p),r.push(pe(pe({},g),{},{status:E1})),n+=1,m=!0;break}}m||r.push(pe(pe({},c),{},{status:k1}))}),n<a&&(r=r.concat(s.slice(n).map(function(c){return pe(pe({},c),{},{status:C1})})));var l={};r.forEach(function(c){var m=c.key;l[m]=(l[m]||0)+1});var u=Object.keys(l).filter(function(c){return l[c]>1});return u.forEach(function(c){r=r.filter(function(m){var p=m.key,g=m.status;return p!==c||g!==k1}),r.forEach(function(m){m.key===c&&(m.status=E1)})}),r}var hY=["component","children","onVisibleChanged","onAllRemoved"],pY=["status"],mY=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function gY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Q4,r=function(n){Ch(i,n);var a=Eh(i);function i(){var s;ya(this,i);for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return s=a.call.apply(a,[this].concat(u)),Ae(wo(s),"state",{keyEntities:[]}),Ae(wo(s),"removeKey",function(m){s.setState(function(p){var g=p.keyEntities.map(function(y){return y.key!==m?y:pe(pe({},y),{},{status:hg})});return{keyEntities:g}},function(){var p=s.state.keyEntities,g=p.filter(function(y){var x=y.status;return x!==hg}).length;g===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return _a(i,[{key:"render",value:function(){var l=this,u=this.state.keyEntities,c=this.props,m=c.component,p=c.children,g=c.onVisibleChanged;c.onAllRemoved;var y=Ii(c,hY),x=m||ee.Fragment,E={};return mY.forEach(function(k){E[k]=y[k],delete y[k]}),delete y.keys,ee.createElement(x,y,u.map(function(k,T){var w=k.status,S=Ii(k,pY),f=w===C1||w===E1;return ee.createElement(t,nt({},E,{key:S.key,visible:f,eventProps:S,onVisibleChanged:function(v){g==null||g(v,{key:S.key}),v||l.removeKey(S.key)}}),function(h,v){return p(pe(pe({},h),{},{index:T}),v)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,u){var c=l.keys,m=u.keyEntities,p=T1(c),g=fY(m,p);return{keyEntities:g.filter(function(y){var x=m.find(function(E){var k=E.key;return y.key===k});return!(x&&x.status===hg&&y.status===k1)})}}}]),i}(ee.Component);return Ae(r,"defaultProps",{component:"div"}),r}const vY=gY(V4);function bY(e,t){const{children:r,upload:n,rootClassName:a}=e,i=F.useRef(null);return F.useImperativeHandle(t,()=>i.current),F.createElement(Z.Upload,nt({},n,{showUploadList:!1,rootClassName:a,ref:i}),r)}const eE=F.forwardRef(bY);function tc(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var yY="%";function O1(e){return e.join(yY)}var _Y=function(){function e(t){ya(this,e),Ae(this,"instanceId",void 0),Ae(this,"cache",new Map),this.instanceId=t}return _a(e,[{key:"get",value:function(r){return this.opGet(O1(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(O1(r),n)}},{key:"opUpdate",value:function(r,n){var a=this.cache.get(r),i=n(a);i===null?this.cache.delete(r):this.cache.set(r,i)}}]),e}(),Rs="data-token-hash",Yn="data-css-hash",wY="data-cache-path",Pi="__cssinjs_instance__";function xY(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Yn,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(a){a[Pi]=a[Pi]||e,a[Pi]===e&&document.head.insertBefore(a,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Yn,"]"))).forEach(function(a){var i=a.getAttribute(Yn);if(n[i]){if(a[Pi]===e){var s;(s=a.parentNode)===null||s===void 0||s.removeChild(a)}}else n[i]=!0})}return new _Y(e)}var Th=ee.createContext({hashPriority:"low",cache:xY(),defaultCache:!0});function SY(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var zv=function(){function e(){ya(this,e),Ae(this,"cache",void 0),Ae(this,"keys",void 0),Ae(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return _a(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return r.forEach(function(l){if(!s)s=void 0;else{var u;s=(u=s)===null||u===void 0||(u=u.map)===null||u===void 0?void 0:u.get(l)}}),(n=s)!==null&&n!==void 0&&n.value&&i&&(s.value[1]=this.cacheCallTimes++),(a=s)===null||a===void 0?void 0:a.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var a=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,m){var p=Ge(c,2),g=p[1];return a.internalGet(m)[1]<g?[m,a.internalGet(m)[1]]:c},[this.keys[0],this.cacheCallTimes]),s=Ge(i,1),l=s[0];this.delete(l)}this.keys.push(r)}var u=this.cache;r.forEach(function(c,m){if(m===r.length-1)u.set(c,{value:[n,a.cacheCallTimes++]});else{var p=u.get(c);p?p.map||(p.map=new Map):u.set(c,{map:new Map}),u=u.get(c).map}})}},{key:"deleteByPath",value:function(r,n){var a=r.get(n[0]);if(n.length===1){var i;return a.map?r.set(n[0],{map:a.map}):r.delete(n[0]),(i=a.value)===null||i===void 0?void 0:i[0]}var s=this.deleteByPath(a.map,n.slice(1));return(!a.map||a.map.size===0)&&!a.value&&r.delete(n[0]),s}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!SY(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();Ae(zv,"MAX_CACHE_SIZE",20);Ae(zv,"MAX_CACHE_OFFSET",5);var Qx=0,tE=function(){function e(t){ya(this,e),Ae(this,"derivatives",void 0),Ae(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Qx,t.length===0&&rv(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Qx+=1}return _a(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),pg=new zv;function CY(e){var t=Array.isArray(e)?e:[e];return pg.has(t)||pg.set(t,new tE(t)),pg.get(t)}var EY=new WeakMap,mg={};function kY(e,t){for(var r=EY,n=0;n<t.length;n+=1){var a=t[n];r.has(a)||r.set(a,new WeakMap),r=r.get(a)}return r.has(mg)||r.set(mg,e()),r.get(mg)}var e6=new WeakMap;function Ll(e){var t=e6.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof tE?t+=n.id:n&&Mt(n)==="object"?t+=Ll(n):t+=n}),t=tc(t),e6.set(e,t)),t}function t6(e,t){return tc("".concat(t,"_").concat(Ll(e)))}var A1=ji();function ai(e){return typeof e=="number"?"".concat(e,"px"):e}function qf(e,t,r){var n,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var s=pe(pe({},a),{},(n={},Ae(n,Rs,t),Ae(n,Yn,r),n)),l=Object.keys(s).map(function(u){var c=s[u];return c?"".concat(u,'="').concat(c,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var yf=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).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()},TY=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(a){var i=Ge(a,2),s=i[0],l=i[1];return"".concat(s,":").concat(l,";")}).join(""),"}"):""},rE=function(t,r,n){var a={},i={};return Object.entries(t).forEach(function(s){var l,u,c=Ge(s,2),m=c[0],p=c[1];if(n!=null&&(l=n.preserve)!==null&&l!==void 0&&l[m])i[m]=p;else if((typeof p=="string"||typeof p=="number")&&!(n!=null&&(u=n.ignore)!==null&&u!==void 0&&u[m])){var g,y=yf(m,n==null?void 0:n.prefix);a[y]=typeof p=="number"&&!(n!=null&&(g=n.unitless)!==null&&g!==void 0&&g[m])?"".concat(p,"px"):String(p),i[m]="var(".concat(y,")")}}),[i,TY(a,r,{scope:n==null?void 0:n.scope})]},OY=pe({},ee),r6=OY.useInsertionEffect,AY=function(t,r,n){ee.useMemo(t,n),jv(function(){return r(!0)},n)},RY=r6?function(e,t,r){return r6(function(){return e(),t()},r)}:AY,PY=pe({},ee),DY=PY.useInsertionEffect,MY=function(t){var r=[],n=!1;function a(i){if(n){process.env.NODE_ENV!=="production"&&rv(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(i)}return ee.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),a},FY=function(){return function(t){t()}},NY=typeof DY<"u"?MY:FY;function IY(){return!1}var R1=!1;function LY(){return R1}const jY=process.env.NODE_ENV==="production"?IY:LY;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Wd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(Wd&&typeof Wd.webpackHotUpdate=="function"){var $Y=Wd.webpackHotUpdate;Wd.webpackHotUpdate=function(){return R1=!0,setTimeout(function(){R1=!1},0),$Y.apply(void 0,arguments)}}}function Bv(e,t,r,n,a){var i=ee.useContext(Th),s=i.cache,l=[e].concat(Eo(t)),u=O1(l),c=NY([u]),m=jY(),p=function(E){s.opUpdate(u,function(k){var T=k||[void 0,void 0],w=Ge(T,2),S=w[0],f=S===void 0?0:S,h=w[1],v=h;process.env.NODE_ENV!=="production"&&h&&m&&(n==null||n(v,m),v=null);var _=v||r(),R=[f,_];return E?E(R):R})};ee.useMemo(function(){p()},[u]);var g=s.opGet(u);process.env.NODE_ENV!=="production"&&!g&&(p(),g=s.opGet(u));var y=g[1];return RY(function(){a==null||a(y)},function(x){return p(function(E){var k=Ge(E,2),T=k[0],w=k[1];return x&&T===0&&(a==null||a(y)),[T+1,w]}),function(){s.opUpdate(u,function(E){var k=E||[],T=Ge(k,2),w=T[0],S=w===void 0?0:w,f=T[1],h=S-1;return h===0?(c(function(){(x||!s.opGet(u))&&(n==null||n(f,!1))}),null):[S-1,f]})}},[u]),y}var zY={},BY=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",lo=new Map;function HY(e){lo.set(e,(lo.get(e)||0)+1)}function UY(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Rs,'="').concat(e,'"]'));r.forEach(function(n){if(n[Pi]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var qY=0;function WY(e,t){lo.set(e,(lo.get(e)||0)-1);var r=Array.from(lo.keys()),n=r.filter(function(a){var i=lo.get(a)||0;return i<=0});r.length-n.length>qY&&n.forEach(function(a){UY(a,t),lo.delete(a)})}var VY=function(t,r,n,a){var i=n.getDerivativeToken(t),s=pe(pe({},i),r);return a&&(s=a(s)),s},nE="token";function YY(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=F.useContext(Th),a=n.cache.instanceId,i=n.container,s=r.salt,l=s===void 0?"":s,u=r.override,c=u===void 0?zY:u,m=r.formatToken,p=r.getComputedToken,g=r.cssVar,y=kY(function(){return Object.assign.apply(Object,[{}].concat(Eo(t)))},t),x=Ll(y),E=Ll(c),k=g?Ll(g):"",T=Bv(nE,[l,e.id,x,E,k],function(){var w,S=p?p(y,c,e):VY(y,c,e,m),f=pe({},S),h="";if(g){var v=rE(S,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),_=Ge(v,2);S=_[0],h=_[1]}var R=t6(S,l);S._tokenKey=R,f._tokenKey=t6(f,l);var C=(w=g==null?void 0:g.key)!==null&&w!==void 0?w:R;S._themeKey=C,HY(C);var P="".concat(BY,"-").concat(tc(R));return S._hashId=P,[S,P,f,h,(g==null?void 0:g.key)||""]},function(w){WY(w[0]._themeKey,a)},function(w){var S=Ge(w,4),f=S[0],h=S[3];if(g&&h){var v=bo(h,tc("css-variables-".concat(f._themeKey)),{mark:Yn,prepend:"queue",attachTo:i,priority:-999});v[Pi]=a,v.setAttribute(Rs,f._themeKey)}});return T}var GY=function(t,r,n){var a=Ge(t,5),i=a[2],s=a[3],l=a[4],u=n||{},c=u.plain;if(!s)return null;var m=i._tokenKey,p=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},y=qf(s,l,m,g,c);return[p,m,y]},KY={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},aE="comm",iE="rule",oE="decl",XY="@import",ZY="@namespace",JY="@keyframes",QY="@layer",sE=Math.abs,Hv=String.fromCharCode;function uE(e){return e.trim()}function _f(e,t,r){return e.replace(t,r)}function eG(e,t,r){return e.indexOf(t,r)}function xs(e,t){return e.charCodeAt(t)|0}function Ps(e,t,r){return e.slice(t,r)}function oa(e){return e.length}function tG(e){return e.length}function Vd(e,t){return t.push(e),e}var Oh=1,Ds=1,lE=0,En=0,Zt=0,Ys="";function Uv(e,t,r,n,a,i,s,l){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:Oh,column:Ds,length:s,return:"",siblings:l}}function rG(){return Zt}function nG(){return Zt=En>0?xs(Ys,--En):0,Ds--,Zt===10&&(Ds=1,Oh--),Zt}function Gn(){return Zt=En<lE?xs(Ys,En++):0,Ds++,Zt===10&&(Ds=1,Oh++),Zt}function Di(){return xs(Ys,En)}function wf(){return En}function Ah(e,t){return Ps(Ys,e,t)}function rc(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 aG(e){return Oh=Ds=1,lE=oa(Ys=e),En=0,[]}function iG(e){return Ys="",e}function gg(e){return uE(Ah(En-1,P1(e===91?e+2:e===40?e+1:e)))}function oG(e){for(;(Zt=Di())&&Zt<33;)Gn();return rc(e)>2||rc(Zt)>3?"":" "}function sG(e,t){for(;--t&&Gn()&&!(Zt<48||Zt>102||Zt>57&&Zt<65||Zt>70&&Zt<97););return Ah(e,wf()+(t<6&&Di()==32&&Gn()==32))}function P1(e){for(;Gn();)switch(Zt){case e:return En;case 34:case 39:e!==34&&e!==39&&P1(Zt);break;case 40:e===41&&P1(e);break;case 92:Gn();break}return En}function uG(e,t){for(;Gn()&&e+Zt!==57;)if(e+Zt===84&&Di()===47)break;return"/*"+Ah(t,En-1)+"*"+Hv(e===47?e:Gn())}function lG(e){for(;!rc(Di());)Gn();return Ah(e,En)}function cG(e){return iG(xf("",null,null,null,[""],e=aG(e),0,[0],e))}function xf(e,t,r,n,a,i,s,l,u){for(var c=0,m=0,p=s,g=0,y=0,x=0,E=1,k=1,T=1,w=0,S="",f=a,h=i,v=n,_=S;k;)switch(x=w,w=Gn()){case 40:if(x!=108&&xs(_,p-1)==58){eG(_+=_f(gg(w),"&","&\f"),"&\f",sE(c?l[c-1]:0))!=-1&&(T=-1);break}case 34:case 39:case 91:_+=gg(w);break;case 9:case 10:case 13:case 32:_+=oG(x);break;case 92:_+=sG(wf()-1,7);continue;case 47:switch(Di()){case 42:case 47:Vd(dG(uG(Gn(),wf()),t,r,u),u),(rc(x||1)==5||rc(Di()||1)==5)&&oa(_)&&Ps(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*E:l[c++]=oa(_)*T;case 125*E:case 59:case 0:switch(w){case 0:case 125:k=0;case 59+m:T==-1&&(_=_f(_,/\f/g,"")),y>0&&(oa(_)-p||E===0&&x===47)&&Vd(y>32?a6(_+";",n,r,p-1,u):a6(_f(_," ","")+";",n,r,p-2,u),u);break;case 59:_+=";";default:if(Vd(v=n6(_,t,r,c,m,a,l,S,f=[],h=[],p,i),i),w===123)if(m===0)xf(_,t,v,v,f,i,p,l,h);else{switch(g){case 99:if(xs(_,3)===110)break;case 108:if(xs(_,2)===97)break;default:m=0;case 100:case 109:case 115:}m?xf(e,v,v,n&&Vd(n6(e,v,v,0,0,a,l,S,a,f=[],p,h),h),a,h,p,l,n?f:h):xf(_,v,v,v,[""],h,0,l,h)}}c=m=y=0,E=T=1,S=_="",p=s;break;case 58:p=1+oa(_),y=x;default:if(E<1){if(w==123)--E;else if(w==125&&E++==0&&nG()==125)continue}switch(_+=Hv(w),w*E){case 38:T=m>0?1:(_+="\f",-1);break;case 44:l[c++]=(oa(_)-1)*T,T=1;break;case 64:Di()===45&&(_+=gg(Gn())),g=Di(),m=p=oa(S=_+=lG(wf())),w++;break;case 45:x===45&&oa(_)==2&&(E=0)}}return i}function n6(e,t,r,n,a,i,s,l,u,c,m,p){for(var g=a-1,y=a===0?i:[""],x=tG(y),E=0,k=0,T=0;E<n;++E)for(var w=0,S=Ps(e,g+1,g=sE(k=s[E])),f=e;w<x;++w)(f=uE(k>0?y[w]+" "+S:_f(S,/&\f/g,y[w])))&&(u[T++]=f);return Uv(e,t,r,a===0?iE:l,u,c,m,p)}function dG(e,t,r,n){return Uv(e,t,r,aE,Hv(rG()),Ps(e,2,-2),0,n)}function a6(e,t,r,n,a){return Uv(e,t,r,oE,Ps(e,0,n),Ps(e,n+1,-1),n,a)}function D1(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function fG(e,t,r,n){switch(e.type){case QY:if(e.children.length)break;case XY:case ZY:case oE:return e.return=e.return||e.value;case aE:return"";case JY:return e.return=e.value+"{"+D1(e.children,n)+"}";case iE:if(!oa(e.value=e.props.join(",")))return""}return oa(r=D1(e.children,n))?e.return=e.value+"{"+r+"}":""}function cE(e,t){var r=t.path,n=t.parentSelectors;ko(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var hG=function(t,r,n){if(t==="content"){var a=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof r!="string"||i.indexOf(r)===-1&&!a.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&cE("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},pG=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&cE("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},i6="data-ant-cssinjs-cache-path",dE="_FILE_STYLE__",xo,fE=!0;function mG(){if(!xo&&(xo={},ji())){var e=document.createElement("div");e.className=i6,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(/"$/,""),t.split(";").forEach(function(a){var i=a.split(":"),s=Ge(i,2),l=s[0],u=s[1];xo[l]=u});var r=document.querySelector("style[".concat(i6,"]"));if(r){var n;fE=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function gG(e){return mG(),!!xo[e]}function vG(e){var t=xo[e],r=null;if(t&&ji())if(fE)r=dE;else{var n=document.querySelector("style[".concat(Yn,'="').concat(xo[e],'"]'));n?r=n.innerHTML:delete xo[e]}return[r,t]}var hE="_skip_check_",pE="_multi_value_";function Sf(e){var t=D1(cG(e),fG);return t.replace(/\{%%%\:[^;];}/g,";")}function bG(e){return Mt(e)==="object"&&e&&(hE in e||pE in e)}function o6(e,t,r){if(!t)return e;var n=".".concat(t),a=r==="low"?":where(".concat(n,")"):n,i=e.split(",").map(function(s){var l,u=s.trim().split(/\s+/),c=u[0]||"",m=((l=c.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return c="".concat(m).concat(a).concat(c.slice(m.length)),[c].concat(Eo(u.slice(1))).join(" ")});return i.join(",")}var yG=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,i=n.injectHash,s=n.parentSelectors,l=r.hashId,u=r.layer,c=r.path,m=r.hashPriority,p=r.transformers,g=p===void 0?[]:p,y=r.linters,x=y===void 0?[]:y,E="",k={};function T(f){var h=f.getName(l);if(!k[h]){var v=e(f.style,r,{root:!1,parentSelectors:s}),_=Ge(v,1),R=_[0];k[h]="@keyframes ".concat(f.getName(l)).concat(R)}}function w(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return f.forEach(function(v){Array.isArray(v)?w(v,h):v&&h.push(v)}),h}var S=w(Array.isArray(t)?t:[t]);return S.forEach(function(f){var h=typeof f=="string"&&!a?{}:f;if(typeof h=="string")E+="".concat(h,`
|
|
440
|
+
}`)),F.useEffect(function(){var l=t.current,u=_V(l);bo(s,"@ant-design-icons",{prepend:!i,csp:n,attachTo:u})},[])},EV=["icon","className","onClick","style","primaryColor","secondaryColor"],Il={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function kV(e){var t=e.primaryColor,r=e.secondaryColor;Il.primaryColor=t,Il.secondaryColor=r||yC(t),Il.calculated=!!r}function TV(){return pe({},Il)}var Vs=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,s=t.primaryColor,l=t.secondaryColor,u=Ii(t,EV),c=ee.useRef(),m=Il;if(s&&(m={primaryColor:s,secondaryColor:l||yC(s)}),CV(c),xV(Ux(r),"icon should be icon definiton, but got ".concat(r)),!Ux(r))return null;var p=r;return p&&typeof p.icon=="function"&&(p=pe(pe({},p),{},{icon:p.icon(m.primaryColor,m.secondaryColor)})),x1(p.icon,"svg-".concat(p.name),pe(pe({className:n,onClick:a,style:i,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:c}))};Vs.displayName="IconReact";Vs.getTwoToneColors=TV;Vs.setTwoToneColors=kV;function wC(e){var t=_C(e),r=Ge(t,2),n=r[0],a=r[1];return Vs.setTwoToneColors({primaryColor:n,secondaryColor:a})}function OV(){var e=Vs.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var AV=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];wC(w1.primary);var Xt=ee.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,s=e.tabIndex,l=e.onClick,u=e.twoToneColor,c=Ii(e,AV),m=ee.useContext(mC),p=m.prefixCls,g=p===void 0?"anticon":p,y=m.rootClassName,x=Te(y,g,Ae(Ae({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!a||n.name==="loading"),r),E=s;E===void 0&&l&&(E=-1);var k=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,T=_C(u),w=Ge(T,2),S=w[0],f=w[1];return ee.createElement("span",nt({role:"img","aria-label":n.name},c,{ref:t,tabIndex:E,onClick:l,className:x}),ee.createElement(Vs,{icon:n,primaryColor:S,secondaryColor:f,style:k}))});Xt.displayName="AntdIcon";Xt.getTwoToneColor=OV;Xt.setTwoToneColor=wC;var RV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:lM}))},xC=ee.forwardRef(RV);process.env.NODE_ENV!=="production"&&(xC.displayName="ArrowUpOutlined");var PV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:cM}))},SC=ee.forwardRef(PV);process.env.NODE_ENV!=="production"&&(SC.displayName="AudioMutedOutlined");var DV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:dM}))},CC=ee.forwardRef(DV);process.env.NODE_ENV!=="production"&&(CC.displayName="AudioOutlined");var MV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:bM}))},EC=ee.forwardRef(MV);process.env.NODE_ENV!=="production"&&(EC.displayName="ClearOutlined");var FV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:yM}))},kC=ee.forwardRef(FV);process.env.NODE_ENV!=="production"&&(kC.displayName="CloseCircleFilled");var NV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:F8}))},TC=ee.forwardRef(NV);process.env.NODE_ENV!=="production"&&(TC.displayName="CloseOutlined");var IV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:EM}))},OC=ee.forwardRef(IV);process.env.NODE_ENV!=="production"&&(OC.displayName="EllipsisOutlined");var LV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:kM}))},AC=ee.forwardRef(LV);process.env.NODE_ENV!=="production"&&(AC.displayName="FileExcelFilled");var jV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:TM}))},RC=ee.forwardRef(jV);process.env.NODE_ENV!=="production"&&(RC.displayName="FileImageFilled");var $V=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:OM}))},PC=ee.forwardRef($V);process.env.NODE_ENV!=="production"&&(PC.displayName="FileMarkdownFilled");var zV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:AM}))},DC=ee.forwardRef(zV);process.env.NODE_ENV!=="production"&&(DC.displayName="FilePdfFilled");var BV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:RM}))},MC=ee.forwardRef(BV);process.env.NODE_ENV!=="production"&&(MC.displayName="FilePptFilled");var HV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:PM}))},FC=ee.forwardRef(HV);process.env.NODE_ENV!=="production"&&(FC.displayName="FileTextFilled");var UV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:DM}))},NC=ee.forwardRef(UV);process.env.NODE_ENV!=="production"&&(NC.displayName="FileWordFilled");var qV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:MM}))},IC=ee.forwardRef(qV);process.env.NODE_ENV!=="production"&&(IC.displayName="FileZipFilled");var WV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:j8}))},LC=ee.forwardRef(WV);process.env.NODE_ENV!=="production"&&(LC.displayName="LeftOutlined");var VV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:H8}))},jC=ee.forwardRef(VV);process.env.NODE_ENV!=="production"&&(jC.displayName="PlusOutlined");var YV=function(t,r){return ee.createElement(Xt,nt({},t,{ref:r,icon:U8}))},$C=ee.forwardRef(YV);process.env.NODE_ENV!=="production"&&($C.displayName="RightOutlined");function Wx(e){return e instanceof HTMLElement||e instanceof SVGElement}function GV(e){return e&&Mt(e)==="object"&&Wx(e.nativeElement)?e.nativeElement:Wx(e)?e:null}function KV(e){var t=GV(e);if(t)return t;if(e instanceof F.Component){var r;return(r=zl.findDOMNode)===null||r===void 0?void 0:r.call(zl,e)}return null}var XV=ee.createContext({});function ya(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h8(n.key),n)}}function _a(e,t,r){return t&&Vx(e.prototype,t),r&&Vx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function S1(e,t){return S1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},S1(e,t)}function Ch(e,t){if(typeof t!="function"&&t!==null)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&&S1(e,t)}function Hf(e){return Hf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hf(e)}function zC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zC=function(){return!!e})()}function wo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZV(e,t){if(t&&(Mt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wo(e)}function Eh(e){var t=zC();return function(){var r,n=Hf(e);if(t){var a=Hf(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return ZV(this,r)}}var JV=function(e){Ch(r,e);var t=Eh(r);function r(){return ya(this,r),t.apply(this,arguments)}return _a(r,[{key:"render",value:function(){return this.props.children}}]),r}(ee.Component);function QV(e){var t=ee.useReducer(function(l){return l+1},0),r=Ge(t,2),n=r[1],a=ee.useRef(e),i=Zn(function(){return a.current}),s=Zn(function(l){a.current=typeof l=="function"?l(a.current):l,n()});return[i,s]}var Ci="none",Bd="appear",Hd="enter",Ud="leave",Yx="none",Bn="prepare",ds="start",fs="active",$v="end",BC="prepared";function Gx(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function eY(e,t){var r={animationend:Gx("Animation","AnimationEnd"),transitionend:Gx("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var tY=eY(ji(),typeof window<"u"?window:{}),HC={};if(ji()){var rY=document.createElement("div");HC=rY.style}var qd={};function UC(e){if(qd[e])return qd[e];var t=tY[e];if(t)for(var r=Object.keys(t),n=r.length,a=0;a<n;a+=1){var i=r[a];if(Object.prototype.hasOwnProperty.call(t,i)&&i in HC)return qd[e]=t[i],qd[e]}return""}var qC=UC("animationend"),WC=UC("transitionend"),VC=!!(qC&&WC),Kx=qC||"animationend",Xx=WC||"transitionend";function Zx(e,t){if(!e)return null;if(Mt(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const nY=function(e){var t=F.useRef();function r(a){a&&(a.removeEventListener(Xx,e),a.removeEventListener(Kx,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(Xx,e),a.addEventListener(Kx,e),t.current=a)}return ee.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var YC=ji()?F.useLayoutEffect:F.useEffect,GC=function(t){return+setTimeout(t,16)},KC=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(GC=function(t){return window.requestAnimationFrame(t)},KC=function(t){return window.cancelAnimationFrame(t)});var Jx=0,kh=new Map;function XC(e){kh.delete(e)}var Uf=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Jx+=1;var n=Jx;function a(i){if(i===0)XC(n),t();else{var s=GC(function(){a(i-1)});kh.set(n,s)}}return a(r),n};Uf.cancel=function(e){var t=kh.get(e);return XC(e),KC(t)};process.env.NODE_ENV!=="production"&&(Uf.ids=function(){return kh});const aY=function(){var e=ee.useRef(null);function t(){Uf.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Uf(function(){a<=1?n({isCanceled:function(){return i!==e.current}}):r(n,a-1)});e.current=i}return ee.useEffect(function(){return function(){t()}},[]),[r,t]};var iY=[Bn,ds,fs,$v],oY=[Bn,BC],ZC=!1,sY=!0;function JC(e){return e===fs||e===$v}const uY=function(e,t,r){var n=ec(Yx),a=Ge(n,2),i=a[0],s=a[1],l=aY(),u=Ge(l,2),c=u[0],m=u[1];function p(){s(Bn,!0)}var g=t?oY:iY;return YC(function(){if(i!==Yx&&i!==$v){var y=g.indexOf(i),x=g[y+1],E=r(i);E===ZC?s(x,!0):x&&c(function(k){function T(){k.isCanceled()||s(x,!0)}E===!0?T():Promise.resolve(E).then(T)})}},[e,i]),ee.useEffect(function(){return function(){m()}},[]),[p,i]};function lY(e,t,r,n){var a=n.motionEnter,i=a===void 0?!0:a,s=n.motionAppear,l=s===void 0?!0:s,u=n.motionLeave,c=u===void 0?!0:u,m=n.motionDeadline,p=n.motionLeaveImmediately,g=n.onAppearPrepare,y=n.onEnterPrepare,x=n.onLeavePrepare,E=n.onAppearStart,k=n.onEnterStart,T=n.onLeaveStart,w=n.onAppearActive,S=n.onEnterActive,f=n.onLeaveActive,h=n.onAppearEnd,v=n.onEnterEnd,_=n.onLeaveEnd,R=n.onVisibleChanged,C=ec(),P=Ge(C,2),M=P[0],U=P[1],L=QV(Ci),N=Ge(L,2),j=N[0],O=N[1],I=ec(null),z=Ge(I,2),B=z[0],H=z[1],q=j(),J=F.useRef(!1),re=F.useRef(null);function ne(){return r()}var se=F.useRef(!1);function ce(){O(Ci),H(null,!0)}var le=Zn(function(Ne){var Oe=j();if(Oe!==Ci){var at=ne();if(!(Ne&&!Ne.deadline&&Ne.target!==at)){var Pr=se.current,Wr;Oe===Bd&&Pr?Wr=h==null?void 0:h(at,Ne):Oe===Hd&&Pr?Wr=v==null?void 0:v(at,Ne):Oe===Ud&&Pr&&(Wr=_==null?void 0:_(at,Ne)),Pr&&Wr!==!1&&ce()}}}),ye=nY(le),we=Ge(ye,1),Ee=we[0],Le=function(Oe){switch(Oe){case Bd:return Ae(Ae(Ae({},Bn,g),ds,E),fs,w);case Hd:return Ae(Ae(Ae({},Bn,y),ds,k),fs,S);case Ud:return Ae(Ae(Ae({},Bn,x),ds,T),fs,f);default:return{}}},he=ee.useMemo(function(){return Le(q)},[q]),qe=uY(q,!e,function(Ne){if(Ne===Bn){var Oe=he[Bn];return Oe?Oe(ne()):ZC}if(Je in he){var at;H(((at=he[Je])===null||at===void 0?void 0:at.call(he,ne(),null))||null)}return Je===fs&&q!==Ci&&(Ee(ne()),m>0&&(clearTimeout(re.current),re.current=setTimeout(function(){le({deadline:!0})},m))),Je===BC&&ce(),sY}),oe=Ge(qe,2),De=oe[0],Je=oe[1],Ct=JC(Je);se.current=Ct;var Et=F.useRef(null);YC(function(){if(!(J.current&&Et.current===t)){U(t);var Ne=J.current;J.current=!0;var Oe;!Ne&&t&&l&&(Oe=Bd),Ne&&t&&i&&(Oe=Hd),(Ne&&!t&&c||!Ne&&p&&!t&&c)&&(Oe=Ud);var at=Le(Oe);Oe&&(e||at[Bn])?(O(Oe),De()):O(Ci),Et.current=t}},[t]),F.useEffect(function(){(q===Bd&&!l||q===Hd&&!i||q===Ud&&!c)&&O(Ci)},[l,i,c]),F.useEffect(function(){return function(){J.current=!1,clearTimeout(re.current)}},[]);var Fe=ee.useRef(!1);F.useEffect(function(){M&&(Fe.current=!0),M!==void 0&&q===Ci&&((Fe.current||M)&&(R==null||R(M)),Fe.current=!0)},[M,q]);var We=B;return he[Bn]&&Je===ds&&(We=pe({transition:"none"},We)),[q,Je,We,M??t]}function cY(e){var t=e;Mt(e)==="object"&&(t=e.transitionSupport);function r(a,i){return!!(a.motionName&&t&&i!==!1)}var n=ee.forwardRef(function(a,i){var s=a.visible,l=s===void 0?!0:s,u=a.removeOnLeave,c=u===void 0?!0:u,m=a.forceRender,p=a.children,g=a.motionName,y=a.leavedClassName,x=a.eventProps,E=ee.useContext(XV),k=E.motion,T=r(a,k),w=F.useRef(),S=F.useRef();function f(){try{return w.current instanceof HTMLElement?w.current:KV(S.current)}catch{return null}}var h=lY(T,l,f,a),v=Ge(h,4),_=v[0],R=v[1],C=v[2],P=v[3],M=ee.useRef(P);P&&(M.current=!0);var U=ee.useCallback(function(z){w.current=z,sV(i,z)},[i]),L,N=pe(pe({},x),{},{visible:l});if(!p)L=null;else if(_===Ci)P?L=p(pe({},N),U):!c&&M.current&&y?L=p(pe(pe({},N),{},{className:y}),U):m||!c&&!y?L=p(pe(pe({},N),{},{style:{display:"none"}}),U):L=null;else{var j;R===Bn?j="prepare":JC(R)?j="active":R===ds&&(j="start");var O=Zx(g,"".concat(_,"-").concat(j));L=p(pe(pe({},N),{},{className:Te(Zx(g,_),Ae(Ae({},O,O&&j),g,typeof g=="string")),style:C}),U)}if(ee.isValidElement(L)&&uV(L)){var I=lV(L);I||(L=ee.cloneElement(L,{ref:U}))}return ee.createElement(JV,{ref:S},L)});return n.displayName="CSSMotion",n}const QC=cY(VC);var C1="add",E1="keep",k1="remove",hg="removed";function dY(e){var t;return e&&Mt(e)==="object"&&"key"in e?t=e:t={key:e},pe(pe({},t),{},{key:String(t.key)})}function T1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(dY)}function fY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,a=t.length,i=T1(e),s=T1(t);i.forEach(function(c){for(var m=!1,p=n;p<a;p+=1){var g=s[p];if(g.key===c.key){n<p&&(r=r.concat(s.slice(n,p).map(function(y){return pe(pe({},y),{},{status:C1})})),n=p),r.push(pe(pe({},g),{},{status:E1})),n+=1,m=!0;break}}m||r.push(pe(pe({},c),{},{status:k1}))}),n<a&&(r=r.concat(s.slice(n).map(function(c){return pe(pe({},c),{},{status:C1})})));var l={};r.forEach(function(c){var m=c.key;l[m]=(l[m]||0)+1});var u=Object.keys(l).filter(function(c){return l[c]>1});return u.forEach(function(c){r=r.filter(function(m){var p=m.key,g=m.status;return p!==c||g!==k1}),r.forEach(function(m){m.key===c&&(m.status=E1)})}),r}var hY=["component","children","onVisibleChanged","onAllRemoved"],pY=["status"],mY=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function gY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:QC,r=function(n){Ch(i,n);var a=Eh(i);function i(){var s;ya(this,i);for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return s=a.call.apply(a,[this].concat(u)),Ae(wo(s),"state",{keyEntities:[]}),Ae(wo(s),"removeKey",function(m){s.setState(function(p){var g=p.keyEntities.map(function(y){return y.key!==m?y:pe(pe({},y),{},{status:hg})});return{keyEntities:g}},function(){var p=s.state.keyEntities,g=p.filter(function(y){var x=y.status;return x!==hg}).length;g===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return _a(i,[{key:"render",value:function(){var l=this,u=this.state.keyEntities,c=this.props,m=c.component,p=c.children,g=c.onVisibleChanged;c.onAllRemoved;var y=Ii(c,hY),x=m||ee.Fragment,E={};return mY.forEach(function(k){E[k]=y[k],delete y[k]}),delete y.keys,ee.createElement(x,y,u.map(function(k,T){var w=k.status,S=Ii(k,pY),f=w===C1||w===E1;return ee.createElement(t,nt({},E,{key:S.key,visible:f,eventProps:S,onVisibleChanged:function(v){g==null||g(v,{key:S.key}),v||l.removeKey(S.key)}}),function(h,v){return p(pe(pe({},h),{},{index:T}),v)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,u){var c=l.keys,m=u.keyEntities,p=T1(c),g=fY(m,p);return{keyEntities:g.filter(function(y){var x=m.find(function(E){var k=E.key;return y.key===k});return!(x&&x.status===hg&&y.status===k1)})}}}]),i}(ee.Component);return Ae(r,"defaultProps",{component:"div"}),r}const vY=gY(VC);function bY(e,t){const{children:r,upload:n,rootClassName:a}=e,i=F.useRef(null);return F.useImperativeHandle(t,()=>i.current),F.createElement(X.Upload,nt({},n,{showUploadList:!1,rootClassName:a,ref:i}),r)}const eE=F.forwardRef(bY);function tc(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var yY="%";function O1(e){return e.join(yY)}var _Y=function(){function e(t){ya(this,e),Ae(this,"instanceId",void 0),Ae(this,"cache",new Map),this.instanceId=t}return _a(e,[{key:"get",value:function(r){return this.opGet(O1(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(O1(r),n)}},{key:"opUpdate",value:function(r,n){var a=this.cache.get(r),i=n(a);i===null?this.cache.delete(r):this.cache.set(r,i)}}]),e}(),Rs="data-token-hash",Yn="data-css-hash",wY="data-cache-path",Pi="__cssinjs_instance__";function xY(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Yn,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(a){a[Pi]=a[Pi]||e,a[Pi]===e&&document.head.insertBefore(a,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Yn,"]"))).forEach(function(a){var i=a.getAttribute(Yn);if(n[i]){if(a[Pi]===e){var s;(s=a.parentNode)===null||s===void 0||s.removeChild(a)}}else n[i]=!0})}return new _Y(e)}var Th=ee.createContext({hashPriority:"low",cache:xY(),defaultCache:!0});function SY(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var zv=function(){function e(){ya(this,e),Ae(this,"cache",void 0),Ae(this,"keys",void 0),Ae(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return _a(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return r.forEach(function(l){if(!s)s=void 0;else{var u;s=(u=s)===null||u===void 0||(u=u.map)===null||u===void 0?void 0:u.get(l)}}),(n=s)!==null&&n!==void 0&&n.value&&i&&(s.value[1]=this.cacheCallTimes++),(a=s)===null||a===void 0?void 0:a.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var a=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,m){var p=Ge(c,2),g=p[1];return a.internalGet(m)[1]<g?[m,a.internalGet(m)[1]]:c},[this.keys[0],this.cacheCallTimes]),s=Ge(i,1),l=s[0];this.delete(l)}this.keys.push(r)}var u=this.cache;r.forEach(function(c,m){if(m===r.length-1)u.set(c,{value:[n,a.cacheCallTimes++]});else{var p=u.get(c);p?p.map||(p.map=new Map):u.set(c,{map:new Map}),u=u.get(c).map}})}},{key:"deleteByPath",value:function(r,n){var a=r.get(n[0]);if(n.length===1){var i;return a.map?r.set(n[0],{map:a.map}):r.delete(n[0]),(i=a.value)===null||i===void 0?void 0:i[0]}var s=this.deleteByPath(a.map,n.slice(1));return(!a.map||a.map.size===0)&&!a.value&&r.delete(n[0]),s}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!SY(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();Ae(zv,"MAX_CACHE_SIZE",20);Ae(zv,"MAX_CACHE_OFFSET",5);var Qx=0,tE=function(){function e(t){ya(this,e),Ae(this,"derivatives",void 0),Ae(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Qx,t.length===0&&rv(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Qx+=1}return _a(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),pg=new zv;function CY(e){var t=Array.isArray(e)?e:[e];return pg.has(t)||pg.set(t,new tE(t)),pg.get(t)}var EY=new WeakMap,mg={};function kY(e,t){for(var r=EY,n=0;n<t.length;n+=1){var a=t[n];r.has(a)||r.set(a,new WeakMap),r=r.get(a)}return r.has(mg)||r.set(mg,e()),r.get(mg)}var e6=new WeakMap;function Ll(e){var t=e6.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof tE?t+=n.id:n&&Mt(n)==="object"?t+=Ll(n):t+=n}),t=tc(t),e6.set(e,t)),t}function t6(e,t){return tc("".concat(t,"_").concat(Ll(e)))}var A1=ji();function ai(e){return typeof e=="number"?"".concat(e,"px"):e}function qf(e,t,r){var n,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var s=pe(pe({},a),{},(n={},Ae(n,Rs,t),Ae(n,Yn,r),n)),l=Object.keys(s).map(function(u){var c=s[u];return c?"".concat(u,'="').concat(c,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var yf=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).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()},TY=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(a){var i=Ge(a,2),s=i[0],l=i[1];return"".concat(s,":").concat(l,";")}).join(""),"}"):""},rE=function(t,r,n){var a={},i={};return Object.entries(t).forEach(function(s){var l,u,c=Ge(s,2),m=c[0],p=c[1];if(n!=null&&(l=n.preserve)!==null&&l!==void 0&&l[m])i[m]=p;else if((typeof p=="string"||typeof p=="number")&&!(n!=null&&(u=n.ignore)!==null&&u!==void 0&&u[m])){var g,y=yf(m,n==null?void 0:n.prefix);a[y]=typeof p=="number"&&!(n!=null&&(g=n.unitless)!==null&&g!==void 0&&g[m])?"".concat(p,"px"):String(p),i[m]="var(".concat(y,")")}}),[i,TY(a,r,{scope:n==null?void 0:n.scope})]},OY=pe({},ee),r6=OY.useInsertionEffect,AY=function(t,r,n){ee.useMemo(t,n),jv(function(){return r(!0)},n)},RY=r6?function(e,t,r){return r6(function(){return e(),t()},r)}:AY,PY=pe({},ee),DY=PY.useInsertionEffect,MY=function(t){var r=[],n=!1;function a(i){if(n){process.env.NODE_ENV!=="production"&&rv(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(i)}return ee.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),a},FY=function(){return function(t){t()}},NY=typeof DY<"u"?MY:FY;function IY(){return!1}var R1=!1;function LY(){return R1}const jY=process.env.NODE_ENV==="production"?IY:LY;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Wd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(Wd&&typeof Wd.webpackHotUpdate=="function"){var $Y=Wd.webpackHotUpdate;Wd.webpackHotUpdate=function(){return R1=!0,setTimeout(function(){R1=!1},0),$Y.apply(void 0,arguments)}}}function Bv(e,t,r,n,a){var i=ee.useContext(Th),s=i.cache,l=[e].concat(Eo(t)),u=O1(l),c=NY([u]),m=jY(),p=function(E){s.opUpdate(u,function(k){var T=k||[void 0,void 0],w=Ge(T,2),S=w[0],f=S===void 0?0:S,h=w[1],v=h;process.env.NODE_ENV!=="production"&&h&&m&&(n==null||n(v,m),v=null);var _=v||r(),R=[f,_];return E?E(R):R})};ee.useMemo(function(){p()},[u]);var g=s.opGet(u);process.env.NODE_ENV!=="production"&&!g&&(p(),g=s.opGet(u));var y=g[1];return RY(function(){a==null||a(y)},function(x){return p(function(E){var k=Ge(E,2),T=k[0],w=k[1];return x&&T===0&&(a==null||a(y)),[T+1,w]}),function(){s.opUpdate(u,function(E){var k=E||[],T=Ge(k,2),w=T[0],S=w===void 0?0:w,f=T[1],h=S-1;return h===0?(c(function(){(x||!s.opGet(u))&&(n==null||n(f,!1))}),null):[S-1,f]})}},[u]),y}var zY={},BY=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",lo=new Map;function HY(e){lo.set(e,(lo.get(e)||0)+1)}function UY(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Rs,'="').concat(e,'"]'));r.forEach(function(n){if(n[Pi]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var qY=0;function WY(e,t){lo.set(e,(lo.get(e)||0)-1);var r=Array.from(lo.keys()),n=r.filter(function(a){var i=lo.get(a)||0;return i<=0});r.length-n.length>qY&&n.forEach(function(a){UY(a,t),lo.delete(a)})}var VY=function(t,r,n,a){var i=n.getDerivativeToken(t),s=pe(pe({},i),r);return a&&(s=a(s)),s},nE="token";function YY(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=F.useContext(Th),a=n.cache.instanceId,i=n.container,s=r.salt,l=s===void 0?"":s,u=r.override,c=u===void 0?zY:u,m=r.formatToken,p=r.getComputedToken,g=r.cssVar,y=kY(function(){return Object.assign.apply(Object,[{}].concat(Eo(t)))},t),x=Ll(y),E=Ll(c),k=g?Ll(g):"",T=Bv(nE,[l,e.id,x,E,k],function(){var w,S=p?p(y,c,e):VY(y,c,e,m),f=pe({},S),h="";if(g){var v=rE(S,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),_=Ge(v,2);S=_[0],h=_[1]}var R=t6(S,l);S._tokenKey=R,f._tokenKey=t6(f,l);var C=(w=g==null?void 0:g.key)!==null&&w!==void 0?w:R;S._themeKey=C,HY(C);var P="".concat(BY,"-").concat(tc(R));return S._hashId=P,[S,P,f,h,(g==null?void 0:g.key)||""]},function(w){WY(w[0]._themeKey,a)},function(w){var S=Ge(w,4),f=S[0],h=S[3];if(g&&h){var v=bo(h,tc("css-variables-".concat(f._themeKey)),{mark:Yn,prepend:"queue",attachTo:i,priority:-999});v[Pi]=a,v.setAttribute(Rs,f._themeKey)}});return T}var GY=function(t,r,n){var a=Ge(t,5),i=a[2],s=a[3],l=a[4],u=n||{},c=u.plain;if(!s)return null;var m=i._tokenKey,p=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},y=qf(s,l,m,g,c);return[p,m,y]},KY={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},aE="comm",iE="rule",oE="decl",XY="@import",ZY="@namespace",JY="@keyframes",QY="@layer",sE=Math.abs,Hv=String.fromCharCode;function uE(e){return e.trim()}function _f(e,t,r){return e.replace(t,r)}function eG(e,t,r){return e.indexOf(t,r)}function xs(e,t){return e.charCodeAt(t)|0}function Ps(e,t,r){return e.slice(t,r)}function oa(e){return e.length}function tG(e){return e.length}function Vd(e,t){return t.push(e),e}var Oh=1,Ds=1,lE=0,En=0,Zt=0,Ys="";function Uv(e,t,r,n,a,i,s,l){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:Oh,column:Ds,length:s,return:"",siblings:l}}function rG(){return Zt}function nG(){return Zt=En>0?xs(Ys,--En):0,Ds--,Zt===10&&(Ds=1,Oh--),Zt}function Gn(){return Zt=En<lE?xs(Ys,En++):0,Ds++,Zt===10&&(Ds=1,Oh++),Zt}function Di(){return xs(Ys,En)}function wf(){return En}function Ah(e,t){return Ps(Ys,e,t)}function rc(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 aG(e){return Oh=Ds=1,lE=oa(Ys=e),En=0,[]}function iG(e){return Ys="",e}function gg(e){return uE(Ah(En-1,P1(e===91?e+2:e===40?e+1:e)))}function oG(e){for(;(Zt=Di())&&Zt<33;)Gn();return rc(e)>2||rc(Zt)>3?"":" "}function sG(e,t){for(;--t&&Gn()&&!(Zt<48||Zt>102||Zt>57&&Zt<65||Zt>70&&Zt<97););return Ah(e,wf()+(t<6&&Di()==32&&Gn()==32))}function P1(e){for(;Gn();)switch(Zt){case e:return En;case 34:case 39:e!==34&&e!==39&&P1(Zt);break;case 40:e===41&&P1(e);break;case 92:Gn();break}return En}function uG(e,t){for(;Gn()&&e+Zt!==57;)if(e+Zt===84&&Di()===47)break;return"/*"+Ah(t,En-1)+"*"+Hv(e===47?e:Gn())}function lG(e){for(;!rc(Di());)Gn();return Ah(e,En)}function cG(e){return iG(xf("",null,null,null,[""],e=aG(e),0,[0],e))}function xf(e,t,r,n,a,i,s,l,u){for(var c=0,m=0,p=s,g=0,y=0,x=0,E=1,k=1,T=1,w=0,S="",f=a,h=i,v=n,_=S;k;)switch(x=w,w=Gn()){case 40:if(x!=108&&xs(_,p-1)==58){eG(_+=_f(gg(w),"&","&\f"),"&\f",sE(c?l[c-1]:0))!=-1&&(T=-1);break}case 34:case 39:case 91:_+=gg(w);break;case 9:case 10:case 13:case 32:_+=oG(x);break;case 92:_+=sG(wf()-1,7);continue;case 47:switch(Di()){case 42:case 47:Vd(dG(uG(Gn(),wf()),t,r,u),u),(rc(x||1)==5||rc(Di()||1)==5)&&oa(_)&&Ps(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*E:l[c++]=oa(_)*T;case 125*E:case 59:case 0:switch(w){case 0:case 125:k=0;case 59+m:T==-1&&(_=_f(_,/\f/g,"")),y>0&&(oa(_)-p||E===0&&x===47)&&Vd(y>32?a6(_+";",n,r,p-1,u):a6(_f(_," ","")+";",n,r,p-2,u),u);break;case 59:_+=";";default:if(Vd(v=n6(_,t,r,c,m,a,l,S,f=[],h=[],p,i),i),w===123)if(m===0)xf(_,t,v,v,f,i,p,l,h);else{switch(g){case 99:if(xs(_,3)===110)break;case 108:if(xs(_,2)===97)break;default:m=0;case 100:case 109:case 115:}m?xf(e,v,v,n&&Vd(n6(e,v,v,0,0,a,l,S,a,f=[],p,h),h),a,h,p,l,n?f:h):xf(_,v,v,v,[""],h,0,l,h)}}c=m=y=0,E=T=1,S=_="",p=s;break;case 58:p=1+oa(_),y=x;default:if(E<1){if(w==123)--E;else if(w==125&&E++==0&&nG()==125)continue}switch(_+=Hv(w),w*E){case 38:T=m>0?1:(_+="\f",-1);break;case 44:l[c++]=(oa(_)-1)*T,T=1;break;case 64:Di()===45&&(_+=gg(Gn())),g=Di(),m=p=oa(S=_+=lG(wf())),w++;break;case 45:x===45&&oa(_)==2&&(E=0)}}return i}function n6(e,t,r,n,a,i,s,l,u,c,m,p){for(var g=a-1,y=a===0?i:[""],x=tG(y),E=0,k=0,T=0;E<n;++E)for(var w=0,S=Ps(e,g+1,g=sE(k=s[E])),f=e;w<x;++w)(f=uE(k>0?y[w]+" "+S:_f(S,/&\f/g,y[w])))&&(u[T++]=f);return Uv(e,t,r,a===0?iE:l,u,c,m,p)}function dG(e,t,r,n){return Uv(e,t,r,aE,Hv(rG()),Ps(e,2,-2),0,n)}function a6(e,t,r,n,a){return Uv(e,t,r,oE,Ps(e,0,n),Ps(e,n+1,-1),n,a)}function D1(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function fG(e,t,r,n){switch(e.type){case QY:if(e.children.length)break;case XY:case ZY:case oE:return e.return=e.return||e.value;case aE:return"";case JY:return e.return=e.value+"{"+D1(e.children,n)+"}";case iE:if(!oa(e.value=e.props.join(",")))return""}return oa(r=D1(e.children,n))?e.return=e.value+"{"+r+"}":""}function cE(e,t){var r=t.path,n=t.parentSelectors;ko(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var hG=function(t,r,n){if(t==="content"){var a=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof r!="string"||i.indexOf(r)===-1&&!a.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&cE("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},pG=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&cE("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},i6="data-ant-cssinjs-cache-path",dE="_FILE_STYLE__",xo,fE=!0;function mG(){if(!xo&&(xo={},ji())){var e=document.createElement("div");e.className=i6,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(/"$/,""),t.split(";").forEach(function(a){var i=a.split(":"),s=Ge(i,2),l=s[0],u=s[1];xo[l]=u});var r=document.querySelector("style[".concat(i6,"]"));if(r){var n;fE=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function gG(e){return mG(),!!xo[e]}function vG(e){var t=xo[e],r=null;if(t&&ji())if(fE)r=dE;else{var n=document.querySelector("style[".concat(Yn,'="').concat(xo[e],'"]'));n?r=n.innerHTML:delete xo[e]}return[r,t]}var hE="_skip_check_",pE="_multi_value_";function Sf(e){var t=D1(cG(e),fG);return t.replace(/\{%%%\:[^;];}/g,";")}function bG(e){return Mt(e)==="object"&&e&&(hE in e||pE in e)}function o6(e,t,r){if(!t)return e;var n=".".concat(t),a=r==="low"?":where(".concat(n,")"):n,i=e.split(",").map(function(s){var l,u=s.trim().split(/\s+/),c=u[0]||"",m=((l=c.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return c="".concat(m).concat(a).concat(c.slice(m.length)),[c].concat(Eo(u.slice(1))).join(" ")});return i.join(",")}var yG=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,i=n.injectHash,s=n.parentSelectors,l=r.hashId,u=r.layer,c=r.path,m=r.hashPriority,p=r.transformers,g=p===void 0?[]:p,y=r.linters,x=y===void 0?[]:y,E="",k={};function T(f){var h=f.getName(l);if(!k[h]){var v=e(f.style,r,{root:!1,parentSelectors:s}),_=Ge(v,1),R=_[0];k[h]="@keyframes ".concat(f.getName(l)).concat(R)}}function w(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return f.forEach(function(v){Array.isArray(v)?w(v,h):v&&h.push(v)}),h}var S=w(Array.isArray(t)?t:[t]);return S.forEach(function(f){var h=typeof f=="string"&&!a?{}:f;if(typeof h=="string")E+="".concat(h,`
|
|
441
441
|
`);else if(h._keyframe)T(h);else{var v=g.reduce(function(_,R){var C;return(R==null||(C=R.visit)===null||C===void 0?void 0:C.call(R,_))||_},h);Object.keys(v).forEach(function(_){var R=v[_];if(Mt(R)==="object"&&R&&(_!=="animationName"||!R._keyframe)&&!bG(R)){var C=!1,P=_.trim(),M=!1;(a||i)&&l?P.startsWith("@")?C=!0:P==="&"?P=o6("",l,m):P=o6(_,l,m):a&&!l&&(P==="&"||P==="")&&(P="",M=!0);var U=e(R,r,{root:M,injectHash:C,parentSelectors:[].concat(Eo(s),[P])}),L=Ge(U,2),N=L[0],j=L[1];k=pe(pe({},k),j),E+="".concat(P).concat(N)}else{let z=function(B,H){process.env.NODE_ENV!=="production"&&(Mt(R)!=="object"||!(R!=null&&R[hE]))&&[hG,pG].concat(Eo(x)).forEach(function(re){return re(B,H,{path:c,hashId:l,parentSelectors:s})});var q=B.replace(/[A-Z]/g,function(re){return"-".concat(re.toLowerCase())}),J=H;!KY[B]&&typeof J=="number"&&J!==0&&(J="".concat(J,"px")),B==="animationName"&&H!==null&&H!==void 0&&H._keyframe&&(T(H),J=H.getName(l)),E+="".concat(q,":").concat(J,";")};var O,I=(O=R==null?void 0:R.value)!==null&&O!==void 0?O:R;Mt(R)==="object"&&R!==null&&R!==void 0&&R[pE]&&Array.isArray(I)?I.forEach(function(B){z(_,B)}):z(_,I)}})}}),a?u&&(E&&(E="@layer ".concat(u.name," {").concat(E,"}")),u.dependencies&&(k["@layer ".concat(u.name)]=u.dependencies.map(function(f){return"@layer ".concat(f,", ").concat(u.name,";")}).join(`
|
|
442
442
|
`))):E="{".concat(E,"}"),[E,k]};function mE(e,t){return tc("".concat(e.join("%")).concat(t))}function _G(){return null}var gE="style";function s6(e,t){var r=e.token,n=e.path,a=e.hashId,i=e.layer,s=e.nonce,l=e.clientOnly,u=e.order,c=u===void 0?0:u,m=ee.useContext(Th),p=m.autoClear,g=m.mock,y=m.defaultCache,x=m.hashPriority,E=m.container,k=m.ssrInline,T=m.transformers,w=m.linters,S=m.cache,f=m.layer,h=r._tokenKey,v=[h];f&&v.push("layer"),v.push.apply(v,Eo(n));var _=A1;process.env.NODE_ENV!=="production"&&g!==void 0&&(_=g==="client");var R=Bv(gE,v,function(){var L=v.join("|");if(gG(L)){var N=vG(L),j=Ge(N,2),O=j[0],I=j[1];if(O)return[O,h,I,{},l,c]}var z=t(),B=yG(z,{hashId:a,hashPriority:x,layer:f?i:void 0,path:n.join("-"),transformers:T,linters:w}),H=Ge(B,2),q=H[0],J=H[1],re=Sf(q),ne=mE(v,re);return[re,h,ne,J,l,c]},function(L,N){var j=Ge(L,3),O=j[2];(N||p)&&A1&&w8(O,{mark:Yn})},function(L){var N=Ge(L,4),j=N[0];N[1];var O=N[2],I=N[3];if(_&&j!==dE){var z={mark:Yn,prepend:f?!1:"queue",attachTo:E,priority:c},B=typeof s=="function"?s():s;B&&(z.csp={nonce:B});var H=[],q=[];Object.keys(I).forEach(function(re){re.startsWith("@layer")?H.push(re):q.push(re)}),H.forEach(function(re){bo(Sf(I[re]),"_layer-".concat(re),pe(pe({},z),{},{prepend:!0}))});var J=bo(j,O,z);J[Pi]=S.instanceId,J.setAttribute(Rs,h),process.env.NODE_ENV!=="production"&&J.setAttribute(wY,v.join("|")),q.forEach(function(re){bo(Sf(I[re]),"_effect-".concat(re),z)})}}),C=Ge(R,3),P=C[0],M=C[1],U=C[2];return function(L){var N;if(!k||_||!y)N=ee.createElement(_G,null);else{var j;N=ee.createElement("style",nt({},(j={},Ae(j,Rs,M),Ae(j,Yn,U),j),{dangerouslySetInnerHTML:{__html:P}}))}return ee.createElement(ee.Fragment,null,N,L)}}var wG=function(t,r,n){var a=Ge(t,6),i=a[0],s=a[1],l=a[2],u=a[3],c=a[4],m=a[5],p=n||{},g=p.plain;if(c)return null;var y=i,x={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)};return y=qf(i,s,l,x,g),u&&Object.keys(u).forEach(function(E){if(!r[E]){r[E]=!0;var k=Sf(u[E]),T=qf(k,s,"_effect-".concat(E),x,g);E.startsWith("@layer")?y=T+y:y+=T}}),[m,l,y]},vE="cssVar",xG=function(t,r){var n=t.key,a=t.prefix,i=t.unitless,s=t.ignore,l=t.token,u=t.scope,c=u===void 0?"":u,m=F.useContext(Th),p=m.cache.instanceId,g=m.container,y=l._tokenKey,x=[].concat(Eo(t.path),[n,c,y]),E=Bv(vE,x,function(){var k=r(),T=rE(k,n,{prefix:a,unitless:i,ignore:s,scope:c}),w=Ge(T,2),S=w[0],f=w[1],h=mE(x,f);return[S,f,h,n]},function(k){var T=Ge(k,3),w=T[2];A1&&w8(w,{mark:Yn})},function(k){var T=Ge(k,3),w=T[1],S=T[2];if(w){var f=bo(w,S,{mark:Yn,prepend:"queue",attachTo:g,priority:-999});f[Pi]=p,f.setAttribute(Rs,n)}});return E},SG=function(t,r,n){var a=Ge(t,4),i=a[1],s=a[2],l=a[3],u=n||{},c=u.plain;if(!i)return null;var m=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)},g=qf(i,l,s,p,c);return[m,s,g]},yl;yl={},Ae(yl,gE,wG),Ae(yl,nE,GY),Ae(yl,vE,SG);var bE=function(){function e(t,r){ya(this,e),Ae(this,"name",void 0),Ae(this,"style",void 0),Ae(this,"_keyframe",!0),this.name=t,this.style=r}return _a(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function es(e){return e.notSplit=!0,e}es(["borderTop","borderBottom"]),es(["borderTop"]),es(["borderBottom"]),es(["borderLeft","borderRight"]),es(["borderLeft"]),es(["borderRight"]);var yE=_a(function e(){ya(this,e)}),_E="CALC_UNIT",CG=new RegExp(_E,"g");function vg(e){return typeof e=="number"?"".concat(e).concat(_E):e}var EG=function(e){Ch(r,e);var t=Eh(r);function r(n,a){var i;ya(this,r),i=t.call(this),Ae(wo(i),"result",""),Ae(wo(i),"unitlessCssVar",void 0),Ae(wo(i),"lowPriority",void 0);var s=Mt(n);return i.unitlessCssVar=a,n instanceof r?i.result="(".concat(n.result,")"):s==="number"?i.result=vg(n):s==="string"&&(i.result=n),i}return _a(r,[{key:"add",value:function(a){return a instanceof r?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(vg(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof r?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(vg(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var i=this,s=a||{},l=s.unit,u=!0;return typeof l=="boolean"?u=l:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(u=!1),this.result=this.result.replace(CG,u?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(yE),kG=function(e){Ch(r,e);var t=Eh(r);function r(n){var a;return ya(this,r),a=t.call(this),Ae(wo(a),"result",0),n instanceof r?a.result=n.result:typeof n=="number"&&(a.result=n),a}return _a(r,[{key:"add",value:function(a){return a instanceof r?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof r?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof r?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof r?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),r}(yE),TG=function(t,r){var n=t==="css"?EG:kG;return function(a){return new n(a,r)}},u6=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function l6(e,t,r,n){var a=pe({},t[e]);if(n!=null&&n.deprecatedTokens){var i=n.deprecatedTokens;i.forEach(function(l){var u=Ge(l,2),c=u[0],m=u[1];if(process.env.NODE_ENV!=="production"&&ko(!(a!=null&&a[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(m),"` instead.")),a!=null&&a[c]||a!=null&&a[m]){var p;(p=a[m])!==null&&p!==void 0||(a[m]=a==null?void 0:a[c])}})}var s=pe(pe({},r),a);return Object.keys(s).forEach(function(l){s[l]===t[l]&&delete s[l]}),s}var wE=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",M1=!0;function $i(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!wE)return Object.assign.apply(Object,[{}].concat(t));M1=!1;var n={};return t.forEach(function(a){if(Mt(a)==="object"){var i=Object.keys(a);i.forEach(function(s){Object.defineProperty(n,s,{configurable:!0,enumerable:!0,get:function(){return a[s]}})})}}),M1=!0,n}var c6={};function OG(){}var AG=function(t){var r,n=t,a=OG;return wE&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(s,l){if(M1){var u;(u=r)===null||u===void 0||u.add(l)}return s[l]}}),a=function(s,l){var u;c6[s]={global:Array.from(r),component:pe(pe({},(u=c6[s])===null||u===void 0?void 0:u.component),l)}}),{token:n,keys:r,flush:a}};function d6(e,t,r){if(typeof r=="function"){var n;return r($i(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function RG(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"max(".concat(n.map(function(i){return ai(i)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"min(".concat(n.map(function(i){return ai(i)}).join(","),")")}}}var PG=1e3*60*10,DG=function(){function e(){ya(this,e),Ae(this,"map",new Map),Ae(this,"objectIDMap",new WeakMap),Ae(this,"nextID",0),Ae(this,"lastAccessBeat",new Map),Ae(this,"accessBeat",0)}return _a(e,[{key:"set",value:function(r,n){this.clear();var a=this.getCompositeKey(r);this.map.set(a,n),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),a=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(r){var n=this,a=r.map(function(i){return i&&Mt(i)==="object"?"obj_".concat(n.getObjectID(i)):"".concat(Mt(i),"_").concat(i)});return a.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(a,i){n-a>PG&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),f6=new DG;function MG(e,t){return F.useMemo(function(){var r=f6.get(t);if(r)return r;var n=e();return f6.set(t,n),n},t)}var FG=function(){return{}};function NG(e){var t=e.useCSP,r=t===void 0?FG:t,n=e.useToken,a=e.usePrefix,i=e.getResetStyles,s=e.getCommonStyle,l=e.getCompUnitless;function u(g,y,x,E){var k=Array.isArray(g)?g[0]:g;function T(R){return"".concat(String(k)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var w=(E==null?void 0:E.unitless)||{},S=typeof l=="function"?l(g):{},f=pe(pe({},S),{},Ae({},T("zIndexPopup"),!0));Object.keys(w).forEach(function(R){f[T(R)]=w[R]});var h=pe(pe({},E),{},{unitless:f,prefixToken:T}),v=m(g,y,x,h),_=c(k,x,h);return function(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,P=v(R,C),M=Ge(P,2),U=M[1],L=_(C),N=Ge(L,2),j=N[0],O=N[1];return[j,U,O]}}function c(g,y,x){var E=x.unitless,k=x.injectStyle,T=k===void 0?!0:k,w=x.prefixToken,S=x.ignore,f=function(_){var R=_.rootCls,C=_.cssVar,P=C===void 0?{}:C,M=n(),U=M.realToken;return xG({path:[g],prefix:P.prefix,key:P.key,unitless:E,ignore:S,token:U,scope:R},function(){var L=d6(g,U,y),N=l6(g,U,L,{deprecatedTokens:x==null?void 0:x.deprecatedTokens});return Object.keys(L).forEach(function(j){N[w(j)]=N[j],delete N[j]}),N}),null},h=function(_){var R=n(),C=R.cssVar;return[function(P){return T&&C?F.createElement(F.Fragment,null,F.createElement(f,{rootCls:_,cssVar:C,component:g}),P):P},C==null?void 0:C.key]};return h}function m(g,y,x){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},k=Array.isArray(g)?g:[g,g],T=Ge(k,1),w=T[0],S=k.join("-"),f=e.layer||{name:"antd"};return function(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h,_=n(),R=_.theme,C=_.realToken,P=_.hashId,M=_.token,U=_.cssVar,L=a(),N=L.rootPrefixCls,j=L.iconPrefixCls,O=r(),I=U?"css":"js",z=MG(function(){var ne=new Set;return U&&Object.keys(E.unitless||{}).forEach(function(se){ne.add(yf(se,U.prefix)),ne.add(yf(se,u6(w,U.prefix)))}),TG(I,ne)},[I,w,U==null?void 0:U.prefix]),B=RG(I),H=B.max,q=B.min,J={theme:R,token:M,hashId:P,nonce:function(){return O.nonce},clientOnly:E.clientOnly,layer:f,order:E.order||-999};typeof i=="function"&&s6(pe(pe({},J),{},{clientOnly:!1,path:["Shared",N]}),function(){return i(M,{prefix:{rootPrefixCls:N,iconPrefixCls:j},csp:O})});var re=s6(pe(pe({},J),{},{path:[S,h,j]}),function(){if(E.injectStyle===!1)return[];var ne=AG(M),se=ne.token,ce=ne.flush,le=d6(w,C,x),ye=".".concat(h),we=l6(w,C,le,{deprecatedTokens:E.deprecatedTokens});U&&le&&Mt(le)==="object"&&Object.keys(le).forEach(function(qe){le[qe]="var(".concat(yf(qe,u6(w,U.prefix)),")")});var Ee=$i(se,{componentCls:ye,prefixCls:h,iconCls:".".concat(j),antCls:".".concat(N),calc:z,max:H,min:q},U?le:we),Le=y(Ee,{hashId:P,prefixCls:h,rootPrefixCls:N,iconPrefixCls:j});ce(w,we);var he=typeof s=="function"?s(Ee,h,v,E.resetFont):null;return[E.resetStyle===!1?null:he,Le]});return[re,P]}}function p(g,y,x){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},k=m(g,y,x,pe({resetStyle:!1,order:-998},E)),T=function(S){var f=S.prefixCls,h=S.rootCls,v=h===void 0?f:h;return k(f,v),null};return process.env.NODE_ENV!=="production"&&(T.displayName="SubStyle_".concat(String(Array.isArray(g)?g.join("."):g))),T}return{genStyleHooks:u,genSubStyleComponent:p,genComponentStyleHook:m}}const IG={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"},LG=Object.assign(Object.assign({},IG),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
443
443
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
@@ -473,7 +473,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
473
473
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
474
474
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
475
475
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
476
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}const zG={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},BG={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},HG=CY(Z.theme.defaultAlgorithm),UG={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},xE=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a,...i}=t;let s={...n,override:a};return s=$G(s),i&&Object.entries(i).forEach(([l,u])=>{const{theme:c,...m}=u;let p=m;c&&(p=xE({...s,...m},{override:m},c)),s[l]=p}),s};function qG(){const{token:e,hashed:t,theme:r=HG,override:n,cssVar:a}=F.useContext(Z.theme._internalContext),[i,s,l]=YY(r,[Z.theme.defaultSeed,e],{salt:`${XW}-${t||""}`,override:n,getComputedToken:xE,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:zG,ignore:BG,preserve:UG}});return[r,l,t?s:"",i,a]}const{genStyleHooks:Gs}=NG({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=ga();return{iconPrefixCls:t,rootPrefixCls:e()}},useToken:()=>{const[e,t,r,n,a]=qG();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e}=ga();return e??{}},layer:{name:"antdx",dependencies:["antd"]}}),WG=e=>{const{componentCls:t,calc:r}=e,n=`${t}-list-card`,a=r(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[n]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${n}-name,${n}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${n}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${n}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:r(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:r(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${n}-icon`]:{fontSize:r(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:r(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${n}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${n}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:a,height:a,lineHeight:1,[`&:not(${n}-status-error)`]:{border:0},img:{width:"100%",height:"100%",verticalAlign:"top",objectFit:"cover",borderRadius:"inherit"},[`${n}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${n}-status-error`]:{[`img, ${n}-img-mask`]:{borderRadius:r(e.borderRadius).sub(e.lineWidth).equal()},[`${n}-desc`]:{paddingInline:e.paddingXXS}},[`${n}-progress`]:{}},[`${n}-remove`]:{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:e.paddingXXS,background:"transparent",lineHeight:1,transform:"translate(50%, -50%)",fontSize:e.fontSize,cursor:"pointer",opacity:e.opacityLoading,display:"none","&:dir(rtl)":{transform:"translate(-50%, -50%)"},"&:hover":{opacity:1},"&:active":{opacity:e.opacityLoading}},[`&:hover ${n}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${n}-desc`]:{color:e.colorError}},"&-motion":{transition:["opacity","width","margin","padding"].map(i=>`${i} ${e.motionDurationSlow}`).join(","),"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:r(e.paddingSM).mul(-1).equal()}}}}},F1={"&, *":{boxSizing:"border-box"}},VG=e=>{const{componentCls:t,calc:r,antCls:n}=e,a=`${t}-drop-area`,i=`${t}-placeholder`;return{[a]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...F1,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${i}-inner`]:{display:"none"}},[i]:{padding:0}},"&":{[i]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",background:e.colorBgPlaceholderHover,...F1,[`${n}-upload-wrapper ${n}-upload${n}-upload-btn`]:{padding:0},[`&${i}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${i}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${i}-inner`]:{gap:r(e.paddingXXS).div(2).equal()},[`${i}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${i}-title${i}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${i}-description`]:{}}}}},YG=e=>{const{componentCls:t,calc:r}=e,n=`${t}-list`,a=r(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...F1,[n]:{display:"flex",flexWrap:"wrap",gap:e.paddingSM,fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.colorText,paddingBlock:e.paddingSM,paddingInline:e.padding,width:"100%",background:e.colorBgContainer,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:`opacity ${e.motionDurationSlow}`,zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:r(a).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:a,height:a,fontSize:e.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:e.padding}},"&-next-btn":{right:{_skip_check_:!0,value:e.padding}},"&:dir(ltr)":{[`&${n}-overflow-ping-start ${n}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${n}-overflow-ping-end ${n}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${n}-overflow-ping-end ${n}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${n}-overflow-ping-start ${n}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},GG=e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new Hr(t).setA(.85).toRgbString()}},SE=Gs("Attachments",e=>{const t=$i(e,{});return[VG(t),YG(t),WG(t)]},GG),KG=e=>e.indexOf("image/")===0,Gd=200;function XG(e){return new Promise(t=>{if(!e||!e.type||!KG(e.type)){t("");return}const r=new Image;if(r.onload=()=>{const{width:n,height:a}=r,i=n/a,s=i>1?Gd:Gd*i,l=i>1?Gd/i:Gd,u=document.createElement("canvas");u.width=s,u.height=l,u.style.cssText=`position: fixed; left: 0; top: 0; width: ${s}px; height: ${l}px; z-index: 9999; display: none;`,document.body.appendChild(u),u.getContext("2d").drawImage(r,0,0,s,l);const m=u.toDataURL();document.body.removeChild(u),window.URL.revokeObjectURL(r.src),t(m)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const n=new FileReader;n.onload=()=>{n.result&&typeof n.result=="string"&&(r.src=n.result)},n.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)})}function ZG(){return F.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},F.createElement("title",null,"audio"),F.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},F.createElement("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})))}function JG(e){const{percent:t}=e,{token:r}=Z.theme.useToken();return F.createElement(Z.Progress,{type:"circle",percent:t,size:r.fontSizeHeading2*2,strokeColor:"#FFF",trailColor:"rgba(255, 255, 255, 0.3)",format:n=>F.createElement("span",{style:{color:"#FFF"}},(n||0).toFixed(0),"%")})}function QG(){return F.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},F.createElement("title",null,"video"),F.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},F.createElement("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})))}const yg=" ",N1="#8c8c8c",CE=["png","jpg","jpeg","gif","bmp","webp","svg"],eK=[{icon:F.createElement(A4,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:F.createElement(R4,null),color:N1,ext:CE},{icon:F.createElement(P4,null),color:N1,ext:["md","mdx"]},{icon:F.createElement(D4,null),color:"#ff4d4f",ext:["pdf"]},{icon:F.createElement(M4,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:F.createElement(N4,null),color:"#1677ff",ext:["doc","docx"]},{icon:F.createElement(I4,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:F.createElement(QG,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:F.createElement(ZG,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function h6(e,t){return t.some(r=>e.toLowerCase()===`.${r}`)}function tK(e){let t=e;const r=["B","KB","MB","GB","TB","PB","EB"];let n=0;for(;t>=1024&&n<r.length-1;)t/=1024,n++;return`${t.toFixed(0)} ${r[n]}`}function rK(e,t){const{prefixCls:r,item:n,onRemove:a,className:i,style:s}=e,l=F.useContext(bc),{disabled:u}=l||{},{name:c,size:m,percent:p,status:g="done",description:y}=n,{getPrefixCls:x}=ga(),E=x("attachment",r),k=`${E}-list-card`,[T,w,S]=SE(E),[f,h]=F.useMemo(()=>{const j=c||"",O=j.match(/^(.*)\.[^.]+$/);return O?[O[1],j.slice(O[1].length)]:[j,""]},[c]),v=F.useMemo(()=>h6(h,CE),[h]),_=F.useMemo(()=>y||(g==="uploading"?`${p||0}%`:g==="error"?n.response||yg:m?tK(m):yg),[g,p]),[R,C]=F.useMemo(()=>{for(const{ext:j,icon:O,color:I}of eK)if(h6(h,j))return[O,I];return[F.createElement(F4,{key:"defaultIcon"}),N1]},[h]),[P,M]=F.useState();F.useEffect(()=>{if(n.originFileObj){let j=!0;return XG(n.originFileObj).then(O=>{j&&M(O)}),()=>{j=!1}}M(void 0)},[n.originFileObj]);let U=null;const L=n.thumbUrl||n.url||P,N=v&&(n.originFileObj||L);return N?U=F.createElement(F.Fragment,null,F.createElement("img",{alt:"preview",src:L}),g!=="done"&&F.createElement("div",{className:`${k}-img-mask`},g==="uploading"&&p!==void 0&&F.createElement(JG,{percent:p,prefixCls:k}),g==="error"&&F.createElement("div",{className:`${k}-desc`},F.createElement("div",{className:`${k}-ellipsis-prefix`},_)))):U=F.createElement(F.Fragment,null,F.createElement("div",{className:`${k}-icon`,style:{color:C}},R),F.createElement("div",{className:`${k}-content`},F.createElement("div",{className:`${k}-name`},F.createElement("div",{className:`${k}-ellipsis-prefix`},f??yg),F.createElement("div",{className:`${k}-ellipsis-suffix`},h)),F.createElement("div",{className:`${k}-desc`},F.createElement("div",{className:`${k}-ellipsis-prefix`},_)))),T(F.createElement("div",{className:Te(k,{[`${k}-status-${g}`]:g,[`${k}-type-preview`]:N,[`${k}-type-overview`]:!N},i,w,S),style:s,ref:t},U,!u&&a&&F.createElement("button",{type:"button",className:`${k}-remove`,onClick:()=>{a(n)}},F.createElement(k4,null))))}const EE=F.forwardRef(rK),p6=1;function nK(e){const{prefixCls:t,items:r,onRemove:n,overflow:a,upload:i,listClassName:s,listStyle:l,itemClassName:u,itemStyle:c}=e,m=`${t}-list`,p=F.useRef(null),[g,y]=F.useState(!1),{disabled:x}=F.useContext(bc);F.useEffect(()=>(y(!0),()=>{y(!1)}),[]);const[E,k]=F.useState(!1),[T,w]=F.useState(!1),S=()=>{const _=p.current;_&&(a==="scrollX"?(k(Math.abs(_.scrollLeft)>=p6),w(_.scrollWidth-_.clientWidth-Math.abs(_.scrollLeft)>=p6)):a==="scrollY"&&(k(_.scrollTop!==0),w(_.scrollHeight-_.clientHeight!==_.scrollTop)))};F.useEffect(()=>{S()},[a]);const f=_=>{const R=p.current;R&&R.scrollTo({left:R.scrollLeft+_*R.clientWidth,behavior:"smooth"})},h=()=>{f(-1)},v=()=>{f(1)};return F.createElement("div",{className:Te(m,{[`${m}-overflow-${e.overflow}`]:a,[`${m}-overflow-ping-start`]:E,[`${m}-overflow-ping-end`]:T},s),ref:p,onScroll:S,style:l},F.createElement(vY,{keys:r.map(_=>({key:_.uid,item:_})),motionName:`${m}-card-motion`,component:!1,motionAppear:g,motionLeave:!0,motionEnter:!0},({key:_,item:R,className:C,style:P})=>F.createElement(EE,{key:_,prefixCls:t,item:R,onRemove:n,className:Te(C,u),style:{...P,...c}})),!x&&F.createElement(eE,{upload:i},F.createElement(Z.Button,{className:`${m}-upload-btn`,type:"dashed"},F.createElement(j4,{className:`${m}-upload-btn-icon`}))),a==="scrollX"&&F.createElement(F.Fragment,null,F.createElement(Z.Button,{size:"small",shape:"circle",className:`${m}-prev-btn`,icon:F.createElement(L4,null),onClick:h}),F.createElement(Z.Button,{size:"small",shape:"circle",className:`${m}-next-btn`,icon:F.createElement($4,null),onClick:v})))}function aK(e,t){const{prefixCls:r,placeholder:n={},upload:a,className:i,style:s}=e,l=`${r}-placeholder`,u=n||{},{disabled:c}=F.useContext(bc),[m,p]=F.useState(!1),g=()=>{p(!0)},y=k=>{k.currentTarget.contains(k.relatedTarget)||p(!1)},x=()=>{p(!1)},E=F.isValidElement(n)?n:F.createElement(Z.Flex,{align:"center",justify:"center",vertical:!0,className:`${l}-inner`},F.createElement(Z.Typography.Text,{className:`${l}-icon`},u.icon),F.createElement(Z.Typography.Title,{className:`${l}-title`,level:5},u.title),F.createElement(Z.Typography.Text,{className:`${l}-description`,type:"secondary"},u.description));return F.createElement("div",{className:Te(l,{[`${l}-drag-in`]:m,[`${l}-disabled`]:c},i),onDragEnter:g,onDragLeave:y,onDrop:x,"aria-hidden":c,style:s},F.createElement(Z.Upload.Dragger,nt({showUploadList:!1},a,{ref:t,style:{padding:0,border:0,background:"transparent"}}),E))}const iK=F.forwardRef(aK);function oK(e,t){const{prefixCls:r,rootClassName:n,rootStyle:a,className:i,style:s,items:l,children:u,getDropContainer:c,placeholder:m,onChange:p,overflow:g,disabled:y,classNames:x={},styles:E={},...k}=e,{getPrefixCls:T,direction:w}=ga(),S=T("attachment",r),f=Ws("attachments"),{classNames:h,styles:v}=f,_=F.useRef(null),R=F.useRef(null);F.useImperativeHandle(t,()=>({nativeElement:_.current,upload:H=>{var J,re;const q=(re=(J=R.current)==null?void 0:J.nativeElement)==null?void 0:re.querySelector('input[type="file"]');if(q){const ne=new DataTransfer;ne.items.add(H),q.files=ne.files,q.dispatchEvent(new Event("change",{bubbles:!0}))}}}));const[C,P,M]=SE(S),U=Te(P,M),[L,N]=Sh([],{value:l}),j=Zn(H=>{N(H.fileList),p==null||p(H)}),O={...k,fileList:L,onChange:j},I=H=>{const q=L.filter(J=>J.uid!==H.uid);j({file:H,fileList:q})};let z;const B=(H,q,J)=>{const re=typeof m=="function"?m(H):m;return F.createElement(iK,{placeholder:re,upload:O,prefixCls:S,className:Te(h.placeholder,x.placeholder),style:{...v.placeholder,...E.placeholder,...q==null?void 0:q.style},ref:J})};if(u)z=F.createElement(F.Fragment,null,F.createElement(eE,{upload:O,rootClassName:n,ref:R},u),F.createElement(Lx,{getDropContainer:c,prefixCls:S,className:Te(U,n)},B("drop")));else{const H=L.length>0;z=F.createElement("div",{className:Te(S,U,{[`${S}-rtl`]:w==="rtl"},i,n),style:{...a,...s},dir:w||"ltr",ref:_},F.createElement(nK,{prefixCls:S,items:L,onRemove:I,overflow:g,upload:O,listClassName:Te(h.list,x.list),listStyle:{...v.list,...E.list,...!H&&{display:"none"}},itemClassName:Te(h.item,x.item),itemStyle:{...v.item,...E.item}}),B("inline",H?{style:{display:"none"}}:{},R),F.createElement(Lx,{getDropContainer:c||(()=>_.current),prefixCls:S,className:U},B("drop")))}return C(F.createElement(bc.Provider,{value:{disabled:y}},z))}const qv=F.forwardRef(oK);process.env.NODE_ENV!=="production"&&(qv.displayName="Attachments");qv.FileCard=EE;var sK=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
476
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}const zG={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},BG={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},HG=CY(X.theme.defaultAlgorithm),UG={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},xE=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a,...i}=t;let s={...n,override:a};return s=$G(s),i&&Object.entries(i).forEach(([l,u])=>{const{theme:c,...m}=u;let p=m;c&&(p=xE({...s,...m},{override:m},c)),s[l]=p}),s};function qG(){const{token:e,hashed:t,theme:r=HG,override:n,cssVar:a}=F.useContext(X.theme._internalContext),[i,s,l]=YY(r,[X.theme.defaultSeed,e],{salt:`${XW}-${t||""}`,override:n,getComputedToken:xE,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:zG,ignore:BG,preserve:UG}});return[r,l,t?s:"",i,a]}const{genStyleHooks:Gs}=NG({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=ga();return{iconPrefixCls:t,rootPrefixCls:e()}},useToken:()=>{const[e,t,r,n,a]=qG();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e}=ga();return e??{}},layer:{name:"antdx",dependencies:["antd"]}}),WG=e=>{const{componentCls:t,calc:r}=e,n=`${t}-list-card`,a=r(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[n]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${n}-name,${n}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${n}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${n}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:r(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:r(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${n}-icon`]:{fontSize:r(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:r(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${n}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${n}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:a,height:a,lineHeight:1,[`&:not(${n}-status-error)`]:{border:0},img:{width:"100%",height:"100%",verticalAlign:"top",objectFit:"cover",borderRadius:"inherit"},[`${n}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${n}-status-error`]:{[`img, ${n}-img-mask`]:{borderRadius:r(e.borderRadius).sub(e.lineWidth).equal()},[`${n}-desc`]:{paddingInline:e.paddingXXS}},[`${n}-progress`]:{}},[`${n}-remove`]:{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:e.paddingXXS,background:"transparent",lineHeight:1,transform:"translate(50%, -50%)",fontSize:e.fontSize,cursor:"pointer",opacity:e.opacityLoading,display:"none","&:dir(rtl)":{transform:"translate(-50%, -50%)"},"&:hover":{opacity:1},"&:active":{opacity:e.opacityLoading}},[`&:hover ${n}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${n}-desc`]:{color:e.colorError}},"&-motion":{transition:["opacity","width","margin","padding"].map(i=>`${i} ${e.motionDurationSlow}`).join(","),"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:r(e.paddingSM).mul(-1).equal()}}}}},F1={"&, *":{boxSizing:"border-box"}},VG=e=>{const{componentCls:t,calc:r,antCls:n}=e,a=`${t}-drop-area`,i=`${t}-placeholder`;return{[a]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...F1,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${i}-inner`]:{display:"none"}},[i]:{padding:0}},"&":{[i]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",background:e.colorBgPlaceholderHover,...F1,[`${n}-upload-wrapper ${n}-upload${n}-upload-btn`]:{padding:0},[`&${i}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${i}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${i}-inner`]:{gap:r(e.paddingXXS).div(2).equal()},[`${i}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${i}-title${i}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${i}-description`]:{}}}}},YG=e=>{const{componentCls:t,calc:r}=e,n=`${t}-list`,a=r(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...F1,[n]:{display:"flex",flexWrap:"wrap",gap:e.paddingSM,fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.colorText,paddingBlock:e.paddingSM,paddingInline:e.padding,width:"100%",background:e.colorBgContainer,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:`opacity ${e.motionDurationSlow}`,zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:r(a).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:a,height:a,fontSize:e.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:e.padding}},"&-next-btn":{right:{_skip_check_:!0,value:e.padding}},"&:dir(ltr)":{[`&${n}-overflow-ping-start ${n}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${n}-overflow-ping-end ${n}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${n}-overflow-ping-end ${n}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${n}-overflow-ping-start ${n}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},GG=e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new Hr(t).setA(.85).toRgbString()}},SE=Gs("Attachments",e=>{const t=$i(e,{});return[VG(t),YG(t),WG(t)]},GG),KG=e=>e.indexOf("image/")===0,Gd=200;function XG(e){return new Promise(t=>{if(!e||!e.type||!KG(e.type)){t("");return}const r=new Image;if(r.onload=()=>{const{width:n,height:a}=r,i=n/a,s=i>1?Gd:Gd*i,l=i>1?Gd/i:Gd,u=document.createElement("canvas");u.width=s,u.height=l,u.style.cssText=`position: fixed; left: 0; top: 0; width: ${s}px; height: ${l}px; z-index: 9999; display: none;`,document.body.appendChild(u),u.getContext("2d").drawImage(r,0,0,s,l);const m=u.toDataURL();document.body.removeChild(u),window.URL.revokeObjectURL(r.src),t(m)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const n=new FileReader;n.onload=()=>{n.result&&typeof n.result=="string"&&(r.src=n.result)},n.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)})}function ZG(){return F.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},F.createElement("title",null,"audio"),F.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},F.createElement("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})))}function JG(e){const{percent:t}=e,{token:r}=X.theme.useToken();return F.createElement(X.Progress,{type:"circle",percent:t,size:r.fontSizeHeading2*2,strokeColor:"#FFF",trailColor:"rgba(255, 255, 255, 0.3)",format:n=>F.createElement("span",{style:{color:"#FFF"}},(n||0).toFixed(0),"%")})}function QG(){return F.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},F.createElement("title",null,"video"),F.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},F.createElement("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})))}const yg=" ",N1="#8c8c8c",CE=["png","jpg","jpeg","gif","bmp","webp","svg"],eK=[{icon:F.createElement(AC,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:F.createElement(RC,null),color:N1,ext:CE},{icon:F.createElement(PC,null),color:N1,ext:["md","mdx"]},{icon:F.createElement(DC,null),color:"#ff4d4f",ext:["pdf"]},{icon:F.createElement(MC,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:F.createElement(NC,null),color:"#1677ff",ext:["doc","docx"]},{icon:F.createElement(IC,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:F.createElement(QG,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:F.createElement(ZG,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function h6(e,t){return t.some(r=>e.toLowerCase()===`.${r}`)}function tK(e){let t=e;const r=["B","KB","MB","GB","TB","PB","EB"];let n=0;for(;t>=1024&&n<r.length-1;)t/=1024,n++;return`${t.toFixed(0)} ${r[n]}`}function rK(e,t){const{prefixCls:r,item:n,onRemove:a,className:i,style:s}=e,l=F.useContext(bc),{disabled:u}=l||{},{name:c,size:m,percent:p,status:g="done",description:y}=n,{getPrefixCls:x}=ga(),E=x("attachment",r),k=`${E}-list-card`,[T,w,S]=SE(E),[f,h]=F.useMemo(()=>{const j=c||"",O=j.match(/^(.*)\.[^.]+$/);return O?[O[1],j.slice(O[1].length)]:[j,""]},[c]),v=F.useMemo(()=>h6(h,CE),[h]),_=F.useMemo(()=>y||(g==="uploading"?`${p||0}%`:g==="error"?n.response||yg:m?tK(m):yg),[g,p]),[R,C]=F.useMemo(()=>{for(const{ext:j,icon:O,color:I}of eK)if(h6(h,j))return[O,I];return[F.createElement(FC,{key:"defaultIcon"}),N1]},[h]),[P,M]=F.useState();F.useEffect(()=>{if(n.originFileObj){let j=!0;return XG(n.originFileObj).then(O=>{j&&M(O)}),()=>{j=!1}}M(void 0)},[n.originFileObj]);let U=null;const L=n.thumbUrl||n.url||P,N=v&&(n.originFileObj||L);return N?U=F.createElement(F.Fragment,null,F.createElement("img",{alt:"preview",src:L}),g!=="done"&&F.createElement("div",{className:`${k}-img-mask`},g==="uploading"&&p!==void 0&&F.createElement(JG,{percent:p,prefixCls:k}),g==="error"&&F.createElement("div",{className:`${k}-desc`},F.createElement("div",{className:`${k}-ellipsis-prefix`},_)))):U=F.createElement(F.Fragment,null,F.createElement("div",{className:`${k}-icon`,style:{color:C}},R),F.createElement("div",{className:`${k}-content`},F.createElement("div",{className:`${k}-name`},F.createElement("div",{className:`${k}-ellipsis-prefix`},f??yg),F.createElement("div",{className:`${k}-ellipsis-suffix`},h)),F.createElement("div",{className:`${k}-desc`},F.createElement("div",{className:`${k}-ellipsis-prefix`},_)))),T(F.createElement("div",{className:Te(k,{[`${k}-status-${g}`]:g,[`${k}-type-preview`]:N,[`${k}-type-overview`]:!N},i,w,S),style:s,ref:t},U,!u&&a&&F.createElement("button",{type:"button",className:`${k}-remove`,onClick:()=>{a(n)}},F.createElement(kC,null))))}const EE=F.forwardRef(rK),p6=1;function nK(e){const{prefixCls:t,items:r,onRemove:n,overflow:a,upload:i,listClassName:s,listStyle:l,itemClassName:u,itemStyle:c}=e,m=`${t}-list`,p=F.useRef(null),[g,y]=F.useState(!1),{disabled:x}=F.useContext(bc);F.useEffect(()=>(y(!0),()=>{y(!1)}),[]);const[E,k]=F.useState(!1),[T,w]=F.useState(!1),S=()=>{const _=p.current;_&&(a==="scrollX"?(k(Math.abs(_.scrollLeft)>=p6),w(_.scrollWidth-_.clientWidth-Math.abs(_.scrollLeft)>=p6)):a==="scrollY"&&(k(_.scrollTop!==0),w(_.scrollHeight-_.clientHeight!==_.scrollTop)))};F.useEffect(()=>{S()},[a]);const f=_=>{const R=p.current;R&&R.scrollTo({left:R.scrollLeft+_*R.clientWidth,behavior:"smooth"})},h=()=>{f(-1)},v=()=>{f(1)};return F.createElement("div",{className:Te(m,{[`${m}-overflow-${e.overflow}`]:a,[`${m}-overflow-ping-start`]:E,[`${m}-overflow-ping-end`]:T},s),ref:p,onScroll:S,style:l},F.createElement(vY,{keys:r.map(_=>({key:_.uid,item:_})),motionName:`${m}-card-motion`,component:!1,motionAppear:g,motionLeave:!0,motionEnter:!0},({key:_,item:R,className:C,style:P})=>F.createElement(EE,{key:_,prefixCls:t,item:R,onRemove:n,className:Te(C,u),style:{...P,...c}})),!x&&F.createElement(eE,{upload:i},F.createElement(X.Button,{className:`${m}-upload-btn`,type:"dashed"},F.createElement(jC,{className:`${m}-upload-btn-icon`}))),a==="scrollX"&&F.createElement(F.Fragment,null,F.createElement(X.Button,{size:"small",shape:"circle",className:`${m}-prev-btn`,icon:F.createElement(LC,null),onClick:h}),F.createElement(X.Button,{size:"small",shape:"circle",className:`${m}-next-btn`,icon:F.createElement($C,null),onClick:v})))}function aK(e,t){const{prefixCls:r,placeholder:n={},upload:a,className:i,style:s}=e,l=`${r}-placeholder`,u=n||{},{disabled:c}=F.useContext(bc),[m,p]=F.useState(!1),g=()=>{p(!0)},y=k=>{k.currentTarget.contains(k.relatedTarget)||p(!1)},x=()=>{p(!1)},E=F.isValidElement(n)?n:F.createElement(X.Flex,{align:"center",justify:"center",vertical:!0,className:`${l}-inner`},F.createElement(X.Typography.Text,{className:`${l}-icon`},u.icon),F.createElement(X.Typography.Title,{className:`${l}-title`,level:5},u.title),F.createElement(X.Typography.Text,{className:`${l}-description`,type:"secondary"},u.description));return F.createElement("div",{className:Te(l,{[`${l}-drag-in`]:m,[`${l}-disabled`]:c},i),onDragEnter:g,onDragLeave:y,onDrop:x,"aria-hidden":c,style:s},F.createElement(X.Upload.Dragger,nt({showUploadList:!1},a,{ref:t,style:{padding:0,border:0,background:"transparent"}}),E))}const iK=F.forwardRef(aK);function oK(e,t){const{prefixCls:r,rootClassName:n,rootStyle:a,className:i,style:s,items:l,children:u,getDropContainer:c,placeholder:m,onChange:p,overflow:g,disabled:y,classNames:x={},styles:E={},...k}=e,{getPrefixCls:T,direction:w}=ga(),S=T("attachment",r),f=Ws("attachments"),{classNames:h,styles:v}=f,_=F.useRef(null),R=F.useRef(null);F.useImperativeHandle(t,()=>({nativeElement:_.current,upload:H=>{var J,re;const q=(re=(J=R.current)==null?void 0:J.nativeElement)==null?void 0:re.querySelector('input[type="file"]');if(q){const ne=new DataTransfer;ne.items.add(H),q.files=ne.files,q.dispatchEvent(new Event("change",{bubbles:!0}))}}}));const[C,P,M]=SE(S),U=Te(P,M),[L,N]=Sh([],{value:l}),j=Zn(H=>{N(H.fileList),p==null||p(H)}),O={...k,fileList:L,onChange:j},I=H=>{const q=L.filter(J=>J.uid!==H.uid);j({file:H,fileList:q})};let z;const B=(H,q,J)=>{const re=typeof m=="function"?m(H):m;return F.createElement(iK,{placeholder:re,upload:O,prefixCls:S,className:Te(h.placeholder,x.placeholder),style:{...v.placeholder,...E.placeholder,...q==null?void 0:q.style},ref:J})};if(u)z=F.createElement(F.Fragment,null,F.createElement(eE,{upload:O,rootClassName:n,ref:R},u),F.createElement(Lx,{getDropContainer:c,prefixCls:S,className:Te(U,n)},B("drop")));else{const H=L.length>0;z=F.createElement("div",{className:Te(S,U,{[`${S}-rtl`]:w==="rtl"},i,n),style:{...a,...s},dir:w||"ltr",ref:_},F.createElement(nK,{prefixCls:S,items:L,onRemove:I,overflow:g,upload:O,listClassName:Te(h.list,x.list),listStyle:{...v.list,...E.list,...!H&&{display:"none"}},itemClassName:Te(h.item,x.item),itemStyle:{...v.item,...E.item}}),B("inline",H?{style:{display:"none"}}:{},R),F.createElement(Lx,{getDropContainer:c||(()=>_.current),prefixCls:S,className:U},B("drop")))}return C(F.createElement(bc.Provider,{value:{disabled:y}},z))}const qv=F.forwardRef(oK);process.env.NODE_ENV!=="production"&&(qv.displayName="Attachments");qv.FileCard=EE;var sK=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
477
477
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
478
478
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
479
479
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
@@ -490,7 +490,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
490
490
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
491
491
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
492
492
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
493
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,lK="".concat(sK," ").concat(uK).split(/[\s\n]+/),cK="aria-",dK="data-";function m6(e,t){return e.indexOf(t)===0}function Rh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=pe({},t);var n={};return Object.keys(e).forEach(function(a){(r.aria&&(a==="role"||m6(a,cK))||r.data&&m6(a,dK)||r.attr&&lK.includes(a))&&(n[a]=e[a])}),n}function fK(e,t){return F.useImperativeHandle(e,()=>{const r=t(),{nativeElement:n}=r;return new Proxy(n,{get(a,i){return r[i]?r[i]:Reflect.get(a,i)}})})}const kE=ee.createContext({}),g6=()=>({height:0}),v6=e=>({height:e.scrollHeight});function hK(e){const{title:t,onOpenChange:r,open:n,children:a,className:i,style:s,classNames:l={},styles:u={},closable:c,forceRender:m}=e,{prefixCls:p}=ee.useContext(kE),g=`${p}-header`;return ee.createElement(Q4,{motionEnter:!0,motionLeave:!0,motionName:`${g}-motion`,leavedClassName:`${g}-motion-hidden`,onEnterStart:g6,onEnterActive:v6,onLeaveStart:v6,onLeaveActive:g6,visible:n,forceRender:m},({className:y,style:x})=>ee.createElement("div",{className:Te(g,y,i),style:{...x,...s}},(c!==!1||t)&&ee.createElement("div",{className:Te(`${g}-header`,l.header),style:{...u.header}},ee.createElement("div",{className:`${g}-title`},t),c!==!1&&ee.createElement("div",{className:`${g}-close`},ee.createElement(Z.Button,{type:"text",icon:ee.createElement(T4,null),size:"small",onClick:()=>{r==null||r(!n)}}))),a&&ee.createElement("div",{className:Te(`${g}-content`,l.content),style:{...u.content}},a)))}const Ph=ee.createContext(null);function pK(e,t){const{className:r,action:n,onClick:a,...i}=e,s=ee.useContext(Ph),{prefixCls:l,disabled:u}=s,c=s[n],m=u??i.disabled??s[`${n}Disabled`];return ee.createElement(Z.Button,nt({type:"text"},i,{ref:t,onClick:p=>{m||(c&&c(),a&&a(p))},className:Te(l,r,{[`${l}-disabled`]:m})}))}const Dh=ee.forwardRef(pK);function mK(e,t){return ee.createElement(Dh,nt({icon:ee.createElement(E4,null)},e,{action:"onClear",ref:t}))}const gK=ee.forwardRef(mK),vK=F.memo(e=>{const{className:t}=e;return F.createElement("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:t},F.createElement("title",null,"Stop Loading"),F.createElement("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"}),F.createElement("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor",strokeWidth:"100",opacity:"0.45"}),F.createElement("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor",strokeWidth:"100",strokeDasharray:"600 9999999"},F.createElement("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"})))});function bK(e,t){const{prefixCls:r}=ee.useContext(Ph),{className:n}=e;return ee.createElement(Dh,nt({icon:null,color:"primary",variant:"text",shape:"circle"},e,{className:Te(n,`${r}-loading-button`),action:"onCancel",ref:t}),ee.createElement(vK,{className:`${r}-loading-icon`}))}const b6=ee.forwardRef(bK);function yK(e,t){return ee.createElement(Dh,nt({icon:ee.createElement(x4,null),type:"primary",shape:"circle"},e,{action:"onSend",ref:t}))}const y6=ee.forwardRef(yK),_l=1e3,wl=4,Cf=140,_6=Cf/2,Kd=250,w6=500,Xd=.8;function _K({className:e}){return F.createElement("svg",{color:"currentColor",viewBox:`0 0 ${_l} ${_l}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:e},F.createElement("title",null,"Speech Recording"),Array.from({length:wl}).map((t,r)=>{const n=(_l-Cf*wl)/(wl-1),a=r*(n+Cf),i=_l/2-Kd/2,s=_l/2-w6/2;return F.createElement("rect",{fill:"currentColor",rx:_6,ry:_6,height:Kd,width:Cf,x:a,y:i,key:r},F.createElement("animate",{attributeName:"height",values:`${Kd}; ${w6}; ${Kd}`,keyTimes:"0; 0.5; 1",dur:`${Xd}s`,begin:`${Xd/wl*r}s`,repeatCount:"indefinite"}),F.createElement("animate",{attributeName:"y",values:`${i}; ${s}; ${i}`,keyTimes:"0; 0.5; 1",dur:`${Xd}s`,begin:`${Xd/wl*r}s`,repeatCount:"indefinite"}))}))}function wK(e,t){const{speechRecording:r,onSpeechDisabled:n,prefixCls:a}=ee.useContext(Ph);let i=null;return r?i=ee.createElement(_K,{className:`${a}-recording-icon`}):n?i=ee.createElement(S4,null):i=ee.createElement(C4,null),ee.createElement(Dh,nt({icon:i,color:"primary",variant:"text"},e,{action:"onSpeech",ref:t}))}const xK=ee.forwardRef(wK),SK=e=>{const{componentCls:t,calc:r}=e,n=`${t}-header`;return{[t]:{[n]:{borderBottomWidth:e.lineWidth,borderBottomStyle:"solid",borderBottomColor:e.colorBorder,"&-header":{background:e.colorFillAlter,fontSize:e.fontSize,lineHeight:e.lineHeight,paddingBlock:r(e.paddingSM).sub(e.lineWidthBold).equal(),paddingInlineStart:e.padding,paddingInlineEnd:e.paddingXS,display:"flex",[`${n}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map(a=>`${a} ${e.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}}}}}},CK=e=>{const{componentCls:t,padding:r,paddingSM:n,paddingXS:a,lineWidth:i,lineWidthBold:s,calc:l}=e;return{[t]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:l(e.borderRadius).mul(2).equal()},borderColor:e.colorBorder,borderWidth:0,borderStyle:"solid","&:after":{content:'""',position:"absolute",inset:0,pointerEvents:"none",transition:`border-color ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"inherit"},borderStyle:"inherit",borderColor:"inherit",borderWidth:i},"&:focus-within":{boxShadow:`${e.boxShadowSecondary}`,borderColor:e.colorPrimary,"&:after":{borderWidth:s}},"&-disabled":{background:e.colorBgContainerDisabled},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{display:"flex",gap:a,width:"100%",paddingBlock:n,paddingInlineStart:r,paddingInlineEnd:n,boxSizing:"border-box",alignItems:"flex-end"},[`${t}-prefix`]:{flex:"none"},[`${t}-input`]:{padding:0,borderRadius:0,flex:"auto",alignSelf:"center",minHeight:"auto"},[`${t}-actions-list`]:{flex:"none",display:"flex","&-presets":{gap:e.paddingXS}},[`${t}-actions-btn`]:{"&-disabled":{opacity:.45},"&-loading-button":{padding:0,border:0},"&-loading-icon":{height:e.controlHeight,width:e.controlHeight,verticalAlign:"top"},"&-recording-icon":{height:"1.2em",width:"1.2em",verticalAlign:"top"}}}}},EK=()=>({}),kK=Gs("Sender",e=>{const{paddingXS:t,calc:r}=e,n=$i(e,{SenderContentMaxWidth:`calc(100% - ${ai(r(t).add(32).equal())})`});return[CK(n),SK(n)]},EK);let Wf;!Wf&&typeof window<"u"&&(Wf=window.SpeechRecognition||window.webkitSpeechRecognition);function TK(e,t){const r=Zn(e),[n,a,i]=F.useMemo(()=>typeof t=="object"?[t.recording,t.onRecordingChange,typeof t.recording=="boolean"]:[void 0,void 0,!1],[t]),[s,l]=F.useState(null);F.useEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let E=null;return navigator.permissions.query({name:"microphone"}).then(k=>{l(k.state),k.onchange=function(){l(this.state)},E=k}),()=>{E&&(E.onchange=null)}}},[]);const u=Wf&&s!=="denied",c=F.useRef(null),[m,p]=Sh(!1,{value:n}),g=F.useRef(!1),y=()=>{if(u&&!c.current){const E=new Wf;E.onstart=()=>{p(!0)},E.onend=()=>{p(!1)},E.onresult=k=>{var T,w,S;if(!g.current){const f=(S=(w=(T=k.results)==null?void 0:T[0])==null?void 0:w[0])==null?void 0:S.transcript;r(f)}g.current=!1},c.current=E}},x=Zn(E=>{E&&!m||(g.current=E,i?a==null||a(!m):(y(),c.current&&(m?(c.current.stop(),a==null||a(!1)):(c.current.start(),a==null||a(!0)))))});return[u,x,m]}function OK(e,t,r){return cV(e,t)||r}const AK=F.forwardRef((e,t)=>{const{prefixCls:r,styles:n={},classNames:a={},className:i,rootClassName:s,style:l,defaultValue:u,value:c,readOnly:m,submitType:p="enter",onSubmit:g,loading:y,components:x,onCancel:E,onChange:k,actions:T,onKeyPress:w,onKeyDown:S,disabled:f,allowSpeech:h,prefix:v,header:_,onPaste:R,onPasteFile:C,...P}=e,{direction:M,getPrefixCls:U}=ga(),L=U("sender",r),N=F.useRef(null),j=F.useRef(null);fK(t,()=>{var Oe,at;return{nativeElement:N.current,focus:(Oe=j.current)==null?void 0:Oe.focus,blur:(at=j.current)==null?void 0:at.blur}});const O=Ws("sender"),I=`${L}-input`,[z,B,H]=kK(L),q=Te(L,O.className,i,s,B,H,{[`${L}-rtl`]:M==="rtl",[`${L}-disabled`]:f}),J=`${L}-actions-btn`,re=`${L}-actions-list`,[ne,se]=Sh(u||"",{value:c}),ce=(Oe,at)=>{se(Oe),k&&k(Oe,at)},[le,ye,we]=TK(Oe=>{ce(`${ne} ${Oe}`)},h),Ee=OK(x,["input"],Z.Input.TextArea),he={...Rh(P,{attr:!0,aria:!0,data:!0}),ref:j},qe=()=>{ne&&g&&!y&&g(ne)},oe=()=>{ce("")},De=F.useRef(!1),Je=()=>{De.current=!0},Ct=()=>{De.current=!1},Et=Oe=>{const at=Oe.key==="Enter"&&!De.current;switch(p){case"enter":at&&!Oe.shiftKey&&(Oe.preventDefault(),qe());break;case"shiftEnter":at&&Oe.shiftKey&&(Oe.preventDefault(),qe());break}w&&w(Oe)},Fe=Oe=>{var Pr;const at=(Pr=Oe.clipboardData)==null?void 0:Pr.files[0];at&&C&&(C(at),Oe.preventDefault()),R==null||R(Oe)},We=Oe=>{var at,Pr;Oe.target!==((at=N.current)==null?void 0:at.querySelector(`.${I}`))&&Oe.preventDefault(),(Pr=j.current)==null||Pr.focus()};let Ne=F.createElement(Z.Flex,{className:`${re}-presets`},h&&F.createElement(xK,null),y?F.createElement(b6,null):F.createElement(y6,null));return typeof T=="function"?Ne=T(Ne,{components:{SendButton:y6,ClearButton:gK,LoadingButton:b6}}):T&&(Ne=T),z(F.createElement("div",{ref:N,className:q,style:{...O.style,...l}},_&&F.createElement(kE.Provider,{value:{prefixCls:L}},_),F.createElement("div",{className:`${L}-content`,onMouseDown:We},v&&F.createElement("div",{className:Te(`${L}-prefix`,O.classNames.prefix,a.prefix),style:{...O.styles.prefix,...n.prefix}},v),F.createElement(Ee,nt({},he,{disabled:f,style:{...O.styles.input,...n.input},className:Te(I,O.classNames.input,a.input),autoSize:{maxRows:8},value:ne,onChange:Oe=>{ce(Oe.target.value,Oe),ye(!0)},onPressEnter:Et,onCompositionStart:Je,onCompositionEnd:Ct,onKeyDown:S,onPaste:Fe,variant:"borderless",readOnly:m})),F.createElement("div",{className:Te(re,O.classNames.actions,a.actions),style:{...O.styles.actions,...n.actions}},F.createElement(Ph.Provider,{value:{prefixCls:J,onSend:qe,onSendDisabled:!ne,onClear:oe,onClearDisabled:!ne,onCancel:E,onCancelDisabled:!y,onSpeech:()=>ye(!1),onSpeechDisabled:!le,speechRecording:we,disabled:f}},Ne)))))}),Vf=AK;process.env.NODE_ENV!=="production"&&(Vf.displayName="Sender");Vf.Header=hK;function Zd(e){return typeof e=="string"}const RK=(e,t,r,n)=>{const[a,i]=ee.useState(""),[s,l]=ee.useState(1),u=t&&Zd(e);return jv(()=>{i(e),!u&&Zd(e)?l(e.length):Zd(e)&&Zd(a)&&e.indexOf(a)!==0&&l(1)},[e]),ee.useEffect(()=>{if(u&&s<e.length){const m=setTimeout(()=>{l(p=>p+r)},n);return()=>{clearTimeout(m)}}},[s,t,e]),[u?e.slice(0,s):e,u&&s<e.length]};function PK(e){return ee.useMemo(()=>{if(!e)return[!1,0,0,null];let t={step:1,interval:50,suffix:null};return typeof e=="object"&&(t={...t,...e}),[!0,t.step,t.interval,t.suffix]},[e])}const DK=({prefixCls:e})=>F.createElement("span",{className:`${e}-dot`},F.createElement("i",{className:`${e}-dot-item`,key:"item-1"}),F.createElement("i",{className:`${e}-dot-item`,key:"item-2"}),F.createElement("i",{className:`${e}-dot-item`,key:"item-3"})),MK=e=>{const{componentCls:t,paddingSM:r,padding:n}=e;return{[t]:{[`${t}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${ai(r)} ${ai(n)}`,borderRadius:e.borderRadiusLG},"&-filled":{backgroundColor:e.colorFillContent},"&-outlined":{border:`1px solid ${e.colorBorderSecondary}`},"&-shadow":{boxShadow:e.boxShadowTertiary}}}}},FK=e=>{const{componentCls:t,fontSize:r,lineHeight:n,paddingSM:a,padding:i,calc:s}=e,l=s(r).mul(n).div(2).add(a).equal(),u=`${t}-content`;return{[t]:{[u]:{"&-round":{borderRadius:{_skip_check_:!0,value:l},paddingInline:s(i).mul(1.25).equal()}},[`&-start ${u}-corner`]:{borderStartStartRadius:e.borderRadiusXS},[`&-end ${u}-corner`]:{borderStartEndRadius:e.borderRadiusXS}}}},NK=e=>{const{componentCls:t,padding:r}=e;return{[`${t}-list`]:{display:"flex",flexDirection:"column",gap:r,overflowY:"auto"}}},IK=new bE("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),LK=new bE("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),jK=e=>{const{componentCls:t,fontSize:r,lineHeight:n,paddingSM:a,colorText:i,calc:s}=e;return{[t]:{display:"flex",columnGap:a,[`&${t}-end`]:{justifyContent:"end",flexDirection:"row-reverse",[`& ${t}-content-wrapper`]:{alignItems:"flex-end"}},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-typing ${t}-content:last-child::after`]:{content:'"|"',fontWeight:900,userSelect:"none",opacity:1,marginInlineStart:"0.1em",animationName:LK,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${t}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${t}-header, & ${t}-footer`]:{fontSize:r,lineHeight:n,color:e.colorText},[`& ${t}-header`]:{marginBottom:e.paddingXXS},[`& ${t}-footer`]:{marginTop:a},[`& ${t}-content-wrapper`]:{flex:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:0,maxWidth:"100%"},[`& ${t}-content`]:{position:"relative",boxSizing:"border-box",minWidth:0,maxWidth:"100%",color:i,fontSize:e.fontSize,lineHeight:e.lineHeight,minHeight:s(a).mul(2).add(s(n).mul(r)).equal(),wordBreak:"break-word",[`& ${t}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:e.marginXS,padding:`0 ${ai(e.paddingXXS)}`,"&-item":{backgroundColor:e.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:IK,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},$K=()=>({}),TE=Gs("Bubble",e=>{const t=$i(e,{});return[jK(t),NK(t),MK(t),FK(t)]},$K),OE=F.createContext({}),zK=(e,t)=>{const{prefixCls:r,className:n,rootClassName:a,style:i,classNames:s={},styles:l={},avatar:u,placement:c="start",loading:m=!1,loadingRender:p,typing:g,content:y="",messageRender:x,variant:E="filled",shape:k,onTypingComplete:T,header:w,footer:S,...f}=e,{onUpdate:h}=F.useContext(OE),v=F.useRef(null);F.useImperativeHandle(t,()=>({nativeElement:v.current}));const{direction:_,getPrefixCls:R}=ga(),C=R("bubble",r),P=Ws("bubble"),[M,U,L,N]=PK(g),[j,O]=RK(y,M,U,L);F.useEffect(()=>{h==null||h()},[j]);const I=F.useRef(!1);F.useEffect(()=>{!O&&!m?I.current||(I.current=!0,T==null||T()):I.current=!1},[O,m]);const[z,B,H]=TE(C),q=Te(C,a,P.className,n,B,H,`${C}-${c}`,{[`${C}-rtl`]:_==="rtl",[`${C}-typing`]:O&&!m&&!x&&!N}),J=F.isValidElement(u)?u:F.createElement(Z.Avatar,u),re=x?x(j):j;let ne;m?ne=p?p():F.createElement(DK,{prefixCls:C}):ne=F.createElement(F.Fragment,null,re,O&&N);let se=F.createElement("div",{style:{...P.styles.content,...l.content},className:Te(`${C}-content`,`${C}-content-${E}`,k&&`${C}-content-${k}`,P.classNames.content,s.content)},ne);return(w||S)&&(se=F.createElement("div",{className:`${C}-content-wrapper`},w&&F.createElement("div",{className:Te(`${C}-header`,P.classNames.header,s.header),style:{...P.styles.header,...l.header}},w),se,S&&F.createElement("div",{className:Te(`${C}-footer`,P.classNames.footer,s.footer),style:{...P.styles.footer,...l.footer}},S))),z(F.createElement("div",nt({style:{...P.style,...i},className:q},f,{ref:v}),u&&F.createElement("div",{style:{...P.styles.avatar,...l.avatar},className:Te(`${C}-avatar`,P.classNames.avatar,s.avatar)},J),se))},Mh=F.forwardRef(zK);process.env.NODE_ENV!=="production"&&(Mh.displayName="Bubble");function BK(e){const[t,r]=F.useState(e.length),n=F.useMemo(()=>e.slice(0,t),[e,t]),a=F.useMemo(()=>{const s=n[n.length-1];return s?s.key:null},[n]);F.useEffect(()=>{var s;if(!(n.length&&n.every((l,u)=>{var c;return l.key===((c=e[u])==null?void 0:c.key)}))){if(n.length===0)r(1);else for(let l=0;l<n.length;l+=1)if(n[l].key!==((s=e[l])==null?void 0:s.key)){r(l);break}}},[e]);const i=Zn(s=>{s===a&&r(t+1)});return[n,i]}function HK(e,t){const r=ee.useCallback(n=>typeof t=="function"?t(n):t?t[n.role]||{}:{},[t]);return ee.useMemo(()=>(e||[]).map((n,a)=>{const i=n.key??`preset_${a}`;return{...r(n),...n,key:i}}),[e,r])}const UK=1,qK=(e,t)=>{const{prefixCls:r,rootClassName:n,className:a,items:i,autoScroll:s=!0,roles:l,...u}=e,c=Rh(u,{attr:!0,aria:!0}),m=ee.useRef(null),p=ee.useRef({}),{getPrefixCls:g}=ga(),y=g("bubble",r),x=`${y}-list`,[E,k,T]=TE(y),[w,S]=ee.useState(!1);ee.useEffect(()=>(S(!0),()=>{S(!1)}),[]);const f=HK(i,l),[h,v]=BK(f),[_,R]=ee.useState(!0),[C,P]=ee.useState(0),M=N=>{const j=N.target;R(j.scrollHeight-Math.abs(j.scrollTop)-j.clientHeight<=UK)};ee.useEffect(()=>{s&&m.current&&_&&m.current.scrollTo({top:m.current.scrollHeight})},[C]),ee.useEffect(()=>{var N;if(s){const j=(N=h[h.length-2])==null?void 0:N.key,O=p.current[j];if(O){const{nativeElement:I}=O,{top:z,bottom:B}=I.getBoundingClientRect(),{top:H,bottom:q}=m.current.getBoundingClientRect();z<q&&B>H&&(P(re=>re+1),R(!0))}}},[h.length]),ee.useImperativeHandle(t,()=>({nativeElement:m.current,scrollTo:({key:N,offset:j,behavior:O="smooth",block:I})=>{if(typeof j=="number")m.current.scrollTo({top:j,behavior:O});else if(N!==void 0){const z=p.current[N];if(z){const B=h.findIndex(H=>H.key===N);R(B===h.length-1),z.nativeElement.scrollIntoView({behavior:O,block:I})}}}}));const U=Zn(()=>{s&&P(N=>N+1)}),L=ee.useMemo(()=>({onUpdate:U}),[]);return E(ee.createElement(OE.Provider,{value:L},ee.createElement("div",nt({},c,{className:Te(x,n,a,k,T,{[`${x}-reach-end`]:_}),ref:m,onScroll:M}),h.map(({key:N,...j})=>ee.createElement(Mh,nt({},j,{key:N,ref:O=>{O?p.current[N]=O:delete p.current[N]},typing:w?j.typing:!1,onTypingComplete:()=>{var O;(O=j.onTypingComplete)==null||O.call(j),v(N)}}))))))},AE=ee.forwardRef(qK);process.env.NODE_ENV!=="production"&&(AE.displayName="BubbleList");Mh.List=AE;const RE=F.createContext(null),x6=({children:e})=>{const{prefixCls:t}=F.useContext(RE);return F.createElement("div",{className:Te(`${t}-group-title`)},e&&F.createElement(Z.Typography.Text,null,e))},WK=e=>{e.stopPropagation()},VK=e=>{const{prefixCls:t,info:r,className:n,direction:a,onClick:i,active:s,menu:l,...u}=e,c=Rh(u,{aria:!0,data:!0,attr:!0}),{disabled:m}=r,[p,g]=F.useState(!1),[y,x]=F.useState(!1),E=Te(n,`${t}-item`,{[`${t}-item-active`]:s&&!m},{[`${t}-item-disabled`]:m}),k=()=>{!m&&i&&i(r)},T=w=>{w&&x(!w)};return F.createElement(Z.Tooltip,{title:r.label,open:p&&y,onOpenChange:x,placement:a==="rtl"?"left":"right"},F.createElement("li",nt({},c,{className:E,onClick:k}),r.icon&&F.createElement("div",{className:`${t}-icon`},r.icon),F.createElement(Z.Typography.Text,{className:`${t}-label`,ellipsis:{onEllipsis:g}},r.label),l&&!m&&F.createElement(Z.Dropdown,{menu:l,placement:a==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:m,onOpenChange:T},F.createElement(O4,{onClick:WK,disabled:m,className:`${t}-menu-icon`}))))},_g="__ungrouped",YK=(e,t=[])=>{const[r,n,a]=F.useMemo(()=>{if(!e)return[!1,void 0,void 0];let i={sort:void 0,title:void 0};return typeof e=="object"&&(i={...i,...e}),[!0,i.sort,i.title]},[e]);return F.useMemo(()=>{if(!r)return[[{name:_g,data:t,title:void 0}],r];const i=t.reduce((u,c)=>{const m=c.group||_g;return u[m]||(u[m]=[]),u[m].push(c),u},{});return[(n?Object.keys(i).sort(n):Object.keys(i)).map(u=>({name:u===_g?void 0:u,title:a,data:i[u]})),r]},[t,e])},GK=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",gap:e.paddingXXS,overflowY:"auto",padding:e.paddingSM,[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-list`]:{display:"flex",gap:e.paddingXXS,flexDirection:"column",[`& ${t}-item`]:{paddingInlineStart:e.paddingXL},[`& ${t}-label`]:{color:e.colorTextDescription}},[`& ${t}-item`]:{display:"flex",height:e.controlHeightLG,minHeight:e.controlHeightLG,gap:e.paddingXS,padding:`0 ${ai(e.paddingXS)}`,alignItems:"center",borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,"&:hover":{backgroundColor:e.colorBgTextHover},"&-active":{backgroundColor:e.colorBgTextHover,[`& ${t}-label, ${t}-menu-icon`]:{color:e.colorText}},"&-disabled":{cursor:"not-allowed",[`& ${t}-label`]:{color:e.colorTextDisabled}},"&:hover, &-active":{[`& ${t}-menu-icon`]:{opacity:1}}},[`& ${t}-label`]:{flex:1,color:e.colorText},[`& ${t}-menu-icon`]:{opacity:0,fontSize:e.fontSizeXL},[`& ${t}-group-title`]:{display:"flex",alignItems:"center",height:e.controlHeightLG,minHeight:e.controlHeightLG,padding:`0 ${ai(e.paddingXS)}`}}}},KK=()=>({}),XK=Gs("Conversations",e=>{const t=$i(e,{});return GK(t)},KK),PE=e=>{const{prefixCls:t,rootClassName:r,items:n,activeKey:a,defaultActiveKey:i,onActiveChange:s,menu:l,styles:u={},classNames:c={},groupable:m,className:p,style:g,...y}=e,x=Rh(y,{attr:!0,aria:!0,data:!0}),[E,k]=Sh(i,{value:a}),[T,w]=YK(m,n),{getPrefixCls:S,direction:f}=ga(),h=S("conversations",t),v=Ws("conversations"),[_,R,C]=XK(h),P=Te(h,v.className,p,r,R,C,{[`${h}-rtl`]:f==="rtl"}),M=U=>{k(U.key),s&&s(U.key)};return _(F.createElement("ul",nt({},x,{style:{...v.style,...g},className:P}),T.map((U,L)=>{var j;const N=U.data.map((O,I)=>F.createElement(VK,{key:O.key||`key-${I}`,info:O,prefixCls:h,direction:f,className:Te(c.item,v.classNames.item),style:{...v.styles.item,...u.item},menu:typeof l=="function"?l(O):l,active:E===O.key,onClick:M}));return w?F.createElement("li",{key:U.name||`key-${L}`},F.createElement(RE.Provider,{value:{prefixCls:h}},((j=U.title)==null?void 0:j.call(U,U.name,{components:{GroupTitle:x6}}))||F.createElement(x6,{key:U.name},U.name)),F.createElement("ul",{className:`${h}-list`},N)):N})))};process.env.NODE_ENV!=="production"&&(PE.displayName="Conversations");const ZK=e=>{const{componentCls:t}=e;return{[t]:{"&, & *":{boxSizing:"border-box"},maxWidth:"100%",[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-title`]:{marginBlockStart:0,fontWeight:"normal",color:e.colorTextTertiary},[`& ${t}-list`]:{display:"flex",gap:e.paddingSM,overflowX:"scroll","&::-webkit-scrollbar":{display:"none"},listStyle:"none",paddingInlineStart:0,marginBlock:0,alignItems:"stretch","&-wrap":{flexWrap:"wrap"},"&-vertical":{flexDirection:"column",alignItems:"flex-start"}},[`${t}-item`]:{flex:"none",display:"flex",gap:e.paddingXS,height:"auto",paddingBlock:e.paddingSM,paddingInline:e.padding,alignItems:"flex-start",justifyContent:"flex-start",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,transition:["border","background"].map(r=>`${r} ${e.motionDurationSlow}`).join(","),border:`${ai(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,[`&:not(${t}-item-has-nest)`]:{"&:hover":{cursor:"pointer",background:e.colorFillTertiary},"&:active":{background:e.colorFill}},[`${t}-content`]:{flex:"auto",minWidth:0,display:"flex",gap:e.paddingXXS,flexDirection:"column",alignItems:"flex-start"},[`${t}-icon, ${t}-label, ${t}-desc`]:{margin:0,padding:0,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start",whiteSpace:"normal"},[`${t}-label`]:{color:e.colorTextHeading,fontWeight:500},[`${t}-label + ${t}-desc`]:{color:e.colorTextTertiary},[`&${t}-item-disabled`]:{pointerEvents:"none",background:e.colorBgContainerDisabled,[`${t}-label, ${t}-desc`]:{color:e.colorTextTertiary}}}}}},JK=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-item-has-nest`]:{[`> ${t}-content`]:{[`> ${t}-label`]:{fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}}},[`&${t}-nested`]:{marginTop:e.paddingXS,alignSelf:"stretch",[`${t}-list`]:{alignItems:"stretch"},[`${t}-item`]:{border:0,background:e.colorFillQuaternary}}}}},QK=()=>({}),eX=Gs("Prompts",e=>{const t=$i(e,{});return[ZK(t),JK(t)]},QK),Fh=e=>{const{prefixCls:t,title:r,className:n,items:a,onItemClick:i,vertical:s,wrap:l,rootClassName:u,styles:c={},classNames:m={},style:p,...g}=e,{getPrefixCls:y,direction:x}=ga(),E=y("prompts",t),k=Ws("prompts"),[T,w,S]=eX(E),f=Te(E,k.className,n,u,w,S,{[`${E}-rtl`]:x==="rtl"}),h=Te(`${E}-list`,k.classNames.list,m.list,{[`${E}-list-wrap`]:l},{[`${E}-list-vertical`]:s});return T(F.createElement("div",nt({},g,{className:f,style:{...p,...k.style}}),r&&F.createElement(Z.Typography.Title,{level:5,className:Te(`${E}-title`,k.classNames.title,m.title),style:{...k.styles.title,...c.title}},r),F.createElement("div",{className:h,style:{...k.styles.list,...c.list}},a==null?void 0:a.map((v,_)=>{const R=v.children&&v.children.length>0;return F.createElement("div",{key:v.key||`key_${_}`,style:{...k.styles.item,...c.item},className:Te(`${E}-item`,k.classNames.item,m.item,{[`${E}-item-disabled`]:v.disabled,[`${E}-item-has-nest`]:R}),onClick:()=>{!R&&i&&i({data:v})}},v.icon&&F.createElement("div",{className:`${E}-icon`},v.icon),F.createElement("div",{className:Te(`${E}-content`,k.classNames.itemContent,m.itemContent),style:{...k.styles.itemContent,...c.itemContent}},v.label&&F.createElement("h6",{className:`${E}-label`},v.label),v.description&&F.createElement("p",{className:`${E}-desc`},v.description),R&&F.createElement(Fh,{className:`${E}-nested`,items:v.children,vertical:!0,onItemClick:i,classNames:{list:m.subList,item:m.subItem},styles:{list:c.subList,item:c.subItem}})))}))))};process.env.NODE_ENV!=="production"&&(Fh.displayName="Prompts");const tX=e=>{const{componentCls:t,calc:r}=e,n=r(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),a=r(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:r(n).add(a).add(e.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${t}-content-wrapper`]:{gap:e.paddingXS,flex:"auto",minWidth:0,[`${t}-title-wrapper`]:{gap:e.paddingXS},[`${t}-title`]:{margin:0},[`${t}-extra`]:{marginInlineStart:"auto"}}}}},rX=e=>{const{componentCls:t}=e;return{[t]:{"&-filled":{paddingInline:e.padding,paddingBlock:e.paddingSM,background:e.colorFillContent,borderRadius:e.borderRadiusLG},"&-borderless":{[`${t}-title`]:{fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3}}}}},nX=()=>({}),aX=Gs("Welcome",e=>{const t=$i(e,{});return[tX(t),rX(t)]},nX);function iX(e,t){const{prefixCls:r,rootClassName:n,className:a,style:i,variant:s="filled",classNames:l={},styles:u={},icon:c,title:m,description:p,extra:g}=e,{direction:y,getPrefixCls:x}=ga(),E=x("welcome",r),k=Ws("welcome"),[T,w,S]=aX(E),f=F.useMemo(()=>{if(!c)return null;let _=c;return typeof c=="string"&&c.startsWith("http")&&(_=F.createElement("img",{src:c,alt:"icon"})),F.createElement("div",{className:Te(`${E}-icon`,k.classNames.icon,l.icon),style:u.icon},_)},[c]),h=F.useMemo(()=>m?F.createElement(Z.Typography.Title,{level:4,className:Te(`${E}-title`,k.classNames.title,l.title),style:u.title},m):null,[m]),v=F.useMemo(()=>g?F.createElement("div",{className:Te(`${E}-extra`,k.classNames.extra,l.extra),style:u.extra},g):null,[g]);return T(F.createElement(Z.Flex,{ref:t,className:Te(E,k.className,a,n,w,S,`${E}-${s}`,{[`${E}-rtl`]:y==="rtl"}),style:i},f,F.createElement(Z.Flex,{vertical:!0,className:`${E}-content-wrapper`},g?F.createElement(Z.Flex,{align:"flex-start",className:`${E}-title-wrapper`},h,v):h,p&&F.createElement(Z.Typography.Text,{className:Te(`${E}-description`,k.classNames.description,l.description),style:u.description},p))))}const DE=F.forwardRef(iX);process.env.NODE_ENV!=="production"&&(DE.displayName="Welcome");function oX(e){const[,t]=F.useState(0),r=F.useRef(typeof e=="function"?e():e),n=F.useCallback(i=>{r.current=typeof i=="function"?i(r.current):i,t(s=>s+1)},[]),a=F.useCallback(()=>r.current,[]);return[r.current,n,a]}function sX(e){return Array.isArray(e)?e:[e]}function uX(e){const{defaultMessages:t,agent:r,requestFallback:n,requestPlaceholder:a,parser:i}=e,s=F.useRef(0),[l,u,c]=oX(()=>(t||[]).map((E,k)=>({id:`default_${k}`,status:"local",...E}))),m=(E,k)=>{const T={id:`msg_${s.current}`,message:E,status:k};return s.current+=1,T},p=F.useMemo(()=>{const E=[];return l.forEach(k=>{const T=i?i(k.message):k.message,w=sX(T);w.forEach((S,f)=>{let h=k.id;w.length>1&&(h=`${h}_${f}`),E.push({id:h,message:S,status:k.status})})}),E},[l]),g=E=>E.filter(k=>k.status!=="loading"&&k.status!=="error").map(k=>k.message),y=()=>g(c());return{onRequest:Zn(E=>{if(!r)throw new Error("The agent parameter is required when using the onRequest method in an agent generated by useXAgent.");let k=null;u(S=>{let f=[...S,m(E,"local")];if(a){let h;typeof a=="function"?h=a(E,{messages:g(f)}):h=a;const v=m(h,"loading");k=v.id,f=[...f,v]}return f});let T=null;const w=(S,f)=>{let h=c().find(v=>v.id===T);return h?u(v=>v.map(_=>_.id===T?{..._,message:S,status:f}:_)):(h=m(S,f),u(v=>[...v.filter(R=>R.id!==k),h]),T=h.id),h};r.request({message:E,messages:y()},{onUpdate:S=>{w(S,"loading")},onSuccess:S=>{w(S,"success")},onError:async S=>{if(n){let f;typeof n=="function"?f=await n(E,{error:S,messages:y()}):f=n,u(h=>[...h.filter(v=>v.id!==k&&v.id!==T),m(f,"error")])}else u(f=>f.filter(h=>h.id!==k&&h.id!==T))}})}),messages:l,parsedMessages:p,setMessages:u}}const lX=`
|
|
493
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,lK="".concat(sK," ").concat(uK).split(/[\s\n]+/),cK="aria-",dK="data-";function m6(e,t){return e.indexOf(t)===0}function Rh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=pe({},t);var n={};return Object.keys(e).forEach(function(a){(r.aria&&(a==="role"||m6(a,cK))||r.data&&m6(a,dK)||r.attr&&lK.includes(a))&&(n[a]=e[a])}),n}function fK(e,t){return F.useImperativeHandle(e,()=>{const r=t(),{nativeElement:n}=r;return new Proxy(n,{get(a,i){return r[i]?r[i]:Reflect.get(a,i)}})})}const kE=ee.createContext({}),g6=()=>({height:0}),v6=e=>({height:e.scrollHeight});function hK(e){const{title:t,onOpenChange:r,open:n,children:a,className:i,style:s,classNames:l={},styles:u={},closable:c,forceRender:m}=e,{prefixCls:p}=ee.useContext(kE),g=`${p}-header`;return ee.createElement(QC,{motionEnter:!0,motionLeave:!0,motionName:`${g}-motion`,leavedClassName:`${g}-motion-hidden`,onEnterStart:g6,onEnterActive:v6,onLeaveStart:v6,onLeaveActive:g6,visible:n,forceRender:m},({className:y,style:x})=>ee.createElement("div",{className:Te(g,y,i),style:{...x,...s}},(c!==!1||t)&&ee.createElement("div",{className:Te(`${g}-header`,l.header),style:{...u.header}},ee.createElement("div",{className:`${g}-title`},t),c!==!1&&ee.createElement("div",{className:`${g}-close`},ee.createElement(X.Button,{type:"text",icon:ee.createElement(TC,null),size:"small",onClick:()=>{r==null||r(!n)}}))),a&&ee.createElement("div",{className:Te(`${g}-content`,l.content),style:{...u.content}},a)))}const Ph=ee.createContext(null);function pK(e,t){const{className:r,action:n,onClick:a,...i}=e,s=ee.useContext(Ph),{prefixCls:l,disabled:u}=s,c=s[n],m=u??i.disabled??s[`${n}Disabled`];return ee.createElement(X.Button,nt({type:"text"},i,{ref:t,onClick:p=>{m||(c&&c(),a&&a(p))},className:Te(l,r,{[`${l}-disabled`]:m})}))}const Dh=ee.forwardRef(pK);function mK(e,t){return ee.createElement(Dh,nt({icon:ee.createElement(EC,null)},e,{action:"onClear",ref:t}))}const gK=ee.forwardRef(mK),vK=F.memo(e=>{const{className:t}=e;return F.createElement("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:t},F.createElement("title",null,"Stop Loading"),F.createElement("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"}),F.createElement("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor",strokeWidth:"100",opacity:"0.45"}),F.createElement("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor",strokeWidth:"100",strokeDasharray:"600 9999999"},F.createElement("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"})))});function bK(e,t){const{prefixCls:r}=ee.useContext(Ph),{className:n}=e;return ee.createElement(Dh,nt({icon:null,color:"primary",variant:"text",shape:"circle"},e,{className:Te(n,`${r}-loading-button`),action:"onCancel",ref:t}),ee.createElement(vK,{className:`${r}-loading-icon`}))}const b6=ee.forwardRef(bK);function yK(e,t){return ee.createElement(Dh,nt({icon:ee.createElement(xC,null),type:"primary",shape:"circle"},e,{action:"onSend",ref:t}))}const y6=ee.forwardRef(yK),_l=1e3,wl=4,Cf=140,_6=Cf/2,Kd=250,w6=500,Xd=.8;function _K({className:e}){return F.createElement("svg",{color:"currentColor",viewBox:`0 0 ${_l} ${_l}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:e},F.createElement("title",null,"Speech Recording"),Array.from({length:wl}).map((t,r)=>{const n=(_l-Cf*wl)/(wl-1),a=r*(n+Cf),i=_l/2-Kd/2,s=_l/2-w6/2;return F.createElement("rect",{fill:"currentColor",rx:_6,ry:_6,height:Kd,width:Cf,x:a,y:i,key:r},F.createElement("animate",{attributeName:"height",values:`${Kd}; ${w6}; ${Kd}`,keyTimes:"0; 0.5; 1",dur:`${Xd}s`,begin:`${Xd/wl*r}s`,repeatCount:"indefinite"}),F.createElement("animate",{attributeName:"y",values:`${i}; ${s}; ${i}`,keyTimes:"0; 0.5; 1",dur:`${Xd}s`,begin:`${Xd/wl*r}s`,repeatCount:"indefinite"}))}))}function wK(e,t){const{speechRecording:r,onSpeechDisabled:n,prefixCls:a}=ee.useContext(Ph);let i=null;return r?i=ee.createElement(_K,{className:`${a}-recording-icon`}):n?i=ee.createElement(SC,null):i=ee.createElement(CC,null),ee.createElement(Dh,nt({icon:i,color:"primary",variant:"text"},e,{action:"onSpeech",ref:t}))}const xK=ee.forwardRef(wK),SK=e=>{const{componentCls:t,calc:r}=e,n=`${t}-header`;return{[t]:{[n]:{borderBottomWidth:e.lineWidth,borderBottomStyle:"solid",borderBottomColor:e.colorBorder,"&-header":{background:e.colorFillAlter,fontSize:e.fontSize,lineHeight:e.lineHeight,paddingBlock:r(e.paddingSM).sub(e.lineWidthBold).equal(),paddingInlineStart:e.padding,paddingInlineEnd:e.paddingXS,display:"flex",[`${n}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map(a=>`${a} ${e.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}}}}}},CK=e=>{const{componentCls:t,padding:r,paddingSM:n,paddingXS:a,lineWidth:i,lineWidthBold:s,calc:l}=e;return{[t]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:l(e.borderRadius).mul(2).equal()},borderColor:e.colorBorder,borderWidth:0,borderStyle:"solid","&:after":{content:'""',position:"absolute",inset:0,pointerEvents:"none",transition:`border-color ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"inherit"},borderStyle:"inherit",borderColor:"inherit",borderWidth:i},"&:focus-within":{boxShadow:`${e.boxShadowSecondary}`,borderColor:e.colorPrimary,"&:after":{borderWidth:s}},"&-disabled":{background:e.colorBgContainerDisabled},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{display:"flex",gap:a,width:"100%",paddingBlock:n,paddingInlineStart:r,paddingInlineEnd:n,boxSizing:"border-box",alignItems:"flex-end"},[`${t}-prefix`]:{flex:"none"},[`${t}-input`]:{padding:0,borderRadius:0,flex:"auto",alignSelf:"center",minHeight:"auto"},[`${t}-actions-list`]:{flex:"none",display:"flex","&-presets":{gap:e.paddingXS}},[`${t}-actions-btn`]:{"&-disabled":{opacity:.45},"&-loading-button":{padding:0,border:0},"&-loading-icon":{height:e.controlHeight,width:e.controlHeight,verticalAlign:"top"},"&-recording-icon":{height:"1.2em",width:"1.2em",verticalAlign:"top"}}}}},EK=()=>({}),kK=Gs("Sender",e=>{const{paddingXS:t,calc:r}=e,n=$i(e,{SenderContentMaxWidth:`calc(100% - ${ai(r(t).add(32).equal())})`});return[CK(n),SK(n)]},EK);let Wf;!Wf&&typeof window<"u"&&(Wf=window.SpeechRecognition||window.webkitSpeechRecognition);function TK(e,t){const r=Zn(e),[n,a,i]=F.useMemo(()=>typeof t=="object"?[t.recording,t.onRecordingChange,typeof t.recording=="boolean"]:[void 0,void 0,!1],[t]),[s,l]=F.useState(null);F.useEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let E=null;return navigator.permissions.query({name:"microphone"}).then(k=>{l(k.state),k.onchange=function(){l(this.state)},E=k}),()=>{E&&(E.onchange=null)}}},[]);const u=Wf&&s!=="denied",c=F.useRef(null),[m,p]=Sh(!1,{value:n}),g=F.useRef(!1),y=()=>{if(u&&!c.current){const E=new Wf;E.onstart=()=>{p(!0)},E.onend=()=>{p(!1)},E.onresult=k=>{var T,w,S;if(!g.current){const f=(S=(w=(T=k.results)==null?void 0:T[0])==null?void 0:w[0])==null?void 0:S.transcript;r(f)}g.current=!1},c.current=E}},x=Zn(E=>{E&&!m||(g.current=E,i?a==null||a(!m):(y(),c.current&&(m?(c.current.stop(),a==null||a(!1)):(c.current.start(),a==null||a(!0)))))});return[u,x,m]}function OK(e,t,r){return cV(e,t)||r}const AK=F.forwardRef((e,t)=>{const{prefixCls:r,styles:n={},classNames:a={},className:i,rootClassName:s,style:l,defaultValue:u,value:c,readOnly:m,submitType:p="enter",onSubmit:g,loading:y,components:x,onCancel:E,onChange:k,actions:T,onKeyPress:w,onKeyDown:S,disabled:f,allowSpeech:h,prefix:v,header:_,onPaste:R,onPasteFile:C,...P}=e,{direction:M,getPrefixCls:U}=ga(),L=U("sender",r),N=F.useRef(null),j=F.useRef(null);fK(t,()=>{var Oe,at;return{nativeElement:N.current,focus:(Oe=j.current)==null?void 0:Oe.focus,blur:(at=j.current)==null?void 0:at.blur}});const O=Ws("sender"),I=`${L}-input`,[z,B,H]=kK(L),q=Te(L,O.className,i,s,B,H,{[`${L}-rtl`]:M==="rtl",[`${L}-disabled`]:f}),J=`${L}-actions-btn`,re=`${L}-actions-list`,[ne,se]=Sh(u||"",{value:c}),ce=(Oe,at)=>{se(Oe),k&&k(Oe,at)},[le,ye,we]=TK(Oe=>{ce(`${ne} ${Oe}`)},h),Ee=OK(x,["input"],X.Input.TextArea),he={...Rh(P,{attr:!0,aria:!0,data:!0}),ref:j},qe=()=>{ne&&g&&!y&&g(ne)},oe=()=>{ce("")},De=F.useRef(!1),Je=()=>{De.current=!0},Ct=()=>{De.current=!1},Et=Oe=>{const at=Oe.key==="Enter"&&!De.current;switch(p){case"enter":at&&!Oe.shiftKey&&(Oe.preventDefault(),qe());break;case"shiftEnter":at&&Oe.shiftKey&&(Oe.preventDefault(),qe());break}w&&w(Oe)},Fe=Oe=>{var Pr;const at=(Pr=Oe.clipboardData)==null?void 0:Pr.files[0];at&&C&&(C(at),Oe.preventDefault()),R==null||R(Oe)},We=Oe=>{var at,Pr;Oe.target!==((at=N.current)==null?void 0:at.querySelector(`.${I}`))&&Oe.preventDefault(),(Pr=j.current)==null||Pr.focus()};let Ne=F.createElement(X.Flex,{className:`${re}-presets`},h&&F.createElement(xK,null),y?F.createElement(b6,null):F.createElement(y6,null));return typeof T=="function"?Ne=T(Ne,{components:{SendButton:y6,ClearButton:gK,LoadingButton:b6}}):T&&(Ne=T),z(F.createElement("div",{ref:N,className:q,style:{...O.style,...l}},_&&F.createElement(kE.Provider,{value:{prefixCls:L}},_),F.createElement("div",{className:`${L}-content`,onMouseDown:We},v&&F.createElement("div",{className:Te(`${L}-prefix`,O.classNames.prefix,a.prefix),style:{...O.styles.prefix,...n.prefix}},v),F.createElement(Ee,nt({},he,{disabled:f,style:{...O.styles.input,...n.input},className:Te(I,O.classNames.input,a.input),autoSize:{maxRows:8},value:ne,onChange:Oe=>{ce(Oe.target.value,Oe),ye(!0)},onPressEnter:Et,onCompositionStart:Je,onCompositionEnd:Ct,onKeyDown:S,onPaste:Fe,variant:"borderless",readOnly:m})),F.createElement("div",{className:Te(re,O.classNames.actions,a.actions),style:{...O.styles.actions,...n.actions}},F.createElement(Ph.Provider,{value:{prefixCls:J,onSend:qe,onSendDisabled:!ne,onClear:oe,onClearDisabled:!ne,onCancel:E,onCancelDisabled:!y,onSpeech:()=>ye(!1),onSpeechDisabled:!le,speechRecording:we,disabled:f}},Ne)))))}),Vf=AK;process.env.NODE_ENV!=="production"&&(Vf.displayName="Sender");Vf.Header=hK;function Zd(e){return typeof e=="string"}const RK=(e,t,r,n)=>{const[a,i]=ee.useState(""),[s,l]=ee.useState(1),u=t&&Zd(e);return jv(()=>{i(e),!u&&Zd(e)?l(e.length):Zd(e)&&Zd(a)&&e.indexOf(a)!==0&&l(1)},[e]),ee.useEffect(()=>{if(u&&s<e.length){const m=setTimeout(()=>{l(p=>p+r)},n);return()=>{clearTimeout(m)}}},[s,t,e]),[u?e.slice(0,s):e,u&&s<e.length]};function PK(e){return ee.useMemo(()=>{if(!e)return[!1,0,0,null];let t={step:1,interval:50,suffix:null};return typeof e=="object"&&(t={...t,...e}),[!0,t.step,t.interval,t.suffix]},[e])}const DK=({prefixCls:e})=>F.createElement("span",{className:`${e}-dot`},F.createElement("i",{className:`${e}-dot-item`,key:"item-1"}),F.createElement("i",{className:`${e}-dot-item`,key:"item-2"}),F.createElement("i",{className:`${e}-dot-item`,key:"item-3"})),MK=e=>{const{componentCls:t,paddingSM:r,padding:n}=e;return{[t]:{[`${t}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${ai(r)} ${ai(n)}`,borderRadius:e.borderRadiusLG},"&-filled":{backgroundColor:e.colorFillContent},"&-outlined":{border:`1px solid ${e.colorBorderSecondary}`},"&-shadow":{boxShadow:e.boxShadowTertiary}}}}},FK=e=>{const{componentCls:t,fontSize:r,lineHeight:n,paddingSM:a,padding:i,calc:s}=e,l=s(r).mul(n).div(2).add(a).equal(),u=`${t}-content`;return{[t]:{[u]:{"&-round":{borderRadius:{_skip_check_:!0,value:l},paddingInline:s(i).mul(1.25).equal()}},[`&-start ${u}-corner`]:{borderStartStartRadius:e.borderRadiusXS},[`&-end ${u}-corner`]:{borderStartEndRadius:e.borderRadiusXS}}}},NK=e=>{const{componentCls:t,padding:r}=e;return{[`${t}-list`]:{display:"flex",flexDirection:"column",gap:r,overflowY:"auto"}}},IK=new bE("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),LK=new bE("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),jK=e=>{const{componentCls:t,fontSize:r,lineHeight:n,paddingSM:a,colorText:i,calc:s}=e;return{[t]:{display:"flex",columnGap:a,[`&${t}-end`]:{justifyContent:"end",flexDirection:"row-reverse",[`& ${t}-content-wrapper`]:{alignItems:"flex-end"}},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-typing ${t}-content:last-child::after`]:{content:'"|"',fontWeight:900,userSelect:"none",opacity:1,marginInlineStart:"0.1em",animationName:LK,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${t}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${t}-header, & ${t}-footer`]:{fontSize:r,lineHeight:n,color:e.colorText},[`& ${t}-header`]:{marginBottom:e.paddingXXS},[`& ${t}-footer`]:{marginTop:a},[`& ${t}-content-wrapper`]:{flex:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:0,maxWidth:"100%"},[`& ${t}-content`]:{position:"relative",boxSizing:"border-box",minWidth:0,maxWidth:"100%",color:i,fontSize:e.fontSize,lineHeight:e.lineHeight,minHeight:s(a).mul(2).add(s(n).mul(r)).equal(),wordBreak:"break-word",[`& ${t}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:e.marginXS,padding:`0 ${ai(e.paddingXXS)}`,"&-item":{backgroundColor:e.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:IK,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},$K=()=>({}),TE=Gs("Bubble",e=>{const t=$i(e,{});return[jK(t),NK(t),MK(t),FK(t)]},$K),OE=F.createContext({}),zK=(e,t)=>{const{prefixCls:r,className:n,rootClassName:a,style:i,classNames:s={},styles:l={},avatar:u,placement:c="start",loading:m=!1,loadingRender:p,typing:g,content:y="",messageRender:x,variant:E="filled",shape:k,onTypingComplete:T,header:w,footer:S,...f}=e,{onUpdate:h}=F.useContext(OE),v=F.useRef(null);F.useImperativeHandle(t,()=>({nativeElement:v.current}));const{direction:_,getPrefixCls:R}=ga(),C=R("bubble",r),P=Ws("bubble"),[M,U,L,N]=PK(g),[j,O]=RK(y,M,U,L);F.useEffect(()=>{h==null||h()},[j]);const I=F.useRef(!1);F.useEffect(()=>{!O&&!m?I.current||(I.current=!0,T==null||T()):I.current=!1},[O,m]);const[z,B,H]=TE(C),q=Te(C,a,P.className,n,B,H,`${C}-${c}`,{[`${C}-rtl`]:_==="rtl",[`${C}-typing`]:O&&!m&&!x&&!N}),J=F.isValidElement(u)?u:F.createElement(X.Avatar,u),re=x?x(j):j;let ne;m?ne=p?p():F.createElement(DK,{prefixCls:C}):ne=F.createElement(F.Fragment,null,re,O&&N);let se=F.createElement("div",{style:{...P.styles.content,...l.content},className:Te(`${C}-content`,`${C}-content-${E}`,k&&`${C}-content-${k}`,P.classNames.content,s.content)},ne);return(w||S)&&(se=F.createElement("div",{className:`${C}-content-wrapper`},w&&F.createElement("div",{className:Te(`${C}-header`,P.classNames.header,s.header),style:{...P.styles.header,...l.header}},w),se,S&&F.createElement("div",{className:Te(`${C}-footer`,P.classNames.footer,s.footer),style:{...P.styles.footer,...l.footer}},S))),z(F.createElement("div",nt({style:{...P.style,...i},className:q},f,{ref:v}),u&&F.createElement("div",{style:{...P.styles.avatar,...l.avatar},className:Te(`${C}-avatar`,P.classNames.avatar,s.avatar)},J),se))},Mh=F.forwardRef(zK);process.env.NODE_ENV!=="production"&&(Mh.displayName="Bubble");function BK(e){const[t,r]=F.useState(e.length),n=F.useMemo(()=>e.slice(0,t),[e,t]),a=F.useMemo(()=>{const s=n[n.length-1];return s?s.key:null},[n]);F.useEffect(()=>{var s;if(!(n.length&&n.every((l,u)=>{var c;return l.key===((c=e[u])==null?void 0:c.key)}))){if(n.length===0)r(1);else for(let l=0;l<n.length;l+=1)if(n[l].key!==((s=e[l])==null?void 0:s.key)){r(l);break}}},[e]);const i=Zn(s=>{s===a&&r(t+1)});return[n,i]}function HK(e,t){const r=ee.useCallback(n=>typeof t=="function"?t(n):t?t[n.role]||{}:{},[t]);return ee.useMemo(()=>(e||[]).map((n,a)=>{const i=n.key??`preset_${a}`;return{...r(n),...n,key:i}}),[e,r])}const UK=1,qK=(e,t)=>{const{prefixCls:r,rootClassName:n,className:a,items:i,autoScroll:s=!0,roles:l,...u}=e,c=Rh(u,{attr:!0,aria:!0}),m=ee.useRef(null),p=ee.useRef({}),{getPrefixCls:g}=ga(),y=g("bubble",r),x=`${y}-list`,[E,k,T]=TE(y),[w,S]=ee.useState(!1);ee.useEffect(()=>(S(!0),()=>{S(!1)}),[]);const f=HK(i,l),[h,v]=BK(f),[_,R]=ee.useState(!0),[C,P]=ee.useState(0),M=N=>{const j=N.target;R(j.scrollHeight-Math.abs(j.scrollTop)-j.clientHeight<=UK)};ee.useEffect(()=>{s&&m.current&&_&&m.current.scrollTo({top:m.current.scrollHeight})},[C]),ee.useEffect(()=>{var N;if(s){const j=(N=h[h.length-2])==null?void 0:N.key,O=p.current[j];if(O){const{nativeElement:I}=O,{top:z,bottom:B}=I.getBoundingClientRect(),{top:H,bottom:q}=m.current.getBoundingClientRect();z<q&&B>H&&(P(re=>re+1),R(!0))}}},[h.length]),ee.useImperativeHandle(t,()=>({nativeElement:m.current,scrollTo:({key:N,offset:j,behavior:O="smooth",block:I})=>{if(typeof j=="number")m.current.scrollTo({top:j,behavior:O});else if(N!==void 0){const z=p.current[N];if(z){const B=h.findIndex(H=>H.key===N);R(B===h.length-1),z.nativeElement.scrollIntoView({behavior:O,block:I})}}}}));const U=Zn(()=>{s&&P(N=>N+1)}),L=ee.useMemo(()=>({onUpdate:U}),[]);return E(ee.createElement(OE.Provider,{value:L},ee.createElement("div",nt({},c,{className:Te(x,n,a,k,T,{[`${x}-reach-end`]:_}),ref:m,onScroll:M}),h.map(({key:N,...j})=>ee.createElement(Mh,nt({},j,{key:N,ref:O=>{O?p.current[N]=O:delete p.current[N]},typing:w?j.typing:!1,onTypingComplete:()=>{var O;(O=j.onTypingComplete)==null||O.call(j),v(N)}}))))))},AE=ee.forwardRef(qK);process.env.NODE_ENV!=="production"&&(AE.displayName="BubbleList");Mh.List=AE;const RE=F.createContext(null),x6=({children:e})=>{const{prefixCls:t}=F.useContext(RE);return F.createElement("div",{className:Te(`${t}-group-title`)},e&&F.createElement(X.Typography.Text,null,e))},WK=e=>{e.stopPropagation()},VK=e=>{const{prefixCls:t,info:r,className:n,direction:a,onClick:i,active:s,menu:l,...u}=e,c=Rh(u,{aria:!0,data:!0,attr:!0}),{disabled:m}=r,[p,g]=F.useState(!1),[y,x]=F.useState(!1),E=Te(n,`${t}-item`,{[`${t}-item-active`]:s&&!m},{[`${t}-item-disabled`]:m}),k=()=>{!m&&i&&i(r)},T=w=>{w&&x(!w)};return F.createElement(X.Tooltip,{title:r.label,open:p&&y,onOpenChange:x,placement:a==="rtl"?"left":"right"},F.createElement("li",nt({},c,{className:E,onClick:k}),r.icon&&F.createElement("div",{className:`${t}-icon`},r.icon),F.createElement(X.Typography.Text,{className:`${t}-label`,ellipsis:{onEllipsis:g}},r.label),l&&!m&&F.createElement(X.Dropdown,{menu:l,placement:a==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:m,onOpenChange:T},F.createElement(OC,{onClick:WK,disabled:m,className:`${t}-menu-icon`}))))},_g="__ungrouped",YK=(e,t=[])=>{const[r,n,a]=F.useMemo(()=>{if(!e)return[!1,void 0,void 0];let i={sort:void 0,title:void 0};return typeof e=="object"&&(i={...i,...e}),[!0,i.sort,i.title]},[e]);return F.useMemo(()=>{if(!r)return[[{name:_g,data:t,title:void 0}],r];const i=t.reduce((u,c)=>{const m=c.group||_g;return u[m]||(u[m]=[]),u[m].push(c),u},{});return[(n?Object.keys(i).sort(n):Object.keys(i)).map(u=>({name:u===_g?void 0:u,title:a,data:i[u]})),r]},[t,e])},GK=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",gap:e.paddingXXS,overflowY:"auto",padding:e.paddingSM,[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-list`]:{display:"flex",gap:e.paddingXXS,flexDirection:"column",[`& ${t}-item`]:{paddingInlineStart:e.paddingXL},[`& ${t}-label`]:{color:e.colorTextDescription}},[`& ${t}-item`]:{display:"flex",height:e.controlHeightLG,minHeight:e.controlHeightLG,gap:e.paddingXS,padding:`0 ${ai(e.paddingXS)}`,alignItems:"center",borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,"&:hover":{backgroundColor:e.colorBgTextHover},"&-active":{backgroundColor:e.colorBgTextHover,[`& ${t}-label, ${t}-menu-icon`]:{color:e.colorText}},"&-disabled":{cursor:"not-allowed",[`& ${t}-label`]:{color:e.colorTextDisabled}},"&:hover, &-active":{[`& ${t}-menu-icon`]:{opacity:1}}},[`& ${t}-label`]:{flex:1,color:e.colorText},[`& ${t}-menu-icon`]:{opacity:0,fontSize:e.fontSizeXL},[`& ${t}-group-title`]:{display:"flex",alignItems:"center",height:e.controlHeightLG,minHeight:e.controlHeightLG,padding:`0 ${ai(e.paddingXS)}`}}}},KK=()=>({}),XK=Gs("Conversations",e=>{const t=$i(e,{});return GK(t)},KK),PE=e=>{const{prefixCls:t,rootClassName:r,items:n,activeKey:a,defaultActiveKey:i,onActiveChange:s,menu:l,styles:u={},classNames:c={},groupable:m,className:p,style:g,...y}=e,x=Rh(y,{attr:!0,aria:!0,data:!0}),[E,k]=Sh(i,{value:a}),[T,w]=YK(m,n),{getPrefixCls:S,direction:f}=ga(),h=S("conversations",t),v=Ws("conversations"),[_,R,C]=XK(h),P=Te(h,v.className,p,r,R,C,{[`${h}-rtl`]:f==="rtl"}),M=U=>{k(U.key),s&&s(U.key)};return _(F.createElement("ul",nt({},x,{style:{...v.style,...g},className:P}),T.map((U,L)=>{var j;const N=U.data.map((O,I)=>F.createElement(VK,{key:O.key||`key-${I}`,info:O,prefixCls:h,direction:f,className:Te(c.item,v.classNames.item),style:{...v.styles.item,...u.item},menu:typeof l=="function"?l(O):l,active:E===O.key,onClick:M}));return w?F.createElement("li",{key:U.name||`key-${L}`},F.createElement(RE.Provider,{value:{prefixCls:h}},((j=U.title)==null?void 0:j.call(U,U.name,{components:{GroupTitle:x6}}))||F.createElement(x6,{key:U.name},U.name)),F.createElement("ul",{className:`${h}-list`},N)):N})))};process.env.NODE_ENV!=="production"&&(PE.displayName="Conversations");const ZK=e=>{const{componentCls:t}=e;return{[t]:{"&, & *":{boxSizing:"border-box"},maxWidth:"100%",[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-title`]:{marginBlockStart:0,fontWeight:"normal",color:e.colorTextTertiary},[`& ${t}-list`]:{display:"flex",gap:e.paddingSM,overflowX:"scroll","&::-webkit-scrollbar":{display:"none"},listStyle:"none",paddingInlineStart:0,marginBlock:0,alignItems:"stretch","&-wrap":{flexWrap:"wrap"},"&-vertical":{flexDirection:"column",alignItems:"flex-start"}},[`${t}-item`]:{flex:"none",display:"flex",gap:e.paddingXS,height:"auto",paddingBlock:e.paddingSM,paddingInline:e.padding,alignItems:"flex-start",justifyContent:"flex-start",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,transition:["border","background"].map(r=>`${r} ${e.motionDurationSlow}`).join(","),border:`${ai(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,[`&:not(${t}-item-has-nest)`]:{"&:hover":{cursor:"pointer",background:e.colorFillTertiary},"&:active":{background:e.colorFill}},[`${t}-content`]:{flex:"auto",minWidth:0,display:"flex",gap:e.paddingXXS,flexDirection:"column",alignItems:"flex-start"},[`${t}-icon, ${t}-label, ${t}-desc`]:{margin:0,padding:0,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start",whiteSpace:"normal"},[`${t}-label`]:{color:e.colorTextHeading,fontWeight:500},[`${t}-label + ${t}-desc`]:{color:e.colorTextTertiary},[`&${t}-item-disabled`]:{pointerEvents:"none",background:e.colorBgContainerDisabled,[`${t}-label, ${t}-desc`]:{color:e.colorTextTertiary}}}}}},JK=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-item-has-nest`]:{[`> ${t}-content`]:{[`> ${t}-label`]:{fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}}},[`&${t}-nested`]:{marginTop:e.paddingXS,alignSelf:"stretch",[`${t}-list`]:{alignItems:"stretch"},[`${t}-item`]:{border:0,background:e.colorFillQuaternary}}}}},QK=()=>({}),eX=Gs("Prompts",e=>{const t=$i(e,{});return[ZK(t),JK(t)]},QK),Fh=e=>{const{prefixCls:t,title:r,className:n,items:a,onItemClick:i,vertical:s,wrap:l,rootClassName:u,styles:c={},classNames:m={},style:p,...g}=e,{getPrefixCls:y,direction:x}=ga(),E=y("prompts",t),k=Ws("prompts"),[T,w,S]=eX(E),f=Te(E,k.className,n,u,w,S,{[`${E}-rtl`]:x==="rtl"}),h=Te(`${E}-list`,k.classNames.list,m.list,{[`${E}-list-wrap`]:l},{[`${E}-list-vertical`]:s});return T(F.createElement("div",nt({},g,{className:f,style:{...p,...k.style}}),r&&F.createElement(X.Typography.Title,{level:5,className:Te(`${E}-title`,k.classNames.title,m.title),style:{...k.styles.title,...c.title}},r),F.createElement("div",{className:h,style:{...k.styles.list,...c.list}},a==null?void 0:a.map((v,_)=>{const R=v.children&&v.children.length>0;return F.createElement("div",{key:v.key||`key_${_}`,style:{...k.styles.item,...c.item},className:Te(`${E}-item`,k.classNames.item,m.item,{[`${E}-item-disabled`]:v.disabled,[`${E}-item-has-nest`]:R}),onClick:()=>{!R&&i&&i({data:v})}},v.icon&&F.createElement("div",{className:`${E}-icon`},v.icon),F.createElement("div",{className:Te(`${E}-content`,k.classNames.itemContent,m.itemContent),style:{...k.styles.itemContent,...c.itemContent}},v.label&&F.createElement("h6",{className:`${E}-label`},v.label),v.description&&F.createElement("p",{className:`${E}-desc`},v.description),R&&F.createElement(Fh,{className:`${E}-nested`,items:v.children,vertical:!0,onItemClick:i,classNames:{list:m.subList,item:m.subItem},styles:{list:c.subList,item:c.subItem}})))}))))};process.env.NODE_ENV!=="production"&&(Fh.displayName="Prompts");const tX=e=>{const{componentCls:t,calc:r}=e,n=r(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),a=r(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:r(n).add(a).add(e.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${t}-content-wrapper`]:{gap:e.paddingXS,flex:"auto",minWidth:0,[`${t}-title-wrapper`]:{gap:e.paddingXS},[`${t}-title`]:{margin:0},[`${t}-extra`]:{marginInlineStart:"auto"}}}}},rX=e=>{const{componentCls:t}=e;return{[t]:{"&-filled":{paddingInline:e.padding,paddingBlock:e.paddingSM,background:e.colorFillContent,borderRadius:e.borderRadiusLG},"&-borderless":{[`${t}-title`]:{fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3}}}}},nX=()=>({}),aX=Gs("Welcome",e=>{const t=$i(e,{});return[tX(t),rX(t)]},nX);function iX(e,t){const{prefixCls:r,rootClassName:n,className:a,style:i,variant:s="filled",classNames:l={},styles:u={},icon:c,title:m,description:p,extra:g}=e,{direction:y,getPrefixCls:x}=ga(),E=x("welcome",r),k=Ws("welcome"),[T,w,S]=aX(E),f=F.useMemo(()=>{if(!c)return null;let _=c;return typeof c=="string"&&c.startsWith("http")&&(_=F.createElement("img",{src:c,alt:"icon"})),F.createElement("div",{className:Te(`${E}-icon`,k.classNames.icon,l.icon),style:u.icon},_)},[c]),h=F.useMemo(()=>m?F.createElement(X.Typography.Title,{level:4,className:Te(`${E}-title`,k.classNames.title,l.title),style:u.title},m):null,[m]),v=F.useMemo(()=>g?F.createElement("div",{className:Te(`${E}-extra`,k.classNames.extra,l.extra),style:u.extra},g):null,[g]);return T(F.createElement(X.Flex,{ref:t,className:Te(E,k.className,a,n,w,S,`${E}-${s}`,{[`${E}-rtl`]:y==="rtl"}),style:i},f,F.createElement(X.Flex,{vertical:!0,className:`${E}-content-wrapper`},g?F.createElement(X.Flex,{align:"flex-start",className:`${E}-title-wrapper`},h,v):h,p&&F.createElement(X.Typography.Text,{className:Te(`${E}-description`,k.classNames.description,l.description),style:u.description},p))))}const DE=F.forwardRef(iX);process.env.NODE_ENV!=="production"&&(DE.displayName="Welcome");function oX(e){const[,t]=F.useState(0),r=F.useRef(typeof e=="function"?e():e),n=F.useCallback(i=>{r.current=typeof i=="function"?i(r.current):i,t(s=>s+1)},[]),a=F.useCallback(()=>r.current,[]);return[r.current,n,a]}function sX(e){return Array.isArray(e)?e:[e]}function uX(e){const{defaultMessages:t,agent:r,requestFallback:n,requestPlaceholder:a,parser:i}=e,s=F.useRef(0),[l,u,c]=oX(()=>(t||[]).map((E,k)=>({id:`default_${k}`,status:"local",...E}))),m=(E,k)=>{const T={id:`msg_${s.current}`,message:E,status:k};return s.current+=1,T},p=F.useMemo(()=>{const E=[];return l.forEach(k=>{const T=i?i(k.message):k.message,w=sX(T);w.forEach((S,f)=>{let h=k.id;w.length>1&&(h=`${h}_${f}`),E.push({id:h,message:S,status:k.status})})}),E},[l]),g=E=>E.filter(k=>k.status!=="loading"&&k.status!=="error").map(k=>k.message),y=()=>g(c());return{onRequest:Zn(E=>{if(!r)throw new Error("The agent parameter is required when using the onRequest method in an agent generated by useXAgent.");let k=null;u(S=>{let f=[...S,m(E,"local")];if(a){let h;typeof a=="function"?h=a(E,{messages:g(f)}):h=a;const v=m(h,"loading");k=v.id,f=[...f,v]}return f});let T=null;const w=(S,f)=>{let h=c().find(v=>v.id===T);return h?u(v=>v.map(_=>_.id===T?{..._,message:S,status:f}:_)):(h=m(S,f),u(v=>[...v.filter(R=>R.id!==k),h]),T=h.id),h};r.request({message:E,messages:y()},{onUpdate:S=>{w(S,"loading")},onSuccess:S=>{w(S,"success")},onError:async S=>{if(n){let f;typeof n=="function"?f=await n(E,{error:S,messages:y()}):f=n,u(h=>[...h.filter(v=>v.id!==k&&v.id!==T),m(f,"error")])}else u(f=>f.filter(h=>h.id!==k&&h.id!==T))}})}),messages:l,parsedMessages:p,setMessages:u}}const lX=`
|
|
494
494
|
|
|
495
495
|
`,cX=`
|
|
496
496
|
`,S6=":",I1=e=>(e??"").trim()!=="";function dX(){let e="";return new TransformStream({transform(t,r){e+=t;const n=e.split(lX);n.slice(0,-1).forEach(a=>{I1(a)&&r.enqueue(a)}),e=n[n.length-1]},flush(t){I1(e)&&t.enqueue(e)}})}function fX(){return new TransformStream({transform(e,t){const n=e.split(cX).reduce((a,i)=>{const s=i.indexOf(S6);if(s===-1)throw new Error(`The key-value separator "${S6}" is not found in the sse line chunk!`);const l=i.slice(0,s);if(!I1(l))return a;const u=i.slice(s+1);return{...a,[l]:u}},{});Object.keys(n).length!==0&&t.enqueue(n)}})}function C6(e){const{readableStream:t,transformStream:r}=e;if(!(t instanceof ReadableStream))throw new Error("The options.readableStream must be an instance of ReadableStream.");const n=new TextDecoderStream,a=r?t.pipeThrough(n).pipeThrough(r):t.pipeThrough(n).pipeThrough(dX()).pipeThrough(fX());return a[Symbol.asyncIterator]=async function*(){const i=this.getReader();for(;;){const{done:s,value:l}=await i.read();if(s)break;l&&(yield l)}},a}const hX=async(e,t={})=>{const{fetch:r=globalThis.fetch,middlewares:n={},...a}=t;if(typeof r!="function")throw new Error("The options.fetch must be a typeof fetch function!");let i=[e,a];typeof n.onRequest=="function"&&(i=await n.onRequest(...i));let s=await r(...i);if(typeof n.onResponse=="function"){const l=await n.onResponse(s);if(!(l instanceof Response))throw new Error("The options.onResponse must return a Response instance!");s=l}if(!s.ok)throw new Error(`Fetch failed with status ${s.status}`);if(!s.body)throw new Error("The response body is empty.");return s},fo=class fo{constructor(t){Tt(this,"baseURL");Tt(this,"model");Tt(this,"defaultHeaders");Tt(this,"customOptions");Tt(this,"create",async(t,r,n)=>{var i;const a={method:"POST",body:JSON.stringify({model:this.model,...t}),headers:this.defaultHeaders};try{const s=await hX(this.baseURL,{fetch:this.customOptions.fetch,...a});if(n){await this.customResponseHandler(s,r,n);return}const l=s.headers.get("content-type")||"";switch(l.split(";")[0].trim()){case"text/event-stream":await this.sseResponseHandler(s,r);break;case"application/json":await this.jsonResponseHandler(s,r);break;default:throw new Error(`The response content-type: ${l} is not support!`)}}catch(s){const l=s instanceof Error?s:new Error("Unknown error!");throw(i=r==null?void 0:r.onError)==null||i.call(r,l),l}});Tt(this,"customResponseHandler",async(t,r,n)=>{var i,s;const a=[];for await(const l of C6({readableStream:t.body,transformStream:n}))a.push(l),(i=r==null?void 0:r.onUpdate)==null||i.call(r,l);(s=r==null?void 0:r.onSuccess)==null||s.call(r,a)});Tt(this,"sseResponseHandler",async(t,r)=>{var a,i;const n=[];for await(const s of C6({readableStream:t.body}))n.push(s),(a=r==null?void 0:r.onUpdate)==null||a.call(r,s);(i=r==null?void 0:r.onSuccess)==null||i.call(r,n)});Tt(this,"jsonResponseHandler",async(t,r)=>{var a,i;const n=await t.json();(a=r==null?void 0:r.onUpdate)==null||a.call(r,n),(i=r==null?void 0:r.onSuccess)==null||i.call(r,[n])});const{baseURL:r,model:n,dangerouslyApiKey:a,...i}=t;this.baseURL=t.baseURL,this.model=t.model,this.defaultHeaders={"Content-Type":"application/json",...t.dangerouslyApiKey&&{Authorization:t.dangerouslyApiKey}},this.customOptions=i}static init(t){if(!t.baseURL||typeof t.baseURL!="string")throw new Error("The baseURL is not valid!");const r=t.fetch||t.baseURL;return fo.instanceBuffer.has(r)||fo.instanceBuffer.set(r,new fo(t)),fo.instanceBuffer.get(r)}};Tt(fo,"instanceBuffer",new Map);let L1=fo;const pX=L1.init;let E6=0;class mX{constructor(t){Tt(this,"config");Tt(this,"requestingMap",{});Tt(this,"request",(t,r)=>{const{request:n}=this.config,{onUpdate:a,onSuccess:i,onError:s}=r,l=E6;E6+=1,this.requestingMap[l]=!0,n==null||n(t,{onUpdate:u=>{this.requestingMap[l]&&a(u)},onSuccess:u=>{this.requestingMap[l]&&(i(u),this.finishRequest(l))},onError:u=>{this.requestingMap[l]&&(s(u),this.finishRequest(l))}})});this.config=t}finishRequest(t){delete this.requestingMap[t]}isRequesting(){return Object.keys(this.requestingMap).length>0}}function gX(e){const{request:t,...r}=e;return F.useMemo(()=>[new mX({request:t||pX({baseURL:r.baseURL,model:r.model,dangerouslyApiKey:r.dangerouslyApiKey}).create,...r})],[])}const vX="_layout_1c061_1",bX="_top_header_1c061_13",yX="_person_1c061_22",_X="_menu_1c061_35",wX="_conversations_1c061_42",xX="_chat_1c061_47",SX="_messages_1c061_64",CX="_placeholder_1c061_67",EX="_sender_1c061_72",kX="_logo_1c061_75",TX="_addBtn_1c061_95",In={layout:vX,top_header:bX,person:yX,menu:_X,conversations:wX,chat:xX,messages:SX,placeholder:CX,sender:EX,logo:kX,addBtn:TX},j1="RFC3986",$1={RFC1738:e=>String(e).replace(/%20/g,"+"),RFC3986:e=>String(e)},OX="RFC1738",AX=Array.isArray,ia=(()=>{const e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),wg=1024,RX=(e,t,r,n,a)=>{if(e.length===0)return e;let i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),r==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(l){return"%26%23"+parseInt(l.slice(2),16)+"%3B"});let s="";for(let l=0;l<i.length;l+=wg){const u=i.length>=wg?i.slice(l,l+wg):i,c=[];for(let m=0;m<u.length;++m){let p=u.charCodeAt(m);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||a===OX&&(p===40||p===41)){c[c.length]=u.charAt(m);continue}if(p<128){c[c.length]=ia[p];continue}if(p<2048){c[c.length]=ia[192|p>>6]+ia[128|p&63];continue}if(p<55296||p>=57344){c[c.length]=ia[224|p>>12]+ia[128|p>>6&63]+ia[128|p&63];continue}m+=1,p=65536+((p&1023)<<10|u.charCodeAt(m)&1023),c[c.length]=ia[240|p>>18]+ia[128|p>>12&63]+ia[128|p>>6&63]+ia[128|p&63]}s+=c.join("")}return s};function PX(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function k6(e,t){if(AX(e)){const r=[];for(let n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)}const DX=Object.prototype.hasOwnProperty,ME={brackets(e){return String(e)+"[]"},comma:"comma",indices(e,t){return String(e)+"["+t+"]"},repeat(e){return String(e)}},sa=Array.isArray,MX=Array.prototype.push,FE=function(e,t){MX.apply(e,sa(t)?t:[t])},FX=Date.prototype.toISOString,rr={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:RX,encodeValuesOnly:!1,format:j1,formatter:$1[j1],indices:!1,serializeDate(e){return FX.call(e)},skipNulls:!1,strictNullHandling:!1};function NX(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"}const xg={};function NE(e,t,r,n,a,i,s,l,u,c,m,p,g,y,x,E,k,T){let w=e,S=T,f=0,h=!1;for(;(S=S.get(xg))!==void 0&&!h;){const P=S.get(e);if(f+=1,typeof P<"u"){if(P===f)throw new RangeError("Cyclic object value");h=!0}typeof S.get(xg)>"u"&&(f=0)}if(typeof c=="function"?w=c(t,w):w instanceof Date?w=g==null?void 0:g(w):r==="comma"&&sa(w)&&(w=k6(w,function(P){return P instanceof Date?g==null?void 0:g(P):P})),w===null){if(i)return u&&!E?u(t,rr.encoder,k,"key",y):t;w=""}if(NX(w)||PX(w)){if(u){const P=E?t:u(t,rr.encoder,k,"key",y);return[(x==null?void 0:x(P))+"="+(x==null?void 0:x(u(w,rr.encoder,k,"value",y)))]}return[(x==null?void 0:x(t))+"="+(x==null?void 0:x(String(w)))]}const v=[];if(typeof w>"u")return v;let _;if(r==="comma"&&sa(w))E&&u&&(w=k6(w,u)),_=[{value:w.length>0?w.join(",")||null:void 0}];else if(sa(c))_=c;else{const P=Object.keys(w);_=m?P.sort(m):P}const R=l?String(t).replace(/\./g,"%2E"):String(t),C=n&&sa(w)&&w.length===1?R+"[]":R;if(a&&sa(w)&&w.length===0)return C+"[]";for(let P=0;P<_.length;++P){const M=_[P],U=typeof M=="object"&&typeof M.value<"u"?M.value:w[M];if(s&&U===null)continue;const L=p&&l?M.replace(/\./g,"%2E"):M,N=sa(w)?typeof r=="function"?r(C,L):C:C+(p?"."+L:"["+L+"]");T.set(e,f);const j=new WeakMap;j.set(xg,T),FE(v,NE(U,N,r,n,a,i,s,l,r==="comma"&&E&&sa(w)?null:u,c,m,p,g,y,x,E,k,j))}return v}function IX(e=rr){if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");const t=e.charset||rr.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let r=j1;if(typeof e.format<"u"){if(!DX.call($1,e.format))throw new TypeError("Unknown format option provided.");r=e.format}const n=$1[r];let a=rr.filter;(typeof e.filter=="function"||sa(e.filter))&&(a=e.filter);let i;if(e.arrayFormat&&e.arrayFormat in ME?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=rr.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");const s=typeof e.allowDots>"u"?e.encodeDotInKeys?!0:rr.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:rr.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:rr.allowEmptyArrays,arrayFormat:i,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:rr.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?rr.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:rr.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:rr.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:rr.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:rr.encodeValuesOnly,filter:a,format:r,formatter:n,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:rr.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:rr.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:rr.strictNullHandling}}function LX(e,t={}){let r=e;const n=IX(t);let a,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):sa(n.filter)&&(i=n.filter,a=i);const s=[];if(typeof r!="object"||r===null)return"";const l=ME[n.arrayFormat],u=l==="comma"&&n.commaRoundTrip;a||(a=Object.keys(r)),n.sort&&a.sort(n.sort);const c=new WeakMap;for(let g=0;g<a.length;++g){const y=a[g];n.skipNulls&&r[y]===null||FE(s,NE(r[y],y,l,u,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,c))}const m=s.join(n.delimiter);let p=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),m.length>0?p+m:""}const ss="4.85.3";let T6=!1,jl,IE,LE,z1,jE,$E,zE,BE,HE;function jX(e,t={auto:!1}){if(T6)throw new Error(`you must \`import 'openai/shims/${e.kind}'\` before importing anything else from openai`);if(jl)throw new Error(`can't \`import 'openai/shims/${e.kind}'\` after \`import 'openai/shims/${jl}'\``);T6=t.auto,jl=e.kind,IE=e.fetch,LE=e.FormData,z1=e.File,jE=e.ReadableStream,$E=e.getMultipartRequestOptions,zE=e.getDefaultAgent,BE=e.fileFromPath,HE=e.isFsReadStream}class $X{constructor(t){this.body=t}get[Symbol.toStringTag](){return"MultipartBody"}}function zX({manuallyImported:e}={}){const t=e?"You may need to use polyfills":"Add one of these imports before your first `import … from 'openai'`:\n- `import 'openai/shims/node'` (if you're running on Node)\n- `import 'openai/shims/web'` (otherwise)\n";let r,n,a,i;try{r=fetch,n=Request,a=Response,i=Headers}catch(s){throw new Error(`this environment is missing the following Web Fetch API type: ${s.message}. ${t}`)}return{kind:"web",fetch:r,Request:n,Response:a,Headers:i,FormData:typeof FormData<"u"?FormData:class{constructor(){throw new Error(`file uploads aren't supported in this environment yet as 'FormData' is undefined. ${t}`)}},Blob:typeof Blob<"u"?Blob:class{constructor(){throw new Error(`file uploads aren't supported in this environment yet as 'Blob' is undefined. ${t}`)}},File:typeof File<"u"?File:class{constructor(){throw new Error(`file uploads aren't supported in this environment yet as 'File' is undefined. ${t}`)}},ReadableStream:typeof ReadableStream<"u"?ReadableStream:class{constructor(){throw new Error(`streaming isn't supported in this environment yet as 'ReadableStream' is undefined. ${t}`)}},getMultipartRequestOptions:async(s,l)=>({...l,body:new $X(s)}),getDefaultAgent:s=>{},fileFromPath:()=>{throw new Error("The `fileFromPath` function is only supported in Node. See the README for more details: https://www.github.com/openai/openai-node#file-uploads")},isFsReadStream:s=>!1}}jl||jX(zX(),{auto:!0});class st extends Error{}class gr extends st{constructor(t,r,n,a){super(`${gr.makeMessage(t,r,n)}`),this.status=t,this.headers=a,this.request_id=a==null?void 0:a["x-request-id"],this.error=r;const i=r;this.code=i==null?void 0:i.code,this.param=i==null?void 0:i.param,this.type=i==null?void 0:i.type}static makeMessage(t,r,n){const a=r!=null&&r.message?typeof r.message=="string"?r.message:JSON.stringify(r.message):r?JSON.stringify(r):n;return t&&a?`${t} ${a}`:t?`${t} status code (no body)`:a||"(no status code or body)"}static generate(t,r,n,a){if(!t||!a)return new Nh({message:n,cause:H1(r)});const i=r==null?void 0:r.error;return t===400?new UE(t,i,n,a):t===401?new qE(t,i,n,a):t===403?new WE(t,i,n,a):t===404?new VE(t,i,n,a):t===409?new YE(t,i,n,a):t===422?new GE(t,i,n,a):t===429?new KE(t,i,n,a):t>=500?new XE(t,i,n,a):new gr(t,i,n,a)}}class Wn extends gr{constructor({message:t}={}){super(void 0,void 0,t||"Request was aborted.",void 0)}}class Nh extends gr{constructor({message:t,cause:r}){super(void 0,void 0,t||"Connection error.",void 0),r&&(this.cause=r)}}class Wv extends Nh{constructor({message:t}={}){super({message:t??"Request timed out."})}}class UE extends gr{}class qE extends gr{}class WE extends gr{}class VE extends gr{}class YE extends gr{}class GE extends gr{}class KE extends gr{}class XE extends gr{}class ZE extends st{constructor(){super("Could not parse response content as the length limit was reached")}}class JE extends st{constructor(){super("Could not parse response content as the request was rejected by the content filter")}}var Jd=function(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r},ao=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},rn;class Ih{constructor(){rn.set(this,void 0),this.buffer=new Uint8Array,Jd(this,rn,null,"f")}decode(t){if(t==null)return[];const r=t instanceof ArrayBuffer?new Uint8Array(t):typeof t=="string"?new TextEncoder().encode(t):t;let n=new Uint8Array(this.buffer.length+r.length);n.set(this.buffer),n.set(r,this.buffer.length),this.buffer=n;const a=[];let i;for(;(i=BX(this.buffer,ao(this,rn,"f")))!=null;){if(i.carriage&&ao(this,rn,"f")==null){Jd(this,rn,i.index,"f");continue}if(ao(this,rn,"f")!=null&&(i.index!==ao(this,rn,"f")+1||i.carriage)){a.push(this.decodeText(this.buffer.slice(0,ao(this,rn,"f")-1))),this.buffer=this.buffer.slice(ao(this,rn,"f")),Jd(this,rn,null,"f");continue}const s=ao(this,rn,"f")!==null?i.preceding-1:i.preceding,l=this.decodeText(this.buffer.slice(0,s));a.push(l),this.buffer=this.buffer.slice(i.index),Jd(this,rn,null,"f")}return a}decodeText(t){if(t==null)return"";if(typeof t=="string")return t;if(typeof Buffer<"u"){if(t instanceof Buffer)return t.toString();if(t instanceof Uint8Array)return Buffer.from(t).toString();throw new st(`Unexpected: received non-Uint8Array (${t.constructor.name}) stream chunk in an environment with a global "Buffer" defined, which this library assumes to be Node. Please report this error.`)}if(typeof TextDecoder<"u"){if(t instanceof Uint8Array||t instanceof ArrayBuffer)return this.textDecoder??(this.textDecoder=new TextDecoder("utf8")),this.textDecoder.decode(t);throw new st(`Unexpected: received non-Uint8Array/ArrayBuffer (${t.constructor.name}) in a web platform. Please report this error.`)}throw new st("Unexpected: neither Buffer nor TextDecoder are available as globals. Please report this error.")}flush(){return this.buffer.length?this.decode(`
|
|
@@ -511,7 +511,7 @@ you can set the \`dangerouslyAllowBrowser\` option to \`true\`, e.g.,
|
|
|
511
511
|
new OpenAI({ apiKey, dangerouslyAllowBrowser: true });
|
|
512
512
|
|
|
513
513
|
https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety
|
|
514
|
-
`);super({baseURL:s.baseURL,timeout:s.timeout??6e5,httpAgent:s.httpAgent,maxRetries:s.maxRetries,fetch:s.fetch}),this.completions=new I5(this),this.chat=new Bh(this),this.embeddings=new L5(this),this.files=new ib(this),this.images=new j5(this),this.audio=new _c(this),this.moderations=new $5(this),this.models=new db(this),this.fineTuning=new Sc(this),this.beta=new zi(this),this.batches=new Vv(this),this.uploads=new hb(this),this._options=s,this.apiKey=r,this.organization=n,this.project=a}defaultQuery(){return this._options.defaultQuery}defaultHeaders(t){return{...super.defaultHeaders(t),"OpenAI-Organization":this.organization,"OpenAI-Project":this.project,...this._options.defaultHeaders}}authHeaders(t){return{Authorization:`Bearer ${this.apiKey}`}}stringifyQuery(t){return LX(t,{arrayFormat:"brackets"})}}B5=ct;ct.OpenAI=B5;ct.DEFAULT_TIMEOUT=6e5;ct.OpenAIError=st;ct.APIError=gr;ct.APIConnectionError=Nh;ct.APIConnectionTimeoutError=Wv;ct.APIUserAbortError=Wn;ct.NotFoundError=VE;ct.ConflictError=YE;ct.RateLimitError=KE;ct.BadRequestError=UE;ct.AuthenticationError=qE;ct.InternalServerError=XE;ct.PermissionDeniedError=WE;ct.UnprocessableEntityError=GE;ct.toFile=r5;ct.fileFromPath=BE;ct.Completions=I5;ct.Chat=Bh;ct.ChatCompletionsPage=zh;ct.Embeddings=L5;ct.Files=ib;ct.FileObjectsPage=ob;ct.Images=j5;ct.Audio=_c;ct.Moderations=$5;ct.Models=db;ct.ModelsPage=fb;ct.FineTuning=Sc;ct.Beta=zi;ct.Batches=Vv;ct.BatchesPage=Yv;ct.Uploads=hb;const OZ=[{key:"1",label:"热点",description:"What are you interested in?",children:[{key:"1-1",description:"创建物料?"}]},{key:"2",label:"引导",description:"How to design a good product?",children:[{key:"2-1",description:"查询知识库"}]},{key:"3",label:"引导",description:"How to design a good product?",children:[{key:"2-1",description:"查询知识库"}]},{key:"4",label:"引导",description:"How to design ?",children:[{key:"2-1",description:"查询知识库"}]}],AZ=({onPromptsItemClick:e})=>D.jsxs(
|
|
514
|
+
`);super({baseURL:s.baseURL,timeout:s.timeout??6e5,httpAgent:s.httpAgent,maxRetries:s.maxRetries,fetch:s.fetch}),this.completions=new I5(this),this.chat=new Bh(this),this.embeddings=new L5(this),this.files=new ib(this),this.images=new j5(this),this.audio=new _c(this),this.moderations=new $5(this),this.models=new db(this),this.fineTuning=new Sc(this),this.beta=new zi(this),this.batches=new Vv(this),this.uploads=new hb(this),this._options=s,this.apiKey=r,this.organization=n,this.project=a}defaultQuery(){return this._options.defaultQuery}defaultHeaders(t){return{...super.defaultHeaders(t),"OpenAI-Organization":this.organization,"OpenAI-Project":this.project,...this._options.defaultHeaders}}authHeaders(t){return{Authorization:`Bearer ${this.apiKey}`}}stringifyQuery(t){return LX(t,{arrayFormat:"brackets"})}}B5=ct;ct.OpenAI=B5;ct.DEFAULT_TIMEOUT=6e5;ct.OpenAIError=st;ct.APIError=gr;ct.APIConnectionError=Nh;ct.APIConnectionTimeoutError=Wv;ct.APIUserAbortError=Wn;ct.NotFoundError=VE;ct.ConflictError=YE;ct.RateLimitError=KE;ct.BadRequestError=UE;ct.AuthenticationError=qE;ct.InternalServerError=XE;ct.PermissionDeniedError=WE;ct.UnprocessableEntityError=GE;ct.toFile=r5;ct.fileFromPath=BE;ct.Completions=I5;ct.Chat=Bh;ct.ChatCompletionsPage=zh;ct.Embeddings=L5;ct.Files=ib;ct.FileObjectsPage=ob;ct.Images=j5;ct.Audio=_c;ct.Moderations=$5;ct.Models=db;ct.ModelsPage=fb;ct.FineTuning=Sc;ct.Beta=zi;ct.Batches=Vv;ct.BatchesPage=Yv;ct.Uploads=hb;const OZ=[{key:"1",label:"热点",description:"What are you interested in?",children:[{key:"1-1",description:"创建物料?"}]},{key:"2",label:"引导",description:"How to design a good product?",children:[{key:"2-1",description:"查询知识库"}]},{key:"3",label:"引导",description:"How to design a good product?",children:[{key:"2-1",description:"查询知识库"}]},{key:"4",label:"引导",description:"How to design ?",children:[{key:"2-1",description:"查询知识库"}]}],AZ=({onPromptsItemClick:e})=>D.jsxs(X.Space,{direction:"vertical",size:16,className:In.placeholder,children:[D.jsx(DE,{variant:"borderless",title:"Hello, I'm OnChain Assistant",description:"How can I help you today?",extra:D.jsx(X.Space,{})}),D.jsx("div",{children:D.jsx(Fh,{title:"Suggested?",items:OZ,styles:{list:{width:"100%"},item:{flex:1}},onItemClick:e})})]}),W6={};function RZ(e){let t=W6[e];if(t)return t;t=W6[e]=[];for(let r=0;r<128;r++){const n=String.fromCharCode(r);t.push(n)}for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}function Fs(e,t){typeof t!="string"&&(t=Fs.defaultChars);const r=RZ(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(n){let a="";for(let i=0,s=n.length;i<s;i+=3){const l=parseInt(n.slice(i+1,i+3),16);if(l<128){a+=r[l];continue}if((l&224)===192&&i+3<s){const u=parseInt(n.slice(i+4,i+6),16);if((u&192)===128){const c=l<<6&1984|u&63;c<128?a+="��":a+=String.fromCharCode(c),i+=3;continue}}if((l&240)===224&&i+6<s){const u=parseInt(n.slice(i+4,i+6),16),c=parseInt(n.slice(i+7,i+9),16);if((u&192)===128&&(c&192)===128){const m=l<<12&61440|u<<6&4032|c&63;m<2048||m>=55296&&m<=57343?a+="���":a+=String.fromCharCode(m),i+=6;continue}}if((l&248)===240&&i+9<s){const u=parseInt(n.slice(i+4,i+6),16),c=parseInt(n.slice(i+7,i+9),16),m=parseInt(n.slice(i+10,i+12),16);if((u&192)===128&&(c&192)===128&&(m&192)===128){let p=l<<18&1835008|u<<12&258048|c<<6&4032|m&63;p<65536||p>1114111?a+="����":(p-=65536,a+=String.fromCharCode(55296+(p>>10),56320+(p&1023))),i+=9;continue}}a+="�"}return a})}Fs.defaultChars=";/?:@&=+$,#";Fs.componentChars="";const V6={};function PZ(e){let t=V6[e];if(t)return t;t=V6[e]=[];for(let r=0;r<128;r++){const n=String.fromCharCode(r);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=e[r];return t}function Cc(e,t,r){typeof t!="string"&&(r=t,t=Cc.defaultChars),typeof r>"u"&&(r=!0);const n=PZ(t);let a="";for(let i=0,s=e.length;i<s;i++){const l=e.charCodeAt(i);if(r&&l===37&&i+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3))){a+=e.slice(i,i+3),i+=2;continue}if(l<128){a+=n[l];continue}if(l>=55296&&l<=57343){if(l>=55296&&l<=56319&&i+1<s){const u=e.charCodeAt(i+1);if(u>=56320&&u<=57343){a+=encodeURIComponent(e[i]+e[i+1]),i++;continue}}a+="%EF%BF%BD";continue}a+=encodeURIComponent(e[i])}return a}Cc.defaultChars=";/?:@&=+$,-_.!~*'()#";Cc.componentChars="-_.!~*'()";function pb(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Zf(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const DZ=/^([a-z0-9.+-]+:)/i,MZ=/:[0-9]*$/,FZ=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,NZ=["<",">",'"',"`"," ","\r",`
|
|
515
515
|
`," "],IZ=["{","}","|","\\","^","`"].concat(NZ),LZ=["'"].concat(IZ),Y6=["%","/","?",";","#"].concat(LZ),G6=["/","?","#"],jZ=255,K6=/^[+a-z0-9A-Z_-]{0,63}$/,$Z=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,X6={javascript:!0,"javascript:":!0},Z6={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function mb(e,t){if(e&&e instanceof Zf)return e;const r=new Zf;return r.parse(e,t),r}Zf.prototype.parse=function(e,t){let r,n,a,i=e;if(i=i.trim(),!t&&e.split("#").length===1){const c=FZ.exec(i);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let s=DZ.exec(i);if(s&&(s=s[0],r=s.toLowerCase(),this.protocol=s,i=i.substr(s.length)),(t||s||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=i.substr(0,2)==="//",a&&!(s&&X6[s])&&(i=i.substr(2),this.slashes=!0)),!X6[s]&&(a||s&&!Z6[s])){let c=-1;for(let x=0;x<G6.length;x++)n=i.indexOf(G6[x]),n!==-1&&(c===-1||n<c)&&(c=n);let m,p;c===-1?p=i.lastIndexOf("@"):p=i.lastIndexOf("@",c),p!==-1&&(m=i.slice(0,p),i=i.slice(p+1),this.auth=m),c=-1;for(let x=0;x<Y6.length;x++)n=i.indexOf(Y6[x]),n!==-1&&(c===-1||n<c)&&(c=n);c===-1&&(c=i.length),i[c-1]===":"&&c--;const g=i.slice(0,c);i=i.slice(c),this.parseHost(g),this.hostname=this.hostname||"";const y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y){const x=this.hostname.split(/\./);for(let E=0,k=x.length;E<k;E++){const T=x[E];if(T&&!T.match(K6)){let w="";for(let S=0,f=T.length;S<f;S++)T.charCodeAt(S)>127?w+="x":w+=T[S];if(!w.match(K6)){const S=x.slice(0,E),f=x.slice(E+1),h=T.match($Z);h&&(S.push(h[1]),f.unshift(h[2])),f.length&&(i=f.join(".")+i),this.hostname=S.join(".");break}}}}this.hostname.length>jZ&&(this.hostname=""),y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const l=i.indexOf("#");l!==-1&&(this.hash=i.substr(l),i=i.slice(0,l));const u=i.indexOf("?");return u!==-1&&(this.search=i.substr(u),i=i.slice(0,u)),i&&(this.pathname=i),Z6[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Zf.prototype.parseHost=function(e){let t=MZ.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const zZ=Object.freeze(Object.defineProperty({__proto__:null,decode:Fs,encode:Cc,format:pb,parse:mb},Symbol.toStringTag,{value:"Module"})),H5=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,U5=/[\0-\x1F\x7F-\x9F]/,BZ=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,gb=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,q5=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,W5=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,HZ=Object.freeze(Object.defineProperty({__proto__:null,Any:H5,Cc:U5,Cf:BZ,P:gb,S:q5,Z:W5},Symbol.toStringTag,{value:"Module"})),UZ=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),qZ=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Pg;const WZ=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),VZ=(Pg=String.fromCodePoint)!==null&&Pg!==void 0?Pg:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function YZ(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=WZ.get(e))!==null&&t!==void 0?t:e}var ur;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ur||(ur={}));const GZ=32;var Mi;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Mi||(Mi={}));function Z1(e){return e>=ur.ZERO&&e<=ur.NINE}function KZ(e){return e>=ur.UPPER_A&&e<=ur.UPPER_F||e>=ur.LOWER_A&&e<=ur.LOWER_F}function XZ(e){return e>=ur.UPPER_A&&e<=ur.UPPER_Z||e>=ur.LOWER_A&&e<=ur.LOWER_Z||Z1(e)}function ZZ(e){return e===ur.EQUALS||XZ(e)}var or;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(or||(or={}));var Ti;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ti||(Ti={}));class JZ{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=or.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ti.Strict}startEntity(t){this.decodeMode=t,this.state=or.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case or.EntityStart:return t.charCodeAt(r)===ur.NUM?(this.state=or.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=or.NamedEntity,this.stateNamedEntity(t,r));case or.NumericStart:return this.stateNumericStart(t,r);case or.NumericDecimal:return this.stateNumericDecimal(t,r);case or.NumericHex:return this.stateNumericHex(t,r);case or.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|GZ)===ur.LOWER_X?(this.state=or.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=or.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,a){if(r!==n){const i=n-r;this.result=this.result*Math.pow(a,i)+parseInt(t.substr(r,i),a),this.consumed+=i}}stateNumericHex(t,r){const n=r;for(;r<t.length;){const a=t.charCodeAt(r);if(Z1(a)||KZ(a))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){const n=r;for(;r<t.length;){const a=t.charCodeAt(r);if(Z1(a))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ur.SEMI)this.consumed+=1;else if(this.decodeMode===Ti.Strict)return 0;return this.emitCodePoint(YZ(this.result),this.consumed),this.errors&&(t!==ur.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:n}=this;let a=n[this.treeIndex],i=(a&Mi.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const s=t.charCodeAt(r);if(this.treeIndex=QZ(n,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===Ti.Attribute&&(i===0||ZZ(s))?0:this.emitNotTerminatedNamedEntity();if(a=n[this.treeIndex],i=(a&Mi.VALUE_LENGTH)>>14,i!==0){if(s===ur.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Ti.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:n}=this,a=(n[r]&Mi.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){const{decodeTree:a}=this;return this.emitCodePoint(r===1?a[t]&~Mi.VALUE_LENGTH:a[t+1],n),r===3&&this.emitCodePoint(a[t+2],n),n}end(){var t;switch(this.state){case or.NamedEntity:return this.result!==0&&(this.decodeMode!==Ti.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case or.NumericDecimal:return this.emitNumericEntity(0,2);case or.NumericHex:return this.emitNumericEntity(0,3);case or.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case or.EntityStart:return 0}}}function V5(e){let t="";const r=new JZ(e,n=>t+=VZ(n));return function(a,i){let s=0,l=0;for(;(l=a.indexOf("&",l))>=0;){t+=a.slice(s,l),r.startEntity(i);const c=r.write(a,l+1);if(c<0){s=l+r.end();break}s=l+c,l=c===0?s+1:s}const u=t+a.slice(s);return t="",u}}function QZ(e,t,r,n){const a=(t&Mi.BRANCH_LENGTH)>>7,i=t&Mi.JUMP_TABLE;if(a===0)return i!==0&&n===i?r:-1;if(i){const u=n-i;return u<0||u>=a?-1:e[r+u]-1}let s=r,l=s+a-1;for(;s<=l;){const u=s+l>>>1,c=e[u];if(c<n)s=u+1;else if(c>n)l=u-1;else return e[u+a]}return-1}const eJ=V5(UZ);V5(qZ);function Y5(e,t=Ti.Legacy){return eJ(e,t)}function tJ(e){return Object.prototype.toString.call(e)}function vb(e){return tJ(e)==="[object String]"}const rJ=Object.prototype.hasOwnProperty;function nJ(e,t){return rJ.call(e,t)}function Uh(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}function G5(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function bb(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Jf(e){if(e>65535){e-=65536;const t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}const K5=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,aJ=/&([a-z#][a-z0-9]{1,31});/gi,iJ=new RegExp(K5.source+"|"+aJ.source,"gi"),oJ=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function sJ(e,t){if(t.charCodeAt(0)===35&&oJ.test(t)){const n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return bb(n)?Jf(n):e}const r=Y5(e);return r!==e?r:e}function uJ(e){return e.indexOf("\\")<0?e:e.replace(K5,"$1")}function Ns(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(iJ,function(t,r,n){return r||sJ(t,n)})}const lJ=/[&<>"]/,cJ=/[&<>"]/g,dJ={"&":"&","<":"<",">":">",'"':"""};function fJ(e){return dJ[e]}function Li(e){return lJ.test(e)?e.replace(cJ,fJ):e}const hJ=/[.?*+^$[\]\\(){}|-]/g;function pJ(e){return e.replace(hJ,"\\$&")}function Dt(e){switch(e){case 9:case 32:return!0}return!1}function ic(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function oc(e){return gb.test(e)||q5.test(e)}function sc(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function qh(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const mJ={mdurl:zZ,ucmicro:HZ},gJ=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:G5,assign:Uh,escapeHtml:Li,escapeRE:pJ,fromCodePoint:Jf,has:nJ,isMdAsciiPunct:sc,isPunctChar:oc,isSpace:Dt,isString:vb,isValidEntityCode:bb,isWhiteSpace:ic,lib:mJ,normalizeReference:qh,unescapeAll:Ns,unescapeMd:uJ},Symbol.toStringTag,{value:"Module"}));function vJ(e,t,r){let n,a,i,s;const l=e.posMax,u=e.pos;for(e.pos=t+1,n=1;e.pos<l;){if(i=e.src.charCodeAt(e.pos),i===93&&(n--,n===0)){a=!0;break}if(s=e.pos,e.md.inline.skipToken(e),i===91){if(s===e.pos-1)n++;else if(r)return e.pos=u,-1}}let c=-1;return a&&(c=e.pos),e.pos=u,c}function bJ(e,t,r){let n,a=t;const i={ok:!1,pos:0,str:""};if(e.charCodeAt(a)===60){for(a++;a<r;){if(n=e.charCodeAt(a),n===10||n===60)return i;if(n===62)return i.pos=a+1,i.str=Ns(e.slice(t+1,a)),i.ok=!0,i;if(n===92&&a+1<r){a+=2;continue}a++}return i}let s=0;for(;a<r&&(n=e.charCodeAt(a),!(n===32||n<32||n===127));){if(n===92&&a+1<r){if(e.charCodeAt(a+1)===32)break;a+=2;continue}if(n===40&&(s++,s>32))return i;if(n===41){if(s===0)break;s--}a++}return t===a||s!==0||(i.str=Ns(e.slice(t,a)),i.pos=a,i.ok=!0),i}function yJ(e,t,r,n){let a,i=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)s.str=n.str,s.marker=n.marker;else{if(i>=r)return s;let l=e.charCodeAt(i);if(l!==34&&l!==39&&l!==40)return s;t++,i++,l===40&&(l=41),s.marker=l}for(;i<r;){if(a=e.charCodeAt(i),a===s.marker)return s.pos=i+1,s.str+=Ns(e.slice(t,i)),s.ok=!0,s;if(a===40&&s.marker===41)return s;a===92&&i+1<r&&i++,i++}return s.can_continue=!0,s.str+=Ns(e.slice(t,i)),s}const _J=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:bJ,parseLinkLabel:vJ,parseLinkTitle:yJ},Symbol.toStringTag,{value:"Module"})),wa={};wa.code_inline=function(e,t,r,n,a){const i=e[t];return"<code"+a.renderAttrs(i)+">"+Li(i.content)+"</code>"};wa.code_block=function(e,t,r,n,a){const i=e[t];return"<pre"+a.renderAttrs(i)+"><code>"+Li(e[t].content)+`</code></pre>
|
|
516
516
|
`};wa.fence=function(e,t,r,n,a){const i=e[t],s=i.info?Ns(i.info).trim():"";let l="",u="";if(s){const m=s.split(/(\s+)/g);l=m[0],u=m.slice(2).join("")}let c;if(r.highlight?c=r.highlight(i.content,l,u)||Li(i.content):c=Li(i.content),c.indexOf("<pre")===0)return c+`
|
|
517
517
|
`;if(s){const m=i.attrIndex("class"),p=i.attrs?i.attrs.slice():[];m<0?p.push(["class",r.langPrefix+l]):(p[m]=p[m].slice(),p[m][1]+=" "+r.langPrefix+l);const g={attrs:p};return`<pre><code${a.renderAttrs(g)}>${c}</code></pre>
|
|
@@ -526,4 +526,4 @@ https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety
|
|
|
526
526
|
`:">",i};Js.prototype.renderInline=function(e,t,r){let n="";const a=this.rules;for(let i=0,s=e.length;i<s;i++){const l=e[i].type;typeof a[l]<"u"?n+=a[l](e,i,t,r,this):n+=this.renderToken(e,i,t)}return n};Js.prototype.renderInlineAsText=function(e,t,r){let n="";for(let a=0,i=e.length;a<i;a++)switch(e[a].type){case"text":n+=e[a].content;break;case"image":n+=this.renderInlineAsText(e[a].children,t,r);break;case"html_inline":case"html_block":n+=e[a].content;break;case"softbreak":case"hardbreak":n+=`
|
|
527
527
|
`;break}return n};Js.prototype.render=function(e,t,r){let n="";const a=this.rules;for(let i=0,s=e.length;i<s;i++){const l=e[i].type;l==="inline"?n+=this.renderInline(e[i].children,t,r):typeof a[l]<"u"?n+=a[l](e,i,t,r,this):n+=this.renderToken(e,i,t,r)}return n};function Ur(){this.__rules__=[],this.__cache__=null}Ur.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Ur.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(n){t.indexOf(n)<0&&t.push(n)})}),e.__cache__={},t.forEach(function(r){e.__cache__[r]=[],e.__rules__.forEach(function(n){n.enabled&&(r&&n.alt.indexOf(r)<0||e.__cache__[r].push(n.fn))})})};Ur.prototype.at=function(e,t,r){const n=this.__find__(e),a=r||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=a.alt||[],this.__cache__=null};Ur.prototype.before=function(e,t,r,n){const a=this.__find__(e),i=n||{};if(a===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a,0,{name:t,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null};Ur.prototype.after=function(e,t,r,n){const a=this.__find__(e),i=n||{};if(a===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a+1,0,{name:t,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null};Ur.prototype.push=function(e,t,r){const n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null};Ur.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const r=[];return e.forEach(function(n){const a=this.__find__(n);if(a<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[a].enabled=!0,r.push(n)},this),this.__cache__=null,r};Ur.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(e,t)};Ur.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const r=[];return e.forEach(function(n){const a=this.__find__(n);if(a<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[a].enabled=!1,r.push(n)},this),this.__cache__=null,r};Ur.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function ea(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}ea.prototype.attrIndex=function(t){if(!this.attrs)return-1;const r=this.attrs;for(let n=0,a=r.length;n<a;n++)if(r[n][0]===t)return n;return-1};ea.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};ea.prototype.attrSet=function(t,r){const n=this.attrIndex(t),a=[t,r];n<0?this.attrPush(a):this.attrs[n]=a};ea.prototype.attrGet=function(t){const r=this.attrIndex(t);let n=null;return r>=0&&(n=this.attrs[r][1]),n};ea.prototype.attrJoin=function(t,r){const n=this.attrIndex(t);n<0?this.attrPush([t,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};function X5(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}X5.prototype.Token=ea;const wJ=/\r\n?|\n/g,xJ=/\0/g;function SJ(e){let t;t=e.src.replace(wJ,`
|
|
528
528
|
`),t=t.replace(xJ,"�"),e.src=t}function CJ(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function EJ(e){const t=e.tokens;for(let r=0,n=t.length;r<n;r++){const a=t[r];a.type==="inline"&&e.md.inline.parse(a.content,e.md,e.env,a.children)}}function kJ(e){return/^<a[>\s]/i.test(e)}function TJ(e){return/^<\/a\s*>/i.test(e)}function OJ(e){const t=e.tokens;if(e.md.options.linkify)for(let r=0,n=t.length;r<n;r++){if(t[r].type!=="inline"||!e.md.linkify.pretest(t[r].content))continue;let a=t[r].children,i=0;for(let s=a.length-1;s>=0;s--){const l=a[s];if(l.type==="link_close"){for(s--;a[s].level!==l.level&&a[s].type!=="link_open";)s--;continue}if(l.type==="html_inline"&&(kJ(l.content)&&i>0&&i--,TJ(l.content)&&i++),!(i>0)&&l.type==="text"&&e.md.linkify.test(l.content)){const u=l.content;let c=e.md.linkify.match(u);const m=[];let p=l.level,g=0;c.length>0&&c[0].index===0&&s>0&&a[s-1].type==="text_special"&&(c=c.slice(1));for(let y=0;y<c.length;y++){const x=c[y].url,E=e.md.normalizeLink(x);if(!e.md.validateLink(E))continue;let k=c[y].text;c[y].schema?c[y].schema==="mailto:"&&!/^mailto:/i.test(k)?k=e.md.normalizeLinkText("mailto:"+k).replace(/^mailto:/,""):k=e.md.normalizeLinkText(k):k=e.md.normalizeLinkText("http://"+k).replace(/^http:\/\//,"");const T=c[y].index;if(T>g){const h=new e.Token("text","",0);h.content=u.slice(g,T),h.level=p,m.push(h)}const w=new e.Token("link_open","a",1);w.attrs=[["href",E]],w.level=p++,w.markup="linkify",w.info="auto",m.push(w);const S=new e.Token("text","",0);S.content=k,S.level=p,m.push(S);const f=new e.Token("link_close","a",-1);f.level=--p,f.markup="linkify",f.info="auto",m.push(f),g=c[y].lastIndex}if(g<u.length){const y=new e.Token("text","",0);y.content=u.slice(g),y.level=p,m.push(y)}t[r].children=a=G5(a,s,m)}}}}const Z5=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,AJ=/\((c|tm|r)\)/i,RJ=/\((c|tm|r)\)/ig,PJ={c:"©",r:"®",tm:"™"};function DJ(e,t){return PJ[t.toLowerCase()]}function MJ(e){let t=0;for(let r=e.length-1;r>=0;r--){const n=e[r];n.type==="text"&&!t&&(n.content=n.content.replace(RJ,DJ)),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function FJ(e){let t=0;for(let r=e.length-1;r>=0;r--){const n=e[r];n.type==="text"&&!t&&Z5.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function NJ(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(AJ.test(e.tokens[t].content)&&MJ(e.tokens[t].children),Z5.test(e.tokens[t].content)&&FJ(e.tokens[t].children))}const IJ=/['"]/,J6=/['"]/g,Q6="’";function of(e,t,r){return e.slice(0,t)+r+e.slice(t+1)}function LJ(e,t){let r;const n=[];for(let a=0;a<e.length;a++){const i=e[a],s=e[a].level;for(r=n.length-1;r>=0&&!(n[r].level<=s);r--);if(n.length=r+1,i.type!=="text")continue;let l=i.content,u=0,c=l.length;e:for(;u<c;){J6.lastIndex=u;const m=J6.exec(l);if(!m)break;let p=!0,g=!0;u=m.index+1;const y=m[0]==="'";let x=32;if(m.index-1>=0)x=l.charCodeAt(m.index-1);else for(r=a-1;r>=0&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r--)if(e[r].content){x=e[r].content.charCodeAt(e[r].content.length-1);break}let E=32;if(u<c)E=l.charCodeAt(u);else for(r=a+1;r<e.length&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r++)if(e[r].content){E=e[r].content.charCodeAt(0);break}const k=sc(x)||oc(String.fromCharCode(x)),T=sc(E)||oc(String.fromCharCode(E)),w=ic(x),S=ic(E);if(S?p=!1:T&&(w||k||(p=!1)),w?g=!1:k&&(S||T||(g=!1)),E===34&&m[0]==='"'&&x>=48&&x<=57&&(g=p=!1),p&&g&&(p=k,g=T),!p&&!g){y&&(i.content=of(i.content,m.index,Q6));continue}if(g)for(r=n.length-1;r>=0;r--){let f=n[r];if(n[r].level<s)break;if(f.single===y&&n[r].level===s){f=n[r];let h,v;y?(h=t.md.options.quotes[2],v=t.md.options.quotes[3]):(h=t.md.options.quotes[0],v=t.md.options.quotes[1]),i.content=of(i.content,m.index,v),e[f.token].content=of(e[f.token].content,f.pos,h),u+=v.length-1,f.token===a&&(u+=h.length-1),l=i.content,c=l.length,n.length=r;continue e}}p?n.push({token:a,pos:m.index,single:y,level:s}):g&&y&&(i.content=of(i.content,m.index,Q6))}}}function jJ(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!IJ.test(e.tokens[t].content)||LJ(e.tokens[t].children,e)}function $J(e){let t,r;const n=e.tokens,a=n.length;for(let i=0;i<a;i++){if(n[i].type!=="inline")continue;const s=n[i].children,l=s.length;for(t=0;t<l;t++)s[t].type==="text_special"&&(s[t].type="text");for(t=r=0;t<l;t++)s[t].type==="text"&&t+1<l&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==r&&(s[r]=s[t]),r++);t!==r&&(s.length=r)}}const Dg=[["normalize",SJ],["block",CJ],["inline",EJ],["linkify",OJ],["replacements",NJ],["smartquotes",jJ],["text_join",$J]];function yb(){this.ruler=new Ur;for(let e=0;e<Dg.length;e++)this.ruler.push(Dg[e][0],Dg[e][1])}yb.prototype.process=function(e){const t=this.ruler.getRules("");for(let r=0,n=t.length;r<n;r++)t[r](e)};yb.prototype.State=X5;function xa(e,t,r,n){this.src=e,this.md=t,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const a=this.src;for(let i=0,s=0,l=0,u=0,c=a.length,m=!1;s<c;s++){const p=a.charCodeAt(s);if(!m)if(Dt(p)){l++,p===9?u+=4-u%4:u++;continue}else m=!0;(p===10||s===c-1)&&(p!==10&&s++,this.bMarks.push(i),this.eMarks.push(s),this.tShift.push(l),this.sCount.push(u),this.bsCount.push(0),m=!1,l=0,u=0,i=s+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}xa.prototype.push=function(e,t,r){const n=new ea(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n};xa.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};xa.prototype.skipEmptyLines=function(t){for(let r=this.lineMax;t<r&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};xa.prototype.skipSpaces=function(t){for(let r=this.src.length;t<r;t++){const n=this.src.charCodeAt(t);if(!Dt(n))break}return t};xa.prototype.skipSpacesBack=function(t,r){if(t<=r)return t;for(;t>r;)if(!Dt(this.src.charCodeAt(--t)))return t+1;return t};xa.prototype.skipChars=function(t,r){for(let n=this.src.length;t<n&&this.src.charCodeAt(t)===r;t++);return t};xa.prototype.skipCharsBack=function(t,r,n){if(t<=n)return t;for(;t>n;)if(r!==this.src.charCodeAt(--t))return t+1;return t};xa.prototype.getLines=function(t,r,n,a){if(t>=r)return"";const i=new Array(r-t);for(let s=0,l=t;l<r;l++,s++){let u=0;const c=this.bMarks[l];let m=c,p;for(l+1<r||a?p=this.eMarks[l]+1:p=this.eMarks[l];m<p&&u<n;){const g=this.src.charCodeAt(m);if(Dt(g))g===9?u+=4-(u+this.bsCount[l])%4:u++;else if(m-c<this.tShift[l])u++;else break;m++}u>n?i[s]=new Array(u-n+1).join(" ")+this.src.slice(m,p):i[s]=this.src.slice(m,p)}return i.join("")};xa.prototype.Token=ea;const zJ=65536;function Mg(e,t){const r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function e8(e){const t=[],r=e.length;let n=0,a=e.charCodeAt(n),i=!1,s=0,l="";for(;n<r;)a===124&&(i?(l+=e.substring(s,n-1),s=n):(t.push(l+e.substring(s,n)),l="",s=n+1)),i=a===92,n++,a=e.charCodeAt(n);return t.push(l+e.substring(s)),t}function BJ(e,t,r,n){if(t+2>r)return!1;let a=t+1;if(e.sCount[a]<e.blkIndent||e.sCount[a]-e.blkIndent>=4)return!1;let i=e.bMarks[a]+e.tShift[a];if(i>=e.eMarks[a])return!1;const s=e.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58||i>=e.eMarks[a])return!1;const l=e.src.charCodeAt(i++);if(l!==124&&l!==45&&l!==58&&!Dt(l)||s===45&&Dt(l))return!1;for(;i<e.eMarks[a];){const f=e.src.charCodeAt(i);if(f!==124&&f!==45&&f!==58&&!Dt(f))return!1;i++}let u=Mg(e,t+1),c=u.split("|");const m=[];for(let f=0;f<c.length;f++){const h=c[f].trim();if(!h){if(f===0||f===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;h.charCodeAt(h.length-1)===58?m.push(h.charCodeAt(0)===58?"center":"right"):h.charCodeAt(0)===58?m.push("left"):m.push("")}if(u=Mg(e,t).trim(),u.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=e8(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const p=c.length;if(p===0||p!==m.length)return!1;if(n)return!0;const g=e.parentType;e.parentType="table";const y=e.md.block.ruler.getRules("blockquote"),x=e.push("table_open","table",1),E=[t,0];x.map=E;const k=e.push("thead_open","thead",1);k.map=[t,t+1];const T=e.push("tr_open","tr",1);T.map=[t,t+1];for(let f=0;f<c.length;f++){const h=e.push("th_open","th",1);m[f]&&(h.attrs=[["style","text-align:"+m[f]]]);const v=e.push("inline","",0);v.content=c[f].trim(),v.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let w,S=0;for(a=t+2;a<r&&!(e.sCount[a]<e.blkIndent);a++){let f=!1;for(let v=0,_=y.length;v<_;v++)if(y[v](e,a,r,!0)){f=!0;break}if(f||(u=Mg(e,a).trim(),!u)||e.sCount[a]-e.blkIndent>=4||(c=e8(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),S+=p-c.length,S>zJ))break;if(a===t+2){const v=e.push("tbody_open","tbody",1);v.map=w=[t+2,0]}const h=e.push("tr_open","tr",1);h.map=[a,a+1];for(let v=0;v<p;v++){const _=e.push("td_open","td",1);m[v]&&(_.attrs=[["style","text-align:"+m[v]]]);const R=e.push("inline","",0);R.content=c[v]?c[v].trim():"",R.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return w&&(e.push("tbody_close","tbody",-1),w[1]=a),e.push("table_close","table",-1),E[1]=a,e.parentType=g,e.line=a,!0}function HJ(e,t,r){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,a=n;for(;n<r;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){n++,a=n;continue}break}e.line=a;const i=e.push("code_block","code",0);return i.content=e.getLines(t,a,4+e.blkIndent,!1)+`
|
|
529
|
-
`,i.map=[t,e.line],!0}function UJ(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||a+3>i)return!1;const s=e.src.charCodeAt(a);if(s!==126&&s!==96)return!1;let l=a;a=e.skipChars(a,s);let u=a-l;if(u<3)return!1;const c=e.src.slice(l,a),m=e.src.slice(a,i);if(s===96&&m.indexOf(String.fromCharCode(s))>=0)return!1;if(n)return!0;let p=t,g=!1;for(;p++,!(p>=r||(a=l=e.bMarks[p]+e.tShift[p],i=e.eMarks[p],a<i&&e.sCount[p]<e.blkIndent));)if(e.src.charCodeAt(a)===s&&!(e.sCount[p]-e.blkIndent>=4)&&(a=e.skipChars(a,s),!(a-l<u)&&(a=e.skipSpaces(a),!(a<i)))){g=!0;break}u=e.sCount[t],e.line=p+(g?1:0);const y=e.push("fence","code",0);return y.info=m,y.content=e.getLines(t+1,p,u,!0),y.markup=c,y.map=[t,e.line],!0}function qJ(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==62)return!1;if(n)return!0;const l=[],u=[],c=[],m=[],p=e.md.block.ruler.getRules("blockquote"),g=e.parentType;e.parentType="blockquote";let y=!1,x;for(x=t;x<r;x++){const S=e.sCount[x]<e.blkIndent;if(a=e.bMarks[x]+e.tShift[x],i=e.eMarks[x],a>=i)break;if(e.src.charCodeAt(a++)===62&&!S){let h=e.sCount[x]+1,v,_;e.src.charCodeAt(a)===32?(a++,h++,_=!1,v=!0):e.src.charCodeAt(a)===9?(v=!0,(e.bsCount[x]+h)%4===3?(a++,h++,_=!1):_=!0):v=!1;let R=h;for(l.push(e.bMarks[x]),e.bMarks[x]=a;a<i;){const C=e.src.charCodeAt(a);if(Dt(C))C===9?R+=4-(R+e.bsCount[x]+(_?1:0))%4:R++;else break;a++}y=a>=i,u.push(e.bsCount[x]),e.bsCount[x]=e.sCount[x]+1+(v?1:0),c.push(e.sCount[x]),e.sCount[x]=R-h,m.push(e.tShift[x]),e.tShift[x]=a-e.bMarks[x];continue}if(y)break;let f=!1;for(let h=0,v=p.length;h<v;h++)if(p[h](e,x,r,!0)){f=!0;break}if(f){e.lineMax=x,e.blkIndent!==0&&(l.push(e.bMarks[x]),u.push(e.bsCount[x]),m.push(e.tShift[x]),c.push(e.sCount[x]),e.sCount[x]-=e.blkIndent);break}l.push(e.bMarks[x]),u.push(e.bsCount[x]),m.push(e.tShift[x]),c.push(e.sCount[x]),e.sCount[x]=-1}const E=e.blkIndent;e.blkIndent=0;const k=e.push("blockquote_open","blockquote",1);k.markup=">";const T=[t,0];k.map=T,e.md.block.tokenize(e,t,x);const w=e.push("blockquote_close","blockquote",-1);w.markup=">",e.lineMax=s,e.parentType=g,T[1]=e.line;for(let S=0;S<m.length;S++)e.bMarks[S+t]=l[S],e.tShift[S+t]=m[S],e.sCount[S+t]=c[S],e.bsCount[S+t]=u[S];return e.blkIndent=E,!0}function WJ(e,t,r,n){const a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(i++);if(s!==42&&s!==45&&s!==95)return!1;let l=1;for(;i<a;){const c=e.src.charCodeAt(i++);if(c!==s&&!Dt(c))return!1;c===s&&l++}if(l<3)return!1;if(n)return!0;e.line=t+1;const u=e.push("hr","hr",0);return u.map=[t,e.line],u.markup=Array(l+1).join(String.fromCharCode(s)),!0}function t8(e,t){const r=e.eMarks[t];let n=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(n++);if(a!==42&&a!==45&&a!==43)return-1;if(n<r){const i=e.src.charCodeAt(n);if(!Dt(i))return-1}return n}function r8(e,t){const r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];let a=r;if(a+1>=n)return-1;let i=e.src.charCodeAt(a++);if(i<48||i>57)return-1;for(;;){if(a>=n)return-1;if(i=e.src.charCodeAt(a++),i>=48&&i<=57){if(a-r>=10)return-1;continue}if(i===41||i===46)break;return-1}return a<n&&(i=e.src.charCodeAt(a),!Dt(i))?-1:a}function VJ(e,t){const r=e.level+2;for(let n=t+2,a=e.tokens.length-2;n<a;n++)e.tokens[n].level===r&&e.tokens[n].type==="paragraph_open"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}function YJ(e,t,r,n){let a,i,s,l,u=t,c=!0;if(e.sCount[u]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[u]-e.listIndent>=4&&e.sCount[u]<e.blkIndent)return!1;let m=!1;n&&e.parentType==="paragraph"&&e.sCount[u]>=e.blkIndent&&(m=!0);let p,g,y;if((y=r8(e,u))>=0){if(p=!0,s=e.bMarks[u]+e.tShift[u],g=Number(e.src.slice(s,y-1)),m&&g!==1)return!1}else if((y=t8(e,u))>=0)p=!1;else return!1;if(m&&e.skipSpaces(y)>=e.eMarks[u])return!1;if(n)return!0;const x=e.src.charCodeAt(y-1),E=e.tokens.length;p?(l=e.push("ordered_list_open","ol",1),g!==1&&(l.attrs=[["start",g]])):l=e.push("bullet_list_open","ul",1);const k=[u,0];l.map=k,l.markup=String.fromCharCode(x);let T=!1;const w=e.md.block.ruler.getRules("list"),S=e.parentType;for(e.parentType="list";u<r;){i=y,a=e.eMarks[u];const f=e.sCount[u]+y-(e.bMarks[u]+e.tShift[u]);let h=f;for(;i<a;){const j=e.src.charCodeAt(i);if(j===9)h+=4-(h+e.bsCount[u])%4;else if(j===32)h++;else break;i++}const v=i;let _;v>=a?_=1:_=h-f,_>4&&(_=1);const R=f+_;l=e.push("list_item_open","li",1),l.markup=String.fromCharCode(x);const C=[u,0];l.map=C,p&&(l.info=e.src.slice(s,y-1));const P=e.tight,M=e.tShift[u],U=e.sCount[u],L=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=R,e.tight=!0,e.tShift[u]=v-e.bMarks[u],e.sCount[u]=h,v>=a&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,u,r,!0),(!e.tight||T)&&(c=!1),T=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=L,e.tShift[u]=M,e.sCount[u]=U,e.tight=P,l=e.push("list_item_close","li",-1),l.markup=String.fromCharCode(x),u=e.line,C[1]=u,u>=r||e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)break;let N=!1;for(let j=0,O=w.length;j<O;j++)if(w[j](e,u,r,!0)){N=!0;break}if(N)break;if(p){if(y=r8(e,u),y<0)break;s=e.bMarks[u]+e.tShift[u]}else if(y=t8(e,u),y<0)break;if(x!==e.src.charCodeAt(y-1))break}return p?l=e.push("ordered_list_close","ol",-1):l=e.push("bullet_list_close","ul",-1),l.markup=String.fromCharCode(x),k[1]=u,e.line=u,e.parentType=S,c&&VJ(e,E),!0}function GJ(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==91)return!1;function l(w){const S=e.lineMax;if(w>=S||e.isEmpty(w))return null;let f=!1;if(e.sCount[w]-e.blkIndent>3&&(f=!0),e.sCount[w]<0&&(f=!0),!f){const _=e.md.block.ruler.getRules("reference"),R=e.parentType;e.parentType="reference";let C=!1;for(let P=0,M=_.length;P<M;P++)if(_[P](e,w,S,!0)){C=!0;break}if(e.parentType=R,C)return null}const h=e.bMarks[w]+e.tShift[w],v=e.eMarks[w];return e.src.slice(h,v+1)}let u=e.src.slice(a,i+1);i=u.length;let c=-1;for(a=1;a<i;a++){const w=u.charCodeAt(a);if(w===91)return!1;if(w===93){c=a;break}else if(w===10){const S=l(s);S!==null&&(u+=S,i=u.length,s++)}else if(w===92&&(a++,a<i&&u.charCodeAt(a)===10)){const S=l(s);S!==null&&(u+=S,i=u.length,s++)}}if(c<0||u.charCodeAt(c+1)!==58)return!1;for(a=c+2;a<i;a++){const w=u.charCodeAt(a);if(w===10){const S=l(s);S!==null&&(u+=S,i=u.length,s++)}else if(!Dt(w))break}const m=e.md.helpers.parseLinkDestination(u,a,i);if(!m.ok)return!1;const p=e.md.normalizeLink(m.str);if(!e.md.validateLink(p))return!1;a=m.pos;const g=a,y=s,x=a;for(;a<i;a++){const w=u.charCodeAt(a);if(w===10){const S=l(s);S!==null&&(u+=S,i=u.length,s++)}else if(!Dt(w))break}let E=e.md.helpers.parseLinkTitle(u,a,i);for(;E.can_continue;){const w=l(s);if(w===null)break;u+=w,a=i,i=u.length,s++,E=e.md.helpers.parseLinkTitle(u,a,i,E)}let k;for(a<i&&x!==a&&E.ok?(k=E.str,a=E.pos):(k="",a=g,s=y);a<i;){const w=u.charCodeAt(a);if(!Dt(w))break;a++}if(a<i&&u.charCodeAt(a)!==10&&k)for(k="",a=g,s=y;a<i;){const w=u.charCodeAt(a);if(!Dt(w))break;a++}if(a<i&&u.charCodeAt(a)!==10)return!1;const T=qh(u.slice(1,c));return T?(n||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[T]>"u"&&(e.env.references[T]={title:k,href:p}),e.line=s),!0):!1}const KJ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],XJ="[a-zA-Z_:][a-zA-Z0-9:._-]*",ZJ="[^\"'=<>`\\x00-\\x20]+",JJ="'[^']*'",QJ='"[^"]*"',eQ="(?:"+ZJ+"|"+JJ+"|"+QJ+")",tQ="(?:\\s+"+XJ+"(?:\\s*=\\s*"+eQ+")?)",J5="<[A-Za-z][A-Za-z0-9\\-]*"+tQ+"*\\s*\\/?>",Q5="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",rQ="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",nQ="<[?][\\s\\S]*?[?]>",aQ="<![A-Za-z][^>]*>",iQ="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",oQ=new RegExp("^(?:"+J5+"|"+Q5+"|"+rQ+"|"+nQ+"|"+aQ+"|"+iQ+")"),sQ=new RegExp("^(?:"+J5+"|"+Q5+")"),ns=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+KJ.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(sQ.source+"\\s*$"),/^$/,!1]];function uQ(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(a)!==60)return!1;let s=e.src.slice(a,i),l=0;for(;l<ns.length&&!ns[l][0].test(s);l++);if(l===ns.length)return!1;if(n)return ns[l][2];let u=t+1;if(!ns[l][1].test(s)){for(;u<r&&!(e.sCount[u]<e.blkIndent);u++)if(a=e.bMarks[u]+e.tShift[u],i=e.eMarks[u],s=e.src.slice(a,i),ns[l][1].test(s)){s.length!==0&&u++;break}}e.line=u;const c=e.push("html_block","",0);return c.map=[t,u],c.content=e.getLines(t,u,e.blkIndent,!0),!0}function lQ(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(a);if(s!==35||a>=i)return!1;let l=1;for(s=e.src.charCodeAt(++a);s===35&&a<i&&l<=6;)l++,s=e.src.charCodeAt(++a);if(l>6||a<i&&!Dt(s))return!1;if(n)return!0;i=e.skipSpacesBack(i,a);const u=e.skipCharsBack(i,35,a);u>a&&Dt(e.src.charCodeAt(u-1))&&(i=u),e.line=t+1;const c=e.push("heading_open","h"+String(l),1);c.markup="########".slice(0,l),c.map=[t,e.line];const m=e.push("inline","",0);m.content=e.src.slice(a,i).trim(),m.map=[t,e.line],m.children=[];const p=e.push("heading_close","h"+String(l),-1);return p.markup="########".slice(0,l),!0}function cQ(e,t,r){const n=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const a=e.parentType;e.parentType="paragraph";let i=0,s,l=t+1;for(;l<r&&!e.isEmpty(l);l++){if(e.sCount[l]-e.blkIndent>3)continue;if(e.sCount[l]>=e.blkIndent){let y=e.bMarks[l]+e.tShift[l];const x=e.eMarks[l];if(y<x&&(s=e.src.charCodeAt(y),(s===45||s===61)&&(y=e.skipChars(y,s),y=e.skipSpaces(y),y>=x))){i=s===61?1:2;break}}if(e.sCount[l]<0)continue;let g=!1;for(let y=0,x=n.length;y<x;y++)if(n[y](e,l,r,!0)){g=!0;break}if(g)break}if(!i)return!1;const u=e.getLines(t,l,e.blkIndent,!1).trim();e.line=l+1;const c=e.push("heading_open","h"+String(i),1);c.markup=String.fromCharCode(s),c.map=[t,e.line];const m=e.push("inline","",0);m.content=u,m.map=[t,e.line-1],m.children=[];const p=e.push("heading_close","h"+String(i),-1);return p.markup=String.fromCharCode(s),e.parentType=a,!0}function dQ(e,t,r){const n=e.md.block.ruler.getRules("paragraph"),a=e.parentType;let i=t+1;for(e.parentType="paragraph";i<r&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let c=!1;for(let m=0,p=n.length;m<p;m++)if(n[m](e,i,r,!0)){c=!0;break}if(c)break}const s=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i;const l=e.push("paragraph_open","p",1);l.map=[t,e.line];const u=e.push("inline","",0);return u.content=s,u.map=[t,e.line],u.children=[],e.push("paragraph_close","p",-1),e.parentType=a,!0}const sf=[["table",BJ,["paragraph","reference"]],["code",HJ],["fence",UJ,["paragraph","reference","blockquote","list"]],["blockquote",qJ,["paragraph","reference","blockquote","list"]],["hr",WJ,["paragraph","reference","blockquote","list"]],["list",YJ,["paragraph","reference","blockquote"]],["reference",GJ],["html_block",uQ,["paragraph","reference","blockquote"]],["heading",lQ,["paragraph","reference","blockquote"]],["lheading",cQ],["paragraph",dQ]];function Wh(){this.ruler=new Ur;for(let e=0;e<sf.length;e++)this.ruler.push(sf[e][0],sf[e][1],{alt:(sf[e][2]||[]).slice()})}Wh.prototype.tokenize=function(e,t,r){const n=this.ruler.getRules(""),a=n.length,i=e.md.options.maxNesting;let s=t,l=!1;for(;s<r&&(e.line=s=e.skipEmptyLines(s),!(s>=r||e.sCount[s]<e.blkIndent));){if(e.level>=i){e.line=r;break}const u=e.line;let c=!1;for(let m=0;m<a;m++)if(c=n[m](e,s,r,!1),c){if(u>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!l,e.isEmpty(e.line-1)&&(l=!0),s=e.line,s<r&&e.isEmpty(s)&&(l=!0,s++,e.line=s)}};Wh.prototype.parse=function(e,t,r,n){if(!e)return;const a=new this.State(e,t,r,n);this.tokenize(a,a.line,a.lineMax)};Wh.prototype.State=xa;function Ec(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Ec.prototype.pushPending=function(){const e=new ea("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};Ec.prototype.push=function(e,t,r){this.pending&&this.pushPending();const n=new ea(e,t,r);let a=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],a={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(a),n};Ec.prototype.scanDelims=function(e,t){const r=this.posMax,n=this.src.charCodeAt(e),a=e>0?this.src.charCodeAt(e-1):32;let i=e;for(;i<r&&this.src.charCodeAt(i)===n;)i++;const s=i-e,l=i<r?this.src.charCodeAt(i):32,u=sc(a)||oc(String.fromCharCode(a)),c=sc(l)||oc(String.fromCharCode(l)),m=ic(a),p=ic(l),g=!p&&(!c||m||u),y=!m&&(!u||p||c);return{can_open:g&&(t||!y||u),can_close:y&&(t||!g||c),length:s}};Ec.prototype.Token=ea;function fQ(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function hQ(e,t){let r=e.pos;for(;r<e.posMax&&!fQ(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}const pQ=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function mQ(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const r=e.pos,n=e.posMax;if(r+3>n||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47)return!1;const a=e.pending.match(pQ);if(!a)return!1;const i=a[1],s=e.md.linkify.matchAtStart(e.src.slice(r-i.length));if(!s)return!1;let l=s.url;if(l.length<=i.length)return!1;l=l.replace(/\*+$/,"");const u=e.md.normalizeLink(l);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const c=e.push("link_open","a",1);c.attrs=[["href",u]],c.markup="linkify",c.info="auto";const m=e.push("text","",0);m.content=e.md.normalizeLinkText(l);const p=e.push("link_close","a",-1);p.markup="linkify",p.info="auto"}return e.pos+=l.length-i.length,!0}function gQ(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==10)return!1;const n=e.pending.length-1,a=e.posMax;if(!t)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){let i=n-1;for(;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<a&&Dt(e.src.charCodeAt(r));)r++;return e.pos=r,!0}const _b=[];for(let e=0;e<256;e++)_b.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){_b[e.charCodeAt(0)]=1});function vQ(e,t){let r=e.pos;const n=e.posMax;if(e.src.charCodeAt(r)!==92||(r++,r>=n))return!1;let a=e.src.charCodeAt(r);if(a===10){for(t||e.push("hardbreak","br",0),r++;r<n&&(a=e.src.charCodeAt(r),!!Dt(a));)r++;return e.pos=r,!0}let i=e.src[r];if(a>=55296&&a<=56319&&r+1<n){const l=e.src.charCodeAt(r+1);l>=56320&&l<=57343&&(i+=e.src[r+1],r++)}const s="\\"+i;if(!t){const l=e.push("text_special","",0);a<256&&_b[a]!==0?l.content=i:l.content=s,l.markup=s,l.info="escape"}return e.pos=r+1,!0}function bQ(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==96)return!1;const a=r;r++;const i=e.posMax;for(;r<i&&e.src.charCodeAt(r)===96;)r++;const s=e.src.slice(a,r),l=s.length;if(e.backticksScanned&&(e.backticks[l]||0)<=a)return t||(e.pending+=s),e.pos+=l,!0;let u=r,c;for(;(c=e.src.indexOf("`",u))!==-1;){for(u=c+1;u<i&&e.src.charCodeAt(u)===96;)u++;const m=u-c;if(m===l){if(!t){const p=e.push("code_inline","code",0);p.markup=s,p.content=e.src.slice(r,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=u,!0}e.backticks[m]=c}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=l,!0}function yQ(e,t){const r=e.pos,n=e.src.charCodeAt(r);if(t||n!==126)return!1;const a=e.scanDelims(e.pos,!0);let i=a.length;const s=String.fromCharCode(n);if(i<2)return!1;let l;i%2&&(l=e.push("text","",0),l.content=s,i--);for(let u=0;u<i;u+=2)l=e.push("text","",0),l.content=s+s,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return e.pos+=a.length,!0}function n8(e,t){let r;const n=[],a=t.length;for(let i=0;i<a;i++){const s=t[i];if(s.marker!==126||s.end===-1)continue;const l=t[s.end];r=e.tokens[s.token],r.type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",r=e.tokens[l.token],r.type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="",e.tokens[l.token-1].type==="text"&&e.tokens[l.token-1].content==="~"&&n.push(l.token-1)}for(;n.length;){const i=n.pop();let s=i+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,i!==s&&(r=e.tokens[s],e.tokens[s]=e.tokens[i],e.tokens[i]=r)}}function _Q(e){const t=e.tokens_meta,r=e.tokens_meta.length;n8(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&n8(e,t[n].delimiters)}const ek={tokenize:yQ,postProcess:_Q};function wQ(e,t){const r=e.pos,n=e.src.charCodeAt(r);if(t||n!==95&&n!==42)return!1;const a=e.scanDelims(e.pos,n===42);for(let i=0;i<a.length;i++){const s=e.push("text","",0);s.content=String.fromCharCode(n),e.delimiters.push({marker:n,length:a.length,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close})}return e.pos+=a.length,!0}function a8(e,t){const r=t.length;for(let n=r-1;n>=0;n--){const a=t[n];if(a.marker!==95&&a.marker!==42||a.end===-1)continue;const i=t[a.end],s=n>0&&t[n-1].end===a.end+1&&t[n-1].marker===a.marker&&t[n-1].token===a.token-1&&t[a.end+1].token===i.token+1,l=String.fromCharCode(a.marker),u=e.tokens[a.token];u.type=s?"strong_open":"em_open",u.tag=s?"strong":"em",u.nesting=1,u.markup=s?l+l:l,u.content="";const c=e.tokens[i.token];c.type=s?"strong_close":"em_close",c.tag=s?"strong":"em",c.nesting=-1,c.markup=s?l+l:l,c.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[a.end+1].token].content="",n--)}}function xQ(e){const t=e.tokens_meta,r=e.tokens_meta.length;a8(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&a8(e,t[n].delimiters)}const tk={tokenize:wQ,postProcess:xQ};function SQ(e,t){let r,n,a,i,s="",l="",u=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const m=e.pos,p=e.posMax,g=e.pos+1,y=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(y<0)return!1;let x=y+1;if(x<p&&e.src.charCodeAt(x)===40){for(c=!1,x++;x<p&&(r=e.src.charCodeAt(x),!(!Dt(r)&&r!==10));x++);if(x>=p)return!1;if(u=x,a=e.md.helpers.parseLinkDestination(e.src,x,e.posMax),a.ok){for(s=e.md.normalizeLink(a.str),e.md.validateLink(s)?x=a.pos:s="",u=x;x<p&&(r=e.src.charCodeAt(x),!(!Dt(r)&&r!==10));x++);if(a=e.md.helpers.parseLinkTitle(e.src,x,e.posMax),x<p&&u!==x&&a.ok)for(l=a.str,x=a.pos;x<p&&(r=e.src.charCodeAt(x),!(!Dt(r)&&r!==10));x++);}(x>=p||e.src.charCodeAt(x)!==41)&&(c=!0),x++}if(c){if(typeof e.env.references>"u")return!1;if(x<p&&e.src.charCodeAt(x)===91?(u=x+1,x=e.md.helpers.parseLinkLabel(e,x),x>=0?n=e.src.slice(u,x++):x=y+1):x=y+1,n||(n=e.src.slice(g,y)),i=e.env.references[qh(n)],!i)return e.pos=m,!1;s=i.href,l=i.title}if(!t){e.pos=g,e.posMax=y;const E=e.push("link_open","a",1),k=[["href",s]];E.attrs=k,l&&k.push(["title",l]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=x,e.posMax=p,!0}function CQ(e,t){let r,n,a,i,s,l,u,c,m="";const p=e.pos,g=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const y=e.pos+2,x=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(x<0)return!1;if(i=x+1,i<g&&e.src.charCodeAt(i)===40){for(i++;i<g&&(r=e.src.charCodeAt(i),!(!Dt(r)&&r!==10));i++);if(i>=g)return!1;for(c=i,l=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),l.ok&&(m=e.md.normalizeLink(l.str),e.md.validateLink(m)?i=l.pos:m=""),c=i;i<g&&(r=e.src.charCodeAt(i),!(!Dt(r)&&r!==10));i++);if(l=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<g&&c!==i&&l.ok)for(u=l.str,i=l.pos;i<g&&(r=e.src.charCodeAt(i),!(!Dt(r)&&r!==10));i++);else u="";if(i>=g||e.src.charCodeAt(i)!==41)return e.pos=p,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i<g&&e.src.charCodeAt(i)===91?(c=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?a=e.src.slice(c,i++):i=x+1):i=x+1,a||(a=e.src.slice(y,x)),s=e.env.references[qh(a)],!s)return e.pos=p,!1;m=s.href,u=s.title}if(!t){n=e.src.slice(y,x);const E=[];e.md.inline.parse(n,e.md,e.env,E);const k=e.push("image","img",0),T=[["src",m],["alt",""]];k.attrs=T,k.children=E,k.content=n,u&&T.push(["title",u])}return e.pos=i,e.posMax=g,!0}const EQ=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,kQ=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function TQ(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==60)return!1;const n=e.pos,a=e.posMax;for(;;){if(++r>=a)return!1;const s=e.src.charCodeAt(r);if(s===60)return!1;if(s===62)break}const i=e.src.slice(n+1,r);if(kQ.test(i)){const s=e.md.normalizeLink(i);if(!e.md.validateLink(s))return!1;if(!t){const l=e.push("link_open","a",1);l.attrs=[["href",s]],l.markup="autolink",l.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(i);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}if(EQ.test(i)){const s=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(s))return!1;if(!t){const l=e.push("link_open","a",1);l.attrs=[["href",s]],l.markup="autolink",l.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(i);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}return!1}function OQ(e){return/^<a[>\s]/i.test(e)}function AQ(e){return/^<\/a\s*>/i.test(e)}function RQ(e){const t=e|32;return t>=97&&t<=122}function PQ(e,t){if(!e.md.options.html)return!1;const r=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==60||n+2>=r)return!1;const a=e.src.charCodeAt(n+1);if(a!==33&&a!==63&&a!==47&&!RQ(a))return!1;const i=e.src.slice(n).match(oQ);if(!i)return!1;if(!t){const s=e.push("html_inline","",0);s.content=i[0],OQ(s.content)&&e.linkLevel++,AQ(s.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}const DQ=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,MQ=/^&([a-z][a-z0-9]{1,31});/i;function FQ(e,t){const r=e.pos,n=e.posMax;if(e.src.charCodeAt(r)!==38||r+1>=n)return!1;if(e.src.charCodeAt(r+1)===35){const i=e.src.slice(r).match(DQ);if(i){if(!t){const s=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),l=e.push("text_special","",0);l.content=bb(s)?Jf(s):Jf(65533),l.markup=i[0],l.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(r).match(MQ);if(i){const s=Y5(i[0]);if(s!==i[0]){if(!t){const l=e.push("text_special","",0);l.content=s,l.markup=i[0],l.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function i8(e){const t={},r=e.length;if(!r)return;let n=0,a=-2;const i=[];for(let s=0;s<r;s++){const l=e[s];if(i.push(0),(e[n].marker!==l.marker||a!==l.token-1)&&(n=s),a=l.token,l.length=l.length||0,!l.close)continue;t.hasOwnProperty(l.marker)||(t[l.marker]=[-1,-1,-1,-1,-1,-1]);const u=t[l.marker][(l.open?3:0)+l.length%3];let c=n-i[n]-1,m=c;for(;c>u;c-=i[c]+1){const p=e[c];if(p.marker===l.marker&&p.open&&p.end<0){let g=!1;if((p.close||l.open)&&(p.length+l.length)%3===0&&(p.length%3!==0||l.length%3!==0)&&(g=!0),!g){const y=c>0&&!e[c-1].open?i[c-1]+1:0;i[s]=s-c+y,i[c]=y,l.open=!1,p.end=s,p.close=!1,m=-1,a=-2;break}}}m!==-1&&(t[l.marker][(l.open?3:0)+(l.length||0)%3]=m)}}function NQ(e){const t=e.tokens_meta,r=e.tokens_meta.length;i8(e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&i8(t[n].delimiters)}function IQ(e){let t,r,n=0;const a=e.tokens,i=e.tokens.length;for(t=r=0;t<i;t++)a[t].nesting<0&&n--,a[t].level=n,a[t].nesting>0&&n++,a[t].type==="text"&&t+1<i&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==r&&(a[r]=a[t]),r++);t!==r&&(a.length=r)}const Fg=[["text",hQ],["linkify",mQ],["newline",gQ],["escape",vQ],["backticks",bQ],["strikethrough",ek.tokenize],["emphasis",tk.tokenize],["link",SQ],["image",CQ],["autolink",TQ],["html_inline",PQ],["entity",FQ]],Ng=[["balance_pairs",NQ],["strikethrough",ek.postProcess],["emphasis",tk.postProcess],["fragments_join",IQ]];function kc(){this.ruler=new Ur;for(let e=0;e<Fg.length;e++)this.ruler.push(Fg[e][0],Fg[e][1]);this.ruler2=new Ur;for(let e=0;e<Ng.length;e++)this.ruler2.push(Ng[e][0],Ng[e][1])}kc.prototype.skipToken=function(e){const t=e.pos,r=this.ruler.getRules(""),n=r.length,a=e.md.options.maxNesting,i=e.cache;if(typeof i[t]<"u"){e.pos=i[t];return}let s=!1;if(e.level<a){for(let l=0;l<n;l++)if(e.level++,s=r[l](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,i[t]=e.pos};kc.prototype.tokenize=function(e){const t=this.ruler.getRules(""),r=t.length,n=e.posMax,a=e.md.options.maxNesting;for(;e.pos<n;){const i=e.pos;let s=!1;if(e.level<a){for(let l=0;l<r;l++)if(s=t[l](e,!1),s){if(i>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};kc.prototype.parse=function(e,t,r,n){const a=new this.State(e,t,r,n);this.tokenize(a);const i=this.ruler2.getRules(""),s=i.length;for(let l=0;l<s;l++)i[l](a)};kc.prototype.State=Ec;function LQ(e){const t={};e=e||{},t.src_Any=H5.source,t.src_Cc=U5.source,t.src_Z=W5.source,t.src_P=gb.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const r="[><|]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function J1(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function Vh(e){return Object.prototype.toString.call(e)}function jQ(e){return Vh(e)==="[object String]"}function $Q(e){return Vh(e)==="[object Object]"}function zQ(e){return Vh(e)==="[object RegExp]"}function o8(e){return Vh(e)==="[object Function]"}function BQ(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const rk={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function HQ(e){return Object.keys(e||{}).reduce(function(t,r){return t||rk.hasOwnProperty(r)},!1)}const UQ={"http:":{validate:function(e,t,r){const n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){const n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){const n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},qQ="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",WQ="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function VQ(e){e.__index__=-1,e.__text_cache__=""}function YQ(e){return function(t,r){const n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function s8(){return function(e,t){t.normalize(e)}}function Qf(e){const t=e.re=LQ(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(qQ),r.push(t.src_xn),t.src_tlds=r.join("|");function n(l){return l.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");const a=[];e.__compiled__={};function i(l,u){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+u)}Object.keys(e.__schemas__).forEach(function(l){const u=e.__schemas__[l];if(u===null)return;const c={validate:null,link:null};if(e.__compiled__[l]=c,$Q(u)){zQ(u.validate)?c.validate=YQ(u.validate):o8(u.validate)?c.validate=u.validate:i(l,u),o8(u.normalize)?c.normalize=u.normalize:u.normalize?i(l,u):c.normalize=s8();return}if(jQ(u)){a.push(l);return}i(l,u)}),a.forEach(function(l){e.__compiled__[e.__schemas__[l]]&&(e.__compiled__[l].validate=e.__compiled__[e.__schemas__[l]].validate,e.__compiled__[l].normalize=e.__compiled__[e.__schemas__[l]].normalize)}),e.__compiled__[""]={validate:null,normalize:s8()};const s=Object.keys(e.__compiled__).filter(function(l){return l.length>0&&e.__compiled__[l]}).map(BQ).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),VQ(e)}function GQ(e,t){const r=e.__index__,n=e.__last_index__,a=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=a,this.text=a,this.url=a}function Q1(e,t){const r=new GQ(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function ln(e,t){if(!(this instanceof ln))return new ln(e,t);t||HQ(e)&&(t=e,e={}),this.__opts__=J1({},rk,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=J1({},UQ,e),this.__compiled__={},this.__tlds__=WQ,this.__tlds_replaced__=!1,this.re={},Qf(this)}ln.prototype.add=function(t,r){return this.__schemas__[t]=r,Qf(this),this};ln.prototype.set=function(t){return this.__opts__=J1(this.__opts__,t),this};ln.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let r,n,a,i,s,l,u,c,m;if(this.re.schema_test.test(t)){for(u=this.re.schema_search,u.lastIndex=0;(r=u.exec(t))!==null;)if(i=this.testSchemaAt(t,r[2],u.lastIndex),i){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=n.index+n[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(m=t.indexOf("@"),m>=0&&(a=t.match(this.re.email_fuzzy))!==null&&(s=a.index+a[1].length,l=a.index+a[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=l))),this.__index__>=0};ln.prototype.pretest=function(t){return this.re.pretest.test(t)};ln.prototype.testSchemaAt=function(t,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0};ln.prototype.match=function(t){const r=[];let n=0;this.__index__>=0&&this.__text_cache__===t&&(r.push(Q1(this,n)),n=this.__last_index__);let a=n?t.slice(n):t;for(;this.test(a);)r.push(Q1(this,n)),a=a.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null};ln.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const r=this.re.schema_at_start.exec(t);if(!r)return null;const n=this.testSchemaAt(t,r[2],r[0].length);return n?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+n,Q1(this,0)):null};ln.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,a,i){return n!==i[a-1]}).reverse(),Qf(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Qf(this),this)};ln.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};ln.prototype.onCompile=function(){};const ks=2147483647,fa=36,wb=1,uc=26,KQ=38,XQ=700,nk=72,ak=128,ik="-",ZQ=/^xn--/,JQ=/[^\0-\x7F]/,QQ=/[\x2E\u3002\uFF0E\uFF61]/g,eee={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ig=fa-wb,ha=Math.floor,Lg=String.fromCharCode;function Ei(e){throw new RangeError(eee[e])}function tee(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}function ok(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(QQ,".");const a=e.split("."),i=tee(a,t).join(".");return n+i}function sk(e){const t=[];let r=0;const n=e.length;for(;r<n;){const a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){const i=e.charCodeAt(r++);(i&64512)==56320?t.push(((a&1023)<<10)+(i&1023)+65536):(t.push(a),r--)}else t.push(a)}return t}const ree=e=>String.fromCodePoint(...e),nee=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:fa},u8=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},uk=function(e,t,r){let n=0;for(e=r?ha(e/XQ):e>>1,e+=ha(e/t);e>Ig*uc>>1;n+=fa)e=ha(e/Ig);return ha(n+(Ig+1)*e/(e+KQ))},lk=function(e){const t=[],r=e.length;let n=0,a=ak,i=nk,s=e.lastIndexOf(ik);s<0&&(s=0);for(let l=0;l<s;++l)e.charCodeAt(l)>=128&&Ei("not-basic"),t.push(e.charCodeAt(l));for(let l=s>0?s+1:0;l<r;){const u=n;for(let m=1,p=fa;;p+=fa){l>=r&&Ei("invalid-input");const g=nee(e.charCodeAt(l++));g>=fa&&Ei("invalid-input"),g>ha((ks-n)/m)&&Ei("overflow"),n+=g*m;const y=p<=i?wb:p>=i+uc?uc:p-i;if(g<y)break;const x=fa-y;m>ha(ks/x)&&Ei("overflow"),m*=x}const c=t.length+1;i=uk(n-u,c,u==0),ha(n/c)>ks-a&&Ei("overflow"),a+=ha(n/c),n%=c,t.splice(n++,0,a)}return String.fromCodePoint(...t)},ck=function(e){const t=[];e=sk(e);const r=e.length;let n=ak,a=0,i=nk;for(const u of e)u<128&&t.push(Lg(u));const s=t.length;let l=s;for(s&&t.push(ik);l<r;){let u=ks;for(const m of e)m>=n&&m<u&&(u=m);const c=l+1;u-n>ha((ks-a)/c)&&Ei("overflow"),a+=(u-n)*c,n=u;for(const m of e)if(m<n&&++a>ks&&Ei("overflow"),m===n){let p=a;for(let g=fa;;g+=fa){const y=g<=i?wb:g>=i+uc?uc:g-i;if(p<y)break;const x=p-y,E=fa-y;t.push(Lg(u8(y+x%E,0))),p=ha(x/E)}t.push(Lg(u8(p,0))),i=uk(a,c,l===s),a=0,++l}++a,++n}return t.join("")},aee=function(e){return ok(e,function(t){return ZQ.test(t)?lk(t.slice(4).toLowerCase()):t})},iee=function(e){return ok(e,function(t){return JQ.test(t)?"xn--"+ck(t):t})},dk={version:"2.3.1",ucs2:{decode:sk,encode:ree},decode:lk,encode:ck,toASCII:iee,toUnicode:aee},oee={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},see={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},uee={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},lee={default:oee,zero:see,commonmark:uee},cee=/^(vbscript|javascript|file|data):/,dee=/^data:image\/(gif|png|jpeg|webp);/;function fee(e){const t=e.trim().toLowerCase();return cee.test(t)?dee.test(t):!0}const fk=["http:","https:","mailto:"];function hee(e){const t=mb(e,!0);if(t.hostname&&(!t.protocol||fk.indexOf(t.protocol)>=0))try{t.hostname=dk.toASCII(t.hostname)}catch{}return Cc(pb(t))}function pee(e){const t=mb(e,!0);if(t.hostname&&(!t.protocol||fk.indexOf(t.protocol)>=0))try{t.hostname=dk.toUnicode(t.hostname)}catch{}return Fs(pb(t),Fs.defaultChars+"%")}function kn(e,t){if(!(this instanceof kn))return new kn(e,t);t||vb(e)||(t=e||{},e="default"),this.inline=new kc,this.block=new Wh,this.core=new yb,this.renderer=new Js,this.linkify=new ln,this.validateLink=fee,this.normalizeLink=hee,this.normalizeLinkText=pee,this.utils=gJ,this.helpers=Uh({},_J),this.options={},this.configure(e),t&&this.set(t)}kn.prototype.set=function(e){return Uh(this.options,e),this};kn.prototype.configure=function(e){const t=this;if(vb(e)){const r=e;if(e=lee[r],!e)throw new Error('Wrong `markdown-it` preset "'+r+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this};kn.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));const n=e.filter(function(a){return r.indexOf(a)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};kn.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));const n=e.filter(function(a){return r.indexOf(a)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};kn.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};kn.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const r=new this.core.State(e,this,t);return this.core.process(r),r.tokens};kn.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};kn.prototype.parseInline=function(e,t){const r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens};kn.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const mee=kn({html:!0,breaks:!0}),l8=[{key:"0",label:"What?"}],gee=e=>{if(!e)return null;const t=mee.render(e.replace("<think>","").replace("</think>","")).replace("<p><think</p>","");return t?(console.log(t,"renderedContent"),D.jsx("div",{dangerouslySetInnerHTML:{__html:t}})):null},vee=[{key:"1",description:"Hot Topics"},{key:"2",description:"Design Guide"}],bee={ai:{placement:"start",avatar:D.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:D.jsx("img",{width:32,src:"/vite.svg",draggable:!1,alt:"logo"})}),styles:{content:{borderRadius:4,background:"#fff",padding:"4px 10px",display:"flex",alignItems:"center",fontSize:"13px"}}},local:{placement:"end",variant:"shadow",avatar:D.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:D.jsx("img",{width:32,src:"/vite.svg",draggable:!1,alt:"logo"})}),styles:{content:{borderRadius:4,padding:"4px 10px",background:"#fff",display:"flex",alignItems:"center",fontSize:"13px"}}}},yee=new ct({baseURL:"https://xiaoai.plus/v1",apiKey:"sk-0ZHLSTsMOiX1YwwBvz8Kwtl3ZXlDVX4zpDgplbOYdImZuJQ9",dangerouslyAllowBrowser:!0}),_ee=()=>{const[e,t]=F.useState(!1),[r,n]=F.useState(""),[a,i]=F.useState(!1),[s,l]=F.useState(l8),[u,c]=F.useState(l8[0].key),[m,p]=F.useState([]),g="deepseek-r1",[y]=gX({request:async(P,M)=>{var B;const{messages:U,message:L}=P,{onSuccess:N,onUpdate:j,onError:O}=M;let I="",z="";try{i(!0);const H=await yee.chat.completions.create({model:g,messages:[{role:"user",content:L}],stream:!0});i(!1);for await(const q of H){const{reasoning_content:J,content:re}=((B=q.choices[0])==null?void 0:B.delta)||{};J&&(z+=J),re&&(I+=re),j(I)}N(I)}catch{}}}),{onRequest:x,messages:E,setMessages:k}=uX({agent:y});F.useEffect(()=>{const P=E.map(M=>({...M,loading:a}));k(P)},[a,E.length]),F.useEffect(()=>{u!==void 0&&k([])},[u]);const T=P=>{P&&(x(P),n(""))},w=P=>{x(P.data.description)},S=()=>{l([...s,{key:`${s.length}`,label:`New Conversation ${s.length}`}]),c(`${s.length}`)},f=P=>{c(P)},h=P=>p(P.fileList),v=E.map(({id:P,message:M,status:U})=>({key:P,loading:!1,role:U==="local"?"local":"ai",content:M,messageRender:gee})),_=D.jsx(Z.Badge,{dot:m.length>0&&!e,children:D.jsx(Z.Button,{type:"text",icon:D.jsx(B8,{}),onClick:()=>t(!e)})}),R=D.jsx(Vf.Header,{title:"Attachments",open:e,onOpenChange:t,styles:{content:{padding:0}},children:D.jsx(qv,{beforeUpload:()=>!1,items:m,onChange:h,placeholder:P=>P==="drop"?{title:"Drop file here"}:{icon:D.jsx(I8,{}),title:"Upload files",description:"Click or drag files to this area to upload"}})}),C=D.jsx("div",{className:In.logo,children:D.jsx("span",{children:"OnChain Assistant"})});return D.jsxs("div",{className:In.layout,children:[D.jsxs("div",{className:In.menu,children:[C,D.jsx(Z.Button,{onClick:S,type:"link",className:In.addBtn,icon:D.jsx(iv,{}),children:"New Conversation"}),D.jsx(PE,{items:s,className:In.conversations,activeKey:u,onActiveChange:f})]}),D.jsxs("div",{className:In.chat,children:[D.jsxs("div",{className:In.top_header,children:[D.jsx("div",{style:{fontWeight:"bold"},children:"Llama3:latest"}),D.jsx("div",{children:D.jsx("div",{className:In.person,children:"李明"})})]}),D.jsx("div",{style:{height:"calc(100% - 265px)",padding:"0px 16px 16px 16px",display:"flex",justifyContent:"center",margin:"0 auto",maxWidth:"70%",width:"100%"},children:v.length?D.jsx(Mh.List,{items:v,roles:bee,className:In.messages}):D.jsx("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:D.jsx(AZ,{onPromptsItemClick:w})})}),D.jsx(Fh,{items:vee,onItemClick:w,style:{padding:"0px 16px"}}),D.jsx(Vf,{value:r,header:R,onSubmit:T,onChange:n,prefix:_,loading:y.isRequesting(),className:In.sender,style:{margin:"0px 16px 16px 16px",width:"auto"}})]})]})},wee="_progress_1kku4_1",xee={progress:wee},See=e=>D.jsx(Z.Progress,{strokeColor:"#0563b2",...e,className:`${e.className??""} ${xee.progress}`,format:t=>(t=t??0,e!=null&&e.highlight?D.jsx(ei,{highlight:e.highlight,value:`${String(t)||""}%`}):`${t}%`)});exports.AliIconFontFn=XM;exports.Color=K8;exports.EditableContext=Lv;exports.GLOBAL_TABLE_TOP_CLASS=wh;exports.HealthStateComponent=QM;exports.OnChainAI=_ee;exports.OnChainAdvancedSearch=DW;exports.OnChainBadge=Wg;exports.OnChainCompositeForm=hc;exports.OnChainDropMenu=E$;exports.OnChainExcelViewer=k$;exports.OnChainForm=QS;exports.OnChainFormItem=f4;exports.OnChainGenAntImage=u4;exports.OnChainGlobalLoading=nF;exports.OnChainHighLightWords=ei;exports.OnChainIcon=He;exports.OnChainImage=_1;exports.OnChainInput=uf;exports.OnChainLoading=Ls;exports.OnChainLoadingSkCube=eF;exports.OnChainMarkdown=WS;exports.OnChainModal=To;exports.OnChainMosaic=pa;exports.OnChainPopupSelect=d4;exports.OnChainProgress=See;exports.OnChainProvider=LP;exports.OnChainPublicTree=KW;exports.OnChainQueryBuilder=h4;exports.OnChainResourceTree=WC;exports.OnChainScrollBar=w$;exports.OnChainScrollBarAssembly=$W;exports.OnChainSelect=ho;exports.OnChainSelectPopupForm=o4;exports.OnChainTable=xh;exports.OnChainTableSelection=c4;exports.OnChainTabs=a4;exports.OnChainTreeSelect=bf;exports.OnChainViewerError=x$;exports.StatusColors=Vg;exports.confirm=e$;exports.confirmModalConfig=ZS;
|
|
529
|
+
`,i.map=[t,e.line],!0}function UJ(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||a+3>i)return!1;const s=e.src.charCodeAt(a);if(s!==126&&s!==96)return!1;let l=a;a=e.skipChars(a,s);let u=a-l;if(u<3)return!1;const c=e.src.slice(l,a),m=e.src.slice(a,i);if(s===96&&m.indexOf(String.fromCharCode(s))>=0)return!1;if(n)return!0;let p=t,g=!1;for(;p++,!(p>=r||(a=l=e.bMarks[p]+e.tShift[p],i=e.eMarks[p],a<i&&e.sCount[p]<e.blkIndent));)if(e.src.charCodeAt(a)===s&&!(e.sCount[p]-e.blkIndent>=4)&&(a=e.skipChars(a,s),!(a-l<u)&&(a=e.skipSpaces(a),!(a<i)))){g=!0;break}u=e.sCount[t],e.line=p+(g?1:0);const y=e.push("fence","code",0);return y.info=m,y.content=e.getLines(t+1,p,u,!0),y.markup=c,y.map=[t,e.line],!0}function qJ(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==62)return!1;if(n)return!0;const l=[],u=[],c=[],m=[],p=e.md.block.ruler.getRules("blockquote"),g=e.parentType;e.parentType="blockquote";let y=!1,x;for(x=t;x<r;x++){const S=e.sCount[x]<e.blkIndent;if(a=e.bMarks[x]+e.tShift[x],i=e.eMarks[x],a>=i)break;if(e.src.charCodeAt(a++)===62&&!S){let h=e.sCount[x]+1,v,_;e.src.charCodeAt(a)===32?(a++,h++,_=!1,v=!0):e.src.charCodeAt(a)===9?(v=!0,(e.bsCount[x]+h)%4===3?(a++,h++,_=!1):_=!0):v=!1;let R=h;for(l.push(e.bMarks[x]),e.bMarks[x]=a;a<i;){const C=e.src.charCodeAt(a);if(Dt(C))C===9?R+=4-(R+e.bsCount[x]+(_?1:0))%4:R++;else break;a++}y=a>=i,u.push(e.bsCount[x]),e.bsCount[x]=e.sCount[x]+1+(v?1:0),c.push(e.sCount[x]),e.sCount[x]=R-h,m.push(e.tShift[x]),e.tShift[x]=a-e.bMarks[x];continue}if(y)break;let f=!1;for(let h=0,v=p.length;h<v;h++)if(p[h](e,x,r,!0)){f=!0;break}if(f){e.lineMax=x,e.blkIndent!==0&&(l.push(e.bMarks[x]),u.push(e.bsCount[x]),m.push(e.tShift[x]),c.push(e.sCount[x]),e.sCount[x]-=e.blkIndent);break}l.push(e.bMarks[x]),u.push(e.bsCount[x]),m.push(e.tShift[x]),c.push(e.sCount[x]),e.sCount[x]=-1}const E=e.blkIndent;e.blkIndent=0;const k=e.push("blockquote_open","blockquote",1);k.markup=">";const T=[t,0];k.map=T,e.md.block.tokenize(e,t,x);const w=e.push("blockquote_close","blockquote",-1);w.markup=">",e.lineMax=s,e.parentType=g,T[1]=e.line;for(let S=0;S<m.length;S++)e.bMarks[S+t]=l[S],e.tShift[S+t]=m[S],e.sCount[S+t]=c[S],e.bsCount[S+t]=u[S];return e.blkIndent=E,!0}function WJ(e,t,r,n){const a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(i++);if(s!==42&&s!==45&&s!==95)return!1;let l=1;for(;i<a;){const c=e.src.charCodeAt(i++);if(c!==s&&!Dt(c))return!1;c===s&&l++}if(l<3)return!1;if(n)return!0;e.line=t+1;const u=e.push("hr","hr",0);return u.map=[t,e.line],u.markup=Array(l+1).join(String.fromCharCode(s)),!0}function t8(e,t){const r=e.eMarks[t];let n=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(n++);if(a!==42&&a!==45&&a!==43)return-1;if(n<r){const i=e.src.charCodeAt(n);if(!Dt(i))return-1}return n}function r8(e,t){const r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];let a=r;if(a+1>=n)return-1;let i=e.src.charCodeAt(a++);if(i<48||i>57)return-1;for(;;){if(a>=n)return-1;if(i=e.src.charCodeAt(a++),i>=48&&i<=57){if(a-r>=10)return-1;continue}if(i===41||i===46)break;return-1}return a<n&&(i=e.src.charCodeAt(a),!Dt(i))?-1:a}function VJ(e,t){const r=e.level+2;for(let n=t+2,a=e.tokens.length-2;n<a;n++)e.tokens[n].level===r&&e.tokens[n].type==="paragraph_open"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}function YJ(e,t,r,n){let a,i,s,l,u=t,c=!0;if(e.sCount[u]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[u]-e.listIndent>=4&&e.sCount[u]<e.blkIndent)return!1;let m=!1;n&&e.parentType==="paragraph"&&e.sCount[u]>=e.blkIndent&&(m=!0);let p,g,y;if((y=r8(e,u))>=0){if(p=!0,s=e.bMarks[u]+e.tShift[u],g=Number(e.src.slice(s,y-1)),m&&g!==1)return!1}else if((y=t8(e,u))>=0)p=!1;else return!1;if(m&&e.skipSpaces(y)>=e.eMarks[u])return!1;if(n)return!0;const x=e.src.charCodeAt(y-1),E=e.tokens.length;p?(l=e.push("ordered_list_open","ol",1),g!==1&&(l.attrs=[["start",g]])):l=e.push("bullet_list_open","ul",1);const k=[u,0];l.map=k,l.markup=String.fromCharCode(x);let T=!1;const w=e.md.block.ruler.getRules("list"),S=e.parentType;for(e.parentType="list";u<r;){i=y,a=e.eMarks[u];const f=e.sCount[u]+y-(e.bMarks[u]+e.tShift[u]);let h=f;for(;i<a;){const j=e.src.charCodeAt(i);if(j===9)h+=4-(h+e.bsCount[u])%4;else if(j===32)h++;else break;i++}const v=i;let _;v>=a?_=1:_=h-f,_>4&&(_=1);const R=f+_;l=e.push("list_item_open","li",1),l.markup=String.fromCharCode(x);const C=[u,0];l.map=C,p&&(l.info=e.src.slice(s,y-1));const P=e.tight,M=e.tShift[u],U=e.sCount[u],L=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=R,e.tight=!0,e.tShift[u]=v-e.bMarks[u],e.sCount[u]=h,v>=a&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,u,r,!0),(!e.tight||T)&&(c=!1),T=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=L,e.tShift[u]=M,e.sCount[u]=U,e.tight=P,l=e.push("list_item_close","li",-1),l.markup=String.fromCharCode(x),u=e.line,C[1]=u,u>=r||e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)break;let N=!1;for(let j=0,O=w.length;j<O;j++)if(w[j](e,u,r,!0)){N=!0;break}if(N)break;if(p){if(y=r8(e,u),y<0)break;s=e.bMarks[u]+e.tShift[u]}else if(y=t8(e,u),y<0)break;if(x!==e.src.charCodeAt(y-1))break}return p?l=e.push("ordered_list_close","ol",-1):l=e.push("bullet_list_close","ul",-1),l.markup=String.fromCharCode(x),k[1]=u,e.line=u,e.parentType=S,c&&VJ(e,E),!0}function GJ(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==91)return!1;function l(w){const S=e.lineMax;if(w>=S||e.isEmpty(w))return null;let f=!1;if(e.sCount[w]-e.blkIndent>3&&(f=!0),e.sCount[w]<0&&(f=!0),!f){const _=e.md.block.ruler.getRules("reference"),R=e.parentType;e.parentType="reference";let C=!1;for(let P=0,M=_.length;P<M;P++)if(_[P](e,w,S,!0)){C=!0;break}if(e.parentType=R,C)return null}const h=e.bMarks[w]+e.tShift[w],v=e.eMarks[w];return e.src.slice(h,v+1)}let u=e.src.slice(a,i+1);i=u.length;let c=-1;for(a=1;a<i;a++){const w=u.charCodeAt(a);if(w===91)return!1;if(w===93){c=a;break}else if(w===10){const S=l(s);S!==null&&(u+=S,i=u.length,s++)}else if(w===92&&(a++,a<i&&u.charCodeAt(a)===10)){const S=l(s);S!==null&&(u+=S,i=u.length,s++)}}if(c<0||u.charCodeAt(c+1)!==58)return!1;for(a=c+2;a<i;a++){const w=u.charCodeAt(a);if(w===10){const S=l(s);S!==null&&(u+=S,i=u.length,s++)}else if(!Dt(w))break}const m=e.md.helpers.parseLinkDestination(u,a,i);if(!m.ok)return!1;const p=e.md.normalizeLink(m.str);if(!e.md.validateLink(p))return!1;a=m.pos;const g=a,y=s,x=a;for(;a<i;a++){const w=u.charCodeAt(a);if(w===10){const S=l(s);S!==null&&(u+=S,i=u.length,s++)}else if(!Dt(w))break}let E=e.md.helpers.parseLinkTitle(u,a,i);for(;E.can_continue;){const w=l(s);if(w===null)break;u+=w,a=i,i=u.length,s++,E=e.md.helpers.parseLinkTitle(u,a,i,E)}let k;for(a<i&&x!==a&&E.ok?(k=E.str,a=E.pos):(k="",a=g,s=y);a<i;){const w=u.charCodeAt(a);if(!Dt(w))break;a++}if(a<i&&u.charCodeAt(a)!==10&&k)for(k="",a=g,s=y;a<i;){const w=u.charCodeAt(a);if(!Dt(w))break;a++}if(a<i&&u.charCodeAt(a)!==10)return!1;const T=qh(u.slice(1,c));return T?(n||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[T]>"u"&&(e.env.references[T]={title:k,href:p}),e.line=s),!0):!1}const KJ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],XJ="[a-zA-Z_:][a-zA-Z0-9:._-]*",ZJ="[^\"'=<>`\\x00-\\x20]+",JJ="'[^']*'",QJ='"[^"]*"',eQ="(?:"+ZJ+"|"+JJ+"|"+QJ+")",tQ="(?:\\s+"+XJ+"(?:\\s*=\\s*"+eQ+")?)",J5="<[A-Za-z][A-Za-z0-9\\-]*"+tQ+"*\\s*\\/?>",Q5="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",rQ="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",nQ="<[?][\\s\\S]*?[?]>",aQ="<![A-Za-z][^>]*>",iQ="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",oQ=new RegExp("^(?:"+J5+"|"+Q5+"|"+rQ+"|"+nQ+"|"+aQ+"|"+iQ+")"),sQ=new RegExp("^(?:"+J5+"|"+Q5+")"),ns=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+KJ.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(sQ.source+"\\s*$"),/^$/,!1]];function uQ(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(a)!==60)return!1;let s=e.src.slice(a,i),l=0;for(;l<ns.length&&!ns[l][0].test(s);l++);if(l===ns.length)return!1;if(n)return ns[l][2];let u=t+1;if(!ns[l][1].test(s)){for(;u<r&&!(e.sCount[u]<e.blkIndent);u++)if(a=e.bMarks[u]+e.tShift[u],i=e.eMarks[u],s=e.src.slice(a,i),ns[l][1].test(s)){s.length!==0&&u++;break}}e.line=u;const c=e.push("html_block","",0);return c.map=[t,u],c.content=e.getLines(t,u,e.blkIndent,!0),!0}function lQ(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(a);if(s!==35||a>=i)return!1;let l=1;for(s=e.src.charCodeAt(++a);s===35&&a<i&&l<=6;)l++,s=e.src.charCodeAt(++a);if(l>6||a<i&&!Dt(s))return!1;if(n)return!0;i=e.skipSpacesBack(i,a);const u=e.skipCharsBack(i,35,a);u>a&&Dt(e.src.charCodeAt(u-1))&&(i=u),e.line=t+1;const c=e.push("heading_open","h"+String(l),1);c.markup="########".slice(0,l),c.map=[t,e.line];const m=e.push("inline","",0);m.content=e.src.slice(a,i).trim(),m.map=[t,e.line],m.children=[];const p=e.push("heading_close","h"+String(l),-1);return p.markup="########".slice(0,l),!0}function cQ(e,t,r){const n=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const a=e.parentType;e.parentType="paragraph";let i=0,s,l=t+1;for(;l<r&&!e.isEmpty(l);l++){if(e.sCount[l]-e.blkIndent>3)continue;if(e.sCount[l]>=e.blkIndent){let y=e.bMarks[l]+e.tShift[l];const x=e.eMarks[l];if(y<x&&(s=e.src.charCodeAt(y),(s===45||s===61)&&(y=e.skipChars(y,s),y=e.skipSpaces(y),y>=x))){i=s===61?1:2;break}}if(e.sCount[l]<0)continue;let g=!1;for(let y=0,x=n.length;y<x;y++)if(n[y](e,l,r,!0)){g=!0;break}if(g)break}if(!i)return!1;const u=e.getLines(t,l,e.blkIndent,!1).trim();e.line=l+1;const c=e.push("heading_open","h"+String(i),1);c.markup=String.fromCharCode(s),c.map=[t,e.line];const m=e.push("inline","",0);m.content=u,m.map=[t,e.line-1],m.children=[];const p=e.push("heading_close","h"+String(i),-1);return p.markup=String.fromCharCode(s),e.parentType=a,!0}function dQ(e,t,r){const n=e.md.block.ruler.getRules("paragraph"),a=e.parentType;let i=t+1;for(e.parentType="paragraph";i<r&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let c=!1;for(let m=0,p=n.length;m<p;m++)if(n[m](e,i,r,!0)){c=!0;break}if(c)break}const s=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i;const l=e.push("paragraph_open","p",1);l.map=[t,e.line];const u=e.push("inline","",0);return u.content=s,u.map=[t,e.line],u.children=[],e.push("paragraph_close","p",-1),e.parentType=a,!0}const sf=[["table",BJ,["paragraph","reference"]],["code",HJ],["fence",UJ,["paragraph","reference","blockquote","list"]],["blockquote",qJ,["paragraph","reference","blockquote","list"]],["hr",WJ,["paragraph","reference","blockquote","list"]],["list",YJ,["paragraph","reference","blockquote"]],["reference",GJ],["html_block",uQ,["paragraph","reference","blockquote"]],["heading",lQ,["paragraph","reference","blockquote"]],["lheading",cQ],["paragraph",dQ]];function Wh(){this.ruler=new Ur;for(let e=0;e<sf.length;e++)this.ruler.push(sf[e][0],sf[e][1],{alt:(sf[e][2]||[]).slice()})}Wh.prototype.tokenize=function(e,t,r){const n=this.ruler.getRules(""),a=n.length,i=e.md.options.maxNesting;let s=t,l=!1;for(;s<r&&(e.line=s=e.skipEmptyLines(s),!(s>=r||e.sCount[s]<e.blkIndent));){if(e.level>=i){e.line=r;break}const u=e.line;let c=!1;for(let m=0;m<a;m++)if(c=n[m](e,s,r,!1),c){if(u>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!l,e.isEmpty(e.line-1)&&(l=!0),s=e.line,s<r&&e.isEmpty(s)&&(l=!0,s++,e.line=s)}};Wh.prototype.parse=function(e,t,r,n){if(!e)return;const a=new this.State(e,t,r,n);this.tokenize(a,a.line,a.lineMax)};Wh.prototype.State=xa;function Ec(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Ec.prototype.pushPending=function(){const e=new ea("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};Ec.prototype.push=function(e,t,r){this.pending&&this.pushPending();const n=new ea(e,t,r);let a=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],a={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(a),n};Ec.prototype.scanDelims=function(e,t){const r=this.posMax,n=this.src.charCodeAt(e),a=e>0?this.src.charCodeAt(e-1):32;let i=e;for(;i<r&&this.src.charCodeAt(i)===n;)i++;const s=i-e,l=i<r?this.src.charCodeAt(i):32,u=sc(a)||oc(String.fromCharCode(a)),c=sc(l)||oc(String.fromCharCode(l)),m=ic(a),p=ic(l),g=!p&&(!c||m||u),y=!m&&(!u||p||c);return{can_open:g&&(t||!y||u),can_close:y&&(t||!g||c),length:s}};Ec.prototype.Token=ea;function fQ(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function hQ(e,t){let r=e.pos;for(;r<e.posMax&&!fQ(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}const pQ=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function mQ(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const r=e.pos,n=e.posMax;if(r+3>n||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47)return!1;const a=e.pending.match(pQ);if(!a)return!1;const i=a[1],s=e.md.linkify.matchAtStart(e.src.slice(r-i.length));if(!s)return!1;let l=s.url;if(l.length<=i.length)return!1;l=l.replace(/\*+$/,"");const u=e.md.normalizeLink(l);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const c=e.push("link_open","a",1);c.attrs=[["href",u]],c.markup="linkify",c.info="auto";const m=e.push("text","",0);m.content=e.md.normalizeLinkText(l);const p=e.push("link_close","a",-1);p.markup="linkify",p.info="auto"}return e.pos+=l.length-i.length,!0}function gQ(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==10)return!1;const n=e.pending.length-1,a=e.posMax;if(!t)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){let i=n-1;for(;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<a&&Dt(e.src.charCodeAt(r));)r++;return e.pos=r,!0}const _b=[];for(let e=0;e<256;e++)_b.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){_b[e.charCodeAt(0)]=1});function vQ(e,t){let r=e.pos;const n=e.posMax;if(e.src.charCodeAt(r)!==92||(r++,r>=n))return!1;let a=e.src.charCodeAt(r);if(a===10){for(t||e.push("hardbreak","br",0),r++;r<n&&(a=e.src.charCodeAt(r),!!Dt(a));)r++;return e.pos=r,!0}let i=e.src[r];if(a>=55296&&a<=56319&&r+1<n){const l=e.src.charCodeAt(r+1);l>=56320&&l<=57343&&(i+=e.src[r+1],r++)}const s="\\"+i;if(!t){const l=e.push("text_special","",0);a<256&&_b[a]!==0?l.content=i:l.content=s,l.markup=s,l.info="escape"}return e.pos=r+1,!0}function bQ(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==96)return!1;const a=r;r++;const i=e.posMax;for(;r<i&&e.src.charCodeAt(r)===96;)r++;const s=e.src.slice(a,r),l=s.length;if(e.backticksScanned&&(e.backticks[l]||0)<=a)return t||(e.pending+=s),e.pos+=l,!0;let u=r,c;for(;(c=e.src.indexOf("`",u))!==-1;){for(u=c+1;u<i&&e.src.charCodeAt(u)===96;)u++;const m=u-c;if(m===l){if(!t){const p=e.push("code_inline","code",0);p.markup=s,p.content=e.src.slice(r,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=u,!0}e.backticks[m]=c}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=l,!0}function yQ(e,t){const r=e.pos,n=e.src.charCodeAt(r);if(t||n!==126)return!1;const a=e.scanDelims(e.pos,!0);let i=a.length;const s=String.fromCharCode(n);if(i<2)return!1;let l;i%2&&(l=e.push("text","",0),l.content=s,i--);for(let u=0;u<i;u+=2)l=e.push("text","",0),l.content=s+s,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return e.pos+=a.length,!0}function n8(e,t){let r;const n=[],a=t.length;for(let i=0;i<a;i++){const s=t[i];if(s.marker!==126||s.end===-1)continue;const l=t[s.end];r=e.tokens[s.token],r.type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",r=e.tokens[l.token],r.type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="",e.tokens[l.token-1].type==="text"&&e.tokens[l.token-1].content==="~"&&n.push(l.token-1)}for(;n.length;){const i=n.pop();let s=i+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,i!==s&&(r=e.tokens[s],e.tokens[s]=e.tokens[i],e.tokens[i]=r)}}function _Q(e){const t=e.tokens_meta,r=e.tokens_meta.length;n8(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&n8(e,t[n].delimiters)}const ek={tokenize:yQ,postProcess:_Q};function wQ(e,t){const r=e.pos,n=e.src.charCodeAt(r);if(t||n!==95&&n!==42)return!1;const a=e.scanDelims(e.pos,n===42);for(let i=0;i<a.length;i++){const s=e.push("text","",0);s.content=String.fromCharCode(n),e.delimiters.push({marker:n,length:a.length,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close})}return e.pos+=a.length,!0}function a8(e,t){const r=t.length;for(let n=r-1;n>=0;n--){const a=t[n];if(a.marker!==95&&a.marker!==42||a.end===-1)continue;const i=t[a.end],s=n>0&&t[n-1].end===a.end+1&&t[n-1].marker===a.marker&&t[n-1].token===a.token-1&&t[a.end+1].token===i.token+1,l=String.fromCharCode(a.marker),u=e.tokens[a.token];u.type=s?"strong_open":"em_open",u.tag=s?"strong":"em",u.nesting=1,u.markup=s?l+l:l,u.content="";const c=e.tokens[i.token];c.type=s?"strong_close":"em_close",c.tag=s?"strong":"em",c.nesting=-1,c.markup=s?l+l:l,c.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[a.end+1].token].content="",n--)}}function xQ(e){const t=e.tokens_meta,r=e.tokens_meta.length;a8(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&a8(e,t[n].delimiters)}const tk={tokenize:wQ,postProcess:xQ};function SQ(e,t){let r,n,a,i,s="",l="",u=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const m=e.pos,p=e.posMax,g=e.pos+1,y=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(y<0)return!1;let x=y+1;if(x<p&&e.src.charCodeAt(x)===40){for(c=!1,x++;x<p&&(r=e.src.charCodeAt(x),!(!Dt(r)&&r!==10));x++);if(x>=p)return!1;if(u=x,a=e.md.helpers.parseLinkDestination(e.src,x,e.posMax),a.ok){for(s=e.md.normalizeLink(a.str),e.md.validateLink(s)?x=a.pos:s="",u=x;x<p&&(r=e.src.charCodeAt(x),!(!Dt(r)&&r!==10));x++);if(a=e.md.helpers.parseLinkTitle(e.src,x,e.posMax),x<p&&u!==x&&a.ok)for(l=a.str,x=a.pos;x<p&&(r=e.src.charCodeAt(x),!(!Dt(r)&&r!==10));x++);}(x>=p||e.src.charCodeAt(x)!==41)&&(c=!0),x++}if(c){if(typeof e.env.references>"u")return!1;if(x<p&&e.src.charCodeAt(x)===91?(u=x+1,x=e.md.helpers.parseLinkLabel(e,x),x>=0?n=e.src.slice(u,x++):x=y+1):x=y+1,n||(n=e.src.slice(g,y)),i=e.env.references[qh(n)],!i)return e.pos=m,!1;s=i.href,l=i.title}if(!t){e.pos=g,e.posMax=y;const E=e.push("link_open","a",1),k=[["href",s]];E.attrs=k,l&&k.push(["title",l]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=x,e.posMax=p,!0}function CQ(e,t){let r,n,a,i,s,l,u,c,m="";const p=e.pos,g=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const y=e.pos+2,x=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(x<0)return!1;if(i=x+1,i<g&&e.src.charCodeAt(i)===40){for(i++;i<g&&(r=e.src.charCodeAt(i),!(!Dt(r)&&r!==10));i++);if(i>=g)return!1;for(c=i,l=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),l.ok&&(m=e.md.normalizeLink(l.str),e.md.validateLink(m)?i=l.pos:m=""),c=i;i<g&&(r=e.src.charCodeAt(i),!(!Dt(r)&&r!==10));i++);if(l=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<g&&c!==i&&l.ok)for(u=l.str,i=l.pos;i<g&&(r=e.src.charCodeAt(i),!(!Dt(r)&&r!==10));i++);else u="";if(i>=g||e.src.charCodeAt(i)!==41)return e.pos=p,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i<g&&e.src.charCodeAt(i)===91?(c=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?a=e.src.slice(c,i++):i=x+1):i=x+1,a||(a=e.src.slice(y,x)),s=e.env.references[qh(a)],!s)return e.pos=p,!1;m=s.href,u=s.title}if(!t){n=e.src.slice(y,x);const E=[];e.md.inline.parse(n,e.md,e.env,E);const k=e.push("image","img",0),T=[["src",m],["alt",""]];k.attrs=T,k.children=E,k.content=n,u&&T.push(["title",u])}return e.pos=i,e.posMax=g,!0}const EQ=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,kQ=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function TQ(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==60)return!1;const n=e.pos,a=e.posMax;for(;;){if(++r>=a)return!1;const s=e.src.charCodeAt(r);if(s===60)return!1;if(s===62)break}const i=e.src.slice(n+1,r);if(kQ.test(i)){const s=e.md.normalizeLink(i);if(!e.md.validateLink(s))return!1;if(!t){const l=e.push("link_open","a",1);l.attrs=[["href",s]],l.markup="autolink",l.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(i);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}if(EQ.test(i)){const s=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(s))return!1;if(!t){const l=e.push("link_open","a",1);l.attrs=[["href",s]],l.markup="autolink",l.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(i);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}return!1}function OQ(e){return/^<a[>\s]/i.test(e)}function AQ(e){return/^<\/a\s*>/i.test(e)}function RQ(e){const t=e|32;return t>=97&&t<=122}function PQ(e,t){if(!e.md.options.html)return!1;const r=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==60||n+2>=r)return!1;const a=e.src.charCodeAt(n+1);if(a!==33&&a!==63&&a!==47&&!RQ(a))return!1;const i=e.src.slice(n).match(oQ);if(!i)return!1;if(!t){const s=e.push("html_inline","",0);s.content=i[0],OQ(s.content)&&e.linkLevel++,AQ(s.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}const DQ=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,MQ=/^&([a-z][a-z0-9]{1,31});/i;function FQ(e,t){const r=e.pos,n=e.posMax;if(e.src.charCodeAt(r)!==38||r+1>=n)return!1;if(e.src.charCodeAt(r+1)===35){const i=e.src.slice(r).match(DQ);if(i){if(!t){const s=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),l=e.push("text_special","",0);l.content=bb(s)?Jf(s):Jf(65533),l.markup=i[0],l.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(r).match(MQ);if(i){const s=Y5(i[0]);if(s!==i[0]){if(!t){const l=e.push("text_special","",0);l.content=s,l.markup=i[0],l.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function i8(e){const t={},r=e.length;if(!r)return;let n=0,a=-2;const i=[];for(let s=0;s<r;s++){const l=e[s];if(i.push(0),(e[n].marker!==l.marker||a!==l.token-1)&&(n=s),a=l.token,l.length=l.length||0,!l.close)continue;t.hasOwnProperty(l.marker)||(t[l.marker]=[-1,-1,-1,-1,-1,-1]);const u=t[l.marker][(l.open?3:0)+l.length%3];let c=n-i[n]-1,m=c;for(;c>u;c-=i[c]+1){const p=e[c];if(p.marker===l.marker&&p.open&&p.end<0){let g=!1;if((p.close||l.open)&&(p.length+l.length)%3===0&&(p.length%3!==0||l.length%3!==0)&&(g=!0),!g){const y=c>0&&!e[c-1].open?i[c-1]+1:0;i[s]=s-c+y,i[c]=y,l.open=!1,p.end=s,p.close=!1,m=-1,a=-2;break}}}m!==-1&&(t[l.marker][(l.open?3:0)+(l.length||0)%3]=m)}}function NQ(e){const t=e.tokens_meta,r=e.tokens_meta.length;i8(e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&i8(t[n].delimiters)}function IQ(e){let t,r,n=0;const a=e.tokens,i=e.tokens.length;for(t=r=0;t<i;t++)a[t].nesting<0&&n--,a[t].level=n,a[t].nesting>0&&n++,a[t].type==="text"&&t+1<i&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==r&&(a[r]=a[t]),r++);t!==r&&(a.length=r)}const Fg=[["text",hQ],["linkify",mQ],["newline",gQ],["escape",vQ],["backticks",bQ],["strikethrough",ek.tokenize],["emphasis",tk.tokenize],["link",SQ],["image",CQ],["autolink",TQ],["html_inline",PQ],["entity",FQ]],Ng=[["balance_pairs",NQ],["strikethrough",ek.postProcess],["emphasis",tk.postProcess],["fragments_join",IQ]];function kc(){this.ruler=new Ur;for(let e=0;e<Fg.length;e++)this.ruler.push(Fg[e][0],Fg[e][1]);this.ruler2=new Ur;for(let e=0;e<Ng.length;e++)this.ruler2.push(Ng[e][0],Ng[e][1])}kc.prototype.skipToken=function(e){const t=e.pos,r=this.ruler.getRules(""),n=r.length,a=e.md.options.maxNesting,i=e.cache;if(typeof i[t]<"u"){e.pos=i[t];return}let s=!1;if(e.level<a){for(let l=0;l<n;l++)if(e.level++,s=r[l](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,i[t]=e.pos};kc.prototype.tokenize=function(e){const t=this.ruler.getRules(""),r=t.length,n=e.posMax,a=e.md.options.maxNesting;for(;e.pos<n;){const i=e.pos;let s=!1;if(e.level<a){for(let l=0;l<r;l++)if(s=t[l](e,!1),s){if(i>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};kc.prototype.parse=function(e,t,r,n){const a=new this.State(e,t,r,n);this.tokenize(a);const i=this.ruler2.getRules(""),s=i.length;for(let l=0;l<s;l++)i[l](a)};kc.prototype.State=Ec;function LQ(e){const t={};e=e||{},t.src_Any=H5.source,t.src_Cc=U5.source,t.src_Z=W5.source,t.src_P=gb.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const r="[><|]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function J1(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function Vh(e){return Object.prototype.toString.call(e)}function jQ(e){return Vh(e)==="[object String]"}function $Q(e){return Vh(e)==="[object Object]"}function zQ(e){return Vh(e)==="[object RegExp]"}function o8(e){return Vh(e)==="[object Function]"}function BQ(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const rk={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function HQ(e){return Object.keys(e||{}).reduce(function(t,r){return t||rk.hasOwnProperty(r)},!1)}const UQ={"http:":{validate:function(e,t,r){const n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){const n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){const n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},qQ="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",WQ="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function VQ(e){e.__index__=-1,e.__text_cache__=""}function YQ(e){return function(t,r){const n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function s8(){return function(e,t){t.normalize(e)}}function Qf(e){const t=e.re=LQ(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(qQ),r.push(t.src_xn),t.src_tlds=r.join("|");function n(l){return l.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");const a=[];e.__compiled__={};function i(l,u){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+u)}Object.keys(e.__schemas__).forEach(function(l){const u=e.__schemas__[l];if(u===null)return;const c={validate:null,link:null};if(e.__compiled__[l]=c,$Q(u)){zQ(u.validate)?c.validate=YQ(u.validate):o8(u.validate)?c.validate=u.validate:i(l,u),o8(u.normalize)?c.normalize=u.normalize:u.normalize?i(l,u):c.normalize=s8();return}if(jQ(u)){a.push(l);return}i(l,u)}),a.forEach(function(l){e.__compiled__[e.__schemas__[l]]&&(e.__compiled__[l].validate=e.__compiled__[e.__schemas__[l]].validate,e.__compiled__[l].normalize=e.__compiled__[e.__schemas__[l]].normalize)}),e.__compiled__[""]={validate:null,normalize:s8()};const s=Object.keys(e.__compiled__).filter(function(l){return l.length>0&&e.__compiled__[l]}).map(BQ).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),VQ(e)}function GQ(e,t){const r=e.__index__,n=e.__last_index__,a=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=a,this.text=a,this.url=a}function Q1(e,t){const r=new GQ(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function ln(e,t){if(!(this instanceof ln))return new ln(e,t);t||HQ(e)&&(t=e,e={}),this.__opts__=J1({},rk,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=J1({},UQ,e),this.__compiled__={},this.__tlds__=WQ,this.__tlds_replaced__=!1,this.re={},Qf(this)}ln.prototype.add=function(t,r){return this.__schemas__[t]=r,Qf(this),this};ln.prototype.set=function(t){return this.__opts__=J1(this.__opts__,t),this};ln.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let r,n,a,i,s,l,u,c,m;if(this.re.schema_test.test(t)){for(u=this.re.schema_search,u.lastIndex=0;(r=u.exec(t))!==null;)if(i=this.testSchemaAt(t,r[2],u.lastIndex),i){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=n.index+n[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(m=t.indexOf("@"),m>=0&&(a=t.match(this.re.email_fuzzy))!==null&&(s=a.index+a[1].length,l=a.index+a[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=l))),this.__index__>=0};ln.prototype.pretest=function(t){return this.re.pretest.test(t)};ln.prototype.testSchemaAt=function(t,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0};ln.prototype.match=function(t){const r=[];let n=0;this.__index__>=0&&this.__text_cache__===t&&(r.push(Q1(this,n)),n=this.__last_index__);let a=n?t.slice(n):t;for(;this.test(a);)r.push(Q1(this,n)),a=a.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null};ln.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const r=this.re.schema_at_start.exec(t);if(!r)return null;const n=this.testSchemaAt(t,r[2],r[0].length);return n?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+n,Q1(this,0)):null};ln.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,a,i){return n!==i[a-1]}).reverse(),Qf(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Qf(this),this)};ln.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};ln.prototype.onCompile=function(){};const ks=2147483647,fa=36,wb=1,uc=26,KQ=38,XQ=700,nk=72,ak=128,ik="-",ZQ=/^xn--/,JQ=/[^\0-\x7F]/,QQ=/[\x2E\u3002\uFF0E\uFF61]/g,eee={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ig=fa-wb,ha=Math.floor,Lg=String.fromCharCode;function Ei(e){throw new RangeError(eee[e])}function tee(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}function ok(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(QQ,".");const a=e.split("."),i=tee(a,t).join(".");return n+i}function sk(e){const t=[];let r=0;const n=e.length;for(;r<n;){const a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){const i=e.charCodeAt(r++);(i&64512)==56320?t.push(((a&1023)<<10)+(i&1023)+65536):(t.push(a),r--)}else t.push(a)}return t}const ree=e=>String.fromCodePoint(...e),nee=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:fa},u8=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},uk=function(e,t,r){let n=0;for(e=r?ha(e/XQ):e>>1,e+=ha(e/t);e>Ig*uc>>1;n+=fa)e=ha(e/Ig);return ha(n+(Ig+1)*e/(e+KQ))},lk=function(e){const t=[],r=e.length;let n=0,a=ak,i=nk,s=e.lastIndexOf(ik);s<0&&(s=0);for(let l=0;l<s;++l)e.charCodeAt(l)>=128&&Ei("not-basic"),t.push(e.charCodeAt(l));for(let l=s>0?s+1:0;l<r;){const u=n;for(let m=1,p=fa;;p+=fa){l>=r&&Ei("invalid-input");const g=nee(e.charCodeAt(l++));g>=fa&&Ei("invalid-input"),g>ha((ks-n)/m)&&Ei("overflow"),n+=g*m;const y=p<=i?wb:p>=i+uc?uc:p-i;if(g<y)break;const x=fa-y;m>ha(ks/x)&&Ei("overflow"),m*=x}const c=t.length+1;i=uk(n-u,c,u==0),ha(n/c)>ks-a&&Ei("overflow"),a+=ha(n/c),n%=c,t.splice(n++,0,a)}return String.fromCodePoint(...t)},ck=function(e){const t=[];e=sk(e);const r=e.length;let n=ak,a=0,i=nk;for(const u of e)u<128&&t.push(Lg(u));const s=t.length;let l=s;for(s&&t.push(ik);l<r;){let u=ks;for(const m of e)m>=n&&m<u&&(u=m);const c=l+1;u-n>ha((ks-a)/c)&&Ei("overflow"),a+=(u-n)*c,n=u;for(const m of e)if(m<n&&++a>ks&&Ei("overflow"),m===n){let p=a;for(let g=fa;;g+=fa){const y=g<=i?wb:g>=i+uc?uc:g-i;if(p<y)break;const x=p-y,E=fa-y;t.push(Lg(u8(y+x%E,0))),p=ha(x/E)}t.push(Lg(u8(p,0))),i=uk(a,c,l===s),a=0,++l}++a,++n}return t.join("")},aee=function(e){return ok(e,function(t){return ZQ.test(t)?lk(t.slice(4).toLowerCase()):t})},iee=function(e){return ok(e,function(t){return JQ.test(t)?"xn--"+ck(t):t})},dk={version:"2.3.1",ucs2:{decode:sk,encode:ree},decode:lk,encode:ck,toASCII:iee,toUnicode:aee},oee={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},see={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},uee={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},lee={default:oee,zero:see,commonmark:uee},cee=/^(vbscript|javascript|file|data):/,dee=/^data:image\/(gif|png|jpeg|webp);/;function fee(e){const t=e.trim().toLowerCase();return cee.test(t)?dee.test(t):!0}const fk=["http:","https:","mailto:"];function hee(e){const t=mb(e,!0);if(t.hostname&&(!t.protocol||fk.indexOf(t.protocol)>=0))try{t.hostname=dk.toASCII(t.hostname)}catch{}return Cc(pb(t))}function pee(e){const t=mb(e,!0);if(t.hostname&&(!t.protocol||fk.indexOf(t.protocol)>=0))try{t.hostname=dk.toUnicode(t.hostname)}catch{}return Fs(pb(t),Fs.defaultChars+"%")}function kn(e,t){if(!(this instanceof kn))return new kn(e,t);t||vb(e)||(t=e||{},e="default"),this.inline=new kc,this.block=new Wh,this.core=new yb,this.renderer=new Js,this.linkify=new ln,this.validateLink=fee,this.normalizeLink=hee,this.normalizeLinkText=pee,this.utils=gJ,this.helpers=Uh({},_J),this.options={},this.configure(e),t&&this.set(t)}kn.prototype.set=function(e){return Uh(this.options,e),this};kn.prototype.configure=function(e){const t=this;if(vb(e)){const r=e;if(e=lee[r],!e)throw new Error('Wrong `markdown-it` preset "'+r+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this};kn.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));const n=e.filter(function(a){return r.indexOf(a)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};kn.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));const n=e.filter(function(a){return r.indexOf(a)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};kn.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};kn.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const r=new this.core.State(e,this,t);return this.core.process(r),r.tokens};kn.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};kn.prototype.parseInline=function(e,t){const r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens};kn.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const mee=kn({html:!0,breaks:!0}),l8=[{key:"0",label:"What?"}],gee=e=>{if(!e)return null;const t=mee.render(e.replace("<think>","").replace("</think>","")).replace("<p><think</p>","");return t?(console.log(t,"renderedContent"),D.jsx("div",{dangerouslySetInnerHTML:{__html:t}})):null},vee=[{key:"1",description:"Hot Topics"},{key:"2",description:"Design Guide"}],bee={ai:{placement:"start",avatar:D.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:D.jsx("img",{width:32,src:"/vite.svg",draggable:!1,alt:"logo"})}),styles:{content:{borderRadius:4,background:"#fff",padding:"4px 10px",display:"flex",alignItems:"center",fontSize:"13px"}}},local:{placement:"end",variant:"shadow",avatar:D.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:D.jsx("img",{width:32,src:"/vite.svg",draggable:!1,alt:"logo"})}),styles:{content:{borderRadius:4,padding:"4px 10px",background:"#fff",display:"flex",alignItems:"center",fontSize:"13px"}}}},yee=new ct({baseURL:"https://xiaoai.plus/v1",apiKey:"sk-0ZHLSTsMOiX1YwwBvz8Kwtl3ZXlDVX4zpDgplbOYdImZuJQ9",dangerouslyAllowBrowser:!0}),_ee=()=>{const[e,t]=F.useState(!1),[r,n]=F.useState(""),[a,i]=F.useState(!1),[s,l]=F.useState(l8),[u,c]=F.useState(l8[0].key),[m,p]=F.useState([]),g="deepseek-r1",[y]=gX({request:async(P,M)=>{var B;const{messages:U,message:L}=P,{onSuccess:N,onUpdate:j,onError:O}=M;let I="",z="";try{i(!0);const H=await yee.chat.completions.create({model:g,messages:[{role:"user",content:L}],stream:!0});i(!1);for await(const q of H){const{reasoning_content:J,content:re}=((B=q.choices[0])==null?void 0:B.delta)||{};J&&(z+=J),re&&(I+=re),j(I)}N(I)}catch{}}}),{onRequest:x,messages:E,setMessages:k}=uX({agent:y});F.useEffect(()=>{const P=E.map(M=>({...M,loading:a}));k(P)},[a,E.length]),F.useEffect(()=>{u!==void 0&&k([])},[u]);const T=P=>{P&&(x(P),n(""))},w=P=>{x(P.data.description)},S=()=>{l([...s,{key:`${s.length}`,label:`New Conversation ${s.length}`}]),c(`${s.length}`)},f=P=>{c(P)},h=P=>p(P.fileList),v=E.map(({id:P,message:M,status:U})=>({key:P,loading:!1,role:U==="local"?"local":"ai",content:M,messageRender:gee})),_=D.jsx(X.Badge,{dot:m.length>0&&!e,children:D.jsx(X.Button,{type:"text",icon:D.jsx(B8,{}),onClick:()=>t(!e)})}),R=D.jsx(Vf.Header,{title:"Attachments",open:e,onOpenChange:t,styles:{content:{padding:0}},children:D.jsx(qv,{beforeUpload:()=>!1,items:m,onChange:h,placeholder:P=>P==="drop"?{title:"Drop file here"}:{icon:D.jsx(I8,{}),title:"Upload files",description:"Click or drag files to this area to upload"}})}),C=D.jsx("div",{className:In.logo,children:D.jsx("span",{children:"OnChain Assistant"})});return D.jsxs("div",{className:In.layout,children:[D.jsxs("div",{className:In.menu,children:[C,D.jsx(X.Button,{onClick:S,type:"link",className:In.addBtn,icon:D.jsx(iv,{}),children:"New Conversation"}),D.jsx(PE,{items:s,className:In.conversations,activeKey:u,onActiveChange:f})]}),D.jsxs("div",{className:In.chat,children:[D.jsxs("div",{className:In.top_header,children:[D.jsx("div",{style:{fontWeight:"bold"},children:"Llama3:latest"}),D.jsx("div",{children:D.jsx("div",{className:In.person,children:"李明"})})]}),D.jsx("div",{style:{height:"calc(100% - 265px)",padding:"0px 16px 16px 16px",display:"flex",justifyContent:"center",margin:"0 auto",maxWidth:"70%",width:"100%"},children:v.length?D.jsx(Mh.List,{items:v,roles:bee,className:In.messages}):D.jsx("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:D.jsx(AZ,{onPromptsItemClick:w})})}),D.jsx(Fh,{items:vee,onItemClick:w,style:{padding:"0px 16px"}}),D.jsx(Vf,{value:r,header:R,onSubmit:T,onChange:n,prefix:_,loading:y.isRequesting(),className:In.sender,style:{margin:"0px 16px 16px 16px",width:"auto"}})]})]})},wee="_progress_1kku4_1",xee={progress:wee},See=e=>D.jsx(X.Progress,{strokeColor:"#0563b2",...e,className:`${e.className??""} ${xee.progress}`,format:t=>(t=t??0,e!=null&&e.highlight?D.jsx(ei,{highlight:e.highlight,value:`${String(t)||""}%`}):`${t}%`)});exports.AliIconFontFn=XM;exports.Color=K8;exports.EditableContext=Lv;exports.GLOBAL_TABLE_TOP_CLASS=wh;exports.HealthStateComponent=QM;exports.OnChainAI=_ee;exports.OnChainAdvancedSearch=DW;exports.OnChainBadge=Wg;exports.OnChainCompositeForm=hc;exports.OnChainDropMenu=E$;exports.OnChainExcelViewer=k$;exports.OnChainForm=QS;exports.OnChainFormItem=fC;exports.OnChainGenAntImage=uC;exports.OnChainGlobalLoading=nF;exports.OnChainHighLightWords=ei;exports.OnChainIcon=He;exports.OnChainImage=_1;exports.OnChainInput=uf;exports.OnChainLoading=Ls;exports.OnChainLoadingSkCube=eF;exports.OnChainMarkdown=WS;exports.OnChainModal=To;exports.OnChainMosaic=pa;exports.OnChainPopupSelect=dC;exports.OnChainProgress=See;exports.OnChainProvider=LP;exports.OnChainPublicTree=KW;exports.OnChainQueryBuilder=hC;exports.OnChainResourceTree=W4;exports.OnChainScrollBar=w$;exports.OnChainScrollBarAssembly=$W;exports.OnChainSelect=ho;exports.OnChainSelectPopupForm=oC;exports.OnChainTable=xh;exports.OnChainTableSelection=cC;exports.OnChainTabs=aC;exports.OnChainTreeSelect=bf;exports.OnChainViewerError=x$;exports.StatusColors=Vg;exports.confirm=e$;exports.confirmModalConfig=ZS;Object.keys(X).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>X[e]})});
|