Index: reference/drawdb/_vercel/insights/script.js =================================================================== diff -u --- reference/drawdb/_vercel/insights/script.js (revision 0) +++ reference/drawdb/_vercel/insights/script.js (revision d513faf80143509bee70f80b4a37796aefcba22e) @@ -0,0 +1 @@ +"use strict";(()=>{function e(e){let t=location.href;if(e){let n=new URL(t);if(n.pathname!==e)return n.pathname=e,n.search="",n.href}return t}var t,n,r,o,a=(r=()=>{},()=>(r&&(o=r(r=0)),o));(t=()=>{a(),function(){let t=e=>e,n=t,r=document.currentScript,o=((null==r?void 0:r.dataset.endpoint)||null!=r&&r.src.includes("/va/"),null==r?void 0:r.dataset.disableAutoTrack),a=null,i=null,l=!0;function u(e,...t){(null==r?void 0:r.dataset.debug)!=="false"&&console.log(`%c[Vercel Web Analytics]%c ${e}`,"color: rgb(120, 120, 120)","color: inherit",...t)}async function d({type:o,data:l,options:d}){var s,c;let f=e(i),p=document.referrer,v={type:o,url:f},h=n(v);if(t===n||(!1===h||null===h?u("Page view would be ignored by `beforeSend` because null was returned.",v):u("Event transformed by `beforeSend`",{before:v,after:h})),!1===h||null===h)return;h&&(f=h.url);let w=p.includes(location.host),y={o:f,sv:"0.1.2",sdkn:null!=(s=null==r?void 0:r.dataset.sdkn)?s:void 0,sdkv:null!=(c=null==r?void 0:r.dataset.sdkv)?c:void 0,ts:Date.now(),...a&&{dp:a},...null!=d&&d.withReferrer&&!w?{r:p}:{},..."event"===o&&l&&{en:l.name,ed:l.data}};"pageview"===o&&u(`[pageview] ${y.o}`,y),"event"===o&&l&&u(`[event] ${l.name}`,y)}async function s(e={}){return d({type:"pageview",options:{withReferrer:e.withReferrer}})}async function c(e,t){{let n="is longer than the 255 character limit and would have been dropped in production.";if(e.length>255){u(`Event "${e}" ${n}`);return}if(t)for(let r of Object.keys(t)){r.length>255&&u(`Property "${r}" ${n}`);let o=t[r];"string"==typeof o&&o.length>255&&u(`Value of property "${r}" ${n}`)}}return d({type:"event",data:{name:e,data:t},options:{withReferrer:!0}})}function f(e){return e.pathname===new URL(v).pathname}function p(e){let t=e?"string"==typeof e?new URL(e,location.origin):new URL(e.href):null;!t||f(t)||Boolean(t.hash)&&f(t)||s()}u("Debug mode is enabled by default in development. No requests will be sent to the server.");let v=e(),h=()=>{var e;window.va=function(e,t){"beforeSend"===e?n=t:"event"===e?t&&c(t.name,t.data):"pageview"===e&&t&&(t.route&&(a=t.route),t.path&&(i=t.path),s({withReferrer:l}),l=!1)},null==(e=window.vaq)||e.forEach(([e,t])=>{"function"==typeof t||u("Running queued event",e,t),window.va(e,t)})};(()=>{if(window.vai||(window.vai=!0,h(),o))return;s({withReferrer:!0});let t=history.pushState.bind(history);history.pushState=function(...n){t(...n);try{p(n[2]),v=e()}catch(r){}},window.addEventListener("popstate",function(){p(e()),v=e()})})()}()},()=>(n||t((n={exports:{}}).exports,n),n.exports))()})(); \ No newline at end of file Index: reference/drawdb/assets/calendar-CD4l7ZaZ.png =================================================================== diff -u Binary files differ Index: reference/drawdb/assets/discord-qdDEQuQG.png =================================================================== diff -u Binary files differ Index: reference/drawdb/assets/github-yXK_Z2xw.png =================================================================== diff -u Binary files differ Index: reference/drawdb/assets/html2canvas.esm-Ry1SfrtC.js =================================================================== diff -u --- reference/drawdb/assets/html2canvas.esm-Ry1SfrtC.js (revision 0) +++ reference/drawdb/assets/html2canvas.esm-Ry1SfrtC.js (revision d513faf80143509bee70f80b4a37796aefcba22e) @@ -0,0 +1,22 @@ +/*! + * html2canvas 1.4.1 + * Copyright (c) 2022 Niklas von Hertzen + * Released under MIT License + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var mr=function(e,A){return mr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var B in r)Object.prototype.hasOwnProperty.call(r,B)&&(t[B]=r[B])},mr(e,A)};function tA(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");mr(e,A);function t(){this.constructor=e}e.prototype=A===null?Object.create(A):(t.prototype=A.prototype,new t)}var Lr=function(){return Lr=Object.assign||function(A){for(var t,r=1,B=arguments.length;r0&&n[n.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]=55296&&B<=56319&&t>10)+55296,s%1024+56320)),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",on=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var le=0;le"u"?[]:new Uint8Array(256);for(var fe=0;fe>4,Q[B++]=(s&15)<<4|i>>2,Q[B++]=(i&3)<<6|a&63;return o},gn=function(e){for(var A=e.length,t=[],r=0;r>bA,Cn=1<>bA,ln=BB+un,fn=ln,Un=32,Fn=fn+Un,hn=65536>>zr,dn=1<=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>bA],t=(t<>bA)],t=(t<>zr),t=this.index[t],t+=A>>bA&En,t=this.index[t],t=(t<"u"?[]:new Uint8Array(256);for(var Ue=0;Ueot?(B.push(!0),i-=ot):B.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(n)!==-1)return r.push(s),t.push(xr);if(i===mn||i===Dr){if(s===0)return r.push(s),t.push(LA);var a=t[s-1];return Mn.indexOf(a)===-1?(r.push(r[s-1]),t.push(a)):(r.push(s),t.push(LA))}if(r.push(s),i===Tn)return t.push(A==="strict"?Tr:Qe);if(i===iB||i===xn)return t.push(LA);if(i===Sn)return n>=131072&&n<=196605||n>=196608&&n<=262141?t.push(Qe):t.push(LA);t.push(i)}),[r,t,B]},wr=function(e,A,t,r){var B=r[t];if(Array.isArray(e)?e.indexOf(B)!==-1:e===B)for(var n=t;n<=r.length;){n++;var s=r[n];if(s===A)return!0;if(s!==FA)break}if(B===FA)for(var n=t;n>0;){n--;var i=r[n];if(Array.isArray(e)?e.indexOf(i)!==-1:e===i)for(var a=t;a<=r.length;){a++;var s=r[a];if(s===A)return!0;if(s!==FA)break}if(i!==FA)break}return!1},lt=function(e,A){for(var t=e;t>=0;){var r=A[t];if(r===FA)t--;else return r}return 0},Vn=function(e,A,t,r,B){if(t[r]===0)return I;var n=r-1;if(Array.isArray(B)&&B[n]===!0)return I;var s=n-1,i=n+1,a=A[n],o=s>=0?A[s]:0,Q=A[i];if(a===nB&&Q===sB)return I;if(Vr.indexOf(a)!==-1)return oB;if(Vr.indexOf(Q)!==-1||QB.indexOf(Q)!==-1)return I;if(lt(n,A)===aB)return Ee;if(Rr.get(e[n])===Dr||(a===he||a===de)&&Rr.get(e[i])===Dr||a===Qt||Q===Qt||a===gt||[FA,br,$A].indexOf(a)===-1&&Q===gt||[Fe,WA,bn,SA,OA].indexOf(Q)!==-1||lt(n,A)===ZA||wr(Qr,ZA,n,A)||wr([Fe,WA],Tr,n,A)||wr(wt,wt,n,A))return I;if(a===FA)return Ee;if(a===Qr||Q===Qr)return I;if(Q===xr||a===xr)return Ee;if([br,$A,Tr].indexOf(Q)!==-1||a===Dn||o===Mr&&Gn.indexOf(a)!==-1||a===OA&&Q===Mr||Q===ct||QA.indexOf(Q)!==-1&&a===j||QA.indexOf(a)!==-1&&Q===j||a===ee&&[Qe,he,de].indexOf(Q)!==-1||[Qe,he,de].indexOf(a)!==-1&&Q===Ae||QA.indexOf(a)!==-1&&Ct.indexOf(Q)!==-1||Ct.indexOf(a)!==-1&&QA.indexOf(Q)!==-1||[ee,Ae].indexOf(a)!==-1&&(Q===j||[ZA,$A].indexOf(Q)!==-1&&A[i+1]===j)||[ZA,$A].indexOf(a)!==-1&&Q===j||a===j&&[j,OA,SA].indexOf(Q)!==-1)return I;if([j,OA,SA,Fe,WA].indexOf(Q)!==-1)for(var g=n;g>=0;){var w=A[g];if(w===j)return I;if([OA,SA].indexOf(w)!==-1)g--;else break}if([ee,Ae].indexOf(Q)!==-1)for(var g=[Fe,WA].indexOf(a)!==-1?s:n;g>=0;){var w=A[g];if(w===j)return I;if([OA,SA].indexOf(w)!==-1)g--;else break}if(Gr===a&&[Gr,Ge,Sr,Or].indexOf(Q)!==-1||[Ge,Sr].indexOf(a)!==-1&&[Ge,Re].indexOf(Q)!==-1||[Re,Or].indexOf(a)!==-1&&Q===Re||ut.indexOf(a)!==-1&&[ct,Ae].indexOf(Q)!==-1||ut.indexOf(Q)!==-1&&a===ee||QA.indexOf(a)!==-1&&QA.indexOf(Q)!==-1||a===SA&&QA.indexOf(Q)!==-1||QA.concat(j).indexOf(a)!==-1&&Q===ZA&&On.indexOf(e[i])===-1||QA.concat(j).indexOf(Q)!==-1&&a===WA)return I;if(a===gr&&Q===gr){for(var f=t[n],c=1;f>0&&(f--,A[f]===gr);)c++;if(c%2!==0)return I}return a===he&&Q===de?I:Ee},Nn=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var t=Rn(e,A.lineBreak),r=t[0],B=t[1],n=t[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(B=B.map(function(i){return[j,LA,iB].indexOf(i)!==-1?Qe:i}));var s=A.wordBreak==="keep-all"?n.map(function(i,a){return i&&e[a]>=19968&&e[a]<=40959}):void 0;return[r,B,s]},Xn=function(){function e(A,t,r,B){this.codePoints=A,this.required=t===oB,this.start=r,this.end=B}return e.prototype.slice=function(){return S.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),_n=function(e,A){var t=$e(e),r=Nn(t,A),B=r[0],n=r[1],s=r[2],i=t.length,a=0,o=0;return{next:function(){if(o>=i)return{done:!0,value:null};for(var Q=I;o=gB&&e<=57},Hs=function(e){return e>=55296&&e<=57343},MA=function(e){return J(e)||e>=CB&&e<=lB||e>=wB&&e<=Us},ps=function(e){return e>=wB&&e<=hs},Is=function(e){return e>=CB&&e<=Es},vs=function(e){return ps(e)||Is(e)},ys=function(e){return e>=is},ye=function(e){return e===Xe||e===kn||e===Yn},_e=function(e){return vs(e)||ys(e)||e===jn},dt=function(e){return _e(e)||J(e)||e===Z},Ks=function(e){return e>=ws&&e<=cs||e===Cs||e>=us&&e<=ls||e===fs},UA=function(e,A){return e!==ne?!1:A!==Xe},Ke=function(e,A,t){return e===Z?_e(A)||UA(A,t):_e(e)?!0:!!(e===ne&&UA(e,A))},Cr=function(e,A,t){return e===DA||e===Z?J(A)?!0:A===ge&&J(t):J(e===ge?A:e)},ms=function(e){var A=0,t=1;(e[A]===DA||e[A]===Z)&&(e[A]===Z&&(t=-1),A++);for(var r=[];J(e[A]);)r.push(e[A++]);var B=r.length?parseInt(S.apply(void 0,r),10):0;e[A]===ge&&A++;for(var n=[];J(e[A]);)n.push(e[A++]);var s=n.length,i=s?parseInt(S.apply(void 0,n),10):0;(e[A]===uB||e[A]===cB)&&A++;var a=1;(e[A]===DA||e[A]===Z)&&(e[A]===Z&&(a=-1),A++);for(var o=[];J(e[A]);)o.push(e[A++]);var Q=o.length?parseInt(S.apply(void 0,o),10):0;return t*(B+i*Math.pow(10,-s))*Math.pow(10,a*Q)},Ls={type:2},Ds={type:3},bs={type:4},xs={type:13},Ts={type:8},Ss={type:21},Os={type:9},Ms={type:10},Gs={type:11},Rs={type:12},Vs={type:14},me={type:23},Ns={type:1},Xs={type:25},_s={type:24},Js={type:26},Ps={type:27},ks={type:28},Ys={type:29},Ws={type:31},Nr={type:32},fB=function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat($e(A))},e.prototype.read=function(){for(var A=[],t=this.consumeToken();t!==Nr;)A.push(t),t=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case He:return this.consumeStringToken(He);case Wn:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),B=this.peekCodePoint(2);if(dt(t)||UA(r,B)){var n=Ke(t,r,B)?Pn:Jn,s=this.consumeName();return{type:5,value:s,flags:n}}break;case Zn:if(this.peekCodePoint(0)===qA)return this.consumeCodePoint(),xs;break;case pe:return this.consumeStringToken(pe);case Ie:return Ls;case jA:return Ds;case cr:if(this.peekCodePoint(0)===qA)return this.consumeCodePoint(),Vs;break;case DA:if(Cr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case os:return bs;case Z:var i=A,a=this.peekCodePoint(0),o=this.peekCodePoint(1);if(Cr(i,a,o))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Ke(i,a,o))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(a===Z&&o===As)return this.consumeCodePoint(),this.consumeCodePoint(),_s;break;case ge:if(Cr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Ut:if(this.peekCodePoint(0)===cr)for(this.consumeCodePoint();;){var Q=this.consumeCodePoint();if(Q===cr&&(Q=this.consumeCodePoint(),Q===Ut))return this.consumeToken();if(Q===nA)return this.consumeToken()}break;case Qs:return Js;case gs:return Ps;case $n:if(this.peekCodePoint(0)===zn&&this.peekCodePoint(1)===Z&&this.peekCodePoint(2)===Z)return this.consumeCodePoint(),this.consumeCodePoint(),Xs;break;case es:var g=this.peekCodePoint(0),w=this.peekCodePoint(1),f=this.peekCodePoint(2);if(Ke(g,w,f)){var s=this.consumeName();return{type:7,value:s}}break;case rs:return ks;case ne:if(UA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case ts:return Ys;case Bs:if(this.peekCodePoint(0)===qA)return this.consumeCodePoint(),Ts;break;case ns:return Gs;case ss:return Rs;case Fs:case ds:var c=this.peekCodePoint(0),C=this.peekCodePoint(1);return c===DA&&(MA(C)||C===ve)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Ft:if(this.peekCodePoint(0)===qA)return this.consumeCodePoint(),Os;if(this.peekCodePoint(0)===Ft)return this.consumeCodePoint(),Ss;break;case as:if(this.peekCodePoint(0)===qA)return this.consumeCodePoint(),Ms;break;case nA:return Nr}return ye(A)?(this.consumeWhiteSpace(),Ws):J(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):_e(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:S(A)}},e.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},e.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},e.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},e.prototype.consumeUnicodeRangeToken=function(){for(var A=[],t=this.consumeCodePoint();MA(t)&&A.length<6;)A.push(t),t=this.consumeCodePoint();for(var r=!1;t===ve&&A.length<6;)A.push(t),t=this.consumeCodePoint(),r=!0;if(r){var B=parseInt(S.apply(void 0,A.map(function(a){return a===ve?gB:a})),16),n=parseInt(S.apply(void 0,A.map(function(a){return a===ve?lB:a})),16);return{type:30,start:B,end:n}}var s=parseInt(S.apply(void 0,A),16);if(this.peekCodePoint(0)===Z&&MA(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var i=[];MA(t)&&i.length<6;)i.push(t),t=this.consumeCodePoint();var n=parseInt(S.apply(void 0,i),16);return{type:30,start:s,end:n}}else return{type:30,start:s,end:s}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Ie?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Ie?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===nA)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===pe||t===He){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===nA||this.peekCodePoint(0)===jA)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),me)}for(;;){var B=this.consumeCodePoint();if(B===nA||B===jA)return{type:22,value:S.apply(void 0,A)};if(ye(B))return this.consumeWhiteSpace(),this.peekCodePoint(0)===nA||this.peekCodePoint(0)===jA?(this.consumeCodePoint(),{type:22,value:S.apply(void 0,A)}):(this.consumeBadUrlRemnants(),me);if(B===He||B===pe||B===Ie||Ks(B))return this.consumeBadUrlRemnants(),me;if(B===ne)if(UA(B,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),me;else A.push(B)}},e.prototype.consumeWhiteSpace=function(){for(;ye(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===jA||A===nA)return;UA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(A){for(var t=5e4,r="";A>0;){var B=Math.min(t,A);r+=S.apply(void 0,this._value.splice(0,B)),A-=B}return this._value.shift(),r},e.prototype.consumeStringToken=function(A){var t="",r=0;do{var B=this._value[r];if(B===nA||B===void 0||B===A)return t+=this.consumeStringSlice(r),{type:0,value:t};if(B===Xe)return this._value.splice(0,r),Ns;if(B===ne){var n=this._value[r+1];n!==nA&&n!==void 0&&(n===Xe?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):UA(B,n)&&(t+=this.consumeStringSlice(r),t+=S(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},e.prototype.consumeNumber=function(){var A=[],t=ce,r=this.peekCodePoint(0);for((r===DA||r===Z)&&A.push(this.consumeCodePoint());J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);var B=this.peekCodePoint(1);if(r===ge&&J(B))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=ft;J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),B=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((r===uB||r===cB)&&((B===DA||B===Z)&&J(n)||J(B)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=ft;J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[ms(A),t]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),t=A[0],r=A[1],B=this.peekCodePoint(0),n=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Ke(B,n,s)){var i=this.consumeName();return{type:15,number:t,flags:r,unit:i}}return B===qn?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(MA(A)){for(var t=S(A);MA(this.peekCodePoint(0))&&t.length<6;)t+=S(this.consumeCodePoint());ye(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return r===0||Hs(r)||r>1114111?ht:r}return A===nA?ht:A},e.prototype.consumeName=function(){for(var A="";;){var t=this.consumeCodePoint();if(dt(t))A+=S(t);else if(UA(t,this.peekCodePoint(0)))A+=S(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),A}},e}(),UB=function(){function e(A){this._tokens=A}return e.create=function(A){var t=new fB;return t.write(A),new e(t.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var t=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var A=[];;){var t=this.consumeComponentValue();if(t.type===32)return A;A.push(t),A.push()}},e.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},e.prototype.consumeSimpleBlock=function(A){for(var t={type:A,values:[]},r=this.consumeToken();;){if(r.type===32||qs(r,A))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},e.prototype.consumeFunction=function(A){for(var t={name:A.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?Nr:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e}(),Ce=function(e){return e.type===15},kA=function(e){return e.type===17},D=function(e){return e.type===20},Zs=function(e){return e.type===0},Xr=function(e,A){return D(e)&&e.value===A},FB=function(e){return e.type!==31},PA=function(e){return e.type!==31&&e.type!==4},sA=function(e){var A=[],t=[];return e.forEach(function(r){if(r.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(t),t=[];return}r.type!==31&&t.push(r)}),t.length&&A.push(t),A},qs=function(e,A){return A===11&&e.type===12||A===28&&e.type===29?!0:A===2&&e.type===3},pA=function(e){return e.type===17||e.type===15},M=function(e){return e.type===16||pA(e)},hB=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},X={type:17,number:0,flags:ce},$r={type:16,number:50,flags:ce},hA={type:16,number:100,flags:ce},re=function(e,A,t){var r=e[0],B=e[1];return[b(r,A),b(typeof B<"u"?B:r,t)]},b=function(e,A){if(e.type===16)return e.number/100*A;if(Ce(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},dB="deg",EB="grad",HB="rad",pB="turn",Ar={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case dB:return Math.PI*A.number/180;case EB:return Math.PI/200*A.number;case HB:return A.number;case pB:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},IB=function(e){return e.type===15&&(e.unit===dB||e.unit===EB||e.unit===HB||e.unit===pB)},vB=function(e){var A=e.filter(D).map(function(t){return t.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[X,X];case"to top":case"bottom":return AA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[X,hA];case"to right":case"left":return AA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[hA,hA];case"to bottom":case"top":return AA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[hA,X];case"to left":case"right":return AA(270)}return 0},AA=function(e){return Math.PI*e/180},EA={name:"color",parse:function(e,A){if(A.type===18){var t=js[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return t(e,A.values)}if(A.type===5){if(A.value.length===3){var r=A.value.substring(0,1),B=A.value.substring(1,2),n=A.value.substring(2,3);return dA(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),1)}if(A.value.length===4){var r=A.value.substring(0,1),B=A.value.substring(1,2),n=A.value.substring(2,3),s=A.value.substring(3,4);return dA(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),parseInt(s+s,16)/255)}if(A.value.length===6){var r=A.value.substring(0,2),B=A.value.substring(2,4),n=A.value.substring(4,6);return dA(parseInt(r,16),parseInt(B,16),parseInt(n,16),1)}if(A.value.length===8){var r=A.value.substring(0,2),B=A.value.substring(2,4),n=A.value.substring(4,6),s=A.value.substring(6,8);return dA(parseInt(r,16),parseInt(B,16),parseInt(n,16),parseInt(s,16)/255)}}if(A.type===20){var i=wA[A.value.toUpperCase()];if(typeof i<"u")return i}return wA.TRANSPARENT}},HA=function(e){return(255&e)===0},R=function(e){var A=255&e,t=255&e>>8,r=255&e>>16,B=255&e>>24;return A<255?"rgba("+B+","+r+","+t+","+A/255+")":"rgb("+B+","+r+","+t+")"},dA=function(e,A,t,r){return(e<<24|A<<16|t<<8|Math.round(r*255)<<0)>>>0},Et=function(e,A){if(e.type===17)return e.number;if(e.type===16){var t=A===3?1:255;return A===3?e.number/100*t:Math.round(e.number/100*t)}return 0},Ht=function(e,A){var t=A.filter(PA);if(t.length===3){var r=t.map(Et),B=r[0],n=r[1],s=r[2];return dA(B,n,s,1)}if(t.length===4){var i=t.map(Et),B=i[0],n=i[1],s=i[2],a=i[3];return dA(B,n,s,a)}return 0};function ur(e,A,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(A-e)*t*6+e:t<1/2?A:t<2/3?(A-e)*6*(2/3-t)+e:e}var pt=function(e,A){var t=A.filter(PA),r=t[0],B=t[1],n=t[2],s=t[3],i=(r.type===17?AA(r.number):Ar.parse(e,r))/(Math.PI*2),a=M(B)?B.number/100:0,o=M(n)?n.number/100:0,Q=typeof s<"u"&&M(s)?b(s,1):1;if(a===0)return dA(o*255,o*255,o*255,1);var g=o<=.5?o*(a+1):o+a-o*a,w=o*2-g,f=ur(w,g,i+1/3),c=ur(w,g,i),C=ur(w,g,i-1/3);return dA(f*255,c*255,C*255,Q)},js={hsl:pt,hsla:pt,rgb:Ht,rgba:Ht},se=function(e,A){return EA.parse(e,UB.create(A).parseComponentValue())},wA={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},zs={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(D(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},$s={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},er=function(e,A){var t=EA.parse(e,A[0]),r=A[1];return r&&M(r)?{color:t,stop:r}:{color:t,stop:null}},It=function(e,A){var t=e[0],r=e[e.length-1];t.stop===null&&(t.stop=X),r.stop===null&&(r.stop=hA);for(var B=[],n=0,s=0;sn?B.push(a):B.push(n),n=a}else B.push(null)}for(var o=null,s=0;ss.optimumDistance)?{optimumCorner:i,optimumDistance:Q}:s},{optimumDistance:B?1/0:-1/0,optimumCorner:null}).optimumCorner},ra=function(e,A,t,r,B){var n=0,s=0;switch(e.size){case 0:e.shape===0?n=s=Math.min(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-B)):e.shape===1&&(n=Math.min(Math.abs(A),Math.abs(A-r)),s=Math.min(Math.abs(t),Math.abs(t-B)));break;case 2:if(e.shape===0)n=s=Math.min(rA(A,t),rA(A,t-B),rA(A-r,t),rA(A-r,t-B));else if(e.shape===1){var i=Math.min(Math.abs(t),Math.abs(t-B))/Math.min(Math.abs(A),Math.abs(A-r)),a=vt(r,B,A,t,!0),o=a[0],Q=a[1];n=rA(o-A,(Q-t)/i),s=i*n}break;case 1:e.shape===0?n=s=Math.max(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-B)):e.shape===1&&(n=Math.max(Math.abs(A),Math.abs(A-r)),s=Math.max(Math.abs(t),Math.abs(t-B)));break;case 3:if(e.shape===0)n=s=Math.max(rA(A,t),rA(A,t-B),rA(A-r,t),rA(A-r,t-B));else if(e.shape===1){var i=Math.max(Math.abs(t),Math.abs(t-B))/Math.max(Math.abs(A),Math.abs(A-r)),g=vt(r,B,A,t,!1),o=g[0],Q=g[1];n=rA(o-A,(Q-t)/i),s=i*n}break}return Array.isArray(e.size)&&(n=b(e.size[0],r),s=e.size.length===2?b(e.size[1],B):n),[n,s]},ta=function(e,A){var t=AA(180),r=[];return sA(A).forEach(function(B,n){if(n===0){var s=B[0];if(s.type===20&&s.value==="to"){t=vB(B);return}else if(IB(s)){t=Ar.parse(e,s);return}}var i=er(e,B);r.push(i)}),{angle:t,stops:r,type:1}},Le=function(e,A){var t=AA(180),r=[];return sA(A).forEach(function(B,n){if(n===0){var s=B[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){t=vB(B);return}else if(IB(s)){t=(Ar.parse(e,s)+AA(270))%AA(360);return}}var i=er(e,B);r.push(i)}),{angle:t,stops:r,type:1}},Ba=function(e,A){var t=AA(180),r=[],B=1,n=0,s=3,i=[];return sA(A).forEach(function(a,o){var Q=a[0];if(o===0){if(D(Q)&&Q.value==="linear"){B=1;return}else if(D(Q)&&Q.value==="radial"){B=2;return}}if(Q.type===18){if(Q.name==="from"){var g=EA.parse(e,Q.values[0]);r.push({stop:X,color:g})}else if(Q.name==="to"){var g=EA.parse(e,Q.values[0]);r.push({stop:hA,color:g})}else if(Q.name==="color-stop"){var w=Q.values.filter(PA);if(w.length===2){var g=EA.parse(e,w[1]),f=w[0];kA(f)&&r.push({stop:{type:16,number:f.number*100,flags:f.flags},color:g})}}}}),B===1?{angle:(t+AA(180))%AA(360),stops:r,type:B}:{size:s,shape:n,stops:r,position:i,type:B}},yB="closest-side",KB="farthest-side",mB="closest-corner",LB="farthest-corner",DB="circle",bB="ellipse",xB="cover",TB="contain",na=function(e,A){var t=0,r=3,B=[],n=[];return sA(A).forEach(function(s,i){var a=!0;if(i===0){var o=!1;a=s.reduce(function(g,w){if(o)if(D(w))switch(w.value){case"center":return n.push($r),g;case"top":case"left":return n.push(X),g;case"right":case"bottom":return n.push(hA),g}else(M(w)||pA(w))&&n.push(w);else if(D(w))switch(w.value){case DB:return t=0,!1;case bB:return t=1,!1;case"at":return o=!0,!1;case yB:return r=0,!1;case xB:case KB:return r=1,!1;case TB:case mB:return r=2,!1;case LB:return r=3,!1}else if(pA(w)||M(w))return Array.isArray(r)||(r=[]),r.push(w),!1;return g},a)}if(a){var Q=er(e,s);B.push(Q)}}),{size:r,shape:t,stops:B,position:n,type:2}},De=function(e,A){var t=0,r=3,B=[],n=[];return sA(A).forEach(function(s,i){var a=!0;if(i===0?a=s.reduce(function(Q,g){if(D(g))switch(g.value){case"center":return n.push($r),!1;case"top":case"left":return n.push(X),!1;case"right":case"bottom":return n.push(hA),!1}else if(M(g)||pA(g))return n.push(g),!1;return Q},a):i===1&&(a=s.reduce(function(Q,g){if(D(g))switch(g.value){case DB:return t=0,!1;case bB:return t=1,!1;case TB:case yB:return r=0,!1;case KB:return r=1,!1;case mB:return r=2,!1;case xB:case LB:return r=3,!1}else if(pA(g)||M(g))return Array.isArray(r)||(r=[]),r.push(g),!1;return Q},a)),a){var o=er(e,s);B.push(o)}}),{size:r,shape:t,stops:B,position:n,type:2}},sa=function(e){return e.type===1},aa=function(e){return e.type===2},At={name:"image",parse:function(e,A){if(A.type===22){var t={url:A.value,type:0};return e.cache.addImage(A.value),t}if(A.type===18){var r=SB[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return r(e,A.values)}throw new Error("Unsupported image type "+A.type)}};function ia(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!SB[e.name])}var SB={"linear-gradient":ta,"-moz-linear-gradient":Le,"-ms-linear-gradient":Le,"-o-linear-gradient":Le,"-webkit-linear-gradient":Le,"radial-gradient":na,"-moz-radial-gradient":De,"-ms-radial-gradient":De,"-o-radial-gradient":De,"-webkit-radial-gradient":De,"-webkit-gradient":Ba},oa={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value==="none"?[]:A.filter(function(r){return PA(r)&&ia(r)}).map(function(r){return At.parse(e,r)})}},Qa={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(D(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ga={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return sA(A).map(function(t){return t.filter(M)}).map(hB)}},wa={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return sA(A).map(function(t){return t.filter(D).map(function(r){return r.value}).join(" ")}).map(ca)}},ca=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},JA;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(JA||(JA={}));var Ca={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return sA(A).map(function(t){return t.filter(ua)})}},ua=function(e){return D(e)||M(e)},rr=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},la=rr("top"),fa=rr("right"),Ua=rr("bottom"),Fa=rr("left"),tr=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,t){return hB(t.filter(M))}}},ha=tr("top-left"),da=tr("top-right"),Ea=tr("bottom-right"),Ha=tr("bottom-left"),Br=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},pa=Br("top"),Ia=Br("right"),va=Br("bottom"),ya=Br("left"),nr=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return Ce(t)?t.number:0}}},Ka=nr("top"),ma=nr("right"),La=nr("bottom"),Da=nr("left"),ba={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},xa={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},Ta={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(D).reduce(function(t,r){return t|Sa(r.value)},0)}},Sa=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Oa={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ma={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},Je;(function(e){e.NORMAL="normal",e.STRICT="strict"})(Je||(Je={}));var Ga={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"strict":return Je.STRICT;case"normal":default:return Je.NORMAL}}},Ra={name:"line-height",initialValue:"normal",prefix:!1,type:4},yt=function(e,A){return D(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:M(e)?b(e,A):A},Va={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return A.type===20&&A.value==="none"?null:At.parse(e,A)}},Na={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){switch(A){case"inside":return 0;case"outside":default:return 1}}},_r={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},sr=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Xa=sr("top"),_a=sr("right"),Ja=sr("bottom"),Pa=sr("left"),ka={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(D).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Ya={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-word":return"break-word";case"normal":default:return"normal"}}},ar=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Wa=ar("top"),Za=ar("right"),qa=ar("bottom"),ja=ar("left"),za={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,A){switch(A){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},$a={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Ai={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&Xr(A[0],"none")?[]:sA(A).map(function(t){for(var r={color:wA.TRANSPARENT,offsetX:X,offsetY:X,blur:X},B=0,n=0;n"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return t(A.values)}return null}},ti=function(e){var A=e.filter(function(t){return t.type===17}).map(function(t){return t.number});return A.length===6?A:null},Bi=function(e){var A=e.filter(function(a){return a.type===17}).map(function(a){return a.number}),t=A[0],r=A[1];A[2],A[3];var B=A[4],n=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var s=A[12],i=A[13];return A[14],A[15],A.length===16?[t,r,B,n,s,i]:null},ni={matrix:ti,matrix3d:Bi},Kt={type:16,number:50,flags:ce},si=[Kt,Kt],ai={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var t=A.filter(M);return t.length!==2?si:[t[0],t[1]]}},ii={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},ae;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(ae||(ae={}));var oi={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return ae.BREAK_ALL;case"keep-all":return ae.KEEP_ALL;case"normal":default:return ae.NORMAL}}},Qi={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(A.type===20)return{auto:!0,order:0};if(kA(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},OB={name:"time",parse:function(e,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},gi={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return kA(A)?A.number:1}},wi={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ci={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(D).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},Ci={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var t=[],r=[];return A.forEach(function(B){switch(B.type){case 20:case 0:t.push(B.value);break;case 17:t.push(B.number.toString());break;case 4:r.push(t.join(" ")),t.length=0;break}}),t.length&&r.push(t.join(" ")),r.map(function(B){return B.indexOf(" ")===-1?B:"'"+B+"'"})}},ui={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},li={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){if(kA(A))return A.number;if(D(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},fi={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(D).map(function(t){return t.value})}},Ui={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},G=function(e,A){return(e&A)!==0},Fi={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value==="none"?[]:A}},hi={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var t=A[0];if(t.type===20&&t.value==="none")return null;for(var r=[],B=A.filter(FB),n=0;n1?1:0],this.overflowWrap=U(A,Ya,t.overflowWrap),this.paddingTop=U(A,Wa,t.paddingTop),this.paddingRight=U(A,Za,t.paddingRight),this.paddingBottom=U(A,qa,t.paddingBottom),this.paddingLeft=U(A,ja,t.paddingLeft),this.paintOrder=U(A,Ii,t.paintOrder),this.position=U(A,$a,t.position),this.textAlign=U(A,za,t.textAlign),this.textDecorationColor=U(A,wi,(r=t.textDecorationColor)!==null&&r!==void 0?r:t.color),this.textDecorationLine=U(A,ci,(B=t.textDecorationLine)!==null&&B!==void 0?B:t.textDecoration),this.textShadow=U(A,Ai,t.textShadow),this.textTransform=U(A,ei,t.textTransform),this.transform=U(A,ri,t.transform),this.transformOrigin=U(A,ai,t.transformOrigin),this.visibility=U(A,ii,t.visibility),this.webkitTextStrokeColor=U(A,vi,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=U(A,yi,t.webkitTextStrokeWidth),this.wordBreak=U(A,oi,t.wordBreak),this.zIndex=U(A,Qi,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return HA(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return G(this.display,4)||G(this.display,33554432)||G(this.display,268435456)||G(this.display,536870912)||G(this.display,67108864)||G(this.display,134217728)},e}(),mi=function(){function e(A,t){this.content=U(A,Fi,t.content),this.quotes=U(A,Hi,t.quotes)}return e}(),Lt=function(){function e(A,t){this.counterIncrement=U(A,hi,t.counterIncrement),this.counterReset=U(A,di,t.counterReset)}return e}(),U=function(e,A,t){var r=new fB,B=t!==null&&typeof t<"u"?t.toString():A.initialValue;r.write(B);var n=new UB(r.read());switch(A.type){case 2:var s=n.parseComponentValue();return A.parse(e,D(s)?s.value:A.initialValue);case 0:return A.parse(e,n.parseComponentValue());case 1:return A.parse(e,n.parseComponentValues());case 4:return n.parseComponentValue();case 3:switch(A.format){case"angle":return Ar.parse(e,n.parseComponentValue());case"color":return EA.parse(e,n.parseComponentValue());case"image":return At.parse(e,n.parseComponentValue());case"length":var i=n.parseComponentValue();return pA(i)?i:X;case"length-percentage":var a=n.parseComponentValue();return M(a)?a:X;case"time":return OB.parse(e,n.parseComponentValue())}break}},Li="data-html2canvas-debug",Di=function(e){var A=e.getAttribute(Li);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Jr=function(e,A){var t=Di(e);return t===1||A===t},aA=function(){function e(A,t){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Jr(t,3))debugger;this.styles=new Ki(A,window.getComputedStyle(t,null)),Yr(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=ze(this.context,t),Jr(t,4)&&(this.flags|=16)}return e}(),bi="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var be=0;be>4,Q[B++]=(s&15)<<4|i>>2,Q[B++]=(i&3)<<6|a&63;return o},Ti=function(e){for(var A=e.length,t=[],r=0;r>xA,Mi=1<>xA,Ri=MB+Gi,Vi=Ri,Ni=32,Xi=Vi+Ni,_i=65536>>et,Ji=1<=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>xA],t=(t<>xA)],t=(t<>et),t=this.index[t],t+=A>>xA&Pi,t=this.index[t],t=(t<"u"?[]:new Uint8Array(256);for(var xe=0;xe=55296&&B<=56319&&t>10)+55296,s%1024+56320)),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},Ao=Yi(bi),z="×",Hr="÷",eo=function(e){return Ao.get(e)},ro=function(e,A,t){var r=t-2,B=A[r],n=A[t-1],s=A[t];if(n===Ur&&s===Fr)return z;if(n===Ur||n===Fr||n===Tt||s===Ur||s===Fr||s===Tt)return Hr;if(n===Ot&&[Ot,hr,Mt,Gt].indexOf(s)!==-1||(n===Mt||n===hr)&&(s===hr||s===dr)||(n===Gt||n===dr)&&s===dr||s===Rt||s===St||s===ji||n===qi)return z;if(n===Rt&&s===Vt){for(;B===St;)B=A[--r];if(B===Vt)return z}if(n===Er&&s===Er){for(var i=0;B===Er;)i++,B=A[--r];if(i%2===0)return z}return Hr},to=function(e){var A=zi(e),t=A.length,r=0,B=0,n=A.map(eo);return{next:function(){if(r>=t)return{done:!0,value:null};for(var s=z;rs.x||Q.y>s.y;return s=Q,o===0?!0:g});return e.body.removeChild(A),i},ao=function(){return typeof new Image().crossOrigin<"u"},io=function(){return typeof new XMLHttpRequest().responseType=="string"},oo=function(e){var A=new Image,t=e.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;A.src="data:image/svg+xml,";try{r.drawImage(A,0,0),t.toDataURL()}catch{return!1}return!0},Nt=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},Qo=function(e){var A=e.createElement("canvas"),t=100;A.width=t,A.height=t;var r=A.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var B=new Image,n=A.toDataURL();B.src=n;var s=Pr(t,t,0,0,B);return r.fillStyle="red",r.fillRect(0,0,t,t),Xt(s).then(function(i){r.drawImage(i,0,0);var a=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var o=e.createElement("div");return o.style.backgroundImage="url("+n+")",o.style.height=t+"px",Nt(a)?Xt(Pr(t,t,0,0,o)):Promise.reject(!1)}).then(function(i){return r.drawImage(i,0,0),Nt(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},Pr=function(e,A,t,r,B){var n="http://www.w3.org/2000/svg",s=document.createElementNS(n,"svg"),i=document.createElementNS(n,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",A.toString()),i.setAttributeNS(null,"width","100%"),i.setAttributeNS(null,"height","100%"),i.setAttributeNS(null,"x",t.toString()),i.setAttributeNS(null,"y",r.toString()),i.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(i),i.appendChild(B),s},Xt=function(e){return new Promise(function(A,t){var r=new Image;r.onload=function(){return A(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},N={get SUPPORT_RANGE_BOUNDS(){var e=no(document);return Object.defineProperty(N,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=N.SUPPORT_RANGE_BOUNDS&&so(document);return Object.defineProperty(N,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=oo(document);return Object.defineProperty(N,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?Qo(document):Promise.resolve(!1);return Object.defineProperty(N,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=ao();return Object.defineProperty(N,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=io();return Object.defineProperty(N,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(N,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(N,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},ie=function(){function e(A,t){this.text=A,this.bounds=t}return e}(),go=function(e,A,t,r){var B=Co(A,t),n=[],s=0;return B.forEach(function(i){if(t.textDecorationLine.length||i.trim().length>0)if(N.SUPPORT_RANGE_BOUNDS){var a=_t(r,s,i.length).getClientRects();if(a.length>1){var o=rt(i),Q=0;o.forEach(function(w){n.push(new ie(w,cA.fromDOMRectList(e,_t(r,Q+s,w.length).getClientRects()))),Q+=w.length})}else n.push(new ie(i,cA.fromDOMRectList(e,a)))}else{var g=r.splitText(i.length);n.push(new ie(i,wo(e,r))),r=g}else N.SUPPORT_RANGE_BOUNDS||(r=r.splitText(i.length));s+=i.length}),n},wo=function(e,A){var t=A.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(A.cloneNode(!0));var B=A.parentNode;if(B){B.replaceChild(r,A);var n=ze(e,r);return r.firstChild&&B.replaceChild(r.firstChild,r),n}}return cA.EMPTY},_t=function(e,A,t){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var B=r.createRange();return B.setStart(e,A),B.setEnd(e,A+t),B},rt=function(e){if(N.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(e)).map(function(t){return t.segment})}return Bo(e)},co=function(e,A){if(N.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return lo(e,A)},Co=function(e,A){return A.letterSpacing!==0?rt(e):co(e,A)},uo=[32,160,4961,65792,65793,4153,4241],lo=function(e,A){for(var t=_n(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),r=[],B,n=function(){if(B.value){var s=B.value.slice(),i=$e(s),a="";i.forEach(function(o){uo.indexOf(o)===-1?a+=S(o):(a.length&&r.push(a),r.push(S(o)),a="")}),a.length&&r.push(a)}};!(B=t.next()).done;)n();return r},fo=function(){function e(A,t,r){this.text=Uo(t.data,r.textTransform),this.textBounds=go(A,this.text,r,t)}return e}(),Uo=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(Fo,ho);case 2:return e.toUpperCase();default:return e}},Fo=/(^|\s|:|-|\(|\))([a-z])/g,ho=function(e,A,t){return e.length>0?A+t.toUpperCase():e},GB=function(e){tA(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.src=r.currentSrc||r.src,B.intrinsicWidth=r.naturalWidth,B.intrinsicHeight=r.naturalHeight,B.context.cache.addImage(B.src),B}return A}(aA),RB=function(e){tA(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.canvas=r,B.intrinsicWidth=r.width,B.intrinsicHeight=r.height,B}return A}(aA),VB=function(e){tA(A,e);function A(t,r){var B=e.call(this,t,r)||this,n=new XMLSerializer,s=ze(t,r);return r.setAttribute("width",s.width+"px"),r.setAttribute("height",s.height+"px"),B.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(r)),B.intrinsicWidth=r.width.baseVal.value,B.intrinsicHeight=r.height.baseVal.value,B.context.cache.addImage(B.svg),B}return A}(aA),NB=function(e){tA(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.value=r.value,B}return A}(aA),kr=function(e){tA(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.start=r.start,B.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,B}return A}(aA),Eo=[{type:15,flags:0,unit:"px",number:3}],Ho=[{type:16,flags:0,number:50}],po=function(e){return e.width>e.height?new cA(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width0)t.textNodes.push(new fo(e,B,t.styles));else if(_A(B))if(jB(B)&&B.assignedNodes)B.assignedNodes().forEach(function(i){return Ve(e,i,t,r)});else{var s=PB(e,B);s.styles.isVisible()&&(Ko(B,s,r)?s.flags|=4:mo(s.styles)&&(s.flags|=2),yo.indexOf(B.tagName)!==-1&&(s.flags|=8),t.elements.push(s),B.slot,B.shadowRoot?Ve(e,B.shadowRoot,s,r):!Ye(B)&&!WB(B)&&!We(B)&&Ve(e,B,s,r))}},PB=function(e,A){return Wr(A)?new GB(e,A):ZB(A)?new RB(e,A):WB(A)?new VB(e,A):Lo(A)?new NB(e,A):Do(A)?new kr(e,A):bo(A)?new tt(e,A):We(A)?new XB(e,A):Ye(A)?new _B(e,A):qB(A)?new JB(e,A):new aA(e,A)},kB=function(e,A){var t=PB(e,A);return t.flags|=4,Ve(e,A,t,t),t},Ko=function(e,A,t){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Bt(e)&&t.styles.isTransparent()},mo=function(e){return e.isPositioned()||e.isFloating()},YB=function(e){return e.nodeType===Node.TEXT_NODE},_A=function(e){return e.nodeType===Node.ELEMENT_NODE},Yr=function(e){return _A(e)&&typeof e.style<"u"&&!Ne(e)},Ne=function(e){return typeof e.className=="object"},Lo=function(e){return e.tagName==="LI"},Do=function(e){return e.tagName==="OL"},bo=function(e){return e.tagName==="INPUT"},xo=function(e){return e.tagName==="HTML"},WB=function(e){return e.tagName==="svg"},Bt=function(e){return e.tagName==="BODY"},ZB=function(e){return e.tagName==="CANVAS"},Pt=function(e){return e.tagName==="VIDEO"},Wr=function(e){return e.tagName==="IMG"},qB=function(e){return e.tagName==="IFRAME"},kt=function(e){return e.tagName==="STYLE"},To=function(e){return e.tagName==="SCRIPT"},Ye=function(e){return e.tagName==="TEXTAREA"},We=function(e){return e.tagName==="SELECT"},jB=function(e){return e.tagName==="SLOT"},Yt=function(e){return e.tagName.indexOf("-")>0},So=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(A){var t=this.counters[A];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(A){var t=this.counters[A];return t||[]},e.prototype.pop=function(A){var t=this;A.forEach(function(r){return t.counters[r].pop()})},e.prototype.parse=function(A){var t=this,r=A.counterIncrement,B=A.counterReset,n=!0;r!==null&&r.forEach(function(i){var a=t.counters[i.counter];a&&i.increment!==0&&(n=!1,a.length||a.push(1),a[Math.max(0,a.length-1)]+=i.increment)});var s=[];return n&&B.forEach(function(i){var a=t.counters[i.counter];s.push(i.counter),a||(a=t.counters[i.counter]=[]),a.push(i.reset)}),s},e}(),Wt={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Zt={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Oo={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Mo={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},GA=function(e,A,t,r,B,n){return et?we(e,B,n.length>0):r.integers.reduce(function(s,i,a){for(;e>=i;)e-=i,s+=r.values[a];return s},"")+n},zB=function(e,A,t,r){var B="";do t||e--,B=r(e)+B,e/=A;while(e*A>=A);return B},T=function(e,A,t,r,B){var n=t-A+1;return(e<0?"-":"")+(zB(Math.abs(e),n,r,function(s){return S(Math.floor(s%n)+A)})+B)},mA=function(e,A,t){t===void 0&&(t=". ");var r=A.length;return zB(Math.abs(e),r,!1,function(B){return A[Math.floor(B%r)]})+t},NA=1,lA=2,fA=4,Be=8,gA=function(e,A,t,r,B,n){if(e<-9999||e>9999)return we(e,4,B.length>0);var s=Math.abs(e),i=B;if(s===0)return A[0]+i;for(var a=0;s>0&&a<=4;a++){var o=s%10;o===0&&G(n,NA)&&i!==""?i=A[o]+i:o>1||o===1&&a===0||o===1&&a===1&&G(n,lA)||o===1&&a===1&&G(n,fA)&&e>100||o===1&&a>1&&G(n,Be)?i=A[o]+(a>0?t[a-1]:"")+i:o===1&&a>0&&(i=t[a-1]+i),s=Math.floor(s/10)}return(e<0?r:"")+i},qt="十百千萬",jt="拾佰仟萬",zt="マイナス",pr="마이너스",we=function(e,A,t){var r=t?". ":"",B=t?"、":"",n=t?", ":"",s=t?" ":"";switch(A){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var i=T(e,48,57,!0,r);return i.length<4?"0"+i:i;case 4:return mA(e,"〇一二三四五六七八九",B);case 6:return GA(e,1,3999,Wt,3,r).toLowerCase();case 7:return GA(e,1,3999,Wt,3,r);case 8:return T(e,945,969,!1,r);case 9:return T(e,97,122,!1,r);case 10:return T(e,65,90,!1,r);case 11:return T(e,1632,1641,!0,r);case 12:case 49:return GA(e,1,9999,Zt,3,r);case 35:return GA(e,1,9999,Zt,3,r).toLowerCase();case 13:return T(e,2534,2543,!0,r);case 14:case 30:return T(e,6112,6121,!0,r);case 15:return mA(e,"子丑寅卯辰巳午未申酉戌亥",B);case 16:return mA(e,"甲乙丙丁戊己庚辛壬癸",B);case 17:case 48:return gA(e,"零一二三四五六七八九",qt,"負",B,lA|fA|Be);case 47:return gA(e,"零壹貳參肆伍陸柒捌玖",jt,"負",B,NA|lA|fA|Be);case 42:return gA(e,"零一二三四五六七八九",qt,"负",B,lA|fA|Be);case 41:return gA(e,"零壹贰叁肆伍陆柒捌玖",jt,"负",B,NA|lA|fA|Be);case 26:return gA(e,"〇一二三四五六七八九","十百千万",zt,B,0);case 25:return gA(e,"零壱弐参四伍六七八九","拾百千万",zt,B,NA|lA|fA);case 31:return gA(e,"영일이삼사오육칠팔구","십백천만",pr,n,NA|lA|fA);case 33:return gA(e,"零一二三四五六七八九","十百千萬",pr,n,0);case 32:return gA(e,"零壹貳參四五六七八九","拾百千",pr,n,NA|lA|fA);case 18:return T(e,2406,2415,!0,r);case 20:return GA(e,1,19999,Mo,3,r);case 21:return T(e,2790,2799,!0,r);case 22:return T(e,2662,2671,!0,r);case 22:return GA(e,1,10999,Oo,3,r);case 23:return mA(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return mA(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return T(e,3302,3311,!0,r);case 28:return mA(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",B);case 29:return mA(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",B);case 34:return T(e,3792,3801,!0,r);case 37:return T(e,6160,6169,!0,r);case 38:return T(e,4160,4169,!0,r);case 39:return T(e,2918,2927,!0,r);case 40:return T(e,1776,1785,!0,r);case 43:return T(e,3046,3055,!0,r);case 44:return T(e,3174,3183,!0,r);case 45:return T(e,3664,3673,!0,r);case 46:return T(e,3872,3881,!0,r);case 3:default:return T(e,48,57,!0,r)}},$B="data-html2canvas-ignore",$t=function(){function e(A,t,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new So,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(A,t){var r=this,B=Go(A,t);if(!B.contentWindow)return Promise.reject("Unable to find iframe window");var n=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,i=B.contentWindow,a=i.document,o=No(B).then(function(){return P(r,void 0,void 0,function(){var Q,g;return _(this,function(w){switch(w.label){case 0:return this.scrolledElements.forEach(Po),i&&(i.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(i.scrollY!==t.top||i.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(i.scrollX-t.left,i.scrollY-t.top,0,0))),Q=this.options.onclone,g=this.clonedReferenceElement,typeof g>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:a.fonts&&a.fonts.ready?[4,a.fonts.ready]:[3,2];case 1:w.sent(),w.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Vo(a)]:[3,4];case 3:w.sent(),w.label=4;case 4:return typeof Q=="function"?[2,Promise.resolve().then(function(){return Q(a,g)}).then(function(){return B})]:[2,B]}})})});return a.open(),a.write(_o(document.doctype)+""),Jo(this.referenceElement.ownerDocument,n,s),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),o},e.prototype.createElementClone=function(A){if(Jr(A,2))debugger;if(ZB(A))return this.createCanvasClone(A);if(Pt(A))return this.createVideoClone(A);if(kt(A))return this.createStyleClone(A);var t=A.cloneNode(!1);return Wr(t)&&(Wr(A)&&A.currentSrc&&A.currentSrc!==A.src&&(t.src=A.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),Yt(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(A){var t=document.createElement("html2canvascustomelement");return Ir(A.style,t),t},e.prototype.createStyleClone=function(A){try{var t=A.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce(function(n,s){return s&&typeof s.cssText=="string"?n+s.cssText:n},""),B=A.cloneNode(!1);return B.textContent=r,B}}catch(n){if(this.context.logger.error("Unable to access cssRules property",n),n.name!=="SecurityError")throw n}return A.cloneNode(!1)},e.prototype.createCanvasClone=function(A){var t;if(this.options.inlineImages&&A.ownerDocument){var r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var B=A.cloneNode(!1);try{B.width=A.width,B.height=A.height;var n=A.getContext("2d"),s=B.getContext("2d");if(s)if(!this.options.allowTaint&&n)s.putImageData(n.getImageData(0,0,A.width,A.height),0,0);else{var i=(t=A.getContext("webgl2"))!==null&&t!==void 0?t:A.getContext("webgl");if(i){var a=i.getContextAttributes();(a==null?void 0:a.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}s.drawImage(A,0,0)}return B}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return B},e.prototype.createVideoClone=function(A){var t=A.ownerDocument.createElement("canvas");t.width=A.offsetWidth,t.height=A.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(A,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var B=A.ownerDocument.createElement("canvas");return B.width=A.offsetWidth,B.height=A.offsetHeight,B},e.prototype.appendChildNode=function(A,t,r){(!_A(t)||!To(t)&&!t.hasAttribute($B)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!_A(t)||!kt(t))&&A.appendChild(this.cloneNode(t,r))},e.prototype.cloneChildNodes=function(A,t,r){for(var B=this,n=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;n;n=n.nextSibling)if(_A(n)&&jB(n)&&typeof n.assignedNodes=="function"){var s=n.assignedNodes();s.length&&s.forEach(function(i){return B.appendChildNode(t,i,r)})}else this.appendChildNode(t,n,r)},e.prototype.cloneNode=function(A,t){if(YB(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var r=A.ownerDocument.defaultView;if(r&&_A(A)&&(Yr(A)||Ne(A))){var B=this.createElementClone(A);B.style.transitionProperty="none";var n=r.getComputedStyle(A),s=r.getComputedStyle(A,":before"),i=r.getComputedStyle(A,":after");this.referenceElement===A&&Yr(B)&&(this.clonedReferenceElement=B),Bt(B)&&Wo(B);var a=this.counters.parse(new Lt(this.context,n)),o=this.resolvePseudoContent(A,B,s,oe.BEFORE);Yt(A)&&(t=!0),Pt(A)||this.cloneChildNodes(A,B,t),o&&B.insertBefore(o,B.firstChild);var Q=this.resolvePseudoContent(A,B,i,oe.AFTER);return Q&&B.appendChild(Q),this.counters.pop(a),(n&&(this.options.copyStyles||Ne(A))&&!qB(A)||t)&&Ir(n,B),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([B,A.scrollLeft,A.scrollTop]),(Ye(A)||We(A))&&(Ye(B)||We(B))&&(B.value=A.value),B}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,t,r,B){var n=this;if(r){var s=r.content,i=t.ownerDocument;if(!(!i||!s||s==="none"||s==="-moz-alt-content"||r.display==="none")){this.counters.parse(new Lt(this.context,r));var a=new mi(this.context,r),o=i.createElement("html2canvaspseudoelement");Ir(r,o),a.content.forEach(function(g){if(g.type===0)o.appendChild(i.createTextNode(g.value));else if(g.type===22){var w=i.createElement("img");w.src=g.value,w.style.opacity="1",o.appendChild(w)}else if(g.type===18){if(g.name==="attr"){var f=g.values.filter(D);f.length&&o.appendChild(i.createTextNode(A.getAttribute(f[0].value)||""))}else if(g.name==="counter"){var c=g.values.filter(PA),C=c[0],H=c[1];if(C&&D(C)){var h=n.counters.getCounterValue(C.value),F=H&&D(H)?_r.parse(n.context,H.value):3;o.appendChild(i.createTextNode(we(h,F,!1)))}}else if(g.name==="counters"){var K=g.values.filter(PA),C=K[0],p=K[1],H=K[2];if(C&&D(C)){var d=n.counters.getCounterValues(C.value),l=H&&D(H)?_r.parse(n.context,H.value):3,v=p&&p.type===0?p.value:"",y=d.map(function(k){return we(k,l,!1)}).join(v);o.appendChild(i.createTextNode(y))}}}else if(g.type===20)switch(g.value){case"open-quote":o.appendChild(i.createTextNode(mt(a.quotes,n.quoteDepth++,!0)));break;case"close-quote":o.appendChild(i.createTextNode(mt(a.quotes,--n.quoteDepth,!1)));break;default:o.appendChild(i.createTextNode(g.value))}}),o.className=Zr+" "+qr;var Q=B===oe.BEFORE?" "+Zr:" "+qr;return Ne(t)?t.className.baseValue+=Q:t.className+=Q,o}}},e.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},e}(),oe;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(oe||(oe={}));var Go=function(e,A){var t=e.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=A.width.toString(),t.height=A.height.toString(),t.scrolling="no",t.setAttribute($B,"true"),e.body.appendChild(t),t},Ro=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A})},Vo=function(e){return Promise.all([].slice.call(e.images,0).map(Ro))},No=function(e){return new Promise(function(A,t){var r=e.contentWindow;if(!r)return t("No window assigned for iframe");var B=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval(function(){B.body.childNodes.length>0&&B.readyState==="complete"&&(clearInterval(n),A(e))},50)}})},Xo=["all","d","content"],Ir=function(e,A){for(var t=e.length-1;t>=0;t--){var r=e.item(t);Xo.indexOf(r)===-1&&A.style.setProperty(r,e.getPropertyValue(r))}return A},_o=function(e){var A="";return e&&(A+=""),A},Jo=function(e,A,t){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||t!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,t)},Po=function(e){var A=e[0],t=e[1],r=e[2];A.scrollLeft=t,A.scrollTop=r},ko=":before",Yo=":after",Zr="___html2canvas___pseudoelement_before",qr="___html2canvas___pseudoelement_after",AB=`{ + content: "" !important; + display: none !important; +}`,Wo=function(e){Zo(e,"."+Zr+ko+AB+` + .`+qr+Yo+AB)},Zo=function(e,A){var t=e.ownerDocument;if(t){var r=t.createElement("style");r.textContent=A,e.appendChild(r)}},An=function(){function e(){}return e.getOrigin=function(A){var t=e._link;return t?(t.href=A,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e}(),qo=function(){function e(A,t){this.context=A,this._options=t,this._cache={}}return e.prototype.addImage=function(A){var t=Promise.resolve();return this.has(A)||(yr(A)||AQ(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),t},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return P(this,void 0,void 0,function(){var t,r,B,n,s=this;return _(this,function(i){switch(i.label){case 0:return t=An.isSameOrigin(A),r=!vr(A)&&this._options.useCORS===!0&&N.SUPPORT_CORS_IMAGES&&!t,B=!vr(A)&&!t&&!yr(A)&&typeof this._options.proxy=="string"&&N.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!vr(A)&&!yr(A)&&!B&&!r?[2]:(n=A,B?[4,this.proxy(n)]:[3,2]);case 1:n=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(a,o){var Q=new Image;Q.onload=function(){return a(Q)},Q.onerror=o,(eQ(n)||r)&&(Q.crossOrigin="anonymous"),Q.src=n,Q.complete===!0&&setTimeout(function(){return a(Q)},500),s._options.imageTimeout>0&&setTimeout(function(){return o("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,i.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var B=A.substring(0,256);return new Promise(function(n,s){var i=N.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(a.status===200)if(i==="text")n(a.response);else{var g=new FileReader;g.addEventListener("load",function(){return n(g.result)},!1),g.addEventListener("error",function(w){return s(w)},!1),g.readAsDataURL(a.response)}else s("Failed to proxy resource "+B+" with status code "+a.status)},a.onerror=s;var o=r.indexOf("?")>-1?"&":"?";if(a.open("GET",""+r+o+"url="+encodeURIComponent(A)+"&responseType="+i),i!=="text"&&a instanceof XMLHttpRequest&&(a.responseType=i),t._options.imageTimeout){var Q=t._options.imageTimeout;a.timeout=Q,a.ontimeout=function(){return s("Timed out ("+Q+"ms) proxying "+B)}}a.send()})},e}(),jo=/^data:image\/svg\+xml/i,zo=/^data:image\/.*;base64,/i,$o=/^data:image\/.*/i,AQ=function(e){return N.SUPPORT_SVG_DRAWING||!rQ(e)},vr=function(e){return $o.test(e)},eQ=function(e){return zo.test(e)},yr=function(e){return e.substr(0,4)==="blob"},rQ=function(e){return e.substr(-3).toLowerCase()==="svg"||jo.test(e)},u=function(){function e(A,t){this.type=0,this.x=A,this.y=t}return e.prototype.add=function(A,t){return new e(this.x+A,this.y+t)},e}(),RA=function(e,A,t){return new u(e.x+(A.x-e.x)*t,e.y+(A.y-e.y)*t)},Te=function(){function e(A,t,r,B){this.type=1,this.start=A,this.startControl=t,this.endControl=r,this.end=B}return e.prototype.subdivide=function(A,t){var r=RA(this.start,this.startControl,A),B=RA(this.startControl,this.endControl,A),n=RA(this.endControl,this.end,A),s=RA(r,B,A),i=RA(B,n,A),a=RA(s,i,A);return t?new e(this.start,r,s,a):new e(a,i,n,this.end)},e.prototype.add=function(A,t){return new e(this.start.add(A,t),this.startControl.add(A,t),this.endControl.add(A,t),this.end.add(A,t))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),$=function(e){return e.type===1},tQ=function(){function e(A){var t=A.styles,r=A.bounds,B=re(t.borderTopLeftRadius,r.width,r.height),n=B[0],s=B[1],i=re(t.borderTopRightRadius,r.width,r.height),a=i[0],o=i[1],Q=re(t.borderBottomRightRadius,r.width,r.height),g=Q[0],w=Q[1],f=re(t.borderBottomLeftRadius,r.width,r.height),c=f[0],C=f[1],H=[];H.push((n+a)/r.width),H.push((c+g)/r.width),H.push((s+C)/r.height),H.push((o+w)/r.height);var h=Math.max.apply(Math,H);h>1&&(n/=h,s/=h,a/=h,o/=h,g/=h,w/=h,c/=h,C/=h);var F=r.width-a,K=r.height-w,p=r.width-g,d=r.height-C,l=t.borderTopWidth,v=t.borderRightWidth,y=t.borderBottomWidth,E=t.borderLeftWidth,O=b(t.paddingTop,A.bounds.width),k=b(t.paddingRight,A.bounds.width),q=b(t.paddingBottom,A.bounds.width),L=b(t.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||s>0?x(r.left+E/3,r.top+l/3,n-E/3,s-l/3,m.TOP_LEFT):new u(r.left+E/3,r.top+l/3),this.topRightBorderDoubleOuterBox=n>0||s>0?x(r.left+F,r.top+l/3,a-v/3,o-l/3,m.TOP_RIGHT):new u(r.left+r.width-v/3,r.top+l/3),this.bottomRightBorderDoubleOuterBox=g>0||w>0?x(r.left+p,r.top+K,g-v/3,w-y/3,m.BOTTOM_RIGHT):new u(r.left+r.width-v/3,r.top+r.height-y/3),this.bottomLeftBorderDoubleOuterBox=c>0||C>0?x(r.left+E/3,r.top+d,c-E/3,C-y/3,m.BOTTOM_LEFT):new u(r.left+E/3,r.top+r.height-y/3),this.topLeftBorderDoubleInnerBox=n>0||s>0?x(r.left+E*2/3,r.top+l*2/3,n-E*2/3,s-l*2/3,m.TOP_LEFT):new u(r.left+E*2/3,r.top+l*2/3),this.topRightBorderDoubleInnerBox=n>0||s>0?x(r.left+F,r.top+l*2/3,a-v*2/3,o-l*2/3,m.TOP_RIGHT):new u(r.left+r.width-v*2/3,r.top+l*2/3),this.bottomRightBorderDoubleInnerBox=g>0||w>0?x(r.left+p,r.top+K,g-v*2/3,w-y*2/3,m.BOTTOM_RIGHT):new u(r.left+r.width-v*2/3,r.top+r.height-y*2/3),this.bottomLeftBorderDoubleInnerBox=c>0||C>0?x(r.left+E*2/3,r.top+d,c-E*2/3,C-y*2/3,m.BOTTOM_LEFT):new u(r.left+E*2/3,r.top+r.height-y*2/3),this.topLeftBorderStroke=n>0||s>0?x(r.left+E/2,r.top+l/2,n-E/2,s-l/2,m.TOP_LEFT):new u(r.left+E/2,r.top+l/2),this.topRightBorderStroke=n>0||s>0?x(r.left+F,r.top+l/2,a-v/2,o-l/2,m.TOP_RIGHT):new u(r.left+r.width-v/2,r.top+l/2),this.bottomRightBorderStroke=g>0||w>0?x(r.left+p,r.top+K,g-v/2,w-y/2,m.BOTTOM_RIGHT):new u(r.left+r.width-v/2,r.top+r.height-y/2),this.bottomLeftBorderStroke=c>0||C>0?x(r.left+E/2,r.top+d,c-E/2,C-y/2,m.BOTTOM_LEFT):new u(r.left+E/2,r.top+r.height-y/2),this.topLeftBorderBox=n>0||s>0?x(r.left,r.top,n,s,m.TOP_LEFT):new u(r.left,r.top),this.topRightBorderBox=a>0||o>0?x(r.left+F,r.top,a,o,m.TOP_RIGHT):new u(r.left+r.width,r.top),this.bottomRightBorderBox=g>0||w>0?x(r.left+p,r.top+K,g,w,m.BOTTOM_RIGHT):new u(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=c>0||C>0?x(r.left,r.top+d,c,C,m.BOTTOM_LEFT):new u(r.left,r.top+r.height),this.topLeftPaddingBox=n>0||s>0?x(r.left+E,r.top+l,Math.max(0,n-E),Math.max(0,s-l),m.TOP_LEFT):new u(r.left+E,r.top+l),this.topRightPaddingBox=a>0||o>0?x(r.left+Math.min(F,r.width-v),r.top+l,F>r.width+v?0:Math.max(0,a-v),Math.max(0,o-l),m.TOP_RIGHT):new u(r.left+r.width-v,r.top+l),this.bottomRightPaddingBox=g>0||w>0?x(r.left+Math.min(p,r.width-E),r.top+Math.min(K,r.height-y),Math.max(0,g-v),Math.max(0,w-y),m.BOTTOM_RIGHT):new u(r.left+r.width-v,r.top+r.height-y),this.bottomLeftPaddingBox=c>0||C>0?x(r.left+E,r.top+Math.min(d,r.height-y),Math.max(0,c-E),Math.max(0,C-y),m.BOTTOM_LEFT):new u(r.left+E,r.top+r.height-y),this.topLeftContentBox=n>0||s>0?x(r.left+E+L,r.top+l+O,Math.max(0,n-(E+L)),Math.max(0,s-(l+O)),m.TOP_LEFT):new u(r.left+E+L,r.top+l+O),this.topRightContentBox=a>0||o>0?x(r.left+Math.min(F,r.width+E+L),r.top+l+O,F>r.width+E+L?0:a-E+L,o-(l+O),m.TOP_RIGHT):new u(r.left+r.width-(v+k),r.top+l+O),this.bottomRightContentBox=g>0||w>0?x(r.left+Math.min(p,r.width-(E+L)),r.top+Math.min(K,r.height+l+O),Math.max(0,g-(v+k)),w-(y+q),m.BOTTOM_RIGHT):new u(r.left+r.width-(v+k),r.top+r.height-(y+q)),this.bottomLeftContentBox=c>0||C>0?x(r.left+E+L,r.top+d,Math.max(0,c-(E+L)),C-(y+q),m.BOTTOM_LEFT):new u(r.left+E+L,r.top+r.height-(y+q))}return e}(),m;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(m||(m={}));var x=function(e,A,t,r,B){var n=4*((Math.sqrt(2)-1)/3),s=t*n,i=r*n,a=e+t,o=A+r;switch(B){case m.TOP_LEFT:return new Te(new u(e,o),new u(e,o-i),new u(a-s,A),new u(a,A));case m.TOP_RIGHT:return new Te(new u(e,A),new u(e+s,A),new u(a,o-i),new u(a,o));case m.BOTTOM_RIGHT:return new Te(new u(a,A),new u(a,A+i),new u(e+s,o),new u(e,o));case m.BOTTOM_LEFT:default:return new Te(new u(a,o),new u(a-s,o),new u(e,A+i),new u(e,A))}},Ze=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},BQ=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},qe=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},nQ=function(){function e(A,t,r){this.offsetX=A,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return e}(),Se=function(){function e(A,t){this.path=A,this.target=t,this.type=1}return e}(),sQ=function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e}(),aQ=function(e){return e.type===0},en=function(e){return e.type===1},iQ=function(e){return e.type===2},eB=function(e,A){return e.length===A.length?e.some(function(t,r){return t===A[r]}):!1},oQ=function(e,A,t,r,B){return e.map(function(n,s){switch(s){case 0:return n.add(A,t);case 1:return n.add(A+r,t);case 2:return n.add(A+r,t+B);case 3:return n.add(A,t+B)}return n})},rn=function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),tn=function(){function e(A,t){if(this.container=A,this.parent=t,this.effects=[],this.curves=new tQ(this.container),this.container.styles.opacity<1&&this.effects.push(new sQ(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,B=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new nQ(r,B,n))}if(this.container.styles.overflowX!==0){var s=Ze(this.curves),i=qe(this.curves);eB(s,i)?this.effects.push(new Se(s,6)):(this.effects.push(new Se(s,2)),this.effects.push(new Se(i,4)))}}return e.prototype.getEffects=function(A){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,B=this.effects.slice(0);r;){var n=r.effects.filter(function(a){return!en(a)});if(t||r.container.styles.position!==0||!r.parent){if(B.unshift.apply(B,n),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=Ze(r.curves),i=qe(r.curves);eB(s,i)||B.unshift(new Se(i,6))}}else B.unshift.apply(B,n);r=r.parent}return B.filter(function(a){return G(a.target,A)})},e}(),jr=function(e,A,t,r){e.container.elements.forEach(function(B){var n=G(B.flags,4),s=G(B.flags,2),i=new tn(B,e);G(B.styles.display,2048)&&r.push(i);var a=G(B.flags,8)?[]:r;if(n||s){var o=n||B.styles.isPositioned()?t:A,Q=new rn(i);if(B.styles.isPositioned()||B.styles.opacity<1||B.styles.isTransformed()){var g=B.styles.zIndex.order;if(g<0){var w=0;o.negativeZIndex.some(function(c,C){return g>c.element.container.styles.zIndex.order?(w=C,!1):w>0}),o.negativeZIndex.splice(w,0,Q)}else if(g>0){var f=0;o.positiveZIndex.some(function(c,C){return g>=c.element.container.styles.zIndex.order?(f=C+1,!1):f>0}),o.positiveZIndex.splice(f,0,Q)}else o.zeroOrAutoZIndexOrTransformedOrOpacity.push(Q)}else B.styles.isFloating()?o.nonPositionedFloats.push(Q):o.nonPositionedInlineLevel.push(Q);jr(i,Q,n?Q:t,a)}else B.styles.isInlineLevel()?A.inlineLevel.push(i):A.nonInlineLevel.push(i),jr(i,A,t,a);G(B.flags,8)&&Bn(B,a)})},Bn=function(e,A){for(var t=e instanceof kr?e.start:1,r=e instanceof kr?e.reversed:!1,B=0;B"u"?e[0]:t},fQ=function(e,A,t,r,B){var n=A[0],s=A[1],i=t[0],a=t[1];switch(e){case 2:return[new u(Math.round(r.left),Math.round(r.top+s)),new u(Math.round(r.left+r.width),Math.round(r.top+s)),new u(Math.round(r.left+r.width),Math.round(a+r.top+s)),new u(Math.round(r.left),Math.round(a+r.top+s))];case 3:return[new u(Math.round(r.left+n),Math.round(r.top)),new u(Math.round(r.left+n+i),Math.round(r.top)),new u(Math.round(r.left+n+i),Math.round(r.height+r.top)),new u(Math.round(r.left+n),Math.round(r.height+r.top))];case 1:return[new u(Math.round(r.left+n),Math.round(r.top+s)),new u(Math.round(r.left+n+i),Math.round(r.top+s)),new u(Math.round(r.left+n+i),Math.round(r.top+s+a)),new u(Math.round(r.left+n),Math.round(r.top+s+a))];default:return[new u(Math.round(B.left),Math.round(B.top)),new u(Math.round(B.left+B.width),Math.round(B.top)),new u(Math.round(B.left+B.width),Math.round(B.height+B.top)),new u(Math.round(B.left),Math.round(B.height+B.top))]}},UQ="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",tB="Hidden Text",FQ=function(){function e(A){this._data={},this._document=A}return e.prototype.parseMetrics=function(A,t){var r=this._document.createElement("div"),B=this._document.createElement("img"),n=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=A,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),B.src=UQ,B.width=1,B.height=1,B.style.margin="0",B.style.padding="0",B.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(tB)),r.appendChild(n),r.appendChild(B);var i=B.offsetTop-n.offsetTop+2;r.removeChild(n),r.appendChild(this._document.createTextNode(tB)),r.style.lineHeight="normal",B.style.verticalAlign="super";var a=B.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:i,middle:a}},e.prototype.getMetrics=function(A,t){var r=A+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(A,t)),this._data[r]},e}(),sn=function(){function e(A,t){this.context=A,this.options=t}return e}(),hQ=1e4,dQ=function(e){tA(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B._activeEffects=[],B.canvas=r.canvas?r.canvas:document.createElement("canvas"),B.ctx=B.canvas.getContext("2d"),r.canvas||(B.canvas.width=Math.floor(r.width*r.scale),B.canvas.height=Math.floor(r.height*r.scale),B.canvas.style.width=r.width+"px",B.canvas.style.height=r.height+"px"),B.fontMetrics=new FQ(document),B.ctx.scale(B.options.scale,B.options.scale),B.ctx.translate(-r.x,-r.y),B.ctx.textBaseline="bottom",B._activeEffects=[],B.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),B}return A.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(B){return r.applyEffect(B)})},A.prototype.applyEffect=function(t){this.ctx.save(),iQ(t)&&(this.ctx.globalAlpha=t.opacity),aQ(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),en(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(t){return P(this,void 0,void 0,function(){var r;return _(this,function(B){switch(B.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:B.sent(),B.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(t){return P(this,void 0,void 0,function(){return _(this,function(r){switch(r.label){case 0:if(G(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(t,r,B){var n=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+B);else{var s=rt(t.text);s.reduce(function(i,a){return n.ctx.fillText(a,i,t.bounds.top+B),i+n.ctx.measureText(a).width},t.bounds.left)}},A.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),B=vQ(t.fontFamily).join(", "),n=Ce(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,n,B].join(" "),B,n]},A.prototype.renderTextNode=function(t,r){return P(this,void 0,void 0,function(){var B,n,s,i,a,o,Q,g,w=this;return _(this,function(f){return B=this.createFontStyle(r),n=B[0],s=B[1],i=B[2],this.ctx.font=n,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(s,i),o=a.baseline,Q=a.middle,g=r.paintOrder,t.textBounds.forEach(function(c){g.forEach(function(C){switch(C){case 0:w.ctx.fillStyle=R(r.color),w.renderTextWithLetterSpacing(c,r.letterSpacing,o);var H=r.textShadow;H.length&&c.text.trim().length&&(H.slice(0).reverse().forEach(function(h){w.ctx.shadowColor=R(h.color),w.ctx.shadowOffsetX=h.offsetX.number*w.options.scale,w.ctx.shadowOffsetY=h.offsetY.number*w.options.scale,w.ctx.shadowBlur=h.blur.number,w.renderTextWithLetterSpacing(c,r.letterSpacing,o)}),w.ctx.shadowColor="",w.ctx.shadowOffsetX=0,w.ctx.shadowOffsetY=0,w.ctx.shadowBlur=0),r.textDecorationLine.length&&(w.ctx.fillStyle=R(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(h){switch(h){case 1:w.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top+o),c.bounds.width,1);break;case 2:w.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top),c.bounds.width,1);break;case 3:w.ctx.fillRect(c.bounds.left,Math.ceil(c.bounds.top+Q),c.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&c.text.trim().length&&(w.ctx.strokeStyle=R(r.webkitTextStrokeColor),w.ctx.lineWidth=r.webkitTextStrokeWidth,w.ctx.lineJoin=window.chrome?"miter":"round",w.ctx.strokeText(c.text,c.bounds.left,c.bounds.top+o)),w.ctx.strokeStyle="",w.ctx.lineWidth=0,w.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(t,r,B){if(B&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var n=je(t),s=qe(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(B,0,0,t.intrinsicWidth,t.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(t){return P(this,void 0,void 0,function(){var r,B,n,s,i,a,F,F,o,Q,g,w,p,f,c,d,C,H,h,F,K,p,d;return _(this,function(l){switch(l.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,B=t.curves,n=r.styles,s=0,i=r.textNodes,l.label=1;case 1:return s0&&V>0&&(y=n.ctx.createPattern(d,"repeat"),n.renderRepeat(O,y,Y,W))):aa(Q)&&(E=Kr(t,r,[null,null,null]),O=E[0],k=E[1],q=E[2],L=E[3],V=E[4],CA=Q.position.length===0?[$r]:Q.position,Y=b(CA[0],L),W=b(CA[CA.length-1],V),IA=ra(Q,Y,W,L,V),BA=IA[0],uA=IA[1],BA>0&&uA>0&&(vA=n.ctx.createRadialGradient(k+Y,q+W,0,k+Y,q+W,BA),It(Q.stops,BA*2).forEach(function(YA){return vA.addColorStop(YA.stop,R(YA.color))}),n.path(O),n.ctx.fillStyle=vA,BA!==uA?(yA=t.bounds.left+.5*t.bounds.width,iA=t.bounds.top+.5*t.bounds.height,KA=uA/BA,oA=1/KA,n.ctx.save(),n.ctx.translate(yA,iA),n.ctx.transform(1,0,0,KA,0,0),n.ctx.translate(-yA,-iA),n.ctx.fillRect(k,oA*(q-iA)+iA,L,V*oA),n.ctx.restore()):n.ctx.fill())),TA.label=6;case 6:return r--,[2]}})},n=this,s=0,i=t.styles.backgroundImage.slice(0).reverse(),o.label=1;case 1:return s0?Q.style!==2?[3,5]:[4,this.renderDashedDottedBorder(Q.color,Q.width,i,t.curves,2)]:[3,11]):[3,13];case 4:return w.sent(),[3,11];case 5:return Q.style!==3?[3,7]:[4,this.renderDashedDottedBorder(Q.color,Q.width,i,t.curves,3)];case 6:return w.sent(),[3,11];case 7:return Q.style!==4?[3,9]:[4,this.renderDoubleBorder(Q.color,Q.width,i,t.curves)];case 8:return w.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Q.color,i,t.curves)];case 10:w.sent(),w.label=11;case 11:i++,w.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(t,r,B,n,s){return P(this,void 0,void 0,function(){var i,a,o,Q,g,w,f,c,C,H,h,F,K,p,d,l,d,l;return _(this,function(v){return this.ctx.save(),i=cQ(n,B),a=rB(n,B),s===2&&(this.path(a),this.ctx.clip()),$(a[0])?(o=a[0].start.x,Q=a[0].start.y):(o=a[0].x,Q=a[0].y),$(a[1])?(g=a[1].end.x,w=a[1].end.y):(g=a[1].x,w=a[1].y),B===0||B===2?f=Math.abs(o-g):f=Math.abs(Q-w),this.ctx.beginPath(),s===3?this.formatPath(i):this.formatPath(a.slice(0,2)),c=r<3?r*3:r*2,C=r<3?r*2:r,s===3&&(c=r,C=r),H=!0,f<=c*2?H=!1:f<=c*2+C?(h=f/(2*c+C),c*=h,C*=h):(F=Math.floor((f+C)/(c+C)),K=(f-F*c)/(F-1),p=(f-(F+1)*c)/F,C=p<=0||Math.abs(C-K)o[i]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const r of a.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&o(r)}).observe(document,{childList:!0,subtree:!0});function s(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(i){if(i.ep)return;i.ep=!0;const a=s(i);fetch(i.href,a)}})();var Z0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ml(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function fK(n){if(n.__esModule)return n;var t=n.default;if(typeof t=="function"){var s=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(n).forEach(function(o){var i=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(s,o,i.get?i:{enumerable:!0,get:function(){return n[o]}})}),s}var hK={exports:{}},vO={},pK={exports:{}},Kc={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var hA=Symbol.for("react.element"),Oie=Symbol.for("react.portal"),Iie=Symbol.for("react.fragment"),Rie=Symbol.for("react.strict_mode"),Pie=Symbol.for("react.profiler"),$ie=Symbol.for("react.provider"),kie=Symbol.for("react.context"),Die=Symbol.for("react.forward_ref"),Mie=Symbol.for("react.suspense"),jie=Symbol.for("react.memo"),Fie=Symbol.for("react.lazy"),fF=Symbol.iterator;function Uie(n){return n===null||typeof n!="object"?null:(n=fF&&n[fF]||n["@@iterator"],typeof n=="function"?n:null)}var mK={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gK=Object.assign,vK={};function UL(n,t,s){this.props=n,this.context=t,this.refs=vK,this.updater=s||mK}UL.prototype.isReactComponent={};UL.prototype.setState=function(n,t){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,t,"setState")};UL.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function bK(){}bK.prototype=UL.prototype;function Qk(n,t,s){this.props=n,this.context=t,this.refs=vK,this.updater=s||mK}var e8=Qk.prototype=new bK;e8.constructor=Qk;gK(e8,UL.prototype);e8.isPureReactComponent=!0;var hF=Array.isArray,yK=Object.prototype.hasOwnProperty,t8={current:null},CK={key:!0,ref:!0,__self:!0,__source:!0};function wK(n,t,s){var o,i={},a=null,r=null;if(t!=null)for(o in t.ref!==void 0&&(r=t.ref),t.key!==void 0&&(a=""+t.key),t)yK.call(t,o)&&!CK.hasOwnProperty(o)&&(i[o]=t[o]);var c=arguments.length-2;if(c===1)i.children=s;else if(1>>1,Rt=$n[dr];if(0>>1;dri(Yn,Mn))iri(br,Yn)?($n[dr]=br,$n[ir]=Mn,dr=ir):($n[dr]=Yn,$n[Pn]=Mn,dr=Pn);else if(iri(br,Mn))$n[dr]=br,$n[ir]=Mn,dr=ir;else break e}}return hr}function i($n,hr){var Mn=$n.sortIndex-hr.sortIndex;return Mn!==0?Mn:$n.id-hr.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;n.unstable_now=function(){return a.now()}}else{var r=Date,c=r.now();n.unstable_now=function(){return r.now()-c}}var f=[],e=[],E=1,_=null,R=3,D=!1,J=!1,re=!1,ie=typeof setTimeout=="function"?setTimeout:null,ae=typeof clearTimeout=="function"?clearTimeout:null,de=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ye($n){for(var hr=s(e);hr!==null;){if(hr.callback===null)o(e);else if(hr.startTime<=$n)o(e),hr.sortIndex=hr.expirationTime,t(f,hr);else break;hr=s(e)}}function Fe($n){if(re=!1,ye($n),!J)if(s(f)!==null)J=!0,qn(Ge);else{var hr=s(e);hr!==null&&gr(Fe,hr.startTime-$n)}}function Ge($n,hr){J=!1,re&&(re=!1,ae(yt),yt=-1),D=!0;var Mn=R;try{for(ye(hr),_=s(f);_!==null&&(!(_.expirationTime>hr)||$n&&!Nt());){var dr=_.callback;if(typeof dr=="function"){_.callback=null,R=_.priorityLevel;var Rt=dr(_.expirationTime<=hr);hr=n.unstable_now(),typeof Rt=="function"?_.callback=Rt:_===s(f)&&o(f),ye(hr)}else o(f);_=s(f)}if(_!==null)var mn=!0;else{var Pn=s(e);Pn!==null&&gr(Fe,Pn.startTime-hr),mn=!1}return mn}finally{_=null,R=Mn,D=!1}}var tt=!1,ht=null,yt=-1,Ft=5,Zt=-1;function Nt(){return!(n.unstable_now()-Zt$n||125<$n?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ft=0<$n?Math.floor(1e3/$n):5},n.unstable_getCurrentPriorityLevel=function(){return R},n.unstable_getFirstCallbackNode=function(){return s(f)},n.unstable_next=function($n){switch(R){case 1:case 2:case 3:var hr=3;break;default:hr=R}var Mn=R;R=hr;try{return $n()}finally{R=Mn}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function($n,hr){switch($n){case 1:case 2:case 3:case 4:case 5:break;default:$n=3}var Mn=R;R=$n;try{return hr()}finally{R=Mn}},n.unstable_scheduleCallback=function($n,hr,Mn){var dr=n.unstable_now();switch(typeof Mn=="object"&&Mn!==null?(Mn=Mn.delay,Mn=typeof Mn=="number"&&0dr?($n.sortIndex=Mn,t(e,$n),s(f)===null&&$n===s(e)&&(re?(ae(yt),yt=-1):re=!0,gr(Fe,Mn-dr))):($n.sortIndex=Rt,t(f,$n),J||D||(J=!0,qn(Ge))),$n},n.unstable_shouldYield=Nt,n.unstable_wrapCallback=function($n){var hr=R;return function(){var Mn=R;R=hr;try{return $n.apply(this,arguments)}finally{R=Mn}}}})(xK);SK.exports=xK;var Jie=SK.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var AK=lt,Fv=Jie;function Io(n){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+n,s=1;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),T7=Object.prototype.hasOwnProperty,Qie=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,mF={},gF={};function eae(n){return T7.call(gF,n)?!0:T7.call(mF,n)?!1:Qie.test(n)?gF[n]=!0:(mF[n]=!0,!1)}function tae(n,t,s,o){if(s!==null&&s.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:s!==null?!s.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function nae(n,t,s,o){if(t===null||typeof t>"u"||tae(n,t,s,o))return!0;if(o)return!1;if(s!==null)switch(s.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function rv(n,t,s,o,i,a,r){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=s,this.propertyName=n,this.type=t,this.sanitizeURL=a,this.removeEmptyString=r}var lg={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){lg[n]=new rv(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var t=n[0];lg[t]=new rv(t,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){lg[n]=new rv(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){lg[n]=new rv(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){lg[n]=new rv(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){lg[n]=new rv(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){lg[n]=new rv(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){lg[n]=new rv(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){lg[n]=new rv(n,5,!1,n.toLowerCase(),null,!1,!1)});var r8=/[\-:]([a-z])/g;function s8(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var t=n.replace(r8,s8);lg[t]=new rv(t,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var t=n.replace(r8,s8);lg[t]=new rv(t,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var t=n.replace(r8,s8);lg[t]=new rv(t,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){lg[n]=new rv(n,1,!1,n.toLowerCase(),null,!1,!1)});lg.xlinkHref=new rv("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){lg[n]=new rv(n,1,!1,n.toLowerCase(),null,!0,!0)});function o8(n,t,s,o){var i=lg.hasOwnProperty(t)?lg[t]:null;(i!==null?i.type!==0:o||!(2c||i[r]!==a[c]){var f=` +`+i[r].replace(" at new "," at ");return n.displayName&&f.includes("")&&(f=f.replace("",n.displayName)),f}while(1<=r&&0<=c);break}}}finally{JI=!1,Error.prepareStackTrace=s}return(n=n?n.displayName||n.name:"")?cx(n):""}function rae(n){switch(n.tag){case 5:return cx(n.type);case 16:return cx("Lazy");case 13:return cx("Suspense");case 19:return cx("SuspenseList");case 0:case 2:case 15:return n=QI(n.type,!1),n;case 11:return n=QI(n.type.render,!1),n;case 1:return n=QI(n.type,!0),n;default:return""}}function R7(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case mE:return"Fragment";case pE:return"Portal";case N7:return"Profiler";case i8:return"StrictMode";case O7:return"Suspense";case I7:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case NK:return(n.displayName||"Context")+".Consumer";case TK:return(n._context.displayName||"Context")+".Provider";case a8:var t=n.render;return n=n.displayName,n||(n=t.displayName||t.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case l8:return t=n.displayName||null,t!==null?t:R7(n.type)||"Memo";case Ky:t=n._payload,n=n._init;try{return R7(n(t))}catch{}}return null}function sae(n){var t=n.type;switch(n.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=t.render,n=n.displayName||n.name||"",t.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return R7(t);case 8:return t===i8?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function jC(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function IK(n){var t=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oae(n){var t=IK(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,t),o=""+n[t];if(!n.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var i=s.get,a=s.set;return Object.defineProperty(n,t,{configurable:!0,get:function(){return i.call(this)},set:function(r){o=""+r,a.call(this,r)}}),Object.defineProperty(n,t,{enumerable:s.enumerable}),{getValue:function(){return o},setValue:function(r){o=""+r},stopTracking:function(){n._valueTracker=null,delete n[t]}}}}function x_(n){n._valueTracker||(n._valueTracker=oae(n))}function RK(n){if(!n)return!1;var t=n._valueTracker;if(!t)return!0;var s=t.getValue(),o="";return n&&(o=IK(n)?n.checked?"true":"false":n.value),n=o,n!==s?(t.setValue(n),!0):!1}function AN(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function P7(n,t){var s=t.checked;return _0({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??n._wrapperState.initialChecked})}function bF(n,t){var s=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;s=jC(t.value!=null?t.value:s),n._wrapperState={initialChecked:o,initialValue:s,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function PK(n,t){t=t.checked,t!=null&&o8(n,"checked",t,!1)}function $7(n,t){PK(n,t);var s=jC(t.value),o=t.type;if(s!=null)o==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+s):n.value!==""+s&&(n.value=""+s);else if(o==="submit"||o==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?k7(n,t.type,s):t.hasOwnProperty("defaultValue")&&k7(n,t.type,jC(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function yF(n,t,s){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+n._wrapperState.initialValue,s||t===n.value||(n.value=t),n.defaultValue=t}s=n.name,s!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,s!==""&&(n.name=s)}function k7(n,t,s){(t!=="number"||AN(n.ownerDocument)!==n)&&(s==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+s&&(n.defaultValue=""+s))}var dx=Array.isArray;function BE(n,t,s,o){if(n=n.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=A_.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;t.firstChild;)n.appendChild(t.firstChild)}});function f5(n,t){if(t){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=t;return}}n.textContent=t}var Sx={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iae=["Webkit","ms","Moz","O"];Object.keys(Sx).forEach(function(n){iae.forEach(function(t){t=t+n.charAt(0).toUpperCase()+n.substring(1),Sx[t]=Sx[n]})});function MK(n,t,s){return t==null||typeof t=="boolean"||t===""?"":s||typeof t!="number"||t===0||Sx.hasOwnProperty(n)&&Sx[n]?(""+t).trim():t+"px"}function jK(n,t){n=n.style;for(var s in t)if(t.hasOwnProperty(s)){var o=s.indexOf("--")===0,i=MK(s,t[s],o);s==="float"&&(s="cssFloat"),o?n.setProperty(s,i):n[s]=i}}var aae=_0({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function j7(n,t){if(t){if(aae[n]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Io(137,n));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Io(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Io(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Io(62))}}function F7(n,t){if(n.indexOf("-")===-1)return typeof t.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var U7=null;function u8(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var B7=null,zE=null,HE=null;function EF(n){if(n=gA(n)){if(typeof B7!="function")throw Error(Io(280));var t=n.stateNode;t&&(t=EO(t),B7(n.stateNode,n.type,t))}}function FK(n){zE?HE?HE.push(n):HE=[n]:zE=n}function UK(){if(zE){var n=zE,t=HE;if(HE=zE=null,EF(n),t)for(n=0;n>>=0,n===0?32:31-(bae(n)/yae|0)|0}var __=64,T_=4194304;function fx(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function ON(n,t){var s=n.pendingLanes;if(s===0)return 0;var o=0,i=n.suspendedLanes,a=n.pingedLanes,r=s&268435455;if(r!==0){var c=r&~i;c!==0?o=fx(c):(a&=r,a!==0&&(o=fx(a)))}else r=s&~i,r!==0?o=fx(r):a!==0&&(o=fx(a));if(o===0)return 0;if(t!==0&&t!==o&&!(t&i)&&(i=o&-o,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(o&4&&(o|=s&16),t=n.entangledLanes,t!==0)for(n=n.entanglements,t&=o;0s;s++)t.push(n);return t}function pA(n,t,s){n.pendingLanes|=t,t!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,t=31-M1(t),n[t]=s}function Lae(n,t){var s=n.pendingLanes&~t;n.pendingLanes=t,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=t,n.mutableReadLanes&=t,n.entangledLanes&=t,t=n.entanglements;var o=n.eventTimes;for(n=n.expirationTimes;0=Ax),IF=" ",RF=!1;function iq(n,t){switch(n){case"keyup":return Zae.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aq(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var gE=!1;function Qae(n,t){switch(n){case"compositionend":return aq(t);case"keypress":return t.which!==32?null:(RF=!0,IF);case"textInput":return n=t.data,n===IF&&RF?null:n;default:return null}}function ele(n,t){if(gE)return n==="compositionend"||!v8&&iq(n,t)?(n=sq(),PT=p8=aC=null,gE=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:s,offset:t-n};n=o}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=DF(s)}}function dq(n,t){return n&&t?n===t?!0:n&&n.nodeType===3?!1:t&&t.nodeType===3?dq(n,t.parentNode):"contains"in n?n.contains(t):n.compareDocumentPosition?!!(n.compareDocumentPosition(t)&16):!1:!1}function fq(){for(var n=window,t=AN();t instanceof n.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)n=t.contentWindow;else break;t=AN(n.document)}return t}function b8(n){var t=n&&n.nodeName&&n.nodeName.toLowerCase();return t&&(t==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||t==="textarea"||n.contentEditable==="true")}function ule(n){var t=fq(),s=n.focusedElem,o=n.selectionRange;if(t!==s&&s&&s.ownerDocument&&dq(s.ownerDocument.documentElement,s)){if(o!==null&&b8(s)){if(t=o.start,n=o.end,n===void 0&&(n=t),"selectionStart"in s)s.selectionStart=t,s.selectionEnd=Math.min(n,s.value.length);else if(n=(t=s.ownerDocument||document)&&t.defaultView||window,n.getSelection){n=n.getSelection();var i=s.textContent.length,a=Math.min(o.start,i);o=o.end===void 0?a:Math.min(o.end,i),!n.extend&&a>o&&(i=o,o=a,a=i),i=MF(s,a);var r=MF(s,o);i&&r&&(n.rangeCount!==1||n.anchorNode!==i.node||n.anchorOffset!==i.offset||n.focusNode!==r.node||n.focusOffset!==r.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),n.removeAllRanges(),a>o?(n.addRange(t),n.extend(r.node,r.offset)):(t.setEnd(r.node,r.offset),n.addRange(t)))}}for(t=[],n=s;n=n.parentNode;)n.nodeType===1&&t.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,vE=null,K7=null,Tx=null,q7=!1;function jF(n,t,s){var o=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;q7||vE==null||vE!==AN(o)||(o=vE,"selectionStart"in o&&b8(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Tx&&b5(Tx,o)||(Tx=o,o=PN(K7,"onSelect"),0CE||(n.current=eP[CE],eP[CE]=null,CE--)}function cp(n,t){CE++,eP[CE]=n.current,n.current=t}var FC={},Og=nw(FC),pv=nw(!1),n2=FC;function gL(n,t){var s=n.type.contextTypes;if(!s)return FC;var o=n.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in s)i[a]=t[a];return o&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=t,n.__reactInternalMemoizedMaskedChildContext=i),i}function mv(n){return n=n.childContextTypes,n!=null}function kN(){kp(pv),kp(Og)}function WF(n,t,s){if(Og.current!==FC)throw Error(Io(168));cp(Og,t),cp(pv,s)}function wq(n,t,s){var o=n.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return s;o=o.getChildContext();for(var i in o)if(!(i in t))throw Error(Io(108,sae(n)||"Unknown",i));return _0({},s,o)}function DN(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||FC,n2=Og.current,cp(Og,n),cp(pv,pv.current),!0}function GF(n,t,s){var o=n.stateNode;if(!o)throw Error(Io(169));s?(n=wq(n,t,n2),o.__reactInternalMemoizedMergedChildContext=n,kp(pv),kp(Og),cp(Og,n)):kp(pv),cp(pv,s)}var Wb=null,LO=!1,hR=!1;function Eq(n){Wb===null?Wb=[n]:Wb.push(n)}function wle(n){LO=!0,Eq(n)}function rw(){if(!hR&&Wb!==null){hR=!0;var n=0,t=oh;try{var s=Wb;for(oh=1;n>=r,i-=r,Zb=1<<32-M1(t)+i|s<yt?(Ft=ht,ht=null):Ft=ht.sibling;var Zt=R(ae,ht,ye[yt],Fe);if(Zt===null){ht===null&&(ht=Ft);break}n&&ht&&Zt.alternate===null&&t(ae,ht),de=a(Zt,de,yt),tt===null?Ge=Zt:tt.sibling=Zt,tt=Zt,ht=Ft}if(yt===ye.length)return s(ae,ht),r0&&Ew(ae,yt),Ge;if(ht===null){for(;ytyt?(Ft=ht,ht=null):Ft=ht.sibling;var Nt=R(ae,ht,Zt.value,Fe);if(Nt===null){ht===null&&(ht=Ft);break}n&&ht&&Nt.alternate===null&&t(ae,ht),de=a(Nt,de,yt),tt===null?Ge=Nt:tt.sibling=Nt,tt=Nt,ht=Ft}if(Zt.done)return s(ae,ht),r0&&Ew(ae,yt),Ge;if(ht===null){for(;!Zt.done;yt++,Zt=ye.next())Zt=_(ae,Zt.value,Fe),Zt!==null&&(de=a(Zt,de,yt),tt===null?Ge=Zt:tt.sibling=Zt,tt=Zt);return r0&&Ew(ae,yt),Ge}for(ht=o(ae,ht);!Zt.done;yt++,Zt=ye.next())Zt=D(ht,ae,yt,Zt.value,Fe),Zt!==null&&(n&&Zt.alternate!==null&&ht.delete(Zt.key===null?yt:Zt.key),de=a(Zt,de,yt),tt===null?Ge=Zt:tt.sibling=Zt,tt=Zt);return n&&ht.forEach(function(kt){return t(ae,kt)}),r0&&Ew(ae,yt),Ge}function ie(ae,de,ye,Fe){if(typeof ye=="object"&&ye!==null&&ye.type===mE&&ye.key===null&&(ye=ye.props.children),typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case S_:e:{for(var Ge=ye.key,tt=de;tt!==null;){if(tt.key===Ge){if(Ge=ye.type,Ge===mE){if(tt.tag===7){s(ae,tt.sibling),de=i(tt,ye.props.children),de.return=ae,ae=de;break e}}else if(tt.elementType===Ge||typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===Ky&&QF(Ge)===tt.type){s(ae,tt.sibling),de=i(tt,ye.props),de.ref=FS(ae,tt,ye),de.return=ae,ae=de;break e}s(ae,tt);break}else t(ae,tt);tt=tt.sibling}ye.type===mE?(de=Bw(ye.props.children,ae.mode,Fe,ye.key),de.return=ae,ae=de):(Fe=BT(ye.type,ye.key,ye.props,null,ae.mode,Fe),Fe.ref=FS(ae,de,ye),Fe.return=ae,ae=Fe)}return r(ae);case pE:e:{for(tt=ye.key;de!==null;){if(de.key===tt)if(de.tag===4&&de.stateNode.containerInfo===ye.containerInfo&&de.stateNode.implementation===ye.implementation){s(ae,de.sibling),de=i(de,ye.children||[]),de.return=ae,ae=de;break e}else{s(ae,de);break}else t(ae,de);de=de.sibling}de=wR(ye,ae.mode,Fe),de.return=ae,ae=de}return r(ae);case Ky:return tt=ye._init,ie(ae,de,tt(ye._payload),Fe)}if(dx(ye))return J(ae,de,ye,Fe);if($S(ye))return re(ae,de,ye,Fe);k_(ae,ye)}return typeof ye=="string"&&ye!==""||typeof ye=="number"?(ye=""+ye,de!==null&&de.tag===6?(s(ae,de.sibling),de=i(de,ye),de.return=ae,ae=de):(s(ae,de),de=CR(ye,ae.mode,Fe),de.return=ae,ae=de),r(ae)):s(ae,de)}return ie}var bL=Oq(!0),Iq=Oq(!1),vA={},bb=nw(vA),E5=nw(vA),L5=nw(vA);function $w(n){if(n===vA)throw Error(Io(174));return n}function _8(n,t){switch(cp(L5,t),cp(E5,n),cp(bb,vA),n=t.nodeType,n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:M7(null,"");break;default:n=n===8?t.parentNode:t,t=n.namespaceURI||null,n=n.tagName,t=M7(t,n)}kp(bb),cp(bb,t)}function yL(){kp(bb),kp(E5),kp(L5)}function Rq(n){$w(L5.current);var t=$w(bb.current),s=M7(t,n.type);t!==s&&(cp(E5,n),cp(bb,s))}function T8(n){E5.current===n&&(kp(bb),kp(E5))}var w0=nw(0);function zN(n){for(var t=n;t!==null;){if(t.tag===13){var s=t.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var pR=[];function N8(){for(var n=0;ns?s:4,n(!0);var o=mR.transition;mR.transition={};try{n(!1),t()}finally{oh=s,mR.transition=o}}function qq(){return v1().memoizedState}function xle(n,t,s){var o=TC(n);if(s={lane:o,action:s,hasEagerState:!1,eagerState:null,next:null},Yq(n))Xq(t,s);else if(s=Aq(n,t,s,o),s!==null){var i=Qg();j1(s,n,o,i),Zq(s,t,o)}}function Ale(n,t,s){var o=TC(n),i={lane:o,action:s,hasEagerState:!1,eagerState:null,next:null};if(Yq(n))Xq(t,i);else{var a=n.alternate;if(n.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var r=t.lastRenderedState,c=a(r,s);if(i.hasEagerState=!0,i.eagerState=c,z1(c,r)){var f=t.interleaved;f===null?(i.next=i,x8(t)):(i.next=f.next,f.next=i),t.interleaved=i;return}}catch{}finally{}s=Aq(n,t,i,o),s!==null&&(i=Qg(),j1(s,n,o,i),Zq(s,t,o))}}function Yq(n){var t=n.alternate;return n===x0||t!==null&&t===x0}function Xq(n,t){Nx=HN=!0;var s=n.pending;s===null?t.next=t:(t.next=s.next,s.next=t),n.pending=t}function Zq(n,t,s){if(s&4194240){var o=t.lanes;o&=n.pendingLanes,s|=o,t.lanes=s,d8(n,s)}}var VN={readContext:g1,useCallback:fg,useContext:fg,useEffect:fg,useImperativeHandle:fg,useInsertionEffect:fg,useLayoutEffect:fg,useMemo:fg,useReducer:fg,useRef:fg,useState:fg,useDebugValue:fg,useDeferredValue:fg,useTransition:fg,useMutableSource:fg,useSyncExternalStore:fg,useId:fg,unstable_isNewReconciler:!1},_le={readContext:g1,useCallback:function(n,t){return rb().memoizedState=[n,t===void 0?null:t],n},useContext:g1,useEffect:tU,useImperativeHandle:function(n,t,s){return s=s!=null?s.concat([n]):null,MT(4194308,4,Hq.bind(null,t,n),s)},useLayoutEffect:function(n,t){return MT(4194308,4,n,t)},useInsertionEffect:function(n,t){return MT(4,2,n,t)},useMemo:function(n,t){var s=rb();return t=t===void 0?null:t,n=n(),s.memoizedState=[n,t],n},useReducer:function(n,t,s){var o=rb();return t=s!==void 0?s(t):t,o.memoizedState=o.baseState=t,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:t},o.queue=n,n=n.dispatch=xle.bind(null,x0,n),[o.memoizedState,n]},useRef:function(n){var t=rb();return n={current:n},t.memoizedState=n},useState:eU,useDebugValue:$8,useDeferredValue:function(n){return rb().memoizedState=n},useTransition:function(){var n=eU(!1),t=n[0];return n=Sle.bind(null,n[1]),rb().memoizedState=n,[t,n]},useMutableSource:function(){},useSyncExternalStore:function(n,t,s){var o=x0,i=rb();if(r0){if(s===void 0)throw Error(Io(407));s=s()}else{if(s=t(),Wm===null)throw Error(Io(349));s2&30||kq(o,t,s)}i.memoizedState=s;var a={value:s,getSnapshot:t};return i.queue=a,tU(Mq.bind(null,o,a,n),[n]),o.flags|=2048,A5(9,Dq.bind(null,o,a,s,t),void 0,null),s},useId:function(){var n=rb(),t=Wm.identifierPrefix;if(r0){var s=Jb,o=Zb;s=(o&~(1<<32-M1(o)-1)).toString(32)+s,t=":"+t+"R"+s,s=S5++,0<\/script>",n=n.removeChild(n.firstChild)):typeof o.is=="string"?n=r.createElement(s,{is:o.is}):(n=r.createElement(s),s==="select"&&(r=n,o.multiple?r.multiple=!0:o.size&&(r.size=o.size))):n=r.createElementNS(n,s),n[lb]=t,n[w5]=o,iY(n,t,!1,!1),t.stateNode=n;e:{switch(r=F7(s,o),s){case"dialog":Np("cancel",n),Np("close",n),i=o;break;case"iframe":case"object":case"embed":Np("load",n),i=o;break;case"video":case"audio":for(i=0;iwL&&(t.flags|=128,o=!0,US(a,!1),t.lanes=4194304)}else{if(!o)if(n=zN(r),n!==null){if(t.flags|=128,o=!0,s=n.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),US(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!r0)return hg(t),null}else 2*J0()-a.renderingStartTime>wL&&s!==1073741824&&(t.flags|=128,o=!0,US(a,!1),t.lanes=4194304);a.isBackwards?(r.sibling=t.child,t.child=r):(s=a.last,s!==null?s.sibling=r:t.child=r,a.last=r)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=J0(),t.sibling=null,s=w0.current,cp(w0,o?s&1|2:s&1),t):(hg(t),null);case 22:case 23:return U8(),o=t.memoizedState!==null,n!==null&&n.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?Ov&1073741824&&(hg(t),t.subtreeFlags&6&&(t.flags|=8192)):hg(t),null;case 24:return null;case 25:return null}throw Error(Io(156,t.tag))}function kle(n,t){switch(C8(t),t.tag){case 1:return mv(t.type)&&kN(),n=t.flags,n&65536?(t.flags=n&-65537|128,t):null;case 3:return yL(),kp(pv),kp(Og),N8(),n=t.flags,n&65536&&!(n&128)?(t.flags=n&-65537|128,t):null;case 5:return T8(t),null;case 13:if(kp(w0),n=t.memoizedState,n!==null&&n.dehydrated!==null){if(t.alternate===null)throw Error(Io(340));vL()}return n=t.flags,n&65536?(t.flags=n&-65537|128,t):null;case 19:return kp(w0),null;case 4:return yL(),null;case 10:return S8(t.type._context),null;case 22:case 23:return U8(),null;case 24:return null;default:return null}}var M_=!1,Sg=!1,Dle=typeof WeakSet=="function"?WeakSet:Set,Bi=null;function SE(n,t){var s=n.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(o){D0(n,t,o)}else s.current=null}function fP(n,t,s){try{s()}catch(o){D0(n,t,o)}}var cU=!1;function Mle(n,t){if(Y7=IN,n=fq(),b8(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var o=s.getSelection&&s.getSelection();if(o&&o.rangeCount!==0){s=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{s.nodeType,a.nodeType}catch{s=null;break e}var r=0,c=-1,f=-1,e=0,E=0,_=n,R=null;t:for(;;){for(var D;_!==s||i!==0&&_.nodeType!==3||(c=r+i),_!==a||o!==0&&_.nodeType!==3||(f=r+o),_.nodeType===3&&(r+=_.nodeValue.length),(D=_.firstChild)!==null;)R=_,_=D;for(;;){if(_===n)break t;if(R===s&&++e===i&&(c=r),R===a&&++E===o&&(f=r),(D=_.nextSibling)!==null)break;_=R,R=_.parentNode}_=D}s=c===-1||f===-1?null:{start:c,end:f}}else s=null}s=s||{start:0,end:0}}else s=null;for(X7={focusedElem:n,selectionRange:s},IN=!1,Bi=t;Bi!==null;)if(t=Bi,n=t.child,(t.subtreeFlags&1028)!==0&&n!==null)n.return=t,Bi=n;else for(;Bi!==null;){t=Bi;try{var J=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(J!==null){var re=J.memoizedProps,ie=J.memoizedState,ae=t.stateNode,de=ae.getSnapshotBeforeUpdate(t.elementType===t.type?re:P1(t.type,re),ie);ae.__reactInternalSnapshotBeforeUpdate=de}break;case 3:var ye=t.stateNode.containerInfo;ye.nodeType===1?ye.textContent="":ye.nodeType===9&&ye.documentElement&&ye.removeChild(ye.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Io(163))}}catch(Fe){D0(t,t.return,Fe)}if(n=t.sibling,n!==null){n.return=t.return,Bi=n;break}Bi=t.return}return J=cU,cU=!1,J}function Ox(n,t,s){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var i=o=o.next;do{if((i.tag&n)===n){var a=i.destroy;i.destroy=void 0,a!==void 0&&fP(t,s,a)}i=i.next}while(i!==o)}}function AO(n,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var s=t=t.next;do{if((s.tag&n)===n){var o=s.create;s.destroy=o()}s=s.next}while(s!==t)}}function hP(n){var t=n.ref;if(t!==null){var s=n.stateNode;switch(n.tag){case 5:n=s;break;default:n=s}typeof t=="function"?t(n):t.current=n}}function uY(n){var t=n.alternate;t!==null&&(n.alternate=null,uY(t)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(t=n.stateNode,t!==null&&(delete t[lb],delete t[w5],delete t[Q7],delete t[yle],delete t[Cle])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function cY(n){return n.tag===5||n.tag===3||n.tag===4}function dU(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||cY(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function pP(n,t,s){var o=n.tag;if(o===5||o===6)n=n.stateNode,t?s.nodeType===8?s.parentNode.insertBefore(n,t):s.insertBefore(n,t):(s.nodeType===8?(t=s.parentNode,t.insertBefore(n,s)):(t=s,t.appendChild(n)),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=$N));else if(o!==4&&(n=n.child,n!==null))for(pP(n,t,s),n=n.sibling;n!==null;)pP(n,t,s),n=n.sibling}function mP(n,t,s){var o=n.tag;if(o===5||o===6)n=n.stateNode,t?s.insertBefore(n,t):s.appendChild(n);else if(o!==4&&(n=n.child,n!==null))for(mP(n,t,s),n=n.sibling;n!==null;)mP(n,t,s),n=n.sibling}var eg=null,$1=!1;function Py(n,t,s){for(s=s.child;s!==null;)dY(n,t,s),s=s.sibling}function dY(n,t,s){if(vb&&typeof vb.onCommitFiberUnmount=="function")try{vb.onCommitFiberUnmount(bO,s)}catch{}switch(s.tag){case 5:Sg||SE(s,t);case 6:var o=eg,i=$1;eg=null,Py(n,t,s),eg=o,$1=i,eg!==null&&($1?(n=eg,s=s.stateNode,n.nodeType===8?n.parentNode.removeChild(s):n.removeChild(s)):eg.removeChild(s.stateNode));break;case 18:eg!==null&&($1?(n=eg,s=s.stateNode,n.nodeType===8?fR(n.parentNode,s):n.nodeType===1&&fR(n,s),g5(n)):fR(eg,s.stateNode));break;case 4:o=eg,i=$1,eg=s.stateNode.containerInfo,$1=!0,Py(n,t,s),eg=o,$1=i;break;case 0:case 11:case 14:case 15:if(!Sg&&(o=s.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){i=o=o.next;do{var a=i,r=a.destroy;a=a.tag,r!==void 0&&(a&2||a&4)&&fP(s,t,r),i=i.next}while(i!==o)}Py(n,t,s);break;case 1:if(!Sg&&(SE(s,t),o=s.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=s.memoizedProps,o.state=s.memoizedState,o.componentWillUnmount()}catch(c){D0(s,t,c)}Py(n,t,s);break;case 21:Py(n,t,s);break;case 22:s.mode&1?(Sg=(o=Sg)||s.memoizedState!==null,Py(n,t,s),Sg=o):Py(n,t,s);break;default:Py(n,t,s)}}function fU(n){var t=n.updateQueue;if(t!==null){n.updateQueue=null;var s=n.stateNode;s===null&&(s=n.stateNode=new Dle),t.forEach(function(o){var i=Gle.bind(null,n,o);s.has(o)||(s.add(o),o.then(i,i))})}}function L1(n,t){var s=t.deletions;if(s!==null)for(var o=0;oi&&(i=r),o&=~a}if(o=i,o=J0()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Fle(o/1960))-o,10n?16:n,lC===null)var o=!1;else{if(n=lC,lC=null,KN=0,Ud&6)throw Error(Io(331));var i=Ud;for(Ud|=4,Bi=n.current;Bi!==null;){var a=Bi,r=a.child;if(Bi.flags&16){var c=a.deletions;if(c!==null){for(var f=0;fJ0()-j8?Uw(n,0):M8|=s),gv(n,t)}function yY(n,t){t===0&&(n.mode&1?(t=T_,T_<<=1,!(T_&130023424)&&(T_=4194304)):t=1);var s=Qg();n=my(n,t),n!==null&&(pA(n,t,s),gv(n,s))}function Wle(n){var t=n.memoizedState,s=0;t!==null&&(s=t.retryLane),yY(n,s)}function Gle(n,t){var s=0;switch(n.tag){case 13:var o=n.stateNode,i=n.memoizedState;i!==null&&(s=i.retryLane);break;case 19:o=n.stateNode;break;default:throw Error(Io(314))}o!==null&&o.delete(t),yY(n,s)}var CY;CY=function(n,t,s){if(n!==null)if(n.memoizedProps!==t.pendingProps||pv.current)hv=!0;else{if(!(n.lanes&s)&&!(t.flags&128))return hv=!1,Ple(n,t,s);hv=!!(n.flags&131072)}else hv=!1,r0&&t.flags&1048576&&Lq(t,jN,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;jT(n,t),n=t.pendingProps;var i=gL(t,Og.current);WE(t,s),i=I8(null,t,o,n,i,s);var a=R8();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,mv(o)?(a=!0,DN(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,A8(t),i.updater=SO,t.stateNode=i,i._reactInternals=t,oP(t,o,n,s),t=lP(null,t,o,!0,a,s)):(t.tag=0,r0&&a&&y8(t),Fg(null,t,i,s),t=t.child),t;case 16:o=t.elementType;e:{switch(jT(n,t),n=t.pendingProps,i=o._init,o=i(o._payload),t.type=o,i=t.tag=qle(o),n=P1(o,n),i){case 0:t=aP(null,t,o,n,s);break e;case 1:t=aU(null,t,o,n,s);break e;case 11:t=oU(null,t,o,n,s);break e;case 14:t=iU(null,t,o,P1(o.type,n),s);break e}throw Error(Io(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:P1(o,i),aP(n,t,o,i,s);case 1:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:P1(o,i),aU(n,t,o,i,s);case 3:e:{if(rY(t),n===null)throw Error(Io(387));o=t.pendingProps,a=t.memoizedState,i=a.element,_q(n,t),BN(t,o,null,s);var r=t.memoizedState;if(o=r.element,a.isDehydrated)if(a={element:o,isDehydrated:!1,cache:r.cache,pendingSuspenseBoundaries:r.pendingSuspenseBoundaries,transitions:r.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=CL(Error(Io(423)),t),t=lU(n,t,o,s,i);break e}else if(o!==i){i=CL(Error(Io(424)),t),t=lU(n,t,o,s,i);break e}else for(Rv=xC(t.stateNode.containerInfo.firstChild),$v=t,r0=!0,k1=null,s=Iq(t,null,o,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(vL(),o===i){t=gy(n,t,s);break e}Fg(n,t,o,s)}t=t.child}return t;case 5:return Rq(t),n===null&&nP(t),o=t.type,i=t.pendingProps,a=n!==null?n.memoizedProps:null,r=i.children,Z7(o,i)?r=null:a!==null&&Z7(o,a)&&(t.flags|=32),nY(n,t),Fg(n,t,r,s),t.child;case 6:return n===null&&nP(t),null;case 13:return sY(n,t,s);case 4:return _8(t,t.stateNode.containerInfo),o=t.pendingProps,n===null?t.child=bL(t,null,o,s):Fg(n,t,o,s),t.child;case 11:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:P1(o,i),oU(n,t,o,i,s);case 7:return Fg(n,t,t.pendingProps,s),t.child;case 8:return Fg(n,t,t.pendingProps.children,s),t.child;case 12:return Fg(n,t,t.pendingProps.children,s),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,r=i.value,cp(FN,o._currentValue),o._currentValue=r,a!==null)if(z1(a.value,r)){if(a.children===i.children&&!pv.current){t=gy(n,t,s);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var c=a.dependencies;if(c!==null){r=a.child;for(var f=c.firstContext;f!==null;){if(f.context===o){if(a.tag===1){f=ny(-1,s&-s),f.tag=2;var e=a.updateQueue;if(e!==null){e=e.shared;var E=e.pending;E===null?f.next=f:(f.next=E.next,E.next=f),e.pending=f}}a.lanes|=s,f=a.alternate,f!==null&&(f.lanes|=s),rP(a.return,s,t),c.lanes|=s;break}f=f.next}}else if(a.tag===10)r=a.type===t.type?null:a.child;else if(a.tag===18){if(r=a.return,r===null)throw Error(Io(341));r.lanes|=s,c=r.alternate,c!==null&&(c.lanes|=s),rP(r,s,t),r=a.sibling}else r=a.child;if(r!==null)r.return=a;else for(r=a;r!==null;){if(r===t){r=null;break}if(a=r.sibling,a!==null){a.return=r.return,r=a;break}r=r.return}a=r}Fg(n,t,i.children,s),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,WE(t,s),i=g1(i),o=o(i),t.flags|=1,Fg(n,t,o,s),t.child;case 14:return o=t.type,i=P1(o,t.pendingProps),i=P1(o.type,i),iU(n,t,o,i,s);case 15:return eY(n,t,t.type,t.pendingProps,s);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:P1(o,i),jT(n,t),t.tag=1,mv(o)?(n=!0,DN(t)):n=!1,WE(t,s),Nq(t,o,i),oP(t,o,i,s),lP(null,t,o,!0,n,s);case 19:return oY(n,t,s);case 22:return tY(n,t,s)}throw Error(Io(156,t.tag))};function wY(n,t){return KK(n,t)}function Kle(n,t,s,o){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function c1(n,t,s,o){return new Kle(n,t,s,o)}function z8(n){return n=n.prototype,!(!n||!n.isReactComponent)}function qle(n){if(typeof n=="function")return z8(n)?1:0;if(n!=null){if(n=n.$$typeof,n===a8)return 11;if(n===l8)return 14}return 2}function NC(n,t){var s=n.alternate;return s===null?(s=c1(n.tag,t,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=t,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&14680064,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,t=n.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s}function BT(n,t,s,o,i,a){var r=2;if(o=n,typeof n=="function")z8(n)&&(r=1);else if(typeof n=="string")r=5;else e:switch(n){case mE:return Bw(s.children,i,a,t);case i8:r=8,i|=8;break;case N7:return n=c1(12,s,t,i|2),n.elementType=N7,n.lanes=a,n;case O7:return n=c1(13,s,t,i),n.elementType=O7,n.lanes=a,n;case I7:return n=c1(19,s,t,i),n.elementType=I7,n.lanes=a,n;case OK:return TO(s,i,a,t);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case TK:r=10;break e;case NK:r=9;break e;case a8:r=11;break e;case l8:r=14;break e;case Ky:r=16,o=null;break e}throw Error(Io(130,n==null?n:typeof n,""))}return t=c1(r,s,t,i),t.elementType=n,t.type=o,t.lanes=a,t}function Bw(n,t,s,o){return n=c1(7,n,o,t),n.lanes=s,n}function TO(n,t,s,o){return n=c1(22,n,o,t),n.elementType=OK,n.lanes=s,n.stateNode={isHidden:!1},n}function CR(n,t,s){return n=c1(6,n,null,t),n.lanes=s,n}function wR(n,t,s){return t=c1(4,n.children!==null?n.children:[],n.key,t),t.lanes=s,t.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},t}function Yle(n,t,s,o,i){this.tag=t,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tR(0),this.expirationTimes=tR(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tR(0),this.identifierPrefix=o,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function H8(n,t,s,o,i,a,r,c,f){return n=new Yle(n,t,s,c,f),t===1?(t=1,a===!0&&(t|=8)):t=0,a=c1(3,null,null,t),n.current=a,a.stateNode=n,a.memoizedState={element:o,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},A8(a),n}function Xle(n,t,s){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xY)}catch(n){console.error(n)}}xY(),LK.exports=Vv;var Gg=LK.exports;const F1=ml(Gg);var CU=Gg;_7.createRoot=CU.createRoot,_7.hydrateRoot=CU.hydrateRoot;function tue(){}var nue=tue;const os=ml(nue);var rue=Array.isArray,qm=rue;const K8=ml(qm);var sue=typeof Z0=="object"&&Z0&&Z0.Object===Object&&Z0,AY=sue,oue=AY,iue=typeof self=="object"&&self&&self.Object===Object&&self,aue=oue||iue||Function("return this")(),G1=aue,lue=G1,uue=lue.Symbol,HL=uue,wU=HL,_Y=Object.prototype,cue=_Y.hasOwnProperty,due=_Y.toString,zS=wU?wU.toStringTag:void 0;function fue(n){var t=cue.call(n,zS),s=n[zS];try{n[zS]=void 0;var o=!0}catch{}var i=due.call(n);return o&&(t?n[zS]=s:delete n[zS]),i}var hue=fue,pue=Object.prototype,mue=pue.toString;function gue(n){return mue.call(n)}var vue=gue,EU=HL,bue=hue,yue=vue,Cue="[object Null]",wue="[object Undefined]",LU=EU?EU.toStringTag:void 0;function Eue(n){return n==null?n===void 0?wue:Cue:LU&&LU in Object(n)?bue(n):yue(n)}var xb=Eue;function Lue(n){return n!=null&&typeof n=="object"}var Gv=Lue,Sue=xb,xue=Gv,Aue="[object Symbol]";function _ue(n){return typeof n=="symbol"||xue(n)&&Sue(n)==Aue}var PO=_ue,Tue=qm,Nue=PO,Oue=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Iue=/^\w*$/;function Rue(n,t){if(Tue(n))return!1;var s=typeof n;return s=="number"||s=="symbol"||s=="boolean"||n==null||Nue(n)?!0:Iue.test(n)||!Oue.test(n)||t!=null&&n in Object(t)}var q8=Rue;function Pue(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}var Cv=Pue;const Bg=ml(Cv);var $ue=xb,kue=Cv,Due="[object AsyncFunction]",Mue="[object Function]",jue="[object GeneratorFunction]",Fue="[object Proxy]";function Uue(n){if(!kue(n))return!1;var t=$ue(n);return t==Mue||t==jue||t==Due||t==Fue}var $O=Uue;const xu=ml($O);var Bue=G1,zue=Bue["__core-js_shared__"],Hue=zue,ER=Hue,SU=function(){var n=/[^.]+$/.exec(ER&&ER.keys&&ER.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function Vue(n){return!!SU&&SU in n}var Wue=Vue,Gue=Function.prototype,Kue=Gue.toString;function que(n){if(n!=null){try{return Kue.call(n)}catch{}try{return n+""}catch{}}return""}var TY=que,Yue=$O,Xue=Wue,Zue=Cv,Jue=TY,Que=/[\\^$.*+?()[\]{}|]/g,ece=/^\[object .+?Constructor\]$/,tce=Function.prototype,nce=Object.prototype,rce=tce.toString,sce=nce.hasOwnProperty,oce=RegExp("^"+rce.call(sce).replace(Que,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ice(n){if(!Zue(n)||Xue(n))return!1;var t=Yue(n)?oce:ece;return t.test(Jue(n))}var ace=ice;function lce(n,t){return n==null?void 0:n[t]}var uce=lce,cce=ace,dce=uce;function fce(n,t){var s=dce(n,t);return cce(s)?s:void 0}var w2=fce,hce=w2,pce=hce(Object,"create"),kO=pce,xU=kO;function mce(){this.__data__=xU?xU(null):{},this.size=0}var gce=mce;function vce(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}var bce=vce,yce=kO,Cce="__lodash_hash_undefined__",wce=Object.prototype,Ece=wce.hasOwnProperty;function Lce(n){var t=this.__data__;if(yce){var s=t[n];return s===Cce?void 0:s}return Ece.call(t,n)?t[n]:void 0}var Sce=Lce,xce=kO,Ace=Object.prototype,_ce=Ace.hasOwnProperty;function Tce(n){var t=this.__data__;return xce?t[n]!==void 0:_ce.call(t,n)}var Nce=Tce,Oce=kO,Ice="__lodash_hash_undefined__";function Rce(n,t){var s=this.__data__;return this.size+=this.has(n)?0:1,s[n]=Oce&&t===void 0?Ice:t,this}var Pce=Rce,$ce=gce,kce=bce,Dce=Sce,Mce=Nce,jce=Pce;function VL(n){var t=-1,s=n==null?0:n.length;for(this.clear();++t-1}var tde=ede,nde=DO;function rde(n,t){var s=this.__data__,o=nde(s,n);return o<0?(++this.size,s.push([n,t])):s[o][1]=t,this}var sde=rde,ode=Bce,ide=Yce,ade=Jce,lde=tde,ude=sde;function WL(n){var t=-1,s=n==null?0:n.length;for(this.clear();++t1?t-1:0),o=1;o0&&arguments[0]!==void 0?arguments[0]:"value";const s=this.getProps();return t in s}_isInProps(t){const s=this.getProps();return t in s}init(t){}destroy(){}log(t){for(var s=arguments.length,o=new Array(s>1?s-1:0),i=1;i(s.substr(0,5)==="data-"&&(t[s]=n[s]),t),{})}const{hasOwnProperty:gfe}=Object.prototype;class Ml extends lt.Component{constructor(t){super(t),this.isControlled=s=>!!(s&&this.props&&typeof this.props=="object"&&gfe.call(this.props,s)),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:t=>{if(this.context&&t)return this.context[t]},getContexts:()=>this.context,getProp:t=>this.props[t],getProps:()=>this.props,getState:t=>this.state[t],getStates:()=>this.state,setState:(t,s)=>this.setState(Object.assign({},t),s),getCache:t=>t&&this.cache[t],getCaches:()=>this.cache,setCache:(t,s)=>t&&(this.cache[t]=s),stopPropagation:t=>{try{t.stopPropagation(),t.nativeEvent&&t.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:t=>{t&&t.persist&&typeof t.persist=="function"&&t.persist()}}}log(t){for(var s=arguments.length,o=new Array(s>1?s-1:0),i=1;i=t||ht<0||_&&yt>=a}function ae(){var tt=LR();if(ie(tt))return de(tt);c=setTimeout(ae,re(tt))}function de(tt){return c=void 0,R&&o?D(tt):(o=i=void 0,r)}function ye(){c!==void 0&&clearTimeout(c),e=0,o=f=i=c=void 0}function Fe(){return c===void 0?r:de(LR())}function Ge(){var tt=LR(),ht=ie(tt);if(o=arguments,i=this,f=tt,ht){if(c===void 0)return J(f);if(_)return clearTimeout(c),c=setTimeout(ae,t),D(f)}return c===void 0&&(c=setTimeout(ae,t)),r}return Ge.cancel=ye,Ge.flush=Fe,Ge}var $Y=jfe;const Ffe=ml($Y);var Ufe=$Y,Bfe=Cv,zfe="Expected a function";function Hfe(n,t,s){var o=!0,i=!0;if(typeof n!="function")throw new TypeError(zfe);return Bfe(s)&&(o="leading"in s?!!s.leading:o,i="trailing"in s?!!s.trailing:i),Ufe(n,t,{leading:o,maxWait:t,trailing:i})}var Vfe=Hfe;const T5=ml(Vfe);var kY={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(n){(function(){var t={}.hasOwnProperty;function s(){for(var a="",r=0;r-1&&n%1==0&&n<=upe}var l9=cpe,dpe=$O,fpe=l9;function hpe(n){return n!=null&&fpe(n.length)&&!dpe(n)}var Ab=hpe,ppe=Ab,mpe=Gv;function gpe(n){return mpe(n)&&ppe(n)}var u9=gpe,ZN={exports:{}};function vpe(){return!1}var bpe=vpe;ZN.exports;(function(n,t){var s=G1,o=bpe,i=t&&!t.nodeType&&t,a=i&&!0&&n&&!n.nodeType&&n,r=a&&a.exports===i,c=r?s.Buffer:void 0,f=c?c.isBuffer:void 0,e=f||o;n.exports=e})(ZN,ZN.exports);var wA=ZN.exports,ype=xb,Cpe=a9,wpe=Gv,Epe="[object Object]",Lpe=Function.prototype,Spe=Object.prototype,YY=Lpe.toString,xpe=Spe.hasOwnProperty,Ape=YY.call(Object);function _pe(n){if(!wpe(n)||ype(n)!=Epe)return!1;var t=Cpe(n);if(t===null)return!0;var s=xpe.call(t,"constructor")&&t.constructor;return typeof s=="function"&&s instanceof s&&YY.call(s)==Ape}var c9=_pe;const Tpe=ml(c9);var Npe=xb,Ope=l9,Ipe=Gv,Rpe="[object Arguments]",Ppe="[object Array]",$pe="[object Boolean]",kpe="[object Date]",Dpe="[object Error]",Mpe="[object Function]",jpe="[object Map]",Fpe="[object Number]",Upe="[object Object]",Bpe="[object RegExp]",zpe="[object Set]",Hpe="[object String]",Vpe="[object WeakMap]",Wpe="[object ArrayBuffer]",Gpe="[object DataView]",Kpe="[object Float32Array]",qpe="[object Float64Array]",Ype="[object Int8Array]",Xpe="[object Int16Array]",Zpe="[object Int32Array]",Jpe="[object Uint8Array]",Qpe="[object Uint8ClampedArray]",e0e="[object Uint16Array]",t0e="[object Uint32Array]",Op={};Op[Kpe]=Op[qpe]=Op[Ype]=Op[Xpe]=Op[Zpe]=Op[Jpe]=Op[Qpe]=Op[e0e]=Op[t0e]=!0;Op[Rpe]=Op[Ppe]=Op[Wpe]=Op[$pe]=Op[Gpe]=Op[kpe]=Op[Dpe]=Op[Mpe]=Op[jpe]=Op[Fpe]=Op[Upe]=Op[Bpe]=Op[zpe]=Op[Hpe]=Op[Vpe]=!1;function n0e(n){return Ipe(n)&&Ope(n.length)&&!!Op[Npe(n)]}var r0e=n0e;function s0e(n){return function(t){return n(t)}}var ZL=s0e,JN={exports:{}};JN.exports;(function(n,t){var s=AY,o=t&&!t.nodeType&&t,i=o&&!0&&n&&!n.nodeType&&n,a=i&&i.exports===o,r=a&&s.process,c=function(){try{var f=i&&i.require&&i.require("util").types;return f||r&&r.binding&&r.binding("util")}catch{}}();n.exports=c})(JN,JN.exports);var HO=JN.exports,o0e=r0e,i0e=ZL,MU=HO,jU=MU&&MU.isTypedArray,a0e=jU?i0e(jU):o0e,VO=a0e;function l0e(n,t){if(!(t==="constructor"&&typeof n[t]=="function")&&t!="__proto__")return n[t]}var XY=l0e,u0e=s9,c0e=bA,d0e=Object.prototype,f0e=d0e.hasOwnProperty;function h0e(n,t,s){var o=n[t];(!(f0e.call(n,t)&&c0e(o,s))||s===void 0&&!(t in n))&&u0e(n,t,s)}var d9=h0e,p0e=d9,m0e=s9;function g0e(n,t,s,o){var i=!s;s||(s={});for(var a=-1,r=t.length;++a-1&&n%1==0&&n0){if(++t>=Ame)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}var Ome=Nme,Ime=xme,Rme=Ome,Pme=Rme(Ime),eX=Pme,$me=GO,kme=QY,Dme=eX;function Mme(n,t){return Dme(kme(n,t,$me),n+"")}var KO=Mme,jme=bA,Fme=Ab,Ume=WO,Bme=Cv;function zme(n,t,s){if(!Bme(s))return!1;var o=typeof t;return(o=="number"?Fme(s)&&Ume(t,s.length):o=="string"&&t in s)?jme(s[t],n):!1}var qO=zme,Hme=KO,Vme=qO;function Wme(n){return Hme(function(t,s){var o=-1,i=s.length,a=i>1?s[i-1]:void 0,r=i>2?s[2]:void 0;for(a=n.length>3&&typeof a=="function"?(i--,a):void 0,r&&Vme(s[0],s[1],r)&&(a=i<3?void 0:a,i=1),t=Object(t);++oi?0:i+t),s=s>i?i:s,s<0&&(s+=i),i=t>s?0:s-t>>>0,t>>>=0;for(var a=Array(i);++o0&&s(c)?t>1?pX(c,t-1,s,o,i):Pbe(i,c):o||(i[i.length]=c)}return i}var g9=pX,kbe=g9;function Dbe(n){var t=n==null?0:n.length;return t?kbe(n,1):[]}var Mbe=Dbe,jbe=Mbe,Fbe=QY,Ube=eX;function Bbe(n){return Ube(Fbe(n,void 0,jbe),n+"")}var mX=Bbe,zbe=KL,Hbe=YO,Vbe=xbe,Wbe=qL,Gbe=JL,Kbe=Tbe,qbe=mX,Ybe=aX,Xbe=1,Zbe=2,Jbe=4,Qbe=qbe(function(n,t){var s={};if(n==null)return s;var o=!1;t=zbe(t,function(a){return a=Wbe(a,n),o||(o=a.length>1),a}),Gbe(n,Ybe(n),s),o&&(s=Hbe(s,Xbe|Zbe|Jbe,Kbe));for(var i=t.length;i--;)Vbe(s,t[i]);return s}),eye=Qbe;const Gm=ml(eye);function tye(n){return n===void 0}var nye=tye;const Hm=ml(nye);var rye="__lodash_hash_undefined__";function sye(n){return this.__data__.set(n,rye),this}var oye=sye;function iye(n){return this.__data__.has(n)}var aye=iye,lye=X8,uye=oye,cye=aye;function QN(n){var t=-1,s=n==null?0:n.length;for(this.__data__=new lye;++tc))return!1;var e=a.get(n),E=a.get(t);if(e&&E)return e==t&&E==n;var _=-1,R=!0,D=s&vye?new hye:void 0;for(a.set(n,t),a.set(t,n);++_a===s))>-1;)o.splice(i,1)}}else yb(s)&&this._eventMap.delete(t);return this}emit(t){for(var s=arguments.length,o=new Array(s>1?s-1:0),i=1;ia(...o)),!0):!1}};function kw(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function FCe(n){if(n&&typeof n=="object")return typeof n.toJSON=="function"?n.toJSON():["left","top","right","bottom","width","height"].reduce((s,o)=>(s[o]=n[o],s),{})}function ig(n){n.stopPropagation(),n.preventDefault()}function UCe(n){return n.length===1&&n.match(/\S/)}function SA(n,t){for(let s=0;s0&&SA(n,n[0])}function zCe(n){n.length>0&&SA(n,n[n.length-1])}function HCe(n,t){let s,o;n.length>0&&(t===n[0]?s=n[n.length-1]:(o=n.indexOf(t),s=n[o-1]),SA(n,s))}function VCe(n,t){let s,o;n.length>0&&(t===n[n.length-1]?s=n[0]:(o=n.indexOf(t),s=n[o+1]),SA(n,s))}function WCe(n,t,s,o){let i,a;return!n||!s||!o||o.length>1?-1:(o=o.toLowerCase(),i=n.indexOf(t)+1,i>=n.length&&(i=0),a=s.indexOf(o,i),a===-1&&(a=s.indexOf(o,0)),a>=0?a:-1)}function GCe(n,t){if(!n)return null;for(;n.parentElement&&_s(n.parentElement,"attributes.role.value","")!==t;)n=n.parentElement;return n.parentElement}function KCe(n,t){for(let s=0;s{this._adapter.removePortal()},this.setDisplayNone=(o,i)=>{this._adapter.setDisplayNone(o,i)},this.onResize=()=>{this.calcPosition()},this.delayShow=()=>{const o=this.getProp("mouseEnterDelay");this.clearDelayTimer(),o>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},o):this.show()},this.show=()=>{const o=this.getProp("content"),i=this.getProp("trigger"),a=this.getProp("clickTriggerToHide"),{visible:r,displayNone:c}=this.getStates();c&&this.setDisplayNone(!1),!r&&(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(o,{left:-9999,top:-9999}),i==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(i==="click"||a||i==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent())},this.calcPosition=function(o,i,a){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;o=(ib(o)?s._adapter.getTriggerBounding():o)||Object.assign({},H2),a=(ib(a)?s._adapter.getPopupContainerRect():a)||Object.assign({},H2),i=(ib(i)?s._adapter.getWrapperBounding():i)||Object.assign({},H2);let c=s.calcPosStyle({triggerRect:o,wrapperRect:i,containerRect:a}),f=s.getProp("position");if(s.getProp("autoAdjustOverflow")){const{position:e,isHeightOverFlow:E,isWidthOverFlow:_}=s.adjustPosIfNeed(f,c,o,i,a);(f!==e||E||_)&&(f=e,c=s.calcPosStyle({triggerRect:o,wrapperRect:i,containerRect:a,position:f,spacing:null,isOverFlow:[E,_]}))}return r&&s._mounted&&s._adapter.setPosition(Object.assign(Object.assign({},c),{position:f})),c},this.delayHide=()=>{const o=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),o>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},o):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=o=>{const{guardFocus:i,closeOnEsc:a}=this.getProps();switch(o&&o.key){case"Escape":a&&this._handleEscKeyDown(o);break;case"Tab":if(i){const r=this._adapter.getContainer(),c=this._adapter.getFocusableElements(r);c.length&&(o.shiftKey?this._handleContainerShiftTabKeyDown(c,o):this._handleContainerTabKeyDown(c,o))}break}},this._timer=null}init(){const{wrapperId:t}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),t||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const t=this.getProp("trigger"),{triggerEventSet:s,portalEventSet:o}=this._generateEvent(t);this._bindTriggerEvent(s),this._bindPortalEvent(o),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(t){this._adapter.registerTriggerEvent(t)}_bindPortalEvent(t){this._adapter.registerPortalEvent(t)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",i=arguments.length>3?arguments[3]:void 0;switch(o){case"reverse":return this._reversePos(t,s);case"expand":return this._expandPos(t,i);case"reduce":return this._reducePos(t);default:return this._reversePos(t,s)}}_reversePos(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(B_.TOP.test(t))return t.replace("top","bottom").replace("Top","Bottom");if(B_.BOTTOM.test(t))return t.replace("bottom","top").replace("Bottom","Top")}else{if(B_.LEFT.test(t))return t.replace("left","right").replace("Left","Right");if(B_.RIGHT.test(t))return t.replace("right","left").replace("Right","Left")}return t}_expandPos(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",s=arguments.length>1?arguments[1]:void 0;return t.concat(s)}_reducePos(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const s=["Top","Bottom","Left","Right"].find(o=>t.endsWith(o));return s?t.replace(s,""):t}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(t){const s=this._adapter.getEventName(),o={[s.keydown]:a=>{this._handleTriggerKeydown(a)}};let i={};switch(t){case"focus":o[s.focus]=()=>{this.delayShow()},o[s.blur]=()=>{this.delayHide()},i=o;break;case"click":o[s.click]=()=>{this.show()},i={};break;case"hover":o[s.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},o[s.mouseLeave]=()=>{this.delayHide()},o[s.focus]=()=>{const{disableFocusListener:a}=this.getProps();!a&&this.delayShow()},o[s.blur]=()=>{const{disableFocusListener:a}=this.getProps();!a&&this.delayHide()},i=Object.assign({},o),this.getProp("clickToHide")&&(i[s.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},i[s.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":o[s.contextMenu]=a=>{a.preventDefault(),this.show()};break}return{triggerEventSet:o,portalEventSet:i}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(t){this.getState("visible")!==t&&this._adapter.togglePortalVisible(t,()=>{t&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(t)})}_roundPixel(t){return typeof t=="number"?Math.round(t):t}calcTransformOrigin(t,s,o,i){if(t&&s&&o!=null&&i!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(t))return`${this._roundPixel(s.width/2)}px ${-i*100}%`;if(["topRight","bottomRight"].includes(t))return`calc(100% - ${this._roundPixel(s.width/2)}px) ${-i*100}%`;if(["leftTop","rightTop"].includes(t))return`${-o*100}% ${this._roundPixel(s.height/2)}px`;if(["leftBottom","rightBottom"].includes(t))return`${-o*100}% calc(100% - ${this._roundPixel(s.height/2)}px)`}return`${-o*100}% ${-i*100}%`}return null}calcPosStyle(t){const{spacing:s,isOverFlow:o}=t,{innerWidth:i}=window,a=(ib(t.triggerRect)?t.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},H2),r=(ib(t.containerRect)?t.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},H2),c=(ib(t.wrapperRect)?t.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},H2),f=t.position!=null?t.position:this.getProp("position"),e=s??this.getProp("spacing"),{arrowPointAtCenter:E,showArrow:_,arrowBounding:R}=this.getProps(),D=_&&E;let J=e,re=0;if(typeof e!="number"){const br=f.includes("top")||f.includes("bottom");J=br?e.y:e.x,re=br?e.x:e.y}const ie=_s(R,"width",24),ae=_s(R,"width",24),de=_s(R,"offsetY",0),ye=6,Fe=6;let Ge,tt,ht=0,yt=0;const Ft=a.left+a.width/2,Zt=a.top+a.height/2,Nt=ye+ie/2,kt=Fe+ae/2,fn=c.height-r.height,tn=c.width-r.width,zn=fn>0?fn:0,qn=tn>0?tn:0,gr=o&&o[0],$n=o&&o[1],hr=Ft-r.lefti;switch(f){case"top":Ge=$n?hr?r.left+c.width/2:r.right-c.width/2+qn:Ft+re,tt=gr?r.bottom+zn:a.top-J,ht=-.5,yt=-1;break;case"topLeft":Ge=$n?dr?r.left:r.right-c.width:D?Ft-Nt+re:a.left+re,tt=gr?r.bottom+zn:a.top-J,yt=-1;break;case"topRight":Ge=$n?r.right+qn:D?Ft+Nt+re:a.right+re,tt=gr?r.bottom+zn:a.top-J,yt=-1,ht=-1;break;case"left":Ge=$n?r.right+qn-J+Nt:a.left-J,tt=gr?Mn?r.top+c.height/2:r.bottom-c.height/2+zn:Zt+re,ht=-1,yt=-.5;break;case"leftTop":Ge=$n?r.right+qn-J+Nt:a.left-J,tt=gr?r.top:D?Zt-kt+re:a.top+re,ht=-1;break;case"leftBottom":Ge=$n?r.right+qn-J+Nt:a.left-J,tt=gr?r.bottom+zn:D?Zt+kt+re:a.bottom+re,ht=-1,yt=-1;break;case"bottom":Ge=$n?hr?r.left+c.width/2:r.right-c.width/2+qn:Ft+re,tt=gr?r.top+kt-J:a.top+a.height+J,ht=-.5;break;case"bottomLeft":Ge=$n?dr?r.left:r.right-c.width:D?Ft-Nt+re:a.left+re,tt=gr?r.top+kt-J:a.top+a.height+J;break;case"bottomRight":Ge=$n?r.right+qn:D?Ft+Nt+re:a.right+re,tt=gr?r.top+kt-J:a.top+a.height+J,ht=-1;break;case"right":Ge=$n?r.left-J+Nt:a.right+J,tt=gr?Mn?r.top+c.height/2:r.bottom-c.height/2+zn:Zt+re,yt=-.5;break;case"rightTop":Ge=$n?r.left-J+Nt:a.right+J,tt=gr?r.top:D?Zt-kt+re:a.top+re;break;case"rightBottom":Ge=$n?r.left-J+Nt:a.right+J,tt=gr?r.bottom+zn:D?Zt+kt+re:a.bottom+re,yt=-1;break;case"leftTopOver":Ge=a.left-J,tt=a.top-J;break;case"rightTopOver":Ge=a.right+J,tt=a.top-J,ht=-1;break;case"leftBottomOver":Ge=a.left-J,tt=a.bottom+J,yt=-1;break;case"rightBottomOver":Ge=a.right+J,tt=a.bottom+J,ht=-1,yt=-1;break}const Rt=this.calcTransformOrigin(f,a,ht,yt),mn=this._adapter.containerIsBody();if(Ge=Ge-r.left,tt=tt-r.top,mn&&!this._adapter.containerIsRelativeOrAbsolute()){const br=this._adapter.getDocumentElementBounding();Ge+=r.left-br.left,tt+=r.top-br.top}Ge=mn?Ge:Ge+r.scrollLeft,tt=mn?tt:tt+r.scrollTop;const Pn=a.height;if(this.getProp("showArrow")&&!E&&Pn<=(ae/2+de)*2){const br=Pn/2-(de+ae/2);(f.includes("Top")||f.includes("Bottom"))&&!f.includes("Over")&&(tt=f.includes("Top")?tt+br:tt-br)}const Yn={left:this._roundPixel(Ge),top:this._roundPixel(tt)};let ir="";return ht!=null&&(ir+=`translateX(${ht*100}%) `,Object.defineProperty(Yn,"translateX",{enumerable:!1,value:ht})),yt!=null&&(ir+=`translateY(${yt*100}%) `,Object.defineProperty(Yn,"translateY",{enumerable:!1,value:yt})),Rt!=null&&(Yn.transformOrigin=Rt),ir&&(Yn.transform=ir),Yn}isLR(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t.includes("left")||t.includes("right")}isTB(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t.includes("top")||t.includes("bottom")}isReverse(t,s,o){return to}isOverFlow(t,s,o){return t=o||s>=o}getReverse(t,s,o,i){return t&&i||o}adjustPosIfNeed(t,s,o,i,a){const{innerWidth:r,innerHeight:c}=window,{margin:f}=this.getProps(),e=typeof f=="number"?f:f.marginLeft,E=typeof f=="number"?f:f.marginTop,_=typeof f=="number"?f:f.marginRight,R=typeof f=="number"?f:f.marginBottom;let D=!1,J=!1;const re=this.getProp("spacing");let ie=re,ae=0;if(typeof re!="number"){const de=t.includes("top")||t.includes("bottom");ie=de?re.y:re.x,ae=de?re.x:re.y}if(i.width>0&&i.height>0){const de=o.left,ye=o.right,Fe=o.top,Ge=o.bottom,tt=r-de,ht=c-Fe,yt=r-ye,Ft=c-Ge,Zt=i.width>o.width,Nt=i.height>o.height,kt=Fe-Ei.height+ie,fn=de-ei.width+ie,tn=Ft-Ri.height+ie,zn=yt-_i.width+ie;ht-Ri.height+ie,Ge-Ei.height+ie;const qn=hti.height+ae,gr=Gei.height+ae,$n=tti.width+ae,hr=yei.width+ae,Mn=hti.height+ie,dr=Gei.height+ie,Rt=tti.width,mn=yei.width,Pn=Fe-a.top,Yn=de-a.left,ir=Pn+o.height,br=Yn+o.width,Rr=a.bottom-Ge,Mr=a.right-ye,Hr=Rr+o.height,Er=Mr+o.width,is=this.isReverse(Pn-E,Rr-R,i.height+ie),Cs=this.isReverse(Yn-e,Mr-_,i.width+ie),hs=this.isReverse(Rr-R,Pn-E,i.height+ie),zr=this.isReverse(Mr-_,Yn-e,i.width+ie);this.isReverse(Hr-R,ir-E,i.height+ie),this.isReverse(ir-E,Hr-R,i.height+ie);const Zn=this.isReverse(Hr,ir,i.height+ae),Ks=this.isReverse(ir,Hr,i.height+ae),Zs=this.isReverse(Er,br,i.width+ae),bs=this.isReverse(br,Er,i.width+ae),As=o.height/2,ds=o.width/2,Ms=this.isOverFlow(Fe-E,Ft-R,i.height+ie),no=this.isOverFlow(de-e,yt-_,i.width+ie),Ls=this.isOverFlow(Ge-E,ht-R,i.height+ie),Ro=this.isOverFlow(ye-e,tt-_,i.width+ie),Yt=this.isHalfOverFlow(Ge-As,ht-As,(i.height+ae)/2),yn=this.isHalfOverFlow(ye-ds,tt-ds,(i.width+ae)/2),ar=this.isHalfAllEnough(Ge-As,ht-As,(i.height+ae)/2),fr=this.isHalfAllEnough(ye-ds,tt-ds,(i.width+ae)/2),cr=this.isOverFlow(Pn-E,Rr-R,i.height+ie),sr=this.isOverFlow(Yn-e,Mr-_,i.width+ie),Nn=this.isOverFlow(ir-E,Hr-R,i.height+ie),er=this.isOverFlow(br-e,Er-_,i.width+ie),ns=this.isHalfOverFlow(ir-As,Hr-As,(i.height+ae)/2),io=this.isHalfOverFlow(br-ds,Er-ds,(i.width+ae)/2),ao=this.isHalfAllEnough(ir-As,Hr-As,(i.height+ae)/2),_o=this.isHalfAllEnough(br-ds,Er-ds,(i.width+ae)/2),Ao=this.getReverse(Ms,cr,kt,is),na=this.getReverse(no,sr,fn,Cs),ni=this.getReverse(Ms,cr,tn,hs),di=this.getReverse(no,sr,zn,zr),xi=this.getReverse(Ls,Nn,qn,Zn),ii=this.getReverse(Ls,Nn,gr,Ks),pn=this.getReverse(Ro,er,$n,Zs),Sr=this.getReverse(Ro,er,hr,bs),Ws=Yt&&ns,zo=yn&&io;switch(t){case"top":Ao&&(t=this._adjustPos(t,!0)),zo&&(pn||Sr)&&(t=this._adjustPos(t,!0,"expand",pn?"Right":"Left"));break;case"topLeft":Ao&&(t=this._adjustPos(t,!0)),pn&&Zt&&(t=this._adjustPos(t)),J&&(fr||_o)&&(t=this._adjustPos(t,!0,"reduce"));break;case"topRight":Ao&&(t=this._adjustPos(t,!0)),Sr&&Zt&&(t=this._adjustPos(t)),J&&(fr||_o)&&(t=this._adjustPos(t,!0,"reduce"));break;case"left":na&&(t=this._adjustPos(t)),Ws&&(xi||ii)&&(t=this._adjustPos(t,!1,"expand",xi?"Bottom":"Top"));break;case"leftTop":na&&(t=this._adjustPos(t)),xi&&Nt&&(t=this._adjustPos(t,!0)),D&&(ar||ao)&&(t=this._adjustPos(t,!1,"reduce"));break;case"leftBottom":na&&(t=this._adjustPos(t)),ii&&Nt&&(t=this._adjustPos(t,!0)),D&&(ar||ao)&&(t=this._adjustPos(t,!1,"reduce"));break;case"bottom":ni&&(t=this._adjustPos(t,!0)),zo&&(pn||Sr)&&(t=this._adjustPos(t,!0,"expand",pn?"Right":"Left"));break;case"bottomLeft":ni&&(t=this._adjustPos(t,!0)),pn&&Zt&&(t=this._adjustPos(t)),J&&(fr||_o)&&(t=this._adjustPos(t,!0,"reduce"));break;case"bottomRight":ni&&(t=this._adjustPos(t,!0)),Sr&&Zt&&(t=this._adjustPos(t)),J&&(fr||_o)&&(t=this._adjustPos(t,!0,"reduce"));break;case"right":di&&(t=this._adjustPos(t)),Ws&&(xi||ii)&&(t=this._adjustPos(t,!1,"expand",xi?"Bottom":"Top"));break;case"rightTop":di&&(t=this._adjustPos(t)),xi&&Nt&&(t=this._adjustPos(t,!0)),D&&(ar||ao)&&(t=this._adjustPos(t,!1,"reduce"));break;case"rightBottom":di&&(t=this._adjustPos(t)),ii&&Nt&&(t=this._adjustPos(t,!0)),D&&(ar||ao)&&(t=this._adjustPos(t,!1,"reduce"));break;case"leftTopOver":Mn&&(t=this._adjustPos(t,!0)),Rt&&(t=this._adjustPos(t));break;case"leftBottomOver":dr&&(t=this._adjustPos(t,!0)),Rt&&(t=this._adjustPos(t));break;case"rightTopOver":Mn&&(t=this._adjustPos(t,!0)),mn&&(t=this._adjustPos(t));break;case"rightBottomOver":dr&&(t=this._adjustPos(t,!0)),mn&&(t=this._adjustPos(t));break}this.isTB(t)&&(D=Ms&&cr,t==="top"||t==="bottom"?J=yn&&io||ye<0||yt<0:J=Ro&&er||ye<0||yt<0),this.isLR(t)&&(J=no&&sr,t==="left"||t==="right"?D=Yt&&ns||Fe<0||ht<0:D=Ls&&Nn||Fe<0||ht<0)}return{position:t,isHeightOverFlow:D,isWidthOverFlow:J}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(t){const{closeOnEsc:s,disableArrowKeyDown:o}=this.getProps(),i=this._adapter.getContainer(),a=this._adapter.getFocusableElements(i),r=a.length;switch(t&&t.key){case"Escape":ig(t),s&&this._handleEscKeyDown(t);break;case"ArrowUp":!o&&r&&this._handleTriggerArrowUpKeydown(a,t);break;case"ArrowDown":!o&&r&&this._handleTriggerArrowDownKeydown(a,t);break}}focusTrigger(){const{trigger:t,returnFocusOnClose:s,preventScroll:o}=this.getProps();if(s&&t!=="custom"){const i=this._adapter.getTriggerNode();i&&"focus"in i&&i.focus({preventScroll:o})}}_handleEscKeyDown(t){const{trigger:s}=this.getProps();s!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(t)}_handleContainerTabKeyDown(t,s){const{preventScroll:o}=this.getProps(),i=this._adapter.getActiveElement();t[t.length-1]===i&&(t[0].focus({preventScroll:o}),s.preventDefault())}_handleContainerShiftTabKeyDown(t,s){const{preventScroll:o}=this.getProps(),i=this._adapter.getActiveElement();t[0]===i&&(t[t.length-1].focus({preventScroll:o}),s.preventDefault())}_handleTriggerArrowDownKeydown(t,s){const{preventScroll:o}=this.getProps();t[0].focus({preventScroll:o}),s.preventDefault()}_handleTriggerArrowUpKeydown(t,s){const{preventScroll:o}=this.getProps();t[t.length-1].focus({preventScroll:o}),s.preventDefault()}};const YCe={PREFIX:`${mo}-tooltip`},OC={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Xy={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function e4(n){return`${n}-${new Date().getTime()}-${Math.random()}`}function HT(){var n,t;try{return(t=(n=crypto==null?void 0:crypto.randomUUID)===null||n===void 0?void 0:n.call(crypto))!==null&&t!==void 0?t:String(9987e3+-1e11).replace(/[018]/g,s=>(Number(s)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(s)/4).toString(16))}catch{return e4("semi")}}function UC(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:t="",length:s=7}=n,o="0123456789abcdefghijklmnopqrstuvwxyz",i=o.length;let a="";for(let r=0;rn.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),fwe=n=>{let{autoEscape:t,caseSensitive:s,searchWords:o,sourceString:i}=n;return o.filter(a=>a).reduce((a,r)=>{t&&(r=dwe(r));const c=new RegExp(r,s?"g":"gi");let f;for(;f=c.exec(i);){const e=f.index,E=c.lastIndex;E>e&&a.push({highlight:!1,start:e,end:E}),f.index===c.lastIndex&&c.lastIndex++}return a},[])},hwe=n=>{let{chunks:t}=n;return t=t.sort((s,o)=>s.start-o.start).reduce((s,o)=>{if(s.length===0)return[o];{const i=s.pop();if(o.start<=i.end){const a=Math.max(i.end,o.end);s.push({highlight:!1,start:i.start,end:a})}else s.push(i,o);return s}},[]),t},pwe=n=>{let{chunksToHighlight:t,totalLength:s}=n;const o=[],i=(a,r,c)=>{r-a>0&&o.push({start:a,end:r,highlight:c})};if(t.length===0)i(0,s,!1);else{let a=0;t.forEach(r=>{i(a,r.start,!1),i(r.start,r.end,!0),a=r.end}),i(a,s,!1)}return o},mwe=n=>{let{autoEscape:t=!0,caseSensitive:s=!1,searchWords:o,sourceString:i}=n;Bd(o)&&(o=[o]);const a=fwe({autoEscape:t,caseSensitive:s,searchWords:o,sourceString:i}),r=hwe({chunks:a});return pwe({chunksToHighlight:r,totalLength:i?i.length:0})};function z_(n,t){n&&typeof n.stopPropagation=="function"&&n.stopPropagation(),!t&&n.nativeEvent&&typeof n.nativeEvent.stopImmediatePropagation=="function"&&n.nativeEvent.stopImmediatePropagation()}function a1(n,t){return cwe(n,s=>{if(typeof t=="function")return t(s);if(typeof s=="function"||De.isValidElement(s)||Object.prototype.toString.call(s)==="[object Error]")return s;if(Array.isArray(s)&&s.length===0){const o=Object.keys(s);if(o.length){const i=[];o.forEach(a=>{db(i,a,s[a])});try{Km(_s(process,"env.NODE_ENV")!=="production",`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected. + The maximum length of an array is 4294967295. + Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch{}return i}else return}})}const LX=n=>{let{sourceString:t="",searchWords:s=[],option:o={autoEscape:!0,caseSensitive:!1}}=n;const i=mwe(Object.assign({sourceString:t,searchWords:s},o)),a=o.highlightTag||"mark",r=o.highlightClassName||"",c=o.highlightStyle||{};return i.map((f,e)=>{const{end:E,start:_,highlight:R}=f,D=t.substr(_,E-_);return R?De.createElement(a,{style:c,className:r,key:D+e},D):D})},gwe=(n,t)=>{let{match:s,unmatch:o,callInInit:i=!0}=t;if(typeof window<"u"){let r=function(c){c.matches?s&&s(c):o&&o(c)};const a=window.matchMedia(n);return i&&r(a),Object.prototype.hasOwnProperty.call(a,"addEventListener")?(a.addEventListener("change",r),()=>a.removeEventListener("change",r)):(a.addListener(r),()=>a.removeListener(r))}return()=>{}},l1=n=>De.isValidElement(n)&&_s(n.type,"elementType")==="Icon";function SX(){return document?document.activeElement:null}function xX(n){if(!kw(n))return[];const s=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(n.querySelectorAll(s))}function v9(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}const vwe=De.createContext({}),K1=vwe,bwe=()=>document.body;class JO extends lt.PureComponent{constructor(t,s){var o;super(t),o=this,this.initContainer=function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var r,c;try{let f;if(!o.el||!(!((r=o.state)===null||r===void 0)&&r.container)||!Array.from(o.state.container.childNodes).includes(o.el)){o.el=document.createElement("div");const E=(o.props.getPopupContainer||i.getPopupContainer||bwe)();return E.appendChild(o.el),o.addStyle(o.props.style),o.addClass(o.props.prefixCls,i,o.props.className),f=E,f}}catch(f){if(!a)throw f}return(c=o.state)===null||c===void 0?void 0:c.container},this.addStyle=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(o.el)for(const a of Object.keys(i))o.el.style[a]=i[a]},this.addClass=function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o.context;const{direction:r}=a;for(var c=arguments.length,f=new Array(c>2?c-2:0),e=2;e{const{className:t,style:s}=n,o=ywe(n,["className","style"]);return De.createElement("svg",Object.assign({"aria-hidden":!0,className:t,style:s},o,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),De.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))},wwe=Cwe;var Ewe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{const{className:t,style:s}=n,o=Ewe(n,["className","style"]);return De.createElement("svg",Object.assign({"aria-hidden":!0,className:t,style:s},o,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),De.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},Swe=Lwe,xwe=W.shape({offsetX:W.number,offsetY:W.number,width:W.number,height:W.number});class AX extends De.Component{constructor(t){super(t),this.handleAnimationStart=()=>{var s,o;(o=(s=this.props).onAnimationStart)===null||o===void 0||o.call(s)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var s,o;(o=(s=this.props).onAnimationEnd)===null||o===void 0||o.call(s,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var t,s,o,i;(s=(t=this.props).onAnimationStart)===null||s===void 0||s.call(t),this.props.motion||((i=(o=this.props).onAnimationEnd)===null||i===void 0||i.call(o,!1),this.setState({isAnimating:!1}))}componentDidUpdate(t,s,o){const i=Object.keys(this.props).filter(a=>!Mp(this.props[a],t[a]));i.includes("animationState"),(i.includes("startClassName")||i.includes("replayKey")||i.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var a,r,c,f;(r=(a=this.props).onAnimationStart)===null||r===void 0||r.call(a),this.props.motion||((f=(c=this.props).onAnimationEnd)===null||f===void 0||f.call(c,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var t;return this.props.motion?this.props.children({animationClassName:(t=this.state.currentClassName)!==null&&t!==void 0?t:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}AX.defaultProps={motion:!0,replayKey:""};const BC=AX;var bB=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);idocument.body;class Ip extends Ml{constructor(t){super(t),this.setContainerEl=s=>this.containerEl={current:s},this.isSpecial=s=>{if(kw(s))return!!s.disabled;if(lt.isValidElement(s)){if(_s(s,"props.disabled"))return OC.STATUS_DISABLED;const i=_s(s,"props.loading"),a=!ib(s)&&!ib(s.type)&&(_s(s,"type.elementType")==="Button"||_s(s,"type.elementType")==="IconButton");if(i&&a)return OC.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:s}=this.state,{showArrow:o,prefixCls:i,style:a}=this.props;let r=null;const c=Ar([`${i}-icon-arrow`]),f=_s(a,"backgroundColor"),e=s.includes("left")||s.includes("right")?De.createElement(Swe,null):De.createElement(wwe,null);return o&&(lt.isValidElement(o)?r=o:r=De.cloneElement(e,{className:c,style:{color:f,fill:"currentColor"}})),r},this.handlePortalInnerClick=s=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&z_(s)},this.handlePortalMouseDown=s=>{this.props.stopPropagation&&z_(s)},this.handlePortalFocus=s=>{this.props.stopPropagation&&z_(s)},this.handlePortalBlur=s=>{this.props.stopPropagation&&z_(s)},this.handlePortalInnerKeyDown=s=>{this.foundation.handleContainerKeydown(s)},this.renderContentNode=s=>{const o={initialFocusRef:this.initialFocusRef};return xu(s)?s(o):s},this.renderPortal=()=>{const{containerStyle:s={},visible:o,portalEventSet:i,placement:a,displayNone:r,transitionState:c,id:f,isPositionUpdated:e}=this.state,{prefixCls:E,content:_,showArrow:R,style:D,motion:J,role:re,zIndex:ie}=this.props,ae=this.renderContentNode(_),{className:de}=this.props,ye=this.context.direction,Fe=Ar(de,{[`${E}-wrapper`]:!0,[`${E}-wrapper-show`]:o,[`${E}-with-arrow`]:!!R,[`${E}-rtl`]:ye==="rtl"}),Ge=this.renderIcon(),tt=Gm(s,J?["transformOrigin"]:void 0),ht=_s(s,"transformOrigin"),yt=_s(D,"opacity",null),Ft=yt||1,Zt=De.createElement(BC,{fillMode:"forwards",animationState:c,motion:J&&e,startClassName:c==="enter"?`${VT}-animation-show`:`${VT}-animation-hide`,onAnimationEnd:()=>{var Nt,kt;c==="leave"&&(this.didLeave(),(kt=(Nt=this.props).afterClose)===null||kt===void 0||kt.call(Nt))}},Nt=>{let{animationStyle:kt,animationClassName:fn,animationEventsNeedBind:tn}=Nt;return De.createElement("div",Object.assign({className:Ar(Fe,fn),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kt),r?{display:"none"}:{}),{transformOrigin:ht}),D),yt?{opacity:e?Ft:"0"}:{})},i,tn,{role:re,"x-placement":a,id:f}),De.createElement("div",{className:`${VT}-content`},ae),Ge)});return De.createElement(QO,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:ie}},De.createElement("div",{tabIndex:-1,className:`${mo}-portal-inner`,style:tt,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},Zt))},this.wrapSpan=s=>{const{wrapperClassName:o}=this.props,i=_s(s,"props.style.display"),a=_s(s,"props.block"),r=typeof s=="string",c={};return r||(c.display="inline-block"),(a||Twe.includes(i))&&(c.width="100%"),De.createElement("span",{className:o,style:c},s)},this.mergeEvents=(s,o)=>{const i={};return ng(o,(a,r)=>{typeof a=="function"&&(i[r]=function(){a(...arguments),s&&typeof s[r]=="function"&&s[r](...arguments)})}),i},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:t.position||"top",transitionStyle:{},isPositionUpdated:!1,id:t.wrapperId,displayNone:!1},this.foundation=new qCe(this.adapter),this.eventManager=new wX,this.triggerEl=De.createRef(),this.containerEl=De.createRef(),this.initialFocusRef=De.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var t=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return t.eventManager.on(...arguments)},off:function(){return t.eventManager.off(...arguments)},insertPortal:(s,o)=>{var i=bB(o,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),i)},()=>{setTimeout(()=>{this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:s=>{this.setState({triggerEventSet:s})},registerPortalEvent:s=>{this.setState({portalEventSet:s})},getTriggerBounding:()=>{const s=this.adapter.getTriggerNode();return this.triggerEl.current=s,s&&s.getBoundingClientRect()},getPopupContainerRect:()=>{const s=this.getPopupContainer();let o=null;if(s&&kw(s)){const i=FCe(s.getBoundingClientRect());o=Object.assign(Object.assign({},i),{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop})}return o},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const s=this.getPopupContainer();return window.getComputedStyle(s).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const s=this.containerEl&&this.containerEl.current;return s&&s.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:s=>{var{position:o}=s,i=bB(s,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),i),placement:o,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(s,o)=>{this.setState({displayNone:s},o)},updatePlacementAttr:s=>{this.setState({placement:s})},togglePortalVisible:(s,o)=>{const i={};i.transitionState=s?"enter":"leave",i.visible=s,this.mounted&&this.setState(i,()=>{o()})},registerClickOutsideHandler:s=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=o=>{if(!this.mounted)return!1;let i=this.triggerEl&&this.triggerEl.current,a=this.containerEl&&this.containerEl.current;i=F1.findDOMNode(i),a=F1.findDOMNode(a),(i&&!i.contains(o.target)&&a&&!a.contains(o.target)||this.props.clickTriggerToHide&&i&&i.contains(o.target))&&(this.props.onClickOutSide(o),s())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:s=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=T5(o=>{if(!this.mounted)return!1;s(o)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:s=>{this.props.onVisibleChange(s)},registerScrollHandler:s=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=T5(o=>{if(!this.mounted)return!1;const i=this.adapter.getTriggerNode();if(o.target.contains(i)){const r={x:o.target.scrollLeft,y:o.target.scrollTop};s(r)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const s=this.getPopupContainer();if(s&&kw(s)){const i=window.getComputedStyle(s).getPropertyValue("position");this.containerPosition=i}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let s=this.triggerEl.current;return kw(this.triggerEl.current)||(s=F1.findDOMNode(this.triggerEl.current)),s},getFocusableElements:s=>xX(s),getActiveElement:()=>SX(),setInitialFocus:()=>{const{preventScroll:s}=this.props,o=_s(this,"initialFocusRef.current");o&&"focus"in o&&o.focus({preventScroll:s})},notifyEscKeydown:s=>{this.props.onEscKeyDown(s)},setId:()=>{this.setState({id:UC()})}})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||Nwe,this.foundation.init()}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(t,s){Km(this.props.mouseLeaveDelay{this.triggerEl.current=D;const{ref:J}=f;typeof J=="function"?J(D):J&&typeof J=="object"&&(J.current=D)},tabIndex:f.props.tabIndex||0,"data-popupid":i}));return De.createElement(De.Fragment,null,t?this.renderPortal():null,R)}}Ip.contextType=K1;Ip.propTypes={children:W.node,motion:W.bool,autoAdjustOverflow:W.bool,position:W.oneOf(Awe),getPopupContainer:W.func,mouseEnterDelay:W.number,mouseLeaveDelay:W.number,trigger:W.oneOf(_we).isRequired,className:W.string,wrapperClassName:W.string,clickToHide:W.bool,clickTriggerToHide:W.bool,visible:W.bool,style:W.object,content:W.oneOfType([W.node,W.func]),prefixCls:W.string,onVisibleChange:W.func,onClickOutSide:W.func,spacing:W.oneOfType([W.number,W.object]),margin:W.oneOfType([W.number,W.object]),showArrow:W.oneOfType([W.bool,W.node]),zIndex:W.number,rePosKey:W.oneOfType([W.string,W.number]),arrowBounding:xwe,transformFromCenter:W.bool,arrowPointAtCenter:W.bool,stopPropagation:W.bool,role:W.string,wrapWhenSpecial:W.bool,guardFocus:W.bool,returnFocusOnClose:W.bool,preventScroll:W.bool,keepDOM:W.bool};Ip.defaultProps={arrowBounding:Xy.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:VT,role:"tooltip",mouseEnterDelay:Xy.MOUSE_ENTER_DELAY,mouseLeaveDelay:Xy.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:os,onClickOutSide:os,spacing:Xy.SPACING,margin:Xy.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Xy.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:os,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1};var b9={exports:{}};const _X=(n,{target:t=document.body}={})=>{const s=document.createElement("textarea"),o=document.activeElement;s.value=n,s.setAttribute("readonly",""),s.style.contain="strict",s.style.position="absolute",s.style.left="-9999px",s.style.fontSize="12pt";const i=document.getSelection();let a=!1;i.rangeCount>0&&(a=i.getRangeAt(0)),t.append(s),s.select(),s.selectionStart=0,s.selectionEnd=n.length;let r=!1;try{r=document.execCommand("copy")}catch{}return s.remove(),a&&(i.removeAllRanges(),i.addRange(a)),o&&o.focus(),r};b9.exports=_X;b9.exports.default=_X;var Owe=b9.exports;const Iwe=ml(Owe);function fb(){}const Rwe=De.createContext(null),TX=Rwe;function KE(n){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=t.width?String(t.width):n.defaultWidth,o=n.formats[s]||n.formats[n.defaultWidth];return o}}function ub(n){return function(t,s){var o=s!=null&&s.context?String(s.context):"standalone",i;if(o==="formatting"&&n.formattingValues){var a=n.defaultFormattingWidth||n.defaultWidth,r=s!=null&&s.width?String(s.width):a;i=n.formattingValues[r]||n.formattingValues[a]}else{var c=n.defaultWidth,f=s!=null&&s.width?String(s.width):n.defaultWidth;i=n.values[f]||n.values[c]}var e=n.argumentCallback?n.argumentCallback(t):t;return i[e]}}function cb(n){return function(t){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=s.width,i=o&&n.matchPatterns[o]||n.matchPatterns[n.defaultMatchWidth],a=t.match(i);if(!a)return null;var r=a[0],c=o&&n.parsePatterns[o]||n.parsePatterns[n.defaultParseWidth],f=Array.isArray(c)?$we(c,function(_){return _.test(r)}):Pwe(c,function(_){return _.test(r)}),e;e=n.valueCallback?n.valueCallback(f):f,e=s.valueCallback?s.valueCallback(e):e;var E=t.slice(r.length);return{value:e,rest:E}}}function Pwe(n,t){for(var s in n)if(n.hasOwnProperty(s)&&t(n[s]))return s}function $we(n,t){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},o=t.match(n.matchPattern);if(!o)return null;var i=o[0],a=t.match(n.parsePattern);if(!a)return null;var r=n.valueCallback?n.valueCallback(a[0]):a[0];r=s.valueCallback?s.valueCallback(r):r;var c=t.slice(i.length);return{value:r,rest:c}}}function Gf(n){"@babel/helpers - typeof";return Gf=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},Gf(n)}function kwe(n){if(n===null||n===!0||n===!1)return NaN;var t=Number(n);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function y9(n,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Dwe(n){y9(1,arguments);var t=Object.prototype.toString.call(n);return n instanceof Date||Gf(n)==="object"&&t==="[object Date]"?new Date(n.getTime()):typeof n=="number"||t==="[object Number]"?new Date(n):((typeof n=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}var Mwe={};function jwe(){return Mwe}function yB(n,t){var s,o,i,a,r,c,f,e;y9(1,arguments);var E=jwe(),_=kwe((s=(o=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(r=t.locale)===null||r===void 0||(c=r.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&i!==void 0?i:E.weekStartsOn)!==null&&o!==void 0?o:(f=E.locale)===null||f===void 0||(e=f.options)===null||e===void 0?void 0:e.weekStartsOn)!==null&&s!==void 0?s:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var R=Dwe(n),D=R.getUTCDay(),J=(D<_?7:0)+D-_;return R.setUTCDate(R.getUTCDate()-J),R.setUTCHours(0,0,0,0),R}var Fwe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Uwe=function(t,s,o){var i,a=Fwe[t];return typeof a=="string"?i=a:s===1?i=a.one:i=a.other.replace("{{count}}",s.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+i:i+" ago":i};const Bwe=Uwe;var zwe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Hwe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Vwe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Wwe={date:KE({formats:zwe,defaultWidth:"full"}),time:KE({formats:Hwe,defaultWidth:"full"}),dateTime:KE({formats:Vwe,defaultWidth:"full"})};const Gwe=Wwe;var Kwe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qwe=function(t,s,o,i){return Kwe[t]};const Ywe=qwe;var Xwe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Zwe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Jwe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Qwe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},e2e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},t2e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},n2e=function(t,s){var o=Number(t),i=o%100;if(i>20||i<10)switch(i%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},r2e={ordinalNumber:n2e,era:ub({values:Xwe,defaultWidth:"wide"}),quarter:ub({values:Zwe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ub({values:Jwe,defaultWidth:"wide"}),day:ub({values:Qwe,defaultWidth:"wide"}),dayPeriod:ub({values:e2e,defaultWidth:"wide",formattingValues:t2e,defaultFormattingWidth:"wide"})};const s2e=r2e;var o2e=/^(\d+)(th|st|nd|rd)?/i,i2e=/\d+/i,a2e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l2e={any:[/^b/i,/^(a|c)/i]},u2e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c2e={any:[/1/i,/2/i,/3/i,/4/i]},d2e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f2e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h2e={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p2e={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},m2e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},g2e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},v2e={ordinalNumber:NX({matchPattern:o2e,parsePattern:i2e,valueCallback:function(t){return parseInt(t,10)}}),era:cb({matchPatterns:a2e,defaultMatchWidth:"wide",parsePatterns:l2e,defaultParseWidth:"any"}),quarter:cb({matchPatterns:u2e,defaultMatchWidth:"wide",parsePatterns:c2e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:cb({matchPatterns:d2e,defaultMatchWidth:"wide",parsePatterns:f2e,defaultParseWidth:"any"}),day:cb({matchPatterns:h2e,defaultMatchWidth:"wide",parsePatterns:p2e,defaultParseWidth:"any"}),dayPeriod:cb({matchPatterns:m2e,defaultMatchWidth:"any",parsePatterns:g2e,defaultParseWidth:"any"})};const b2e=v2e;var y2e={code:"en-US",formatDistance:Bwe,formatLong:Gwe,formatRelative:Ywe,localize:s2e,match:b2e,options:{weekStartsOn:0,firstWeekContainsDate:1}};const C2e=y2e;function CB(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function xP(n,t){return xP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},xP(n,t)}function w2e(n,t,s){y9(2,arguments);var o=yB(n,s),i=yB(t,s);return o.getTime()===i.getTime()}var E2e={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},L2e=function(t,s,o){var i,a=E2e[t];return typeof a=="string"?i=a:s===1?i=a.one:i=a.other.replace("{{count}}",String(s)),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?i+"内":i+"前":i};const S2e=L2e;var x2e={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},A2e={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},_2e={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},T2e={date:KE({formats:x2e,defaultWidth:"full"}),time:KE({formats:A2e,defaultWidth:"full"}),dateTime:KE({formats:_2e,defaultWidth:"full"})};const N2e=T2e;function wB(n,t,s){var o="eeee p";return w2e(n,t,s)?o:n.getTime()>t.getTime()?"'下个'"+o:"'上个'"+o}var O2e={lastWeek:wB,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:wB,other:"PP p"},I2e=function(t,s,o,i){var a=O2e[t];return typeof a=="function"?a(s,o,i):a};const R2e=I2e;var P2e={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},$2e={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},k2e={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},D2e={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},M2e={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},j2e={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},F2e=function(t,s){var o=Number(t);switch(s==null?void 0:s.unit){case"date":return o.toString()+"日";case"hour":return o.toString()+"时";case"minute":return o.toString()+"分";case"second":return o.toString()+"秒";default:return"第 "+o.toString()}},U2e={ordinalNumber:F2e,era:ub({values:P2e,defaultWidth:"wide"}),quarter:ub({values:$2e,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ub({values:k2e,defaultWidth:"wide"}),day:ub({values:D2e,defaultWidth:"wide"}),dayPeriod:ub({values:M2e,defaultWidth:"wide",formattingValues:j2e,defaultFormattingWidth:"wide"})};const B2e=U2e;var z2e=/^(第\s*)?\d+(日|时|分|秒)?/i,H2e=/\d+/i,V2e={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},W2e={any:[/^(前)/i,/^(公元)/i]},G2e={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},K2e={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},q2e={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Y2e={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},X2e={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Z2e={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},J2e={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Q2e={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},eEe={ordinalNumber:NX({matchPattern:z2e,parsePattern:H2e,valueCallback:function(t){return parseInt(t,10)}}),era:cb({matchPatterns:V2e,defaultMatchWidth:"wide",parsePatterns:W2e,defaultParseWidth:"any"}),quarter:cb({matchPatterns:G2e,defaultMatchWidth:"wide",parsePatterns:K2e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:cb({matchPatterns:q2e,defaultMatchWidth:"wide",parsePatterns:Y2e,defaultParseWidth:"any"}),day:cb({matchPatterns:X2e,defaultMatchWidth:"wide",parsePatterns:Z2e,defaultParseWidth:"any"}),dayPeriod:cb({matchPatterns:J2e,defaultMatchWidth:"any",parsePatterns:Q2e,defaultParseWidth:"any"})};const tEe=eEe;var nEe={code:"zh-CN",formatDistance:S2e,formatLong:N2e,formatRelative:R2e,localize:B2e,match:tEe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const rEe=nEe,sEe={code:"zh-CN",dateFnsLocale:rEe,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"}},AP=sEe;class dm extends lt.Component{renderChildren(t,s){const{componentName:o}=this.props;let i=t;t!=null&&t.code||(i=AP);const a=_s(AP,"dateFnsLocale"),r=_s(i,"dateFnsLocale",a);return s(i[o],i.code,r)}render(){const{children:t}=this.props;return De.createElement(K1.Consumer,null,s=>{let{locale:o}=s;return De.createElement(TX.Consumer,null,i=>this.renderChildren(o||i,t))})}}dm.propTypes={componentName:W.string.isRequired,children:W.any};dm.defaultProps={componentName:""};const oEe="semi";var iEe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{const{svg:s,spin:o=!1,rotate:i,style:a,className:r,prefixCls:c=oEe,type:f,size:e="default"}=n,E=iEe(n,["svg","spin","rotate","style","className","prefixCls","type","size"]),_=Ar(`${c}-icon`,{[`${c}-icon-extra-small`]:e==="extra-small",[`${c}-icon-small`]:e==="small",[`${c}-icon-default`]:e==="default",[`${c}-icon-large`]:e==="large",[`${c}-icon-extra-large`]:e==="extra-large",[`${c}-icon-spinning`]:o===!0,[`${c}-icon-${f}`]:!!f},r),R={};return Number.isSafeInteger(i)&&(R.transform=`rotate(${i}deg)`),Object.assign(R,a),De.createElement("span",Object.assign({role:"img",ref:t,"aria-label":f,className:_,style:R},E),s)});OX.elementType="Icon";const sl=(n,t)=>{const s=De.forwardRef((o,i)=>De.createElement(OX,Object.assign({svg:De.createElement(n),type:t,ref:i},o)));return s.elementType="Icon",s};function aEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM13.5 17.5C13.5 16.6716 12.8284 16 12 16C11.1716 16 10.5 16.6716 10.5 17.5C10.5 18.3284 11.1716 19 12 19C12.8284 19 13.5 18.3284 13.5 17.5ZM12 5C10.9138 5 10.0507 5.91244 10.1109 6.99692L10.4168 12.5023C10.4635 13.3426 11.1584 14 12 14C12.8416 14 13.5365 13.3426 13.5832 12.5023L13.8891 6.99692C13.9493 5.91244 13.0862 5 12 5Z",fill:"currentColor"}))}const lEe=sl(aEe,"alert_circle"),tS=lEe;function uEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2268 2.3986L1.52616 19.0749C0.831449 20.4064 1.79747 22 3.29933 22H20.7007C22.2025 22 23.1686 20.4064 22.4739 19.0749L13.7732 2.3986C13.0254 0.965441 10.9746 0.965442 10.2268 2.3986ZM13.1415 14.0101C13.0603 14.5781 12.5739 15 12.0001 15C11.4263 15 10.9398 14.5781 10.8586 14.0101L10.2829 9.97992C10.1336 8.93495 10.9445 8.00002 12.0001 8.00002C13.0556 8.00002 13.8665 8.93495 13.7172 9.97992L13.1415 14.0101ZM13.5001 18.5C13.5001 19.3284 12.8285 20 12.0001 20C11.1716 20 10.5001 19.3284 10.5001 18.5C10.5001 17.6716 11.1716 17 12.0001 17C12.8285 17 13.5001 17.6716 13.5001 18.5Z",fill:"currentColor"}))}const cEe=sl(uEe,"alert_triangle"),xA=cEe;function dEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 12.8284 22.3284 13.5 21.5 13.5L6.12132 13.5L12.5607 19.9393C13.1464 20.5251 13.1464 21.4749 12.5607 22.0607C11.9749 22.6464 11.0251 22.6464 10.4393 22.0607L1.43934 13.0607C0.853554 12.4749 0.853554 11.5251 1.43934 10.9393L10.4393 1.93934C11.0251 1.35355 11.9749 1.35355 12.5607 1.93934C13.1464 2.52513 13.1464 3.47487 12.5607 4.06066L6.12132 10.5L21.5 10.5C22.3284 10.5 23 11.1716 23 12Z",fill:"currentColor"}))}const fEe=sl(dEe,"arrow_left"),hEe=fEe;function pEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 12C1 11.1716 1.67157 10.5 2.5 10.5L17.8787 10.5L11.4393 4.06066C10.8536 3.47487 10.8536 2.52513 11.4393 1.93934C12.0251 1.35355 12.9749 1.35355 13.5607 1.93934L22.5607 10.9393C23.1464 11.5251 23.1464 12.4749 22.5607 13.0607L13.5607 22.0607C12.9749 22.6464 12.0251 22.6464 11.4393 22.0607C10.8536 21.4749 10.8536 20.5251 11.4393 19.9393L17.8787 13.5L2.5 13.5C1.67157 13.5 1 12.8284 1 12Z",fill:"currentColor"}))}const mEe=sl(pEe,"arrow_right"),gEe=mEe;function vEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{d:"M17.549 15.659L12.753 21.139C12.6591 21.2464 12.5434 21.3325 12.4135 21.3915C12.2836 21.4505 12.1427 21.481 12 21.481C11.8574 21.481 11.7164 21.4505 11.5865 21.3915C11.4566 21.3325 11.3409 21.2464 11.247 21.139L6.45101 15.659C5.88501 15.011 6.34501 14 7.20401 14H16.796C17.656 14 18.115 15.012 17.549 15.659Z",fill:"currentColor"}))}const bEe=sl(vEe,"caretdown"),e3=bEe;function yEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{d:"M6.45096 8.34102L11.247 2.86102C11.3408 2.75361 11.4566 2.66753 11.5865 2.60854C11.7163 2.54956 11.8573 2.51904 12 2.51904C12.1426 2.51904 12.2836 2.54956 12.4135 2.60854C12.5433 2.66753 12.6591 2.75361 12.753 2.86102L17.549 8.34102C18.115 8.98802 17.655 10 16.796 10H7.20396C6.34396 10 5.88496 8.98802 6.45096 8.34102Z",fill:"currentColor"}))}const CEe=sl(yEe,"caretup"),wEe=CEe;function EEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{d:"M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z",fill:"currentColor"}))}const LEe=sl(EEe,"checkbox_indeterminate"),SEe=LEe;function xEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z",fill:"currentColor"}))}const AEe=sl(xEe,"checkbox_tick"),U1=AEe;function _Ee(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z",fill:"currentColor"}))}const TEe=sl(_Ee,"chevron_down"),AA=TEe;function NEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2782 4.23933C16.864 4.82511 16.864 5.77486 16.2782 6.36065L10.6213 12.0175L16.2782 17.6744C16.864 18.2601 16.864 19.2099 16.2782 19.7957C15.6924 20.3815 14.7426 20.3815 14.1569 19.7957L7.43934 13.0782C6.85355 12.4924 6.85355 11.5426 7.43934 10.9568L14.1569 4.23933C14.7426 3.65354 15.6924 3.65354 16.2782 4.23933Z",fill:"currentColor"}))}const OEe=sl(NEe,"chevron_left"),C9=OEe;function IEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43934 19.7957C6.85355 19.2099 6.85355 18.2601 7.43934 17.6744L13.0962 12.0175L7.43934 6.36065C6.85355 5.77486 6.85355 4.82511 7.43934 4.23933C8.02513 3.65354 8.97487 3.65354 9.56066 4.23933L16.2782 10.9568C16.864 11.5426 16.864 12.4924 16.2782 13.0782L9.56066 19.7957C8.97487 20.3815 8.02513 20.3815 7.43934 19.7957Z",fill:"currentColor"}))}const REe=sl(IEe,"chevron_right"),nS=REe;function PEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.637 16.4369C19.0513 17.0227 18.1015 17.0227 17.5157 16.4369L11.8589 10.7801L6.20202 16.4369C5.61623 17.0227 4.66648 17.0227 4.0807 16.4369C3.49491 15.8511 3.49491 14.9014 4.0807 14.3156L10.7982 7.59809C11.384 7.01231 12.3337 7.01231 12.9195 7.59809L19.637 14.3156C20.2228 14.9014 20.2228 15.8511 19.637 16.4369Z",fill:"currentColor"}))}const $Ee=sl(PEe,"chevron_up"),w9=$Ee;function kEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.0352 16.8626C16.4597 17.4585 15.5101 17.4751 14.9142 16.8996L12.0368 14.121L9.25822 16.9984C8.68274 17.5943 7.73314 17.6109 7.13722 17.0354C6.5413 16.4599 6.52472 15.5103 7.1002 14.9144L9.87883 12.037L7.00147 9.2584C6.40555 8.68293 6.38897 7.73332 6.96445 7.1374C7.53992 6.54148 8.48953 6.52491 9.08545 7.10038L11.9628 9.87901L14.7414 7.00165C15.3169 6.40573 16.2665 6.38916 16.8624 6.96463C17.4584 7.54011 17.4749 8.48971 16.8995 9.08563L14.1208 11.963L16.9982 14.7416C17.5941 15.3171 17.6107 16.2667 17.0352 16.8626Z",fill:"currentColor"}))}const DEe=sl(kEe,"clear"),_A=DEe;function MEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{d:"M17.6568 19.7782C18.2426 20.3639 19.1924 20.3639 19.7782 19.7782C20.3639 19.1924 20.3639 18.2426 19.7782 17.6568L14.1213 12L19.7782 6.34313C20.3639 5.75734 20.3639 4.8076 19.7782 4.22181C19.1924 3.63602 18.2426 3.63602 17.6568 4.22181L12 9.87866L6.34313 4.22181C5.75734 3.63602 4.8076 3.63602 4.22181 4.22181C3.63602 4.8076 3.63602 5.75734 4.22181 6.34313L9.87866 12L4.22181 17.6568C3.63602 18.2426 3.63602 19.1924 4.22181 19.7782C4.8076 20.3639 5.75734 20.3639 6.34313 19.7782L12 14.1213L17.6568 19.7782Z",fill:"currentColor"}))}const jEe=sl(MEe,"close"),sw=jEe;function FEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{d:"M7 4C7 2.89543 7.89543 2 9 2H20C21.1046 2 22 2.89543 22 4V15C22 16.1046 21.1046 17 20 17H19V8C19 6 18 5 16 5H7V4Z",fill:"currentColor"}),lt.createElement("path",{d:"M5 7C3.89543 7 3 7.89543 3 9V19C3 20.1046 3.89543 21 5 21H15C16.1046 21 17 20.1046 17 19V9C17 7.89543 16.1046 7 15 7H5Z",fill:"currentColor"}))}const UEe=sl(FEe,"copy"),BEe=UEe;function zEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.61612 19.1161C3.12796 19.6043 3.12796 20.3957 3.61612 20.8839C4.10427 21.372 4.89573 21.372 5.38388 20.8839L12.5 13.7678L19.6161 20.8839C20.1043 21.372 20.8957 21.372 21.3839 20.8839C21.872 20.3957 21.872 19.6043 21.3839 19.1161L14.2678 12L21.3839 4.88389C21.872 4.39573 21.872 3.60427 21.3839 3.11612C20.8957 2.62796 20.1043 2.62796 19.6161 3.11612L12.5 10.2322L5.38388 3.11612C4.89573 2.62796 4.10427 2.62796 3.61612 3.11612C3.12796 3.60427 3.12796 4.39573 3.61612 4.88388L10.7322 12L3.61612 19.1161Z",fill:"currentColor"}))}const HEe=sl(zEe,"cross_stroked"),VEe=HEe;function WEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 5V4H14V5H10ZM8 5V3C8 2.44772 8.44772 2 9 2H15C15.5523 2 16 2.44772 16 3V5H19H20C20.5523 5 21 5.44772 21 6C21 6.55228 20.5523 7 20 7H19V21C19 21.5523 18.5523 22 18 22H6C5.44772 22 5 21.5523 5 21V7H4C3.44772 7 3 6.55228 3 6C3 5.44772 3.44772 5 4 5H5H8ZM15 7H9H7V20H17V7H15ZM9 9.5C9 9.22386 9.22386 9 9.5 9H10.5C10.7761 9 11 9.22386 11 9.5V16.5C11 16.7761 10.7761 17 10.5 17H9.5C9.22386 17 9 16.7761 9 16.5V9.5ZM13 9.5C13 9.22386 13.2239 9 13.5 9H14.5C14.7761 9 15 9.22386 15 9.5V16.5C15 16.7761 14.7761 17 14.5 17H13.5C13.2239 17 13 16.7761 13 16.5V9.5Z",fill:"currentColor"}))}const GEe=sl(WEe,"delete_stroked"),Kv=GEe;function KEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM11.6799 17.7333C11.8653 17.8878 12.1347 17.8878 12.3201 17.7333L17.4695 13.4421C17.6492 13.2924 17.5433 13 17.3095 13H14V9.5C14 9.22386 13.7761 9 13.5 9H10.5C10.2239 9 10 9.22386 10 9.5V13H6.69051C6.45669 13 6.35084 13.2924 6.53047 13.4421L11.6799 17.7333Z",fill:"currentColor"}))}const qEe=sl(KEe,"download"),YEe=qEe;function XEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{d:"M14.4999 4.49994L19.4999 9.49994L21.5857 7.41416C22.3667 6.63311 22.3667 5.36678 21.5857 4.58573L19.4141 2.41415C18.6331 1.63311 17.3667 1.63311 16.5857 2.41416L14.4999 4.49994Z",fill:"currentColor"}),lt.createElement("path",{d:"M2.24715 21.1346L3.92871 15.2491C3.9754 15.0857 4.06296 14.9369 4.18313 14.8167L12.9999 5.99994L17.9999 10.9999L9.18313 19.8167C9.06296 19.9369 8.91415 20.0244 8.75074 20.0711L2.86527 21.7527C2.48809 21.8605 2.13938 21.5117 2.24715 21.1346Z",fill:"currentColor"}))}const ZEe=sl(XEe,"edit"),t3=ZEe;function JEe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7071 3.70711C22.0976 3.31658 22.0976 2.68342 21.7071 2.29289C21.3166 1.90237 20.6834 1.90237 20.2929 2.29289L17.3135 5.27233C15.8114 4.50566 14.0321 4 12 4C5 4 1 10 1 12C1 13.1757 2.38219 15.7335 4.94345 17.6423L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L21.7071 3.70711ZM7.8284 14.7574L9.29237 13.2934C9.10495 12.9018 9 12.4631 9 12C9 10.3431 10.3431 9 12 9C12.4631 9 12.9018 9.10495 13.2934 9.29237L14.7574 7.8284C13.967 7.30488 13.0191 7 12 7C9.23858 7 7 9.23858 7 12C7 13.0191 7.30488 13.967 7.8284 14.7574Z",fill:"currentColor"}),lt.createElement("path",{d:"M12 20C10.7789 20 9.64914 19.8174 8.61594 19.5054L11.1871 16.9342C11.4516 16.9775 11.7232 17 12 17C14.7614 17 17 14.7614 17 12C17 11.7232 16.9775 11.4516 16.9342 11.1871L20.5032 7.61808C22.1342 9.27317 23 11.0695 23 12C23 14 19 20 12 20Z",fill:"currentColor"}))}const QEe=sl(JEe,"eye_closed_solid"),eLe=QEe;function tLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12C1 14 5 20 12 20C19 20 23 14 23 12C23 10 19 4 12 4ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}))}const nLe=sl(tLe,"eye_opened"),IX=nLe;function rLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12 1.44772 11.5523 1 11 1H6C4.89543 1 4 1.89543 4 3V21C4 22.1046 4.89543 23 6 23H18C19.1046 23 20 22.1046 20 21V10C20 9.44772 19.5523 9 19 9H14C12.8954 9 12 8.10457 12 7V2ZM7 8C7 7.44772 7.44772 7 8 7H9C9.55228 7 10 7.44772 10 8C10 8.55228 9.55228 9 9 9H8C7.44772 9 7 8.55228 7 8ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM8 17C7.44772 17 7 17.4477 7 18C7 18.5523 7.44772 19 8 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H8ZM19.0686 7.49999H14.5C13.9477 7.49999 13.5 7.05228 13.5 6.49999V1.93136C13.5 1.21864 14.3617 0.861707 14.8657 1.36568L19.6343 6.13431C20.1383 6.63828 19.7814 7.49999 19.0686 7.49999Z",fill:"currentColor"}))}const sLe=sl(rLe,"file"),EB=sLe;function oLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.0929 2.57912C1.25675 2.22596 1.61069 2 2.00001 2H22C22.3893 2 22.7433 2.22596 22.9071 2.57912C23.071 2.93229 23.015 3.34845 22.7636 3.64573L14.5654 12.8261V21C14.5654 21.3466 14.386 21.6684 14.0911 21.8507C13.7963 22.0329 13.4282 22.0494 13.1182 21.8944L10.0528 19.8944C9.71401 19.725 9.5 19.3788 9.5 19V12.8261L1.23644 3.64573C0.985045 3.34845 0.929036 2.93229 1.0929 2.57912Z",fill:"currentColor"}))}const iLe=sl(oLe,"filter"),aLe=iLe;function lLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{d:"M12.0101 1C5.92171 1 1 5.92171 1 12.0101C1 16.8771 4.15354 20.9967 8.5284 22.455C9.07526 22.5644 9.27577 22.218 9.27577 21.9264C9.27577 21.6712 9.25754 20.7962 9.25754 19.8848C6.19514 20.541 5.55714 18.5723 5.55714 18.5723C5.06497 17.2963 4.33583 16.9682 4.33583 16.9682C3.33326 16.2938 4.40874 16.2938 4.40874 16.2938C5.52069 16.3667 6.104 17.4239 6.104 17.4239C7.08834 19.101 8.67423 18.627 9.31223 18.3354C9.40337 17.6245 9.69503 17.1323 10.0049 16.8589C7.56229 16.6037 4.99206 15.6558 4.99206 11.4267C4.99206 10.2237 5.42954 9.23931 6.12223 8.47371C6.01286 8.20028 5.63006 7.07011 6.2316 5.55714C6.2316 5.55714 7.16126 5.26548 9.25754 6.68731C10.1325 6.45034 11.0804 6.32274 12.0101 6.32274C12.9397 6.32274 13.8876 6.45034 14.7626 6.68731C16.8589 5.26548 17.7885 5.55714 17.7885 5.55714C18.3901 7.07011 18.0073 8.20028 17.8979 8.47371C18.6088 9.23931 19.0281 10.2237 19.0281 11.4267C19.0281 15.6558 16.4578 16.5854 13.997 16.8589C14.398 17.2052 14.7443 17.8614 14.7443 18.9004C14.7443 20.377 14.7261 21.5618 14.7261 21.9264C14.7261 22.218 14.9266 22.5644 15.4735 22.455C19.8483 20.9967 23.0019 16.8771 23.0019 12.0101C23.0201 5.92171 18.0802 1 12.0101 1Z",fill:"currentColor"}),lt.createElement("path",{d:"M5.17419 16.8042C5.15596 16.8589 5.06482 16.8771 4.99191 16.8406C4.91899 16.8042 4.86431 16.7313 4.90076 16.6766C4.91899 16.6219 5.01014 16.6037 5.08305 16.6401C5.15596 16.6766 5.19242 16.7495 5.17419 16.8042ZM5.61168 17.2964C5.55699 17.351 5.44762 17.3146 5.39294 17.2417C5.32002 17.1688 5.30179 17.0594 5.35648 17.0047C5.41116 16.95 5.50231 16.9865 5.57522 17.0594C5.64814 17.1505 5.66636 17.2599 5.61168 17.2964ZM6.04916 17.9344C5.97625 17.989 5.86688 17.9344 5.81219 17.8432C5.73928 17.7521 5.73928 17.6245 5.81219 17.588C5.88511 17.5333 5.99448 17.588 6.04916 17.6792C6.12208 17.7703 6.12208 17.8797 6.04916 17.9344ZM6.65071 18.5541C6.59602 18.627 6.46842 18.6088 6.35905 18.5177C6.26791 18.4265 6.23145 18.2989 6.30436 18.2442C6.35905 18.1713 6.48665 18.1896 6.59602 18.2807C6.68716 18.3536 6.70539 18.4812 6.65071 18.5541ZM7.47099 18.9005C7.45276 18.9916 7.32516 19.0281 7.19756 18.9916C7.06996 18.9552 6.99705 18.8458 7.01528 18.7729C7.03351 18.6817 7.16111 18.6453 7.28871 18.6817C7.41631 18.7182 7.48922 18.8093 7.47099 18.9005ZM8.36419 18.9734C8.36419 19.0645 8.25482 19.1374 8.12722 19.1374C7.99962 19.1374 7.89025 19.0645 7.89025 18.9734C7.89025 18.8822 7.99962 18.8093 8.12722 18.8093C8.25482 18.8093 8.36419 18.8822 8.36419 18.9734ZM9.20271 18.8276C9.22093 18.9187 9.12979 19.0098 9.00219 19.0281C8.87459 19.0463 8.76522 18.9916 8.74699 18.9005C8.72876 18.8093 8.81991 18.7182 8.94751 18.7C9.07511 18.6817 9.18448 18.7364 9.20271 18.8276Z",fill:"currentColor"}))}const uLe=sl(lLe,"github_logo"),cLe=uLe;function dLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{d:"M9 7C10.1046 7 11 6.10457 11 5C11 3.89543 10.1046 3 9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7Z",fill:"currentColor"}),lt.createElement("path",{d:"M9 14C10.1046 14 11 13.1046 11 12C11 10.8954 10.1046 10 9 10C7.89543 10 7 10.8954 7 12C7 13.1046 7.89543 14 9 14Z",fill:"currentColor"}),lt.createElement("path",{d:"M11 19C11 20.1046 10.1046 21 9 21C7.89543 21 7 20.1046 7 19C7 17.8954 7.89543 17 9 17C10.1046 17 11 17.8954 11 19Z",fill:"currentColor"}),lt.createElement("path",{d:"M15 7C16.1046 7 17 6.10457 17 5C17 3.89543 16.1046 3 15 3C13.8954 3 13 3.89543 13 5C13 6.10457 13.8954 7 15 7Z",fill:"currentColor"}),lt.createElement("path",{d:"M17 12C17 13.1046 16.1046 14 15 14C13.8954 14 13 13.1046 13 12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12Z",fill:"currentColor"}),lt.createElement("path",{d:"M15 21C16.1046 21 17 20.1046 17 19C17 17.8954 16.1046 17 15 17C13.8954 17 13 17.8954 13 19C13 20.1046 13.8954 21 15 21Z",fill:"currentColor"}))}const fLe=sl(dLe,"handle"),hLe=fLe;function pLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8281 14.6094C10.9688 14.6094 10.5391 14.0723 10.5391 13.3691C10.5391 12.3242 11.0566 11.6504 12.2676 10.7324C12.2894 10.7158 12.3111 10.6993 12.3326 10.6829C13.1573 10.0555 13.7324 9.61807 13.7324 8.82812C13.7324 7.93945 12.9023 7.42188 11.9746 7.42188C11.2129 7.42188 10.627 7.70508 10.168 8.30078C9.83594 8.64258 9.57227 8.82812 9.12305 8.82812C8.38086 8.82812 8 8.31055 8 7.71484C8 7.10938 8.3418 6.49414 8.87891 6.02539C9.60156 5.40039 10.7539 5 12.2773 5C14.9922 5 16.8965 6.33789 16.8965 8.64258C16.8965 10.3223 15.8906 11.1328 14.709 11.9531C13.9082 12.5391 13.5273 12.8809 13.2246 13.5742L13.2238 13.5756C12.8922 14.1609 12.638 14.6094 11.8281 14.6094ZM11.8086 18.7695C10.8711 18.7695 10.0996 18.1641 10.0996 17.2266C10.0996 16.2891 10.8711 15.6836 11.8086 15.6836C12.7461 15.6836 13.5078 16.2891 13.5078 17.2266C13.5078 18.1641 12.7461 18.7695 11.8086 18.7695Z",fill:"currentColor"}))}const mLe=sl(pLe,"help_circle"),gLe=mLe;function vLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM14 7C14 8.10457 13.1046 9 12 9C10.8954 9 10 8.10457 10 7C10 5.89543 10.8954 5 12 5C13.1046 5 14 5.89543 14 7ZM9 10.75C9 10.3358 9.33579 10 9.75 10H12.5C13.0523 10 13.5 10.4477 13.5 11V16.5H14.25C14.6642 16.5 15 16.8358 15 17.25C15 17.6642 14.6642 18 14.25 18H9.75C9.33579 18 9 17.6642 9 17.25C9 16.8358 9.33579 16.5 9.75 16.5H10.5V11.5H9.75C9.33579 11.5 9 11.1642 9 10.75Z",fill:"currentColor"}))}const bLe=sl(vLe,"info_circle"),n3=bLe;function yLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3333 4C12.7277 4 10.6667 6.04265 10.6667 8.5C10.6667 9.11949 10.7959 9.70779 11.0295 10.2431L11.2965 10.855L5 17.4028V20H7.12121V17.5H9.69697V15H12.2727V12.6251H13.2727C13.3732 12.6251 13.4595 12.6407 13.4805 12.6445L13.4829 12.6449C13.519 12.6514 13.5545 12.6591 13.5832 12.6655C13.6412 12.6786 13.7115 12.6958 13.781 12.7131L13.8406 12.7279C13.9737 12.761 14.1275 12.7993 14.2956 12.8377C14.7073 12.9318 15.0949 13 15.3333 13C17.939 13 20 10.9574 20 8.5C20 6.04265 17.939 4 15.3333 4ZM8.66667 8.5C8.66667 4.88222 11.6798 2 15.3333 2C18.9869 2 22 4.88222 22 8.5C22 12.1178 18.9869 15 15.3333 15C14.9962 15 14.6124 14.9432 14.2727 14.8773V17H11.697V19.5H9.12121V22H3V16.5972L8.957 10.4024C8.76819 9.80013 8.66667 9.16107 8.66667 8.5ZM17 8.5C17 9.32843 16.3284 10 15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5Z",fill:"currentColor"}))}const CLe=sl(yLe,"key_stroked"),RX=CLe;function wLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6402 2.23177C19.2159 1.87821 18.5853 1.93553 18.2318 2.35981C17.8782 2.78409 17.9355 3.41465 18.3598 3.76822L19.238 4.5H8C4.14834 4.5 1 7.62032 1 11.5C1 12.0523 1.44772 12.5 2 12.5C2.55228 12.5 3 12.0523 3 11.5C3 8.72988 5.2479 6.5 8 6.5H19.2379L18.3598 7.23177C17.9355 7.58534 17.8782 8.2159 18.2318 8.64018C18.5853 9.06446 19.2159 9.12178 19.6402 8.76822L22.6335 6.27377C22.8572 6.09037 23 5.81186 23 5.49999C23 5.25886 22.913 5.02785 22.758 4.84779C22.7266 4.81121 22.6923 4.77674 22.6554 4.74471C22.6485 4.7387 22.6415 4.73278 22.6344 4.72696L19.6402 2.23177ZM22 11C22.5523 11 23 11.4477 23 12C23 15.8797 19.8517 19 16 19H4.76206L5.64018 19.7318C6.06446 20.0853 6.12179 20.7159 5.76822 21.1402C5.41466 21.5645 4.78409 21.6218 4.35982 21.2682L1.36616 18.7735C1.35303 18.7627 1.34018 18.7516 1.32762 18.7402C1.30033 18.7154 1.27441 18.6891 1.25 18.6615C1.09441 18.4852 1 18.2536 1 18C1 17.7456 1.09496 17.5135 1.25136 17.337C1.27461 17.3108 1.29933 17.2856 1.32545 17.2618C1.33839 17.2499 1.35165 17.2384 1.3652 17.2273L4.35982 14.7318C4.78409 14.3782 5.41466 14.4355 5.76822 14.8598C6.12179 15.2841 6.06446 15.9147 5.64018 16.2682L4.76204 17H16C18.7521 17 21 14.7701 21 12C21 11.4477 21.4477 11 22 11ZM7 9.5C7 9.22386 7.22386 9 7.5 9H13.5C13.7761 9 14 9.22386 14 9.5V10.5C14 10.7761 13.7761 11 13.5 11H7.5C7.22386 11 7 10.7761 7 10.5V9.5ZM15.5 9C15.2239 9 15 9.22386 15 9.5V10.5C15 10.7761 15.2239 11 15.5 11H17.5C17.7761 11 18 10.7761 18 10.5V9.5C18 9.22386 17.7761 9 17.5 9H15.5ZM7 13.5C7 13.2239 7.22386 13 7.5 13H10.5C10.7761 13 11 13.2239 11 13.5V14.5C11 14.7761 10.7761 15 10.5 15H7.5C7.22386 15 7 14.7761 7 14.5V13.5ZM12.5 13C12.2239 13 12 13.2239 12 13.5V14.5C12 14.7761 12.2239 15 12.5 15H17.5C17.7761 15 18 14.7761 18 14.5V13.5C18 13.2239 17.7761 13 17.5 13H12.5Z",fill:"currentColor"}))}const ELe=sl(wLe,"loop_text_stroked"),LLe=ELe;function SLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("g",{opacity:.99},lt.createElement("path",{d:"M2 19.5C2 18.6716 2.67157 18 3.5 18H20.5C21.3284 18 22 18.6716 22 19.5C22 20.3284 21.3284 21 20.5 21H3.5C2.67157 21 2 20.3284 2 19.5Z",fill:"currentColor"}),lt.createElement("path",{d:"M2 12C2 11.1716 2.67157 10.5 3.5 10.5H20.5C21.3284 10.5 22 11.1716 22 12C22 12.8284 21.3284 13.5 20.5 13.5H3.5C2.67157 13.5 2 12.8284 2 12Z",fill:"currentColor"}),lt.createElement("path",{d:"M2 4.5C2 3.67157 2.67157 3 3.5 3H20.5C21.3284 3 22 3.67157 22 4.5C22 5.32843 21.3284 6 20.5 6H3.5C2.67157 6 2 5.32843 2 4.5Z",fill:"currentColor"})))}const xLe=sl(SLe,"menu"),ALe=xLe;function _Le(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{d:"M2 12C2 11.1716 2.67157 10.5 3.5 10.5H20.5C21.3284 10.5 22 11.1716 22 12C22 12.8284 21.3284 13.5 20.5 13.5H3.5C2.67157 13.5 2 12.8284 2 12Z",fill:"currentColor"}))}const TLe=sl(_Le,"minus"),PX=TLe;function NLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17 15C17.476 15 17.9408 14.9525 18.3901 14.862C17.296 17.3011 14.8464 19 12 19C8.13401 19 5 15.866 5 12C5 8.60996 7.40983 5.78277 10.6099 5.13803C10.218 6.01173 10 6.98041 10 8C10 11.866 13.134 15 17 15Z",fill:"currentColor"}))}const OLe=sl(NLe,"moon"),E9=OLe;function ILe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{d:"M7 12C7 13.3807 5.88071 14.5 4.5 14.5C3.11929 14.5 2 13.3807 2 12C2 10.6193 3.11929 9.5 4.5 9.5C5.88071 9.5 7 10.6193 7 12Z",fill:"currentColor"}),lt.createElement("path",{d:"M14.5 12C14.5 13.3807 13.3807 14.5 12 14.5C10.6193 14.5 9.5 13.3807 9.5 12C9.5 10.6193 10.6193 9.5 12 9.5C13.3807 9.5 14.5 10.6193 14.5 12Z",fill:"currentColor"}),lt.createElement("path",{d:"M19.5 14.5C20.8807 14.5 22 13.3807 22 12C22 10.6193 20.8807 9.5 19.5 9.5C18.1193 9.5 17 10.6193 17 12C17 13.3807 18.1193 14.5 19.5 14.5Z",fill:"currentColor"}))}const RLe=sl(ILe,"more"),rS=RLe;function PLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.273 4.27297C17.2423 3.24234 15.5714 3.24234 14.5407 4.27297L6.79074 12.023C5.06975 13.744 5.06975 16.5342 6.79074 18.2552C8.51172 19.9762 11.302 19.9762 13.023 18.2552L18.523 12.7552C19.0111 12.267 19.8026 12.267 20.2907 12.7552C20.7789 13.2434 20.7789 14.0348 20.2907 14.523L14.7907 20.023C12.0934 22.7203 7.72027 22.7203 5.02297 20.023C2.32568 17.3257 2.32568 12.9525 5.02297 10.2552L12.773 2.5052C14.7799 0.498263 18.0338 0.498268 20.0407 2.5052C22.0477 4.51214 22.0477 7.76603 20.0407 9.77297L12.7907 17.023C11.4742 18.3396 9.33955 18.3396 8.02297 17.023C6.70639 15.7064 6.70639 13.5718 8.02297 12.2552L13.523 6.7552C14.0111 6.26705 14.8026 6.26705 15.2907 6.7552C15.7789 7.24336 15.7789 8.03482 15.2907 8.52297L9.79074 14.023C9.45047 14.3632 9.45047 14.9149 9.79074 15.2552C10.131 15.5955 10.6827 15.5955 11.023 15.2552L18.273 8.0052C19.3036 6.97458 19.3036 5.3036 18.273 4.27297Z",fill:"currentColor"}))}const $Le=sl(PLe,"paperclip"),VS=$Le;function kLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{d:"M20.5 13.5C21.3284 13.5 22 12.8284 22 12C22 11.1716 21.3284 10.5 20.5 10.5L13.5 10.5L13.5 3.5C13.5 2.67157 12.8284 2 12 2C11.1716 2 10.5 2.67157 10.5 3.5L10.5 10.5L3.5 10.5C2.67157 10.5 2 11.1716 2 12C2 12.8284 2.67157 13.5 3.5 13.5L10.5 13.5V20.5C10.5 21.3284 11.1716 22 12 22C12.8284 22 13.5 21.3284 13.5 20.5V13.5L20.5 13.5Z",fill:"currentColor"}))}const DLe=sl(kLe,"plus"),L2=DLe;function MLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("circle",{cx:12,cy:12,r:5,fill:"currentColor"}))}const jLe=sl(MLe,"radio"),FLe=jLe;function ULe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 6C1 4.89543 1.89543 4 3 4H21C22.1046 4 23 4.89543 23 6V18C23 19.1046 22.1046 20 21 20H3C1.89543 20 1 19.1046 1 18V6ZM21 6L3 6V18H21V6ZM5 9C5 8.44772 5.44772 8 6 8H7.5C8.05228 8 8.5 8.44772 8.5 9V15C8.5 15.5523 8.05228 16 7.5 16C6.94772 16 6.5 15.5523 6.5 15V10H6C5.44772 10 5 9.55228 5 9ZM16 8C15.4477 8 15 8.44772 15 9C15 9.55228 15.4477 10 16 10H16.5V15C16.5 15.5523 16.9477 16 17.5 16C18.0523 16 18.5 15.5523 18.5 15V9C18.5 8.44772 18.0523 8 17.5 8H16ZM13 10C13 10.5523 12.5523 11 12 11C11.4477 11 11 10.5523 11 10C11 9.44772 11.4477 9 12 9C12.5523 9 13 9.44772 13 10ZM12 15C12.5523 15 13 14.5523 13 14C13 13.4477 12.5523 13 12 13C11.4477 13 11 13.4477 11 14C11 14.5523 11.4477 15 12 15Z",fill:"currentColor"}))}const BLe=sl(ULe,"real_size_stroked"),zLe=BLe;function HLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.4393 2.43934C13.8536 3.02513 13.8536 3.97487 14.4393 4.56066L16.8787 7H9.25C5.1647 7 2 10.5796 2 14.5C2 18.4204 5.1647 22 9.25 22H12.5C13.3284 22 14 21.3284 14 20.5C14 19.6716 13.3284 19 12.5 19H9.25C6.98402 19 5 16.9308 5 14.5C5 12.0692 6.98402 10 9.25 10H16.8787L14.4393 12.4393C13.8536 13.0251 13.8536 13.9749 14.4393 14.5607C15.0251 15.1464 15.9749 15.1464 16.5607 14.5607L21.5607 9.56066C22.1464 8.97487 22.1464 8.02513 21.5607 7.43934L16.5607 2.43934C15.9749 1.85355 15.0251 1.85355 14.4393 2.43934Z",fill:"currentColor"}))}const VLe=sl(HLe,"redo"),WLe=VLe;function GLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49993 11.9998C4.49993 7.85775 7.85775 4.49993 11.9998 4.49993C14.6403 4.49993 16.9645 5.86506 18.3012 7.9305L16.2939 7.52902C15.4815 7.36656 14.6913 7.89337 14.5288 8.7057C14.3664 9.51803 14.8932 10.3083 15.7055 10.4707L20.7055 11.4707C21.4643 11.6225 22.214 11.1721 22.4363 10.4309L23.9363 5.43095C24.1744 4.63747 23.7241 3.80126 22.9307 3.56321C22.1372 3.32517 21.301 3.77543 21.0629 4.56891L20.6287 6.01635C18.7332 3.28781 15.5765 1.49998 11.9998 1.49998C6.20092 1.49998 1.49998 6.20092 1.49998 11.9998C1.49998 17.7987 6.20092 22.4997 11.9998 22.4997C16.5739 22.4997 20.4611 19.5757 21.9018 15.4996C22.1779 14.7186 21.7685 13.8616 20.9874 13.5855C20.2064 13.3095 19.3494 13.7189 19.0733 14.4999C18.0431 17.4149 15.263 19.4997 11.9998 19.4997C7.85775 19.4997 4.49993 16.1419 4.49993 11.9998Z",fill:"currentColor"}))}const KLe=sl(GLe,"refresh"),qLe=KLe;function YLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{d:"M14.2071 2.20711C14.5976 1.81658 14.5976 1.18342 14.2071 0.792893C13.8166 0.402369 13.1834 0.402369 12.7929 0.792893L10.2929 3.29289C9.90237 3.68342 9.90237 4.31658 10.2929 4.70711L12.7929 7.20711C13.1834 7.59763 13.8166 7.59763 14.2071 7.20711C14.5976 6.81658 14.5976 6.18342 14.2071 5.79289L13.4142 5H16C18.7614 5 21 7.23858 21 10V12C21 12.5523 21.4477 13 22 13C22.5523 13 23 12.5523 23 12V10C23 6.13401 19.866 3 16 3H13.4142L14.2071 2.20711Z",fill:"currentColor"}),lt.createElement("path",{d:"M3 10C3 8.89543 3.89543 8 5 8H17C18.1046 8 19 8.89543 19 10V20C19 21.1046 18.1046 22 17 22H5C3.89543 22 3 21.1046 3 20V10Z",fill:"currentColor"}))}const XLe=sl(YLe,"rotate"),ZLe=XLe;function JLe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 4C20.1046 4 21 4.89543 21 6L21 9C21 10.1046 20.1046 11 19 11L5 11C3.89543 11 3 10.1046 3 9L3 6C3 4.89543 3.89543 4 5 4L19 4ZM19 9L19 6L5 6L5 9L19 9Z",fill:"currentColor"}),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 13C20.1046 13 21 13.8954 21 15L21 18C21 19.1046 20.1046 20 19 20L5 20C3.89543 20 3 19.1046 3 18L3 15C3 13.8954 3.89543 13 5 13L19 13ZM19 18L19 15L5 15L5 18L19 18Z",fill:"currentColor"}))}const QLe=sl(JLe,"rows_stroked"),eSe=QLe;function tSe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4C2 2.89543 2.89543 2 4 2H7H12H14.9608C15.4912 2 15.9999 2.21071 16.375 2.58579L21.4142 7.625C21.7893 8.00007 22 8.50878 22 9.03921V20C22 21.1046 21.1046 22 20 22H17H7H4C2.89543 22 2 21.1046 2 20V4ZM11 4H8V7H11V4ZM6 4V8C6 8.55228 6.44772 9 7 9H12C12.5523 9 13 8.55228 13 8V4H14.9608L20 9.03921V20H18V15C18 14.4477 17.5523 14 17 14H7C6.44772 14 6 14.4477 6 15V20H4V4H6ZM16 16V20H8V16H16Z",fill:"currentColor"}))}const nSe=sl(tSe,"save_stroked"),rSe=nSe;function sSe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2C5.80558 2 2 5.80558 2 10.5C2 15.1944 5.80558 19 10.5 19C12.3054 19 13.9794 18.4371 15.356 17.4773L19.4393 21.5606C20.0251 22.1464 20.9749 22.1464 21.5606 21.5606C22.1464 20.9749 22.1464 20.0251 21.5606 19.4393L17.4773 15.356C18.4371 13.9794 19 12.3054 19 10.5C19 5.80558 15.1944 2 10.5 2ZM5 10.5C5 7.46243 7.46243 5 10.5 5C13.5376 5 16 7.46243 16 10.5C16 13.5376 13.5376 16 10.5 16C7.46243 16 5 13.5376 5 10.5Z",fill:"currentColor"}))}const oSe=sl(sSe,"search"),a2=oSe;function iSe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{d:"M10.5 1.5C10.5 0.671573 11.1716 0 12 0C12.8284 0 13.5 0.671573 13.5 1.5V2.5C13.5 3.32843 12.8284 4 12 4C11.1716 4 10.5 3.32843 10.5 2.5V1.5Z",fill:"currentColor"}),lt.createElement("path",{d:"M10.5 21.5C10.5 20.6716 11.1716 20 12 20C12.8284 20 13.5 20.6716 13.5 21.5V22.5C13.5 23.3284 12.8284 24 12 24C11.1716 24 10.5 23.3284 10.5 22.5V21.5Z",fill:"currentColor"}),lt.createElement("path",{d:"M24 12C24 11.1716 23.3284 10.5 22.5 10.5H21.5C20.6716 10.5 20 11.1716 20 12C20 12.8284 20.6716 13.5 21.5 13.5H22.5C23.3284 13.5 24 12.8284 24 12Z",fill:"currentColor"}),lt.createElement("path",{d:"M2.5 10.5C3.32843 10.5 4 11.1716 4 12C4 12.8284 3.32843 13.5 2.5 13.5H1.5C0.671573 13.5 0 12.8284 0 12C0 11.1716 0.671573 10.5 1.5 10.5H2.5Z",fill:"currentColor"}),lt.createElement("path",{d:"M20.4853 3.51472C19.8995 2.92893 18.9497 2.92893 18.364 3.51472L17.6569 4.22182C17.0711 4.80761 17.0711 5.75736 17.6569 6.34314C18.2426 6.92893 19.1924 6.92893 19.7782 6.34314L20.4853 5.63604C21.0711 5.05025 21.0711 4.1005 20.4853 3.51472Z",fill:"currentColor"}),lt.createElement("path",{d:"M4.22181 17.6569C4.8076 17.0711 5.75734 17.0711 6.34313 17.6569C6.92892 18.2426 6.92892 19.1924 6.34313 19.7782L5.63602 20.4853C5.05024 21.0711 4.10049 21.0711 3.5147 20.4853C2.92892 19.8995 2.92892 18.9497 3.5147 18.364L4.22181 17.6569Z",fill:"currentColor"}),lt.createElement("path",{d:"M3.5147 3.51472C2.92891 4.1005 2.92891 5.05025 3.5147 5.63604L4.22181 6.34315C4.80759 6.92893 5.75734 6.92893 6.34313 6.34315C6.92891 5.75736 6.92891 4.80761 6.34313 4.22183L5.63602 3.51472C5.05023 2.92893 4.10049 2.92893 3.5147 3.51472Z",fill:"currentColor"}),lt.createElement("path",{d:"M17.6569 19.7782C17.0711 19.1924 17.0711 18.2426 17.6569 17.6569C18.2426 17.0711 19.1924 17.0711 19.7782 17.6569L20.4853 18.364C21.0711 18.9497 21.0711 19.8995 20.4853 20.4853C19.8995 21.0711 18.9497 21.0711 18.364 20.4853L17.6569 19.7782Z",fill:"currentColor"}),lt.createElement("path",{d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:"currentColor"}))}const aSe=sl(iSe,"sun"),L9=aSe;function lSe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3516 4.2652C22.0336 4.73552 22.2052 5.66964 21.7348 6.35162L11.7348 20.8516C11.4765 21.2262 11.0622 21.4632 10.6084 21.4961C10.1546 21.529 9.71041 21.3541 9.40082 21.0207L2.90082 14.0207C2.33711 13.4136 2.37226 12.4645 2.97933 11.9008C3.5864 11.3371 4.53549 11.3723 5.0992 11.9793L10.3268 17.6091L19.2652 4.64842C19.7355 3.96644 20.6696 3.79487 21.3516 4.2652Z",fill:"currentColor"}))}const uSe=sl(lSe,"tick"),O5=uSe;function cSe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.8831 9.82235L11.6854 17.4112C11.4029 17.7806 10.965 17.9981 10.5 18C10.035 18.0019 9.59533 17.788 9.30982 17.421L5.81604 13.4209C5.30744 12.767 5.42524 11.8246 6.07916 11.316C6.73308 10.8074 7.67549 10.9252 8.1841 11.5791L10.4838 14.0439L15.5 8C16.0032 7.34193 16.9446 7.21641 17.6027 7.71964C18.2608 8.22287 18.3863 9.16428 17.8831 9.82235Z",fill:"currentColor"}))}const dSe=sl(cSe,"tick_circle"),TA=dSe;function fSe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{d:"M20.5598 9.65618L12.7546 18.6322C12.3559 19.0906 11.644 19.0906 11.2453 18.6322L3.4401 9.65618C2.8773 9.00895 3.33701 8 4.19471 8L19.8052 8C20.6629 8 21.1226 9.00895 20.5598 9.65618Z",fill:"currentColor"}))}const hSe=sl(fSe,"tree_triangle_down"),pSe=hSe;function mSe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{d:"M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z",fill:"currentColor"}))}const gSe=sl(mSe,"tree_triangle_right"),vSe=gSe;function bSe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.56066 2.43934C10.1464 3.02513 10.1464 3.97487 9.56066 4.56066L7.12132 7H14.75C18.8353 7 22 10.5796 22 14.5C22 18.4204 18.8353 22 14.75 22H11.5C10.6716 22 10 21.3284 10 20.5C10 19.6716 10.6716 19 11.5 19H14.75C17.016 19 19 16.9308 19 14.5C19 12.0692 17.016 10 14.75 10H7.12132L9.56066 12.4393C10.1464 13.0251 10.1464 13.9749 9.56066 14.5607C8.97487 15.1464 8.02513 15.1464 7.43934 14.5607L2.43934 9.56066C1.85355 8.97487 1.85355 8.02513 2.43934 7.43934L7.43934 2.43934C8.02513 1.85355 8.97487 1.85355 9.56066 2.43934Z",fill:"currentColor"}))}const ySe=sl(bSe,"undo"),CSe=ySe;function wSe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM12.3201 8.26674C12.1347 8.11222 11.8653 8.11222 11.6799 8.26674L6.53047 12.5579C6.35084 12.7076 6.45669 13 6.69051 13H10V17.5C10 17.7761 10.2239 18 10.5 18H13.5C13.7761 18 14 17.7761 14 17.5V13H17.3095C17.5433 13 17.6492 12.7076 17.4695 12.5579L12.3201 8.26674Z",fill:"currentColor"}))}const ESe=sl(wSe,"upload"),LSe=ESe;function SSe(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.9998 12.0001C22.9998 18.0753 18.0749 23.0001 11.9998 23.0001C5.92463 23.0001 0.999756 18.0753 0.999756 12.0001C0.999756 5.92499 5.92463 1.00012 11.9998 1.00012C18.0749 1.00012 22.9998 5.92499 22.9998 12.0001ZM13.4998 17.5C13.4998 16.6718 12.8282 16.0001 11.9998 16.0001C11.1713 16.0001 10.4998 16.6718 10.4998 17.5C10.4998 18.3285 11.1713 19 11.9998 19C12.8282 19 13.4998 18.3285 13.4998 17.5ZM11.9998 5.00011C10.9136 5.00011 10.0505 5.91257 10.1107 6.99704L10.4166 12.5024C10.4632 13.3427 11.1582 14.0001 11.9998 14.0001C12.8413 14.0001 13.5363 13.3427 13.583 12.5024L13.8888 6.99704C13.9491 5.91257 13.0859 5.00011 11.9998 5.00011Z",fill:"currentColor"}))}const xSe=sl(SSe,"upload_error"),ASe=xSe;function _Se(n){return lt.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),lt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10C20.4477 10 20 9.55229 20 9V4H15C14.4477 4 14 3.55229 14 3ZM10 21C10 21.5523 9.55229 22 9 22H3C2.44772 22 2 21.5523 2 21V15C2 14.4477 2.44772 14 3 14C3.55228 14 4 14.4477 4 15L4 20H9C9.55229 20 10 20.4477 10 21ZM2 9C2 9.55228 2.44772 10 3 10C3.55229 10 4 9.55228 4 9L4 4L9 4C9.55229 4 10 3.55228 10 3C10 2.44771 9.55229 2 9 2H3C2.44772 2 2 2.44772 2 3V9ZM21 14C21.5523 14 22 14.4477 22 15V21C22 21.5523 21.5523 22 21 22H15C14.4477 22 14 21.5523 14 21C14 20.4477 14.4477 20 15 20H20V15C20 14.4477 20.4477 14 21 14ZM8.5 7.5C7.94772 7.5 7.5 7.94772 7.5 8.5V15.5C7.5 16.0523 7.94772 16.5 8.5 16.5H15.5C16.0523 16.5 16.5 16.0523 16.5 15.5V8.5C16.5 7.94772 16.0523 7.5 15.5 7.5H8.5ZM9.5 14.5V9.5H14.5V14.5H9.5Z",fill:"currentColor"}))}const TSe=sl(_Se,"window_adaption_stroked"),NSe=TSe,OSe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229},S9="Enter",lm=OSe;function S2(n){return _s(n,"key")===S9}const AR=UO.PREFIX;class x9 extends De.PureComponent{constructor(t){super(t),this.copy=s=>{const{content:o,duration:i,onCopy:a}=this.props,r=Iwe(o);a&&a(s,o,r),this.setCopied(o,i)},this.setCopied=(s,o)=>{this.setState({copied:!0,item:s}),this._timeId=setTimeout(()=>{this.resetCopied()},o*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:s}=this.props;return typeof s<"u"?s:De.createElement(dm,{componentName:"Typography"},o=>De.createElement("span",null,De.createElement(O5,null),o.copied))},this.renderCopyIcon=()=>{const{icon:s}=this.props,o={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:a=>S2(a)&&this.copy(a)},i=De.createElement("a",{className:`${AR}-action-copy-icon`},De.createElement(BEe,Object.assign({onClick:this.copy},o)));return De.isValidElement(s)?De.cloneElement(s,o):i},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:t,className:s,forwardRef:o,copyTip:i}=this.props,{copied:a}=this.state,r=Ar(s,{[`${AR}-action-copy`]:!a,[`${AR}-action-copied`]:a});return De.createElement(dm,{componentName:"Typography"},c=>De.createElement("span",{style:Object.assign({marginLeft:"4px"},t),className:r,ref:o},a?this.renderSuccessTip():De.createElement(Ip,{content:typeof i<"u"?i:c.copy},this.renderCopyIcon())))}}x9.propTypes={content:W.string,onCopy:W.func,successTip:W.node,copyTip:W.node,duration:W.number,style:W.object,className:W.string,icon:W.node};x9.defaultProps={content:"",onCopy:fb,duration:3,style:{},className:""};const ISe=x9,$X={PREFIX:`${mo}-popover`,ARROW:`${mo}-popover-icon-arrow`},Px={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},vy={ARROW_BOUNDING:Object.assign(Object.assign({},Xy.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var RSe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i0&&arguments[0]!==void 0?arguments[0]:{};const{position:t="",className:s,arrowStyle:o,popStyle:i}=n,a=RSe(n,["position","className","arrowStyle","popStyle"]),r=t.indexOf("top")===0||t.indexOf("bottom")===0,c=Ar(s,$X.ARROW),f=_s(o,"borderOpacity",Px.DEFAULT_ARROW_STYLE.borderOpacity),e=_s(o,"backgroundColor",_s(i,"backgroundColor",Px.DEFAULT_ARROW_STYLE.backgroundColor)),E=_s(o,"borderColor",_s(i,"borderColor",Px.DEFAULT_ARROW_STYLE.borderColor)),_=Object.assign(Object.assign({},a),{width:vy.ARROW_BOUNDING.width,height:vy.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:c});return r?De.createElement("svg",Object.assign({},_),De.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",fill:E,opacity:f}),De.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",fill:e})):De.createElement("svg",Object.assign({},_),De.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",fill:E,opacity:f}),De.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",fill:e}))};kX.propTypes={position:W.string,className:W.string,arrowStyle:W.object,popStyle:W.object};const PSe=kX;var $Se=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{var s;(s=this.tooltipRef.current)===null||s===void 0||s.focusTrigger()},this.renderPopCard=s=>{let{initialFocusRef:o}=s;const{content:i,contentClassName:a,prefixCls:r}=this.props,{direction:c}=this.context,f=Ar(r,a,{[`${r}-rtl`]:c==="rtl"}),e=this.renderContentNode({initialFocusRef:o,content:i});return De.createElement("div",{className:f},De.createElement("div",{className:`${r}-content`},e))},this.renderContentNode=s=>{const{initialFocusRef:o,content:i}=s,a={initialFocusRef:o};return xu(i)?i(a):i},this.tooltipRef=De.createRef()}render(){const t=this.props,{children:s,prefixCls:o,showArrow:i,arrowStyle:a={},arrowBounding:r,position:c,style:f,trigger:e}=t,E=$Se(t,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:_}=this.props;const R={position:c,className:"",popStyle:f,arrowStyle:a},D=i?De.createElement(PSe,Object.assign({},R)):!1;yb(_)&&(_=i?vy.SPACING_WITH_ARROW:vy.SPACING);const J=e==="click"||e==="custom"?"dialog":"tooltip";return De.createElement(Ip,Object.assign({guardFocus:!0,ref:this.tooltipRef},E,{trigger:e,position:c,style:f,content:this.renderPopCard,prefixCls:o,spacing:_,showArrow:D,arrowBounding:r,role:J}),s)}}r3.contextType=K1;r3.propTypes={children:W.node,content:W.oneOfType([W.node,W.func]),visible:W.bool,autoAdjustOverflow:W.bool,motion:W.bool,position:W.oneOf(kSe),margin:W.oneOfType([W.number,W.object]),mouseEnterDelay:W.number,mouseLeaveDelay:W.number,trigger:W.oneOf(DSe).isRequired,contentClassName:W.oneOfType([W.string,W.array]),onVisibleChange:W.func,onClickOutSide:W.func,style:W.object,spacing:W.oneOfType([W.number,W.object]),zIndex:W.number,showArrow:W.bool,arrowStyle:W.shape({borderColor:W.string,backgroundColor:W.string,borderOpacity:W.oneOfType([W.string,W.number])}),arrowPointAtCenter:W.bool,arrowBounding:W.object,prefixCls:W.string,guardFocus:W.bool,disableArrowKeyDown:W.bool};r3.defaultProps={arrowBounding:vy.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:vy.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:$X.PREFIX,onClickOutSide:os,onEscKeyDown:os,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0};const T0=r3;let $0;function _R(n){if(!n)return 0;const t=n.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}function MSe(n){return Array.prototype.slice.apply(n).map(s=>`${s}: ${n.getPropertyValue(s)};`).join("")}const jSe=function(n,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,r=arguments.length>6?arguments[6]:void 0;if(s.length===0)return"";$0||($0=document.createElement("div"),$0.setAttribute("aria-hidden","true"),document.body.appendChild($0));const c=window.getComputedStyle(n),f=MSe(c),e=_R(c.lineHeight),E=Math.round(e*(t+1)+_R(c.paddingTop)+_R(c.paddingBottom));$0.setAttribute("style",f),$0.style.position="fixed",$0.style.left="0",$0.style.height="auto",$0.style.top="-999999px",$0.style.zIndex="-1000",$0.style.textOverflow="clip",$0.style.webkitLineClamp="none",F1.render(De.createElement(De.Fragment,null),$0);function _(){const de=$0.scrollWidth<=$0.offsetWidth,ye=$0.scrollHeight0){const de=document.createTextNode(a);R.appendChild(de)}$0.appendChild(R),Object.values(Gm(o,"expand")).map(de=>de&&$0.appendChild(de.cloneNode(!0)));function J(){$0.innerHTML="",$0.appendChild(R),Object.values(o).map(de=>de&&$0.appendChild(de.cloneNode(!0)))}function re(de,ye){const Fe=de.length;return ye?r==="end"?de.slice(0,ye)+i:de.slice(0,ye)+i+de.slice(Fe-ye,Fe):i}function ie(de,ye){let Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,Ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ye.length,tt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const ht=Math.floor((Fe+Ge)/2),yt=re(ye,ht);if(de.textContent=yt,Fe>=Ge-1&&Ge>0)for(let Ft=Ge;Ft>=Fe;Ft-=1){const Zt=re(ye,Ft);if(de.textContent=Zt,_())return Zt}else if(Ge===0)return i;return _()?ie(de,ye,ht,Ge,ht):ie(de,ye,Fe,ht,tt)}let ae=s;return _()||(J(),ae=ie(D,s,0,r==="middle"?Math.floor(s.length/2):s.length)),$0.innerHTML="",ae},FSe=jSe;var DX=function(){if(typeof Map<"u")return Map;function n(t,s){var o=-1;return t.some(function(i,a){return i[0]===s?(o=a,!0):!1}),o}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(s){var o=n(this.__entries__,s),i=this.__entries__[o];return i&&i[1]},t.prototype.set=function(s,o){var i=n(this.__entries__,s);~i?this.__entries__[i][1]=o:this.__entries__.push([s,o])},t.prototype.delete=function(s){var o=this.__entries__,i=n(o,s);~i&&o.splice(i,1)},t.prototype.has=function(s){return!!~n(this.__entries__,s)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(s,o){o===void 0&&(o=null);for(var i=0,a=this.__entries__;i0},n.prototype.connect_=function(){!_P||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),WSe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!_P||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(t){var s=t.propertyName,o=s===void 0?"":s,i=VSe.some(function(a){return!!~o.indexOf(a)});i&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),MX=function(n,t){for(var s=0,o=Object.keys(t);s"u"||!(Element instanceof Object))){if(!(t instanceof LL(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var s=this.observations_;s.has(t)||(s.set(t,new exe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof LL(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var s=this.observations_;s.has(t)&&(s.delete(t),s.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(s){s.isActive()&&t.activeObservations_.push(s)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,s=this.activeObservations_.map(function(o){return new txe(o.target,o.broadcastRect())});this.callback_.call(t,s,t),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),FX=typeof WeakMap<"u"?new WeakMap:new DX,UX=function(){function n(t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var s=GSe.getInstance(),o=new nxe(t,s,this);FX.set(this,o)}return n}();["observe","unobserve","disconnect"].forEach(function(n){UX.prototype[n]=function(){var t;return(t=FX.get(this))[n].apply(t,arguments)}});var rxe=function(){return typeof t4.ResizeObserver<"u"?t4.ResizeObserver:UX}();const SB=rxe;class zw extends Ml{constructor(t){super(t),this.getElement=()=>{try{return Gg.findDOMNode(this.childNode||this)}catch{return null}},this.mergeRef=(s,o)=>{this.childNode=o,typeof s=="function"?s(o):typeof s=="object"&&s&&"current"in s&&(s.current=o)},this.observer=new SB(t.onResize)}componentDidMount(){this.observeElement()}componentDidUpdate(t){this.observeElement(this.props.observeParent!==t.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}observeElement(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const s=this.getElement();if(this.observer||(this.observer=new SB(this.props.onResize)),!(s&&s instanceof Element)){this.observer.disconnect();return}s===this.element&&!t||(this.observer.disconnect(),this.element=s,this.observer.observe(s),this.props.observeParent&&s.parentNode&&s.parentNode.ownerDocument&&s.parentNode.ownerDocument.defaultView&&s.parentNode instanceof s.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=s.parentNode,this.observer.observe(this._parentNode)))}render(){const t=De.Children.only(this.props.children),{ref:s}=t;return De.cloneElement(t,{ref:o=>this.mergeRef(s,o)})}}zw.propTypes={onResize:W.func,observeParent:W.bool};zw.defaultProps={onResize:()=>{},observeParent:!1};var sxe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{const{mark:s,code:o,underline:i,strong:a,link:r,disabled:c}=n;let f=t;const e=(E,_)=>{let R={};E&&(typeof E=="object"&&(R=Object.assign({},E)),f=De.createElement(_,R,f))};return e(s,"mark"),e(o,"code"),e(i&&!r,"u"),e(a,"strong"),e(n.delete,"del"),e(r,c?"span":"a"),f};class sS extends lt.Component{constructor(t){super(t),this.onResize=()=>{this.rafId&&window.cancelAnimationFrame(this.rafId),this.rafId=window.requestAnimationFrame(this.getEllipsisState.bind(this))},this.canUseCSSEllipsis=()=>{const{copyable:s}=this.props,{expandable:o,expandText:i,pos:a,suffix:r}=this.getEllipsisOpt();return!o&&Hm(i)&&!s&&a==="end"&&!r.length},this.shouldTruncated=s=>!s||s<1?!1:s<=1?this.wrapperRef.current.scrollWidth>this.wrapperRef.current.offsetWidth:this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.showTooltip=()=>{var s,o;const{isOverflowed:i,isTruncated:a,expanded:r}=this.state,{showTooltip:c,expandable:f,expandText:e}=this.getEllipsisOpt(),E=!r&&(i||a),R=!f&&Hm(e)&&E&&c;if(!R)return R;const D={type:"tooltip"};return typeof c=="object"?c.type&&c.type.toLowerCase()==="popover"?LA({opts:{showArrow:!0}},c,{opts:{className:Ar({[`${Rm}-ellipsis-popover`]:!0,[(s=c==null?void 0:c.opts)===null||s===void 0?void 0:s.className]:!!(!((o=c==null?void 0:c.opts)===null||o===void 0)&&o.className)})}}):Object.assign(Object.assign({},D),c):D},this.toggleOverflow=s=>{const{onExpand:o,expandable:i,collapsible:a}=this.getEllipsisOpt(),{expanded:r}=this.state;o&&o(!r,s),(i&&!r||a&&r)&&this.setState({expanded:!r})},this.getEllipsisOpt=()=>{const{ellipsis:s}=this.props;return s?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:s.expandable?this.expandStr:void 0,collapseText:s.collapsible?this.collapseStr:void 0},typeof s=="object"?s:null):{}},this.renderExpandable=()=>{const{expanded:s,isTruncated:o}=this.state;if(!o)return null;const{expandText:i,expandable:a,collapseText:r,collapsible:c}=this.getEllipsisOpt(),f=!a&&Hm(i),e=!c&&Hm(r);let E;return!s&&!f?E=i:s&&!e&&(E=r),!f||!e?De.createElement("a",{role:"button",tabIndex:0,className:`${Rm}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":E,onClick:this.toggleOverflow,onKeyPress:_=>S2(_)&&this.toggleOverflow(_)},E):null},this.getEllipsisStyle=()=>{const{ellipsis:s,component:o}=this.props;if(!s)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:i}=this.getEllipsisOpt(),{expanded:a}=this.state,r=!a&&this.canUseCSSEllipsis(),c=Ar({[`${Rm}-ellipsis`]:!0,[`${Rm}-ellipsis-single-line`]:i===1,[`${Rm}-ellipsis-multiple-line`]:i>1,[`${Rm}-ellipsis-multiple-line-text`]:i>1&&o==="span",[`${Rm}-ellipsis-overflow-ellipsis`]:i===1&&r,[`${Rm}-ellipsis-overflow-ellipsis-text`]:i===1&&r&&o==="span"}),f=r&&i>1?{WebkitLineClamp:i}:{};return{ellipsisCls:c,ellipsisStyle:f}},this.renderEllipsisText=s=>{const{suffix:o}=s,{children:i}=this.props,{isTruncated:a,expanded:r,ellipsisContent:c}=this.state;return r||!a?De.createElement(De.Fragment,null,i,o&&o.length?o:null):De.createElement("span",null,c,o)},this.state={editable:!1,copied:!1,isOverflowed:!0,ellipsisContent:t.children,expanded:!1,isTruncated:!0,prevChildren:null},this.wrapperRef=De.createRef(),this.expandRef=De.createRef(),this.copyRef=De.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize()}static getDerivedStateFromProps(t,s){const{prevChildren:o}=s,i={};return i.prevChildren=t.children,t.ellipsis&&o!==t.children&&(i.isOverflowed=!0,i.ellipsisContent=t.children,i.expanded=!1,i.isTruncated=!0),i}componentDidUpdate(t){this.props.children!==t.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}getEllipsisState(){const{rows:t,suffix:s,pos:o}=this.getEllipsisOpt(),{children:i}=this.props;if(!this.wrapperRef||!this.wrapperRef.current)return this.onResize(),!1;const{expanded:a}=this.state,r=this.canUseCSSEllipsis();if(EL(i)){this.setState({isTruncated:!1,isOverflowed:!1});return}if(Km("children"in this.props&&typeof i!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!t||t<0||a)return;if(r){const e=this.shouldTruncated(t);this.setState({isOverflowed:e,isTruncated:!1});return}const c={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},f=FSe(this.wrapperRef.current,t,String(i),c,oxe,s,o);this.setState({isOverflowed:!1,ellipsisContent:f,isTruncated:i!==f})}renderOperations(){return De.createElement(De.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var t;const{copyable:s,children:o}=this.props;if(!s)return null;const i=(t=s==null?void 0:s.content)!==null&&t!==void 0?t:o;let a,r=!1;Array.isArray(i)?(a="",i.forEach(f=>{typeof f=="object"&&(r=!0),a+=String(f)})):(typeof i!="object"||(r=!0),a=String(i)),Km(r,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const c=Object.assign({content:a,duration:3},typeof s=="object"?s:null);return De.createElement(ISe,Object.assign({},c,{forwardRef:this.copyRef}))}renderIcon(){const{icon:t,size:s}=this.props;if(!t)return null;const o=s==="small"?"small":"default";return De.createElement("span",{className:`${Rm}-icon`,"x-semi-prop":"icon"},l1(t)?De.cloneElement(t,{size:o}):t)}renderContent(){const t=this.props,{component:s,children:o,className:i,type:a,spacing:r,disabled:c,style:f,ellipsis:e,icon:E,size:_,link:R,heading:D,weight:J}=t,re=sxe(t,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),ie=Gm(re,["strong","editable","mark","copyable","underline","code","delete"]),ae=this.renderIcon(),de=this.getEllipsisOpt(),{ellipsisCls:ye,ellipsisStyle:Fe}=this.getEllipsisStyle();let Ge=e?this.renderEllipsisText(de):o;const tt=Ar({[`${Rm}-link-text`]:R,[`${Rm}-link-underline`]:this.props.underline&&R});Ge=ixe(this.props,De.createElement(De.Fragment,null,ae,this.props.link?De.createElement("span",{className:tt},Ge):Ge));const ht=/^h[1-6]$/,yt=Bd(D)&&ht.test(D),Ft=Ar(i,ye,{[`${Rm}-${a}`]:a&&!R,[`${Rm}-${_}`]:_,[`${Rm}-link`]:R,[`${Rm}-disabled`]:c,[`${Rm}-${r}`]:r,[`${Rm}-${D}`]:yt,[`${Rm}-${D}-weight-${J}`]:yt&&J&&isNaN(Number(J))}),Zt=Object.assign(Object.assign({},isNaN(Number(J))?{}:{fontWeight:J}),f);return De.createElement(FY,Object.assign({className:Ft,style:Object.assign(Object.assign({},Zt),Fe),component:s,forwardRef:this.wrapperRef},ie),Ge,this.renderOperations())}renderTipWrapper(){const{children:t}=this.props,s=this.showTooltip(),o=this.renderContent();if(s){const{type:i,opts:a,renderTooltip:r}=s;return xu(r)?r(t,o):i.toLowerCase()==="popover"?De.createElement(T0,Object.assign({content:t,position:"top"},a),o):De.createElement(Ip,Object.assign({content:t,position:"top"},a),o)}else return o}render(){const t=De.createElement(dm,{componentName:"Typography"},s=>(this.expandStr=s.expand,this.collapseStr=s.collapse,this.renderTipWrapper()));return this.props.ellipsis?De.createElement(zw,{onResize:this.onResize,observeParent:!0},t):t}}sS.propTypes={children:W.node,copyable:W.oneOfType([W.shape({text:W.string,onCopy:W.func,successTip:W.node,copyTip:W.node}),W.bool]),delete:W.bool,disabled:W.bool,ellipsis:W.oneOfType([W.shape({rows:W.number,expandable:W.bool,expandText:W.string,onExpand:W.func,suffix:W.string,showTooltip:W.oneOfType([W.shape({type:W.string,opts:W.object}),W.bool]),collapsible:W.bool,collapseText:W.string,pos:W.oneOf(["end","middle"])}),W.bool]),mark:W.bool,underline:W.bool,link:W.oneOfType([W.object,W.bool]),spacing:W.oneOf(Ag.SPACING),strong:W.bool,size:W.oneOf(Ag.SIZE),type:W.oneOf(Ag.TYPE),style:W.object,className:W.string,icon:W.oneOfType([W.node,W.string]),heading:W.string,component:W.string};sS.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};let o3=class extends lt.PureComponent{render(){return De.createElement(sS,Object.assign({component:"span"},this.props))}};o3.propTypes={copyable:W.oneOfType([W.object,W.bool]),delete:W.bool,disabled:W.bool,icon:W.oneOfType([W.node,W.string]),ellipsis:W.oneOfType([W.object,W.bool]),mark:W.bool,underline:W.bool,link:W.oneOfType([W.object,W.bool]),strong:W.bool,type:W.oneOf(Ag.TYPE),size:W.oneOf(Ag.SIZE),style:W.object,className:W.string,code:W.bool,component:W.string};o3.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var axe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{const c=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let f=0;for(;r>=1e3;)r/=1e3,f++;return`${this.truncatePrecision(r)} ${c[f]}`},"bytes-binary":r=>{const c=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let f=0;for(;r>=1024;)r/=1024,f++;return`${this.truncatePrecision(r)} ${c[f]}`},percentages:r=>`${this.truncatePrecision(r*100)}%`,exponential:r=>{const f=r.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(f[0]))}e${f[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof a<"u",this.content=t,this.rule=s,this.precision=o,this.truncate=i,this.parser=a}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?TR(this.content).map(t=>NR(t)?this.truncatePrecision(t):t).join(""):this.rule==="numbers"?TR(this.content).filter(t=>NR(t)).map(t=>this.truncatePrecision(t)).join(","):TR(this.content).map(t=>NR(t)?this.ruleMethods[this.rule](Number(t)):t).join("")}truncatePrecision(t){const s=this.truncateMethods[this.truncate](Number(t)*Math.pow(10,this.precision))/Math.pow(10,this.precision),o=s.toString().split(".");if(o.length===1)return s.toFixed(this.precision);const i=o[1].length;return itypeof s=="string"||typeof s=="number"?new uxe(String(s),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof s=="function"?this.formatNodeDFS(s()):typeof s=="object"&&"children"in s.props?Object.assign(Object.assign({},s),{props:Object.assign(Object.assign({},s.props),{children:this.formatNodeDFS(s.props.children)})}):s),t.length===1?t[0]:t}render(){const t=Object.assign({},this.props);return delete t.rule,delete t.parser,t.children=this.formatNodeDFS(this.props.children),De.createElement(sS,Object.assign({component:"span"},t))}}_9.propTypes={rule:W.oneOf(Ag.RULE),precision:W.number,truncate:W.oneOf(Ag.TRUNCATE),parser:W.func,copyable:W.oneOfType([W.object,W.bool]),delete:W.bool,disabled:W.bool,icon:W.oneOfType([W.node,W.string]),mark:W.bool,underline:W.bool,link:W.oneOfType([W.object,W.bool]),strong:W.bool,type:W.oneOf(Ag.TYPE),size:W.oneOf(Ag.SIZE),style:W.object,className:W.string,code:W.bool,component:W.string};_9.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const NA=FY;NA.Text=o3;NA.Title=A9;NA.Paragraph=i3;NA.Numeral=_9;const I5=NA,BX={PREFIX:`${mo}-autocomplete`,PREFIX_OPTION:`${mo}-autoComplete-option`,PREFIX_GROUP:`${mo}-autoComplete-group`},T9={SIZE:["small","large","default"],POSITION:OC.POSITION_SET,OPTIONS:["children","value"],STATUS:t9};var cxe=xb,dxe=Gv,fxe="[object Number]";function hxe(n){return typeof n=="number"||dxe(n)&&cxe(n)==fxe}var zX=hxe;const Lm=ml(zX);class pxe extends fc{constructor(t){super(Object.assign({},t)),this.isPanelOpen=!1}init(){this._setDropdownWidth();const{defaultOpen:t,data:s,defaultValue:o,value:i}=this.getProps();if(s&&s.length){const r=this._generateList(s);this._adapter.updateOptionList(r)}t&&this.openDropdown();let a;typeof o<"u"&&(a=o),typeof i<"u"&&(a=i),typeof a<"u"&&this.handleValueChange(a)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:t,dropdownMatchSelectWidth:s}=this.getProps();let o;s&&(t&&Lm(t.width)||t&&Bd(t.width)&&!t.width.includes("%")?o=t.width:o=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(o))}handleInputClick(t){this.getStates();const{disabled:s}=this.getProps();s||(this.isPanelOpen?this.closeDropdown():this.openDropdown())}openDropdown(){this.isPanelOpen=!0,this._adapter.toggleListVisible(!0),this._setDropdownWidth(),this._adapter.registerClickOutsideHandler(t=>this.closeDropdown(t)),this._adapter.notifyDropdownVisibleChange(!0),this._modifyFocusIndexOnPanelOpen()}closeDropdown(t){this.isPanelOpen=!1,this._adapter.toggleListVisible(!1),this._adapter.unregisterClickOutsideHandler(),this._adapter.notifyDropdownVisibleChange(!1)}_generateList(t){const{renderItem:s}=this.getProps(),o=[];return t&&t.length&&t.forEach((i,a)=>{const r=String(new Date().getTime())+a;let c={};Bd(i)||Lm(i)?c={value:i,key:r,label:i,show:!0}:Bg(i)&&!Hm(i.value)&&(c=Object.assign({show:!0},i)),s&&typeof s=="function"&&(c.label=s(i)),o.push(c)}),o}handleSearch(t){this._adapter.updateInputValue(t),this._adapter.notifySearch(t),this._adapter.notifyChange(t),this._modifyFocusIndex(t),this.isPanelOpen||this.openDropdown()}handleSelect(t,s){const{renderSelectedItem:o}=this.getProps();let i="";o&&typeof o=="function"?(i=o(t),Km(typeof i!="string","Warning: [Semi AutoComplete] renderSelectedItem must return string, please check your function return")):i=t.value,this._isControlledComponent()?(this.closeDropdown(),this.notifySelect(t)):(this._adapter.updateInputValue(i),this.updateSelection(t),this.notifySelect(t),this.closeDropdown()),this._adapter.notifyChange(i),this._adapter.updateFocusIndex(s)}updateSelection(t){const s=new Map;t&&s.set(t.label,t),this._adapter.updateSelection(s)}notifySelect(t){this._backwardLabelInValue()?this._adapter.notifySelect(t):this._adapter.notifySelect(t.value)}_backwardLabelInValue(){const t=this.getProps();let{onSelectWithObject:s}=t;return s}handleDataChange(t){const s=this._generateList(t);this._adapter.updateOptionList(s),this._adapter.rePositionDropdown()}handleValueChange(t){let{data:s,defaultActiveFirstOption:o}=this.getProps(),i="";this._backwardLabelInValue()&&Object.prototype.toString.call(t)==="[object Object]"?i=t.value:i=t;let a=this._getRenderSelectedItem();const r=this._generateList(s);let c=r.length?r.filter(_=>a(_)===i):[];const f=c.length,e=r.findIndex(_=>a(_)===i);let E="";if(f)c=c[0],E=a(c);else{const _=this._backwardLabelInValue()?t:{label:i,value:i};E=a(_)}this._adapter.updateInputValue(E),this.updateSelection(f?c:null),e===-1&&o?this._adapter.updateFocusIndex(0):this._adapter.updateFocusIndex(e)}_modifyFocusIndex(t){let{focusIndex:s}=this.getStates(),{data:o,defaultActiveFirstOption:i}=this.getProps(),a=-1;if(t){let r=this._getRenderSelectedItem();a=this._generateList(o).findIndex(f=>r(f)===t)}a===-1&&i?s!==0&&this._adapter.updateFocusIndex(0):a!==s&&this._adapter.updateFocusIndex(a)}_modifyFocusIndexOnPanelOpen(){let{inputValue:t}=this.getStates();this._modifyFocusIndex(t)}_getRenderSelectedItem(){let{renderSelectedItem:t}=this.getProps();return typeof t>"u"&&(t=s=>s==null?void 0:s.value),t}handleClear(){this._adapter.notifyClear()}bindKeyBoardEvent(){this._keydownHandler=t=>{this._handleKeyDown(t)},this._adapter.registerKeyDown(this._keydownHandler)}_handleKeyDown(t){const s=t.keyCode;switch(this.getStates(),s){case lm.UP:t.preventDefault(),this._handleArrowKeyDown(-1);break;case lm.DOWN:t.preventDefault(),this._handleArrowKeyDown(1);break;case lm.ENTER:t.preventDefault(),this._handleEnterKeyDown();break;case lm.ESC:this.closeDropdown();break;case lm.TAB:this.closeDropdown();break}this._adapter.notifyKeyDown(t)}_getEnableFocusIndex(t){const{focusIndex:s,options:o}=this.getStates(),i=o.filter(c=>c.show),a=i.length;let r=s+t;if(r<0&&(r=a-1),r>=a&&(r=0),t>0){let c=-1;for(let f=0;f=r));f++);r=c}else{let c=i.length;for(let f=a-1;f>=0&&(!i[f].disabled&&(c=f),!(c<=r));f--);r=c}this._adapter.updateFocusIndex(r)}_handleArrowKeyDown(t){const{visible:s}=this.getStates();s?this._getEnableFocusIndex(t):this.openDropdown()}_handleEnterKeyDown(){const{visible:t,options:s,focusIndex:o}=this.getStates();if(!t)this.openDropdown();else if(o!==void 0&&o!==-1&&s.length!==0){const a=s.filter(r=>r.show)[o];this.handleSelect(a,o)}else this.closeDropdown()}handleOptionMouseEnter(t){this._adapter.updateFocusIndex(t)}handleFocus(t){this.bindKeyBoardEvent(),this._adapter.notifyFocus(t)}handleBlur(t){this._persistEvent(t),this._adapter.notifyBlur(t)}}const mxe=pxe,gxe=`${mo}-spin`,vxe={PREFIX:gxe},bxe={SIZE:["small","middle","large"]};class N9 extends fc{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:t=>{}}}constructor(t){super(Object.assign(Object.assign({},N9.spinDefaultAdapter),t))}updateLoadingIfNeedDelay(){const{spinning:t,delay:s}=this._adapter.getProps(),{delay:o}=this._adapter.getStates();if(o){const i=this;this._timer=setTimeout(()=>{i._adapter.setState({loading:t,delay:0})},s)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}const yxe=N9;var Cxe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i0&&arguments[0]!==void 0?arguments[0]:{};const{id:t,className:s}=n,o=Cxe(n,["id","className"]);let i=t;yb(i)&&(xB++,i=xB);const a=`linearGradient-${i}`;return De.createElement("svg",Object.assign({},o,{className:s,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),De.createElement("defs",null,De.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:a},De.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),De.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),De.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),De.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},De.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),De.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${a})`,strokeWidth:"4",strokeLinecap:"round"})))}var wxe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{this.setState({loading:t})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:t,tip:s}=this.props,{loading:o}=this.state;return o?De.createElement("div",{className:`${pw}-wrapper`},t?De.createElement("div",{className:`${pw}-animate`,"x-semi-prop":"indicator"},t):De.createElement(HX,null),s?De.createElement("div",{"x-semi-prop":"tip"},s):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const t=this.props,{children:s,style:o,wrapperClassName:i,childStyle:a,size:r}=t,c=wxe(t,["children","style","wrapperClassName","childStyle","size"]),{loading:f}=this.state,e=Ar(pw,i,{[`${pw}-${r}`]:r,[`${pw}-block`]:s,[`${pw}-hidden`]:!f});return De.createElement("div",Object.assign({className:e,style:o},this.getDataAttr(c)),this.renderSpin(),De.createElement("div",{className:`${pw}-children`,style:a,"x-semi-prop":"children"},s))}}O9.propTypes={size:W.oneOf(bxe.SIZE),spinning:W.bool,children:W.node,indicator:W.node,delay:W.number,tip:W.node,wrapperClassName:W.string,childStyle:W.object,style:W.object};O9.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const V1=O9,I9={PREFIX:`${mo}-input`},OA={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},Exe={};class R9 extends fc{static get inputDefaultAdapter(){return{notifyChange:os,setValue:os}}constructor(t){super(Object.assign(Object.assign({},R9.inputDefaultAdapter),t))}init(){this._setInitValue()}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}_setInitValue(){const{defaultValue:t,value:s}=this.getProps();let o=t;this._isControlledComponent()&&(o=s),this._adapter.setValue(o)}setValue(t){this._adapter.setValue(t)}handleChange(t,s){const{maxLength:o,minLength:i,getValueLength:a}=this._adapter.getProps();let r=t;o&&xu(a)&&(r=this.handleVisibleMaxLength(t)),i&&xu(a)&&this.handleVisibleMinLength(r),this._isControlledComponent()?this._adapter.notifyChange(r,s):(this._adapter.setValue(r),this._adapter.notifyChange(r,s))}handleVisibleMinLength(t){const{minLength:s,getValueLength:o}=this._adapter.getProps(),{minLength:i}=this._adapter.getStates();if(Lm(s)&&s>=0&&xu(o)&&Bd(t)){const a=o(t);if(a=0&&xu(o)&&Bd(t))return o(t)>s?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(t,s)):t}handleTruncateValue(t,s){const{getValueLength:o}=this._adapter.getProps();if(xu(o)){let i="";for(let a=1,r=t.length;a<=r;a++){const c=t.slice(0,a);if(o(c)>s)return i;i=c}return i}else return t.slice(0,s)}handleClear(t){let s=t;const o="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!s||typeof s!="object")&&(s={}),db(s,OA.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(o,s),this._adapter.notifyClear(s),s&&this.stopPropagation(s)}handleClick(t){const{disabled:s}=this._adapter.getProps(),{isFocus:o}=this._adapter.getStates();s||o||this._adapter.isEventTarget(t)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(t){t==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(t){const s=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!s)}handleInputType(t){const s=this._adapter.getProp("mode"),o=this._adapter.getState("eyeClosed");return s==="password"?o?"password":"text":t}handleMouseDown(t){t.preventDefault()}handleMouseUp(t){t.preventDefault()}handleBlur(t){const{value:s}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(s,t)}handleFocus(t){const{value:s}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(s,t)}handleInput(t){this._adapter.notifyInput(t)}handleKeyDown(t){this._adapter.notifyKeyDown(t)}handleKeyUp(t){this._adapter.notifyKeyUp(t)}handleKeyPress(t){this._adapter.notifyKeyPress(t),t.key===S9&&this._adapter.notifyEnterPress(t)}isAllowClear(){const{value:t,isFocus:s,isHovering:o}=this._adapter.getStates(),{showClear:i,disabled:a,showClearIgnoreDisabled:r}=this._adapter.getProps();return t&&i&&(!a||r)&&(s||o)}handleClickPrefixOrSuffix(t){const{disabled:s}=this._adapter.getProps(),{isFocus:o}=this._adapter.getStates();!s&&!o&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(t){t&&xu(t.preventDefault)&&t.preventDefault()}handleModeEnterPress(t){["Enter"," "].includes(t==null?void 0:t.key)&&(this.handlePreventMouseDown(t),this.handleClickEye(t))}}const Lxe=R9;var Sxe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{this.foundation.handleClear(s)},this.handleClick=s=>{this.foundation.handleClick(s)},this.handleMouseOver=s=>{this.setState({isHovering:!0})},this.handleMouseLeave=s=>{this.setState({isHovering:!1})},this.handleModeChange=s=>{this.foundation.handleModeChange(s)},this.handleClickEye=s=>{this.foundation.handleClickEye(s)},this.handleMouseDown=s=>{this.foundation.handleMouseDown(s)},this.handleMouseUp=s=>{this.foundation.handleMouseUp(s)},this.handleModeEnterPress=s=>{this.foundation.handleModeEnterPress(s)},this.handleClickPrefixOrSuffix=s=>{this.foundation.handleClickPrefixOrSuffix(s)},this.handlePreventMouseDown=s=>{this.foundation.handlePreventMouseDown(s)},this.state={value:"",cachedValue:null,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:t.mode==="password",minLength:t.minLength},this.inputRef=De.createRef(),this.prefixRef=De.createRef(),this.suffixRef=De.createRef(),this.foundation=new Lxe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:t=>this.setState({value:t}),setEyeClosed:t=>this.setState({eyeClosed:t}),toggleFocusing:t=>{this.setState({isFocus:t})},focusInput:()=>{const{preventScroll:t}=this.props,s=this.inputRef&&this.inputRef.current;s&&s.focus({preventScroll:t})},toggleHovering:t=>this.setState({isHovering:t}),getIfFocusing:()=>this.state.isFocus,notifyChange:(t,s)=>this.props.onChange(t,s),notifyBlur:(t,s)=>this.props.onBlur(s),notifyFocus:(t,s)=>this.props.onFocus(s),notifyInput:t=>this.props.onInput(t),notifyKeyPress:t=>this.props.onKeyPress(t),notifyKeyDown:t=>this.props.onKeyDown(t),notifyKeyUp:t=>this.props.onKeyUp(t),notifyEnterPress:t=>this.props.onEnterPress(t),notifyClear:t=>this.props.onClear(t),setMinLength:t=>this.setState({minLength:t}),isEventTarget:t=>t&&t.target===t.currentTarget})}static getDerivedStateFromProps(t,s){const o={};return t.value!==s.cachedValue&&(o.value=t.value,o.cachedValue=t.value),o}componentDidUpdate(t){const{mode:s}=this.props;t.mode!==s&&this.handleModeChange(s)}componentDidMount(){this.foundation.init();const{disabled:t,autoFocus:s,preventScroll:o}=this.props;!t&&(s||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:o})}renderPrepend(){const{addonBefore:t}=this.props;if(t){const s=Ar({[`${Af}-prepend`]:!0,[`${Af}-prepend-text`]:t&&Bd(t),[`${Af}-prepend-icon`]:l1(t)});return De.createElement("div",{className:s,"x-semi-prop":"addonBefore"},t)}return null}renderAppend(){const{addonAfter:t}=this.props;if(t){const s=Ar({[`${Af}-append`]:!0,[`${Af}-append-text`]:t&&Bd(t),[`${Af}-append-icon`]:l1(t)});return De.createElement("div",{className:s,"x-semi-prop":"addonAfter"},t)}return null}renderClearBtn(){const t=Ar(`${Af}-clearbtn`),{clearIcon:s}=this.props;return this.foundation.isAllowClear()?De.createElement("div",{className:t,onMouseDown:this.handleClear},s||De.createElement(_A,null)):null}renderModeBtn(){const{eyeClosed:t}=this.state,{mode:s,disabled:o}=this.props,i=Ar(`${Af}-modebtn`),a=t?De.createElement(eLe,null):De.createElement(IX,null),r=s==="password"&&!o,c=t?"Show password":"Hidden password";return r?De.createElement("div",{role:"button",tabIndex:0,"aria-label":c,className:i,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},a):null}renderPrefix(){const{prefix:t,insetLabel:s,insetLabelId:o}=this.props,i=t||s;if(!i)return null;const a=Ar({[`${Af}-prefix`]:!0,[`${Af}-inset-label`]:s,[`${Af}-prefix-text`]:i&&Bd(i),[`${Af}-prefix-icon`]:l1(i)});return De.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:o,"x-semi-prop":"prefix,insetLabel"},i)}renderSuffix(t){const{suffix:s,hideSuffix:o}=this.props;if(!s)return null;const i=Ar({[`${Af}-suffix`]:!0,[`${Af}-suffix-text`]:s&&Bd(s),[`${Af}-suffix-icon`]:l1(s),[`${Af}-suffix-hidden`]:t&&!!o});return De.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},s)}getInputRef(){const{forwardRef:t}=this.props;if(!Hm(t)){if(typeof t=="function")return s=>{t(s),this.inputRef={current:s}};if(Object.prototype.toString.call(t)==="[object Object]")return this.inputRef=t,t}return this.inputRef}render(){const t=this.props,{addonAfter:s,addonBefore:o,autoFocus:i,clearIcon:a,className:r,disabled:c,defaultValue:f,placeholder:e,prefix:E,mode:_,insetLabel:R,insetLabelId:D,validateStatus:J,type:re,readonly:ie,size:ae,suffix:de,style:ye,showClear:Fe,onEnterPress:Ge,onClear:tt,hideSuffix:ht,inputStyle:yt,forwardRef:Ft,maxLength:Zt,getValueLength:Nt,preventScroll:kt,borderless:fn,showClearIgnoreDisabled:tn}=t,zn=Sxe(t,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled"]),{value:qn,isFocus:gr,minLength:$n}=this.state,hr=this.foundation.isAllowClear(),Mn=l1(de),dr=this.getInputRef(),Rt=`${Af}-wrapper`,mn=Ar(Rt,r,{[`${Af}-wrapper__with-prefix`]:E||R,[`${Af}-wrapper__with-suffix`]:de,[`${Af}-wrapper__with-suffix-hidden`]:hr&&!!ht,[`${Af}-wrapper__with-suffix-icon`]:Mn,[`${Af}-wrapper__with-append`]:o,[`${Af}-wrapper__with-prepend`]:s,[`${Af}-wrapper__with-append-only`]:o&&!s,[`${Af}-wrapper__with-prepend-only`]:!o&&s,[`${Rt}-readonly`]:ie,[`${Rt}-disabled`]:c,[`${Rt}-warning`]:J==="warning",[`${Rt}-error`]:J==="error",[`${Rt}-focus`]:gr,[`${Rt}-clearable`]:Fe,[`${Rt}-modebtn`]:_==="password",[`${Rt}-hidden`]:re==="hidden",[`${Rt}-${ae}`]:ae,[`${Af}-borderless`]:fn}),Pn=Ar(Af,{[`${Af}-${ae}`]:ae,[`${Af}-disabled`]:c,[`${Af}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${Af}-sibling-modebtn`]:_==="password"}),Yn=qn??"",ir=Object.assign(Object.assign({},zn),{style:yt,className:Pn,disabled:c,readOnly:ie,type:this.foundation.handleInputType(re),placeholder:e,onInput:br=>this.foundation.handleInput(br),onChange:br=>this.foundation.handleChange(br.target.value,br),onFocus:br=>this.foundation.handleFocus(br),onBlur:br=>this.foundation.handleBlur(br),onKeyUp:br=>this.foundation.handleKeyUp(br),onKeyDown:br=>this.foundation.handleKeyDown(br),onKeyPress:br=>this.foundation.handleKeyPress(br),value:Yn});return xu(Nt)||(ir.maxLength=Zt),$n&&(ir.minLength=$n),J==="error"&&(ir["aria-invalid"]="true"),De.createElement("div",{className:mn,style:ye,onMouseEnter:br=>this.handleMouseOver(br),onMouseLeave:br=>this.handleMouseLeave(br),onClick:br=>this.handleClick(br)},this.renderPrepend(),this.renderPrefix(),De.createElement("input",Object.assign({},ir,{ref:dr})),this.renderClearBtn(),this.renderSuffix(hr),this.renderModeBtn(),this.renderAppend())}}P9.propTypes={"aria-label":W.string,"aria-labelledby":W.string,"aria-invalid":W.bool,"aria-errormessage":W.string,"aria-describedby":W.string,"aria-required":W.bool,addonBefore:W.node,addonAfter:W.node,clearIcon:W.node,prefix:W.node,suffix:W.node,mode:W.oneOf(_xe),value:W.any,defaultValue:W.any,disabled:W.bool,readonly:W.bool,autoFocus:W.bool,type:W.string,showClear:W.bool,hideSuffix:W.bool,placeholder:W.any,size:W.oneOf(xxe),className:W.string,style:W.object,validateStatus:W.oneOf(Axe),onClear:W.func,onChange:W.func,onBlur:W.func,onFocus:W.func,onInput:W.func,onKeyDown:W.func,onKeyUp:W.func,onKeyPress:W.func,onEnterPress:W.func,insetLabel:W.node,insetLabelId:W.string,inputStyle:W.object,getValueLength:W.func,preventScroll:W.bool,borderless:W.bool};P9.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:os,onChange:os,onBlur:os,onFocus:os,onInput:os,onKeyDown:os,onKeyUp:os,onKeyPress:os,onEnterPress:os,validateStatus:"default",borderless:!1};const Txe=De.forwardRef((n,t)=>De.createElement(P9,Object.assign({},n,{forwardRef:t}))),U0=Txe;var Nxe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);iDe.createElement("div",{className:ye,"x-semi-prop":"emptyContent"},f||tt.emptyText));if(typeof ie=="function")return ie(Object.assign({disabled:o,focused:E,selected:a,style:D,label:r,value:i,inputValue:ae,onMouseEnter:tt=>J(tt),onClick:tt=>this.onClick(Object.assign({value:i,label:r,children:s},de),tt)},de));const Ge={searchWords:ae,sourceString:s,option:{highlightClassName:`${re}-keyword`}};return De.createElement("div",{className:ye,onClick:tt=>{this.onClick(Object.assign({value:i,label:r,children:s},de),tt)},onMouseEnter:tt=>J&&J(tt),role:"option","aria-selected":a?"true":"false","aria-disabled":o?"true":"false",style:D},_?De.createElement("div",{className:Fe},De.createElement(O5,null)):null,Bd(s)?De.createElement("div",{className:`${re}-text`},this.renderOptionContent({children:s,config:Ge,inputValue:ae,prefixCls:re})):s)}};a3.isSelectOption=!0;a3.propTypes={children:W.node,disabled:W.bool,value:W.oneOfType([W.string,W.number]),selected:W.bool,label:W.node,empty:W.bool,emptyContent:W.node,onSelect:W.func,focused:W.bool,showTick:W.bool,className:W.string,style:W.object,onMouseEnter:W.func,prefixCls:W.string,renderOptionItem:W.func,inputValue:W.string};a3.defaultProps={prefixCls:BX.PREFIX_OPTION};const GX=a3,H_=BX.PREFIX,Oxe=T9.SIZE,Ixe=T9.POSITION,Rxe=T9.STATUS;class l3 extends Ml{constructor(t){super(t),this.onSelect=(o,i,a)=>{this.foundation.handleSelect(o,i)},this.onSearch=o=>{this.foundation.handleSearch(o)},this.onBlur=o=>this.foundation.handleBlur(o),this.onFocus=o=>this.foundation.handleFocus(o),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=o=>this.foundation.handleInputClick(o),this.foundation=new mxe(this.adapter);const s=1;this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:t.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:s},this.triggerRef=De.createRef(),this.optionsRef=De.createRef(),this.clickOutsideHandler=null,Km("triggerRender"in this.props&&typeof this.props.triggerRender=="function",`[Semi AutoComplete] + - If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size', + please notice that they will be removed in the next major version. + Please use 'componentProps' to retrieve these props instead. + - If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.`)}get adapter(){const t={registerKeyDown:s=>{const o={onKeyDown:s};this.setState({keyboardEventSet:o})},unregisterKeyDown:s=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:s=>{this.setState({focusIndex:s})}};return Object.assign(Object.assign(Object.assign({},super.adapter),t),{getTriggerWidth:()=>{const s=this.triggerRef.current;return s&&s.getBoundingClientRect().width},setOptionWrapperWidth:s=>{this.setState({dropdownMinWidth:s})},updateInputValue:s=>{this.setState({inputValue:s})},toggleListVisible:s=>{this.setState({visible:s})},updateOptionList:s=>{this.setState({options:s})},updateSelection:s=>{this.setState({selection:s})},notifySearch:s=>{this.props.onSearch(s)},notifyChange:s=>{this.props.onChange(s)},notifySelect:s=>{this.props.onSelect(s)},notifyDropdownVisibleChange:s=>{this.props.onDropdownVisibleChange(s)},notifyClear:()=>{this.props.onClear()},notifyFocus:s=>{this.props.onFocus(s)},notifyBlur:s=>{this.props.onBlur(s)},notifyKeyDown:s=>{this.props.onKeyDown(s)},rePositionDropdown:()=>{let{rePosKey:s}=this.state;s=s+1,this.setState({rePosKey:s})},registerClickOutsideHandler:s=>{const o=i=>{const a=this.optionsRef&&this.optionsRef.current,r=this.triggerRef&&this.triggerRef.current,c=F1.findDOMNode(a),f=i.target;c&&(!c.contains(f)||!c.contains(f.parentNode))&&r&&!r.contains(f)&&s(i)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(t,s){Mp(this.props.data,t.data)||this.foundation.handleDataChange(this.props.data),this.props.value!==t.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){const{size:t,prefix:s,insetLabel:o,insetLabelId:i,suffix:a,placeholder:r,style:c,className:f,showClear:e,disabled:E,triggerRender:_,validateStatus:R,autoFocus:D,value:J,id:re,clearIcon:ie}=this.props,{inputValue:ae,keyboardEventSet:de,selection:ye}=this.state,Ge=Object.assign(Object.assign(Object.assign({style:c,className:typeof _=="function"?Ar(f):Ar({[H_]:!0,[`${H_}-disabled`]:E},f),onClick:this.handleInputClick,ref:this.triggerRef,id:re},de),{tabIndex:-1}),this.getDataAttr(this.props)),tt={disabled:E,placeholder:r,autofocus:D,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:a,prefix:s||o,insetLabelId:i,showClear:e,validateStatus:R,size:t,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:ie};return De.createElement("div",Object.assign({},Ge),typeof _=="function"?De.createElement(WX,Object.assign({},tt,{inputValue:typeof J<"u"?J:ae,value:Array.from(ye.values()),triggerRender:_,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):De.createElement(U0,Object.assign({},tt,{value:typeof J<"u"?J:ae})))}renderLoading(){const t=`${H_}-loading-wrapper`;return De.createElement("div",{className:t},De.createElement(V1,null))}renderOption(t,s){const{focusIndex:o}=this.state,i=s===o;return De.createElement(GX,Object.assign({showTick:!1,onSelect:(a,r)=>this.onSelect(a,s,r),focused:i,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(s),key:t.key||t.label+t.value+s},t),t.label)}renderOptionList(){const{maxHeight:t,dropdownStyle:s,dropdownClassName:o,loading:i,emptyContent:a}=this.props,{options:r,dropdownMinWidth:c}=this.state,f=Ar({[`${H_}-option-list`]:!0},o);let e;r.length===0?e=a:e=r.filter(_=>_.show).map((_,R)=>this.renderOption(_,R));const E=Object.assign({maxHeight:t,minWidth:c},s);return De.createElement("div",{className:f,role:"listbox",style:E},i?this.renderLoading():e)}render(){const{position:t,motion:s,zIndex:o,mouseEnterDelay:i,mouseLeaveDelay:a,autoAdjustOverflow:r,stopPropagation:c,getPopupContainer:f}=this.props,{visible:e,rePosKey:E}=this.state,_=this.renderInput(),R=this.renderOptionList();return De.createElement(T0,{mouseEnterDelay:i,mouseLeaveDelay:a,autoAdjustOverflow:r,trigger:"custom",motion:s,visible:e,content:R,position:t,ref:this.optionsRef,zIndex:o,stopPropagation:c,getPopupContainer:f,rePosKey:E},_)}}l3.propTypes={"aria-label":W.string,"aria-labelledby":W.string,"aria-invalid":W.bool,"aria-errormessage":W.string,"aria-describedby":W.string,"aria-required":W.bool,autoFocus:W.bool,autoAdjustOverflow:W.bool,className:W.string,clearIcon:W.node,children:W.node,data:W.array,defaultOpen:W.bool,defaultValue:W.oneOfType([W.string,W.number]),defaultActiveFirstOption:W.bool,disabled:W.bool,dropdownMatchSelectWidth:W.bool,dropdownClassName:W.string,dropdownStyle:W.object,emptyContent:W.node,id:W.string,insetLabel:W.node,insetLabelId:W.string,onSearch:W.func,onSelect:W.func,onClear:W.func,onBlur:W.func,onFocus:W.func,onChange:W.func,onKeyDown:W.func,position:W.oneOf(Ixe),placeholder:W.string,prefix:W.node,onChangeWithObject:W.bool,onSelectWithObject:W.bool,renderItem:W.func,renderSelectedItem:W.func,suffix:W.node,showClear:W.bool,size:W.oneOf(Oxe),style:W.object,stopPropagation:W.oneOfType([W.bool,W.string]),maxHeight:W.oneOfType([W.string,W.number]),mouseEnterDelay:W.number,mouseLeaveDelay:W.number,motion:W.oneOfType([W.bool,W.func,W.object]),getPopupContainer:W.func,triggerRender:W.func,value:W.oneOfType([W.string,W.number]),validateStatus:W.oneOf(Rxe),zIndex:W.number};l3.Option=GX;l3.defaultProps={stopPropagation:!0,motion:!0,zIndex:vy.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:os,onSearch:os,onClear:os,onBlur:os,onSelect:os,onChange:os,onSelectWithObject:!1,onDropdownVisibleChange:os,defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:os};const l2=l3,Pxe={PREFIX:`${mo}-avatar`},IA={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class $xe extends fc{constructor(t){super(Object.assign({},t)),this.handleFocusVisible=s=>{const{target:o}=s;try{o.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{Km(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)},this.changeScale=()=>{const{gap:s}=this.getProps(),o=this._adapter.getAvatarNode(),i=o==null?void 0:o.firstChild,[a,r]=[(o==null?void 0:o.offsetWidth)||0,(i==null?void 0:i.offsetWidth)||0];if(a!==0&&r!==0&&s*2r?1:(a-s*2)/r;this._adapter.setScale(c)}}}init(){const{children:t}=this.getProps();typeof t=="string"&&this.changeScale()}destroy(){}handleImgLoadError(){const{onError:t}=this.getProps();(t?t():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(t){this._adapter.notifyEnter(t)}handleLeave(t){this._adapter.notifyLeave(t)}}var kxe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{this.foundation.handleFocusVisible(s)},this.handleBlur=s=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:s,onClick:o,imgAttr:i,src:a,srcSet:r,alt:c}=this.props,{isImgExist:f}=this.state;let e=s;const E=o!==fb,_=a&&f,R={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(_){const D=E?`clickable Avatar: ${c}`:c,J=Object.assign(Object.assign({src:a,srcSet:r,onError:this.handleError},i),{className:Ar({[`${S1}-no-focus-visible`]:E})}),re=E?Object.assign(Object.assign({},J),R):J;e=De.createElement("img",Object.assign({alt:D},re))}else if(typeof s=="string"){const D=c??s,re={role:"img","aria-label":E?`clickable Avatar: ${D}`:D,className:Ar(`${S1}-label`,{[`${S1}-no-focus-visible`]:E})},ie=E?Object.assign(Object.assign({},re),R):re,ae={transform:`scale(${this.state.scale})`};e=De.createElement("span",{className:`${S1}-content`,style:ae},De.createElement("span",Object.assign({},ie,{"x-semi-prop":"children"}),s))}return e},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1,scale:1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this),this.avatarRef=De.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:t=>{this.setState({isImgExist:t})},notifyEnter:t=>{const{hoverMask:s}=this.props,o=s;this.setState({hoverContent:o},()=>{const{onMouseEnter:i}=this.props;i&&i(t)})},notifyLeave:t=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:s}=this.props;s&&s(t)})},setFocusVisible:t=>{this.setState({focusVisible:t})},setScale:t=>{this.setState({scale:t})},getAvatarNode:()=>{var t;return(t=this.avatarRef)===null||t===void 0?void 0:t.current}})}componentDidMount(){this.foundation=new $xe(this.adapter),this.foundation.init()}componentDidUpdate(t){if(this.props.src&&this.props.src!==t.src){const s=new Image(0,0);s.src=this.props.src,s.onload=()=>{this.setState({isImgExist:!0})},s.onerror=()=>{this.setState({isImgExist:!1})},s.onabort=()=>{this.setState({isImgExist:!1})}}typeof this.props.children=="string"&&this.props.children!==t.children&&this.foundation.changeScale()}componentWillUnmount(){this.foundation.destroy()}onEnter(t){this.foundation.handleEnter(t)}onLeave(t){this.foundation.handleLeave(t)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(t){const{onClick:s}=this.props;switch(t.key){case"Enter":s(t),ig(t);break;case"Escape":t.target.blur();break}}render(){const t=this.props,{shape:s,children:o,size:i,color:a,className:r,hoverMask:c,onClick:f,imgAttr:e,src:E,srcSet:_,style:R,alt:D,gap:J}=t,re=kxe(t,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt","gap"]),{isImgExist:ie,hoverContent:ae,focusVisible:de}=this.state,ye=E&&ie,Fe=Ar(S1,{[`${S1}-${s}`]:s,[`${S1}-${i}`]:i,[`${S1}-${a}`]:a&&!ye,[`${S1}-img`]:ye,[`${S1}-focus`]:de},r),Ge=ae?De.createElement("div",{className:`${S1}-hover`,"x-semi-prop":"hoverContent"},ae):null;return De.createElement("span",Object.assign({},re,{style:R,className:Fe,onClick:f,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,role:"listitem",ref:this.avatarRef}),this.getContent(),Ge)}};u3.defaultProps={size:"medium",color:"grey",shape:"circle",gap:3,onClick:fb,onMouseEnter:fb,onMouseLeave:fb};u3.propTypes={children:W.node,color:W.oneOf(jxe),shape:W.oneOf(Mxe),size:W.oneOf(Dxe),hoverMask:W.node,className:W.string,style:W.object,gap:W.number,imgAttr:W.object,src:W.string,srcSet:W.string,alt:W.string,onError:W.func,onClick:W.func,onMouseEnter:W.func,onMouseLeave:W.func};u3.elementType="Avatar";var Fxe=4,Uxe=.001,Bxe=1e-7,zxe=10,px=11,V_=1/(px-1),Hxe=typeof Float32Array=="function";function KX(n,t){return 1-3*t+3*n}function qX(n,t){return 3*t-6*n}function YX(n){return 3*n}function r4(n,t,s){return((KX(t,s)*n+qX(t,s))*n+YX(t))*n}function XX(n,t,s){return 3*KX(t,s)*n*n+2*qX(t,s)*n+YX(t)}function Vxe(n,t,s,o,i){var a,r,c=0;do r=t+(s-t)/2,a=r4(r,o,i)-n,a>0?s=r:t=r;while(Math.abs(a)>Bxe&&++c=Uxe?Wxe(f,D,t,o):J===0?D:Vxe(f,e,e+V_,t,o)}return function(e){return e===0?0:e===1?1:r4(c(e),s,i)}};const OR=ml(Kxe);function _B(n,t,s){return Math.min(Math.max(n,t),s)}function qxe(n){const t=/\(([^)]+)\)/.exec(n);return t?t[1].split(",").map(s=>parseFloat(s)):[]}function W_(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;const s=_B(n,1,10),o=_B(t,.1,2);return i=>i===0||i===1?i:-s*Math.pow(2,10*(i-1))*Math.sin((i-1-o/(Math.PI*2)*Math.asin(1/s))*(Math.PI*2)/o)}const IR=(()=>{const n=["Quad","Cubic","Quart","Quint","Sine","Expo","Circ","Back","Elastic"],t={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],W_],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],(o,i)=>a=>1-W_(o,i)(1-a)],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],(o,i)=>a=>a<.5?W_(o,i)(a*2)/2:1-W_(o,i)(a*-2+2)/2]},s={linear:[.25,.25,.75,.75]};for(const o of Object.keys(t))t[o].forEach((i,a)=>{s["ease"+o+n[a]]=i});return s})();function TB(n){if(typeof n=="function")return n;!n||typeof n!="string"?n="linear":n=n.trim();let t=n.split("(")[0];const s=qxe(n);let o;return t==="cubic-bezier"||t==="cubicBezier"?OR(...s.length?s:IR.linear):((!t||typeof t!="string"||typeof t=="string"&&IR[t]==null)&&(t="linear"),o=IR[t],typeof o=="function"?o(...s):s.length?OR(...s):OR(...o))}let Yxe=class{constructor(){this._eventMap=new Map}on(t,s){return t&&typeof s=="function"&&(this._eventMap.has(t)||this._eventMap.set(t,[]),this._eventMap.get(t).push(s)),this}once(t,s){var o=this;if(t&&typeof s=="function"){const i=function(){s(...arguments),o.off(t,i)};this.on(t,i)}}off(t,s){if(t)if(typeof s=="function"){const o=this._eventMap.get(t);if(Array.isArray(o)&&o.length){let i=-1;for(;(i=o.findIndex(a=>a===s))>-1;)o.splice(i,1)}}else s==null&&this._eventMap.delete(t);return this}emit(t){for(var s=arguments.length,o=new Array(s>1?s-1:0),i=1;ia(...o)),!0):!1}};function R5(n){return!!(n&&typeof n=="object"&&(n.duration>0||typeof n.easing=="string"||typeof n.easing=="function"))}function Xxe(n,t,s,o,i){for(const a of Object.keys(t)){const r=t[a],c=typeof r=="number"?r:r.val;if(!(typeof r=="object"&&r.done)){if(R5(r)&&o&&i&&r.duration){if(r.duration+o<=i||c!==n[a])return!1}else if(typeof s[a]=="number"&&s[a]!==0)return!1;if(n[a]!==c)return!1}}return!0}function G_(n){const t={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=typeof n[s]=="number"?n[s]:n[s].val);return t}const V2=[0,0];function NB(n,t,s,o,i,a,r){const c=-i*(t-o),f=-a*s,e=c+f,E=s+e*n,_=t+E*n;return Math.abs(E)1&&arguments[1]!==void 0?arguments[1]:{};if(R5(t)){const o=TB(t.easing),i=typeof t.duration=="number"&&t.duration>0?t.duration:1e3;t=Object.assign(Object.assign({},t),{easing:o,duration:i})}let s=Object.assign(Object.assign(Object.assign({},Qxe),t),{done:!1});if(n&&typeof n=="object"&&"val"in n){if(R5(n)){const o=TB(n.easing),i=typeof n.duration=="number"&&n.duration>0?n.duration:parseInt(t.duration)||1e3;n=Object.assign(Object.assign({},n),{easing:o,duration:i})}s=Object.assign(Object.assign({},s),n)}else s=Object.assign(Object.assign({},s),{val:n});return s}const WS=()=>Date.now(),$y=1e3/60;class t5e extends Yxe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),this._props=Object.assign({},t),this._config=Object.assign({},s),this.initStates()}_wrapConfig(t,s){s=s&&typeof s=="object"?s:this._config;const o={};for(const i of Object.keys(t))o[i]=e5e(t[i],s);return o}initStates(t,s){t=t&&typeof t=="object"?t:this._props,s=s&&typeof s=="object"?s:this._config;const{from:o,to:i}=t;if(this._from={},o)for(const c of Object.keys(o))this._from[c]=typeof o[c]=="object"&&o[c].val?o[c].val:o[c];this._to=this._wrapConfig(i,s),this._delay=parseInt(s.delay)||0;const a=this._from&&G_(this._from)||G_(this._to),r=Zxe(a);this._currentStyle=Object.assign({},a),this._currentVelocity=Object.assign({},r),this._lastIdealStyle=Object.assign({},a),this._lastIdealVelocity=Object.assign({},r),this.resetPlayStates(),this._frameCount=0,this._prevTime=0}animate(){this._timer==null&&(this._timer=requestAnimationFrame(t=>{const s=WS();if(Xxe(this._currentStyle,this._to,this._currentVelocity,this._startedTime||s,s)||this._ended||this._stopped){this._wasAnimating&&!this._ended&&!this._stopped&&(this._timer=setTimeout(()=>{clearTimeout(this._timer),this._timer=null,this._ended=!0,this.emit("rest",this.getCurrentStates())},$y)),this.resetPlayStates();return}this._started||(this._started=!0,this.emit("start",this.getCurrentStates())),this._stopped=!1,this._paused=!1,this._wasAnimating=!0,this._startedTime===0&&(this._startedTime=s);const o=s,i=o-this._prevTime;this._prevTime=o,o-this._startedTime=this._startedTime+ae&&(J=D,_.done=!0),a[E]=J,c[E]=J}else if(D!=null&&D===this._currentStyle[E])c[E]=D,f[E]=0,a[E]=D,r[E]=0;else{const ie=(this._accumulatedTime[E]-Math.floor(this._accumulatedTime[E]/$y)*$y)/$y,ae=Math.floor(this._accumulatedTime[E]/$y);for(let Fe=0;Fee&&de.stopPropagation()},ae),s))}};PA.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:fb,onClick:fb,onMouseEnter:fb,onMouseLeave:fb,prefixCls:ZX.PREFIX};PA.propTypes={children:W.node,disabled:W.bool,prefixCls:W.string,style:W.object,size:W.oneOf(s5e),type:W.oneOf(i5e),block:W.bool,onClick:W.func,onMouseDown:W.func,circle:W.bool,loading:W.bool,htmlType:W.oneOf(o5e),theme:W.oneOf(RA.themes),className:W.string,onMouseEnter:W.func,onMouseLeave:W.func,"aria-label":W.string};var a5e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);ios,onMouseEnter:()=>os,onMouseLeave:()=>os};const d5e={PREFIX:`${mo}-banner`},f5e={TYPE:["info","success","danger","warning"]};class $9 extends fc{constructor(t){super(Object.assign(Object.assign({},$9.defaultAdapter),t))}removeBanner(t){this._adapter.notifyClose(t),this._adapter.setVisible()}}const Sv=d5e.PREFIX,h5e=f5e.TYPE;class ry extends Ml{constructor(t){super(t),this.remove=s=>{s&&s.stopPropagation(),this.foundation.removeBanner(s)},this.state={visible:!0},Km("target"in this.props,"[Semi Banner] 'target' has been deprecated, please write JSX directly instead.")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:()=>{this.setState({visible:!1})},notifyClose:t=>{const{onClose:s}=this.props;s(t)}})}componentDidMount(){this.foundation=new $9(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}renderCloser(){const{closeIcon:t}=this.props;return t===null?t:De.createElement(oS,{className:`${Sv}-close`,onClick:this.remove,icon:t||De.createElement(sw,{"x-semi-prop":"closeIcon","aria-hidden":!0}),theme:"borderless",size:"small",type:"tertiary","aria-label":"Close"})}renderIcon(){const{type:t,icon:s}=this.props;let i={warning:De.createElement(xA,{size:"large","aria-label":"warning"}),success:De.createElement(TA,{size:"large","aria-label":"success"}),info:De.createElement(n3,{size:"large","aria-label":"info"}),danger:De.createElement(tS,{size:"large","aria-label":"danger"})}[t];const a=Ar({[`${Sv}-icon`]:!0});return typeof s<"u"&&(i=s),i?De.createElement("div",{className:a,"x-semi-prop":"icon"},i):null}render(){const{children:t,type:s,className:o,style:i,bordered:a,title:r,description:c,fullMode:f}=this.props,{visible:e}=this.state,E=Ar(Sv,o,{[`${Sv}-${s}`]:s,[`${Sv}-full`]:f,[`${Sv}-in-container`]:!f,[`${Sv}-bordered`]:!f&&a});return e?De.createElement("div",Object.assign({className:E,style:i,role:"alert"},this.getDataAttr(this.props)),De.createElement("div",{className:`${Sv}-content-wrapper`},De.createElement("div",{className:`${Sv}-content`},this.renderIcon(),De.createElement("div",{className:`${Sv}-content-body`},r?De.createElement(I5.Title,{heading:5,className:`${Sv}-title`,component:"div","x-semi-prop":"title"},r):null,c?De.createElement(I5.Paragraph,{className:`${Sv}-description`,component:"div","x-semi-prop":"description"},c):null)),this.renderCloser()),t?De.createElement("div",{className:`${Sv}-extra`,"x-semi-prop":"children"},t):null):null}}ry.propTypes={fullMode:W.bool,type:W.oneOf(h5e),title:W.node,description:W.node,icon:W.node,closeIcon:W.node,children:W.node,style:W.object,className:W.string,onClose:W.func,bordered:W.bool};ry.defaultProps={onClose:()=>{},type:"info",fullMode:!0};let k9=class extends De.PureComponent{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t)}render(){const t=Object.assign({},this.props),s=!!t.icon,o=!!t.loading,i=!!t.disabled;return s||o&&!i?De.createElement(oS,Object.assign({},t)):De.createElement(PA,Object.assign({},t))}};k9.propTypes=Object.assign(Object.assign({},PA.propTypes),oS.propTypes);k9.elementType="Button";const xl=k9,JX={PREFIX:`${mo}-card`},p5e={SHADOWS:["hover","always"],TYPE:["grid"]};var m5e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);it=>s=>De.createElement(t,Object.assign({type:n},s));class iS extends lt.PureComponent{render(){const t=this.props,{prefixCls:s,className:o,type:i,size:a,shape:r}=t,c=v5e(t,["prefixCls","className","type","size","shape"]),f=Ar(o,`${s}-${i}`,{[`${s}-${i}-${a}`]:i.toUpperCase()==="AVATAR"},{[`${s}-${i}-${r}`]:i.toUpperCase()==="AVATAR"});return De.createElement("div",Object.assign({className:f},c))}}iS.propTypes={type:W.string,prefixCls:W.string,style:W.object,className:W.string,size:W.oneOf(b5e),shape:W.oneOf(y5e)};iS.defaultProps={prefixCls:D9.PREFIX,size:"medium",shape:"circle"};const C5e=f3("avatar")(iS),w5e=f3("image")(iS),E5e=f3("title")(iS),L5e=f3("button")(iS);class M9 extends lt.PureComponent{render(){const{prefixCls:t,className:s,style:o,rows:i}=this.props,a=Ar(s,`${t}-paragraph`);return De.createElement("ul",{className:a,style:o},[...Array(i)].map((r,c)=>De.createElement("li",{key:c})))}}M9.propTypes={rows:W.number,prefixCls:W.string,style:W.object,className:W.string};M9.defaultProps={prefixCls:D9.PREFIX,rows:4};var S5e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{let t=[];return De.Children.forEach(n,s=>{s!=null&&(Array.isArray(s)?t=t.concat(TP(s)):lt.isValidElement(s)&&s.type&&s.type.toString()===A5e&&s.props?t=t.concat(TP(s.props.children)):t.push(s))}),t},x1=x5e.PREFIX;class j9 extends lt.PureComponent{render(){const{children:t=null,style:s,className:o,spacing:i,wrap:a,align:r,vertical:c}=this.props,f=a&&c?!1:a,e=Object.assign({},s);let E="",_="";Bd(i)?(E=i,_=i):Lm(i)?(e.rowGap=i,e.columnGap=i):K8(i)&&(Bd(i[0])?E=i[0]:Lm(i[0])&&(e.columnGap=`${i[0]}px`),Bd(i[1])?_=i[1]:Lm(i[1])&&(e.rowGap=`${i[1]}px`));const R=Ar(x1,o,{[`${x1}-align-${r}`]:r,[`${x1}-vertical`]:c,[`${x1}-horizontal`]:!c,[`${x1}-wrap`]:f,[`${x1}-tight-horizontal`]:E===xw.SPACING_TIGHT,[`${x1}-tight-vertical`]:_===xw.SPACING_TIGHT,[`${x1}-medium-horizontal`]:E===xw.SPACING_MEDIUM,[`${x1}-medium-vertical`]:_===xw.SPACING_MEDIUM,[`${x1}-loose-horizontal`]:E===xw.SPACING_LOOSE,[`${x1}-loose-vertical`]:_===xw.SPACING_LOOSE}),D=TP(t),J=H1(this.props);return De.createElement("div",Object.assign({},J,{className:R,style:e,"x-semi-prop":"children"}),D)}}j9.propTypes={wrap:W.bool,align:W.oneOf(xw.ALIGN_SET),vertical:W.bool,spacing:W.oneOfType([W.string,W.number,W.array]),children:W.node,style:W.object,className:W.string};j9.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};const eZ=j9;var _5e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{const{title:t,headerExtraContent:s,header:o,headerLine:i,headerStyle:a}=this.props,r=Ar(`${pg}-header`,{[`${pg}-header-bordered`]:!!i}),c=Ar(`${pg}-header-wrapper`),f=Ar(`${pg}-header-wrapper-title`,{[`${pg}-header-wrapper-spacing`]:!!s});return o||s||t?De.createElement("div",{style:a,className:r},o||De.createElement("div",{className:c},s&&De.createElement("div",{className:`${pg}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},s),t&&De.createElement("div",{className:f},Bd(t)?De.createElement(I5.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},t):t))):null},this.renderCover=()=>{const{cover:t}=this.props,s=Ar(`${pg}-cover`);return t&&De.createElement("div",{className:s,"x-semi-prop":"cover"},t)},this.renderBody=()=>{const{bodyStyle:t,children:s,actions:o,loading:i}=this.props,a=Ar(`${pg}-body`),r=Ar(`${pg}-body-actions`),c=Ar(`${pg}-body-actions-item`),f=De.createElement("div",null,De.createElement(WT.Title,null),De.createElement("br",null),De.createElement(WT.Paragraph,{rows:3}));return De.createElement("div",{style:t,className:a},s&&De.createElement(WT,{placeholder:f,loading:i,active:!0},s),Array.isArray(o)&&De.createElement("div",{className:r},De.createElement(eZ,{spacing:12},o.map((e,E)=>De.createElement("div",{key:E,className:c,"x-semi-prop":`actions.${E}`},e)))))},this.renderFooter=()=>{const{footer:t,footerLine:s,footerStyle:o}=this.props,i=Ar(`${pg}-footer`,{[`${pg}-footer-bordered`]:s});return t&&De.createElement("div",{style:o,className:i,"x-semi-prop":"footer"},t)}}render(){const t=this.props,{bordered:s,shadows:o,style:i,className:a}=t,r=_5e(t,["bordered","shadows","style","className"]),c=Gm(r,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),f=Ar(pg,a,{[`${pg}-bordered`]:s,[`${pg}-shadows`]:o,[`${pg}-shadows-${o}`]:o});return De.createElement("div",Object.assign({},c,{"aria-busy":this.props.loading,className:f,style:i}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}h3.Meta=g5e;h3.propTypes={actions:W.array,bodyStyle:W.object,bordered:W.bool,children:W.node,className:W.string,cover:W.node,footer:W.node,footerLine:W.bool,footerStyle:W.object,header:W.node,headerExtraContent:W.node,headerLine:W.bool,headerStyle:W.object,loading:W.bool,shadows:W.oneOf(p5e.SHADOWS),style:W.object,title:W.node,"aria-label":W.string};h3.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};const NP=h3;function T5e(n,t,s,o){for(var i=n.length,a=s+(o?1:-1);o?a--:++a-1:!!i&&X5e(n,t,s)>-1}var rAe=nAe;const s4=ml(rAe);var sAe=YO,oAe=1,iAe=4;function aAe(n){return sAe(n,oAe|iAe)}var lAe=aAe;const RB=ml(lAe);var uAe=U9;function cAe(n,t){var s=n==null?0:n.length;return!!s&&uAe(n,t,0)>-1}var dAe=cAe;function fAe(n,t,s){for(var o=-1,i=n==null?0:n.length;++o=CAe&&(a=yAe,r=!1,t=new pAe(t));e:for(;++i{const{target:o}=s;try{if(this.clickState){this.clickState=!1;return}o.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{Km(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:t,extra:s,extraId:o,addonId:i}=this.getProps();t&&!i&&this._adapter.setAddonId(),s&&!o&&this._adapter.setExtraId()}notifyChange(t,s){const o=this._adapter.generateEvent(t,s);this._adapter.notifyChange(o)}handleChange(t){if(this.getProp("disabled"))return;if((t==null?void 0:t.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(t);return}const a=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(a,t):(this.setChecked(a),this.notifyChange(a,t))}handleChangeInGroup(t){const{value:s}=this.getProps(),a=!this._adapter.getGroupValue().includes(s),r=this._adapter.generateEvent(a,t);this._adapter.notifyChange(r),this._adapter.notifyGroupChange(r)}handleEnterPress(t){S2(t)&&this.handleChange(t)}setChecked(t){this._adapter.setNativeControlChecked(t)}destroy(){}}const i_e=o_e,z9=De.createContext({});class m3 extends lt.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:t}=this.props;this.inputEntity.focus({preventScroll:t})}render(){const{indeterminate:t,checked:s,disabled:o,prefixCls:i,name:a,isPureCardType:r,addonId:c,extraId:f,focusInner:e,onInputFocus:E,onInputBlur:_}=this.props,R=i||GT.PREFIX,D=Ar({[`${R}-inner`]:!0,[`${R}-inner-checked`]:!!s,[`${R}-inner-pureCardType`]:r},GT.WRAPPER),J=Ar({[`${R}-inner-display`]:!0,[`${R}-focus`]:e,[`${R}-focus-border`]:e&&!s}),re=s?De.createElement(U1,null):t?De.createElement(SEe,null):null,ie={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":o,"aria-checked":s,"aria-labelledby":c,"aria-describedby":f||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:GT.INPUT,onChange:os,checked:s,disabled:o,onFocus:E,onBlur:_};return a&&(ie.name=a),De.createElement("span",{className:D},De.createElement("input",Object.assign({},ie,{ref:ae=>{this.inputEntity=ae}})),De.createElement("span",{className:J},re))}}m3.contextType=z9;m3.propTypes={"aria-describedby":W.string,"aria-errormessage":W.string,"aria-invalid":W.bool,"aria-labelledby":W.string,"aria-required":W.bool,checked:W.bool,disabled:W.bool,onChange:W.func,children:W.node,grouped:W.bool,value:W.any,isPureCardType:W.bool,addonId:W.string,extraId:W.string,focusInner:W.bool,onInputFocus:W.func,onInputBlur:W.func,preventScroll:W.bool};m3.defaultProps={onChange:os};const a_e=m3;let $A=class extends Ml{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:t=>{this.setState({checked:t})},notifyChange:t=>{const{onChange:s}=this.props;s&&s(t)},generateEvent:(t,s)=>{const{props:o}=this;return{target:Object.assign(Object.assign({},o),{checked:t}),stopPropagation:()=>{s.stopPropagation()},preventDefault:()=>{s.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{s.nativeEvent&&typeof s.nativeEvent.stopImmediatePropagation=="function"&&s.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:t=>{this.context.checkboxGroup.onChange(t)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:UC({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:UC({prefix:"extra"})})},setFocusVisible:t=>{this.setState({focusVisible:t})},focusCheckboxEntity:()=>{this.focus()}})}constructor(t){super(t),this.handleChange=o=>this.foundation.handleChange(o),this.handleEnterPress=o=>this.foundation.handleEnterPress(o),this.handleFocusVisible=o=>{this.foundation.handleFocusVisible(o)},this.handleBlur=o=>{this.foundation.handleBlur()};const s=!1;this.state={checked:t.checked||t.defaultChecked||s,addonId:t.addonId,extraId:t.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new i_e(this.adapter)}componentDidUpdate(t){this.props.checked!==t.checked&&(Hm(this.props.checked)?this.foundation.setChecked(!1):B9(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:t,style:s,prefixCls:o,className:i,indeterminate:a,children:r,onMouseEnter:c,onMouseLeave:f,extra:e,value:E,role:_,tabIndex:R,id:D,type:J}=this.props,{checked:re,addonId:ie,extraId:ae,focusVisible:de}=this.state,ye={checked:re,disabled:t},Fe=this.isInGroup();if(Fe){if(this.context.checkboxGroup.value){const fn=(this.context.checkboxGroup.value||[]).includes(E);ye.checked=fn}this.context.checkboxGroup.disabled&&(ye.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:Nt,isPureCardType:kt}=this.context.checkboxGroup;ye.isCardType=Nt,ye.isPureCardType=kt,ye.name=this.context.checkboxGroup.name}else ye.isPureCardType=J===hb.TYPE_PURECARD,ye.isCardType=J===hb.TYPE_CARD||ye.isPureCardType;const Ge=o||GT.PREFIX,tt=ye.isCardType||ye.isPureCardType,ht=Ar(Ge,{[`${Ge}-disabled`]:ye.disabled,[`${Ge}-indeterminate`]:a,[`${Ge}-checked`]:ye.checked,[`${Ge}-unChecked`]:!ye.checked,[`${Ge}-cardType`]:ye.isCardType,[`${Ge}-cardType_disabled`]:ye.disabled&&ye.isCardType,[`${Ge}-cardType_unDisabled`]:!(ye.disabled&&ye.isCardType),[`${Ge}-cardType_checked`]:ye.isCardType&&ye.checked&&!ye.disabled,[`${Ge}-cardType_checked_disabled`]:ye.isCardType&&ye.checked&&ye.disabled,[i]:!!i,[`${Ge}-focus`]:de&&tt}),yt=Ar(`${Ge}-extra`,{[`${Ge}-cardType_extra_noChildren`]:ye.isCardType&&!r});Fe&&this.context.checkboxGroup.name;const Ft=this.props["x-semi-children-alias"]||"children",Zt=()=>!r&&!e?null:De.createElement("div",{className:`${Ge}-content`},r?De.createElement("span",{id:ie,className:`${Ge}-addon`,"x-semi-prop":Ft},r):null,e?De.createElement("div",{id:ae,className:yt,"x-semi-prop":"extra"},e):null);return De.createElement("span",Object.assign({role:_,tabIndex:R,style:s,className:ht,id:D,onMouseEnter:c,onMouseLeave:f,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),De.createElement(a_e,Object.assign({},this.props,ye,{addonId:r&&ie,extraId:e&&ae,isPureCardType:ye.isPureCardType,ref:Nt=>{this.checkboxEntity=Nt},focusInner:de&&!tt,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),Zt())}};$A.contextType=z9;$A.propTypes={"aria-describedby":W.string,"aria-errormessage":W.string,"aria-invalid":W.bool,"aria-labelledby":W.string,"aria-required":W.bool,checked:W.bool,defaultChecked:W.bool,disabled:W.bool,indeterminate:W.bool,onChange:W.func,value:W.any,style:W.object,className:W.string,prefixCls:W.string,onMouseEnter:W.func,onMouseLeave:W.func,extra:W.node,index:W.number,"aria-label":W.string,tabIndex:W.number,preventScroll:W.bool,type:W.string};$A.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:os,onMouseEnter:os,onMouseLeave:os,type:"default"};$A.elementType="Checkbox";const P5=$A;class H9 extends fc{static get checkboxGroupDefaultAdapter(){return{}}constructor(t){super(Object.assign(Object.assign({},H9.checkboxGroupDefaultAdapter),t))}init(){const{defaultValue:t,value:s}=this.getProps();typeof t<"u"&&!Array.isArray(t)&&Km(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof s<"u"&&!Array.isArray(s)&&Km(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(t){this._adapter.notifyChange(t)}handleChange(t){const s=this.getState("value");let o=[];Array.isArray(s)||(o=[s]),t.target.checked?o=[...s,t.target.value]:o=s.filter((a,r)=>a!==t.target.value),"value"in this.getProps()?this.notifyChange(o):(this._adapter.updateGroupValue(o),this.notifyChange(o))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(t){Array.isArray(t)?this._adapter.updateGroupValue(t):(typeof t>"u"&&this._adapter.updateGroupValue([]),Km(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}const l_e=H9;class V9 extends Ml{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:t=>{this.setState({value:t})},notifyChange:t=>{this.props.onChange&&this.props.onChange(t)}})}constructor(t){super(t),this.state={value:t.value||t.defaultValue},this.foundation=new l_e(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(t){Mp(t.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(t){this.foundation.handleChange(t)}render(){const{children:t,options:s,prefixCls:o,direction:i,className:a,id:r,style:c,type:f,disabled:e}=this.props,E=f===hb.TYPE_PURECARD,_=f===hb.TYPE_CARD||E,R=o||s_e.PREFIX,D=Ar({[R]:!0,[`${R}-wrapper`]:!0,[`${R}-${i}`]:i,[`${R}-${i}-cardType`]:i&&_,[`${R}-${i}-pureCardType`]:i&&E},a),J=this.state.value.slice();let re;return s?re=(s||[]).map((ie,ae)=>typeof ie=="string"?De.createElement(P5,{role:"listitem",key:ae,disabled:this.props.disabled,value:ie,prefixCls:o},ie):De.createElement(P5,{role:"listitem",key:ae,disabled:ie.disabled||this.props.disabled,value:ie.value,prefixCls:o,extra:ie.extra,className:ie.className,style:ie.style,onChange:ie.onChange},ie.label)):t&&(re=De.Children.toArray(t).map((ie,ae)=>De.cloneElement(ie,{key:ae,role:"listitem"}))),De.createElement("div",Object.assign({id:r,role:"list","aria-label":this.props["aria-label"],className:D,style:c,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),De.createElement(z9.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:J,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:_,isPureCardType:E}}},re))}}V9.propTypes={"aria-describedby":W.string,"aria-errormessage":W.string,"aria-invalid":W.bool,"aria-labelledby":W.string,"aria-required":W.bool,defaultValue:W.array,disabled:W.bool,name:W.string,options:W.array,value:W.array,onChange:W.func,children:W.node,prefixCls:W.string,direction:W.oneOf(hb.DIRECTION_SET),className:W.string,type:W.oneOf([hb.TYPE_DEFAULT,hb.TYPE_CARD,hb.TYPE_PURECARD]),style:W.object};V9.defaultProps={disabled:!1,onChange:()=>{},type:hb.TYPE_DEFAULT,defaultValue:[],direction:hb.DEFAULT_DIRECTION};const u_e=V9;class rZ extends P5{}rZ.Group=u_e;const $5=rZ;function OP(){return OP=Object.assign?Object.assign.bind():function(n){for(var t=1;t=t?n.call(null):i.id=requestAnimationFrame(o)}var i={id:requestAnimationFrame(o)};return i}var PR=-1;function jB(n){if(n===void 0&&(n=!1),PR===-1||n){var t=document.createElement("div"),s=t.style;s.width="50px",s.height="50px",s.overflow="scroll",document.body.appendChild(t),PR=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return PR}var W2=null;function FB(n){if(n===void 0&&(n=!1),W2===null||n){var t=document.createElement("div"),s=t.style;s.width="50px",s.height="50px",s.overflow="scroll",s.direction="rtl";var o=document.createElement("div"),i=o.style;return i.width="100px",i.height="100px",t.appendChild(o),document.body.appendChild(t),t.scrollLeft>0?W2="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?W2="negative":W2="positive-ascending"),document.body.removeChild(t),W2}return W2}var m_e=150,g_e=function(t,s){return t};function sZ(n){var t,s=n.getItemOffset,o=n.getEstimatedTotalSize,i=n.getItemSize,a=n.getOffsetForIndexAndAlignment,r=n.getStartIndexForOffset,c=n.getStopIndexForStartIndex,f=n.initInstanceProps,e=n.shouldResetStyleCacheOnItemSizeChange,E=n.validateProps;return t=function(_){c_e(R,_);function R(J){var re;return re=_.call(this,J)||this,re._instanceProps=f(re.props,CB(re)),re._outerRef=void 0,re._resetIsScrollingTimeoutId=null,re.state={instance:CB(re),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof re.props.initialScrollOffset=="number"?re.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},re._callOnItemsRendered=void 0,re._callOnItemsRendered=Dw(function(ie,ae,de,ye){return re.props.onItemsRendered({overscanStartIndex:ie,overscanStopIndex:ae,visibleStartIndex:de,visibleStopIndex:ye})}),re._callOnScroll=void 0,re._callOnScroll=Dw(function(ie,ae,de){return re.props.onScroll({scrollDirection:ie,scrollOffset:ae,scrollUpdateWasRequested:de})}),re._getItemStyle=void 0,re._getItemStyle=function(ie){var ae=re.props,de=ae.direction,ye=ae.itemSize,Fe=ae.layout,Ge=re._getItemStyleCache(e&&ye,e&&Fe,e&&de),tt;if(Ge.hasOwnProperty(ie))tt=Ge[ie];else{var ht=s(re.props,ie,re._instanceProps),yt=i(re.props,ie,re._instanceProps),Ft=de==="horizontal"||Fe==="horizontal",Zt=de==="rtl",Nt=Ft?ht:0;Ge[ie]=tt={position:"absolute",left:Zt?void 0:Nt,right:Zt?Nt:void 0,top:Ft?0:ht,height:Ft?"100%":yt,width:Ft?yt:"100%"}}return tt},re._getItemStyleCache=void 0,re._getItemStyleCache=Dw(function(ie,ae,de){return{}}),re._onScrollHorizontal=function(ie){var ae=ie.currentTarget,de=ae.clientWidth,ye=ae.scrollLeft,Fe=ae.scrollWidth;re.setState(function(Ge){if(Ge.scrollOffset===ye)return null;var tt=re.props.direction,ht=ye;if(tt==="rtl")switch(FB()){case"negative":ht=-ye;break;case"positive-descending":ht=Fe-de-ye;break}return ht=Math.max(0,Math.min(ht,Fe-de)),{isScrolling:!0,scrollDirection:Ge.scrollOffsettt.clientWidth?jB():0:Ge=tt.scrollHeight>tt.clientHeight?jB():0}this.scrollTo(a(this.props,re,ie,Fe,this._instanceProps,Ge))},D.componentDidMount=function(){var re=this.props,ie=re.direction,ae=re.initialScrollOffset,de=re.layout;if(typeof ae=="number"&&this._outerRef!=null){var ye=this._outerRef;ie==="horizontal"||de==="horizontal"?ye.scrollLeft=ae:ye.scrollTop=ae}this._callPropsCallbacks()},D.componentDidUpdate=function(){var re=this.props,ie=re.direction,ae=re.layout,de=this.state,ye=de.scrollOffset,Fe=de.scrollUpdateWasRequested;if(Fe&&this._outerRef!=null){var Ge=this._outerRef;if(ie==="horizontal"||ae==="horizontal")if(ie==="rtl")switch(FB()){case"negative":Ge.scrollLeft=-ye;break;case"positive-ascending":Ge.scrollLeft=ye;break;default:var tt=Ge.clientWidth,ht=Ge.scrollWidth;Ge.scrollLeft=ht-tt-ye;break}else Ge.scrollLeft=ye;else Ge.scrollTop=ye}this._callPropsCallbacks()},D.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&MB(this._resetIsScrollingTimeoutId)},D.render=function(){var re=this.props,ie=re.children,ae=re.className,de=re.direction,ye=re.height,Fe=re.innerRef,Ge=re.innerElementType,tt=re.innerTagName,ht=re.itemCount,yt=re.itemData,Ft=re.itemKey,Zt=Ft===void 0?g_e:Ft,Nt=re.layout,kt=re.outerElementType,fn=re.outerTagName,tn=re.style,zn=re.useIsScrolling,qn=re.width,gr=this.state.isScrolling,$n=de==="horizontal"||Nt==="horizontal",hr=$n?this._onScrollHorizontal:this._onScrollVertical,Mn=this._getRangeToRender(),dr=Mn[0],Rt=Mn[1],mn=[];if(ht>0)for(var Pn=dr;Pn<=Rt;Pn++)mn.push(lt.createElement(ie,{data:yt,key:Zt(Pn,yt),index:Pn,isScrolling:zn?gr:void 0,style:this._getItemStyle(Pn)}));var Yn=o(this.props,this._instanceProps);return lt.createElement(kt||fn||"div",{className:ae,onScroll:hr,ref:this._outerRefSetter,style:OP({position:"relative",height:ye,width:qn,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:de},tn)},lt.createElement(Ge||tt||"div",{children:mn,ref:Fe,style:{height:$n?"100%":Yn,pointerEvents:gr?"none":void 0,width:$n?Yn:"100%"}}))},D._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var re=this.props.itemCount;if(re>0){var ie=this._getRangeToRender(),ae=ie[0],de=ie[1],ye=ie[2],Fe=ie[3];this._callOnItemsRendered(ae,de,ye,Fe)}}if(typeof this.props.onScroll=="function"){var Ge=this.state,tt=Ge.scrollDirection,ht=Ge.scrollOffset,yt=Ge.scrollUpdateWasRequested;this._callOnScroll(tt,ht,yt)}},D._getRangeToRender=function(){var re=this.props,ie=re.itemCount,ae=re.overscanCount,de=this.state,ye=de.isScrolling,Fe=de.scrollDirection,Ge=de.scrollOffset;if(ie===0)return[0,0,0,0];var tt=r(this.props,Ge,this._instanceProps),ht=c(this.props,tt,Ge,this._instanceProps),yt=!ye||Fe==="backward"?Math.max(1,ae):1,Ft=!ye||Fe==="forward"?Math.max(1,ae):1;return[Math.max(0,tt-yt),Math.max(0,Math.min(ie-1,ht+Ft)),tt,ht]},R}(lt.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var v_e=function(t,s){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,s.instance},b_e=50,AE=function(t,s,o){var i=t,a=i.itemSize,r=o.itemMetadataMap,c=o.lastMeasuredIndex;if(s>c){var f=0;if(c>=0){var e=r[c];f=e.offset+e.size}for(var E=c+1;E<=s;E++){var _=a(E);r[E]={offset:f,size:_},f+=_}o.lastMeasuredIndex=s}return r[s]},y_e=function(t,s,o){var i=s.itemMetadataMap,a=s.lastMeasuredIndex,r=a>0?i[a].offset:0;return r>=o?oZ(t,s,a,0,o):C_e(t,s,Math.max(0,a),o)},oZ=function(t,s,o,i,a){for(;i<=o;){var r=i+Math.floor((o-i)/2),c=AE(t,r,s).offset;if(c===a)return r;ca&&(o=r-1)}return i>0?i-1:0},C_e=function(t,s,o,i){for(var a=t.itemCount,r=1;o=o&&(r=o-1),r>=0){var f=i[r];c=f.offset+f.size}var e=o-r-1,E=e*a;return c+E},w_e=sZ({getItemOffset:function(t,s,o){return AE(t,s,o).offset},getItemSize:function(t,s,o){return o.itemMetadataMap[s].size},getEstimatedTotalSize:UB,getOffsetForIndexAndAlignment:function(t,s,o,i,a,r){var c=t.direction,f=t.height,e=t.layout,E=t.width,_=c==="horizontal"||e==="horizontal",R=_?E:f,D=AE(t,s,a),J=UB(t,a),re=Math.max(0,Math.min(J-R,D.offset)),ie=Math.max(0,D.offset-R+D.size+r);switch(o==="smart"&&(i>=ie-R&&i<=re+R?o="auto":o="center"),o){case"start":return re;case"end":return ie;case"center":return Math.round(ie+(re-ie)/2);case"auto":default:return i>=ie&&i<=re?i:i=ae-J&&i<=ie+J?o="auto":o="center"),o){case"start":return ie;case"end":return ae;case"center":{var de=Math.round(ae+(ie-ae)/2);return dere+Math.floor(J/2)?re:de}case"auto":default:return i>=ae&&i<=ie?i:ithis.close(Nt,o,s)},De.createElement(sw,{size:"small"})):null,Ft=Bd(o),Zt=Ar(`${mg}-content`,`${mg}-content-${Ft?"ellipsis":"center"}`);return De.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||Ft?`${r?"Closable ":""}Tag: ${o}`:""},ht),ie?De.createElement("div",{className:`${mg}-prefix-icon`},ie):null,D?this.renderAvatar():null,De.createElement("div",{className:Zt},o),ae?De.createElement("div",{className:`${mg}-suffix-icon`},ae):null,yt)}}cm.defaultProps={size:uZ[0],color:lZ[0],closable:!1,type:cZ[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};cm.propTypes={children:W.node,tagKey:W.oneOfType([W.string,W.number]),size:W.oneOf(uZ),color:W.oneOf(lZ),type:W.oneOf(cZ),closable:W.bool,visible:W.bool,onClose:W.func,onClick:W.func,prefixIcon:W.node,suffixIcon:W.node,style:W.object,className:W.string,avatarSrc:W.string,avatarShape:W.oneOf(L_e),"aria-label":W.string};const S_e={PREFIX:`${mo}-tagInput`},BB={SIZE_SET:["large","default","small"],STATUS:["success","default","error","warning"]},x_e=(n,t)=>{let s=[];if(Bd(t)||Lm(t))s=n.split(t);else if(K8(t)){const o=t[0];s=n;for(let i=1;i{const{value:o}=s.target,{entering:i}=this.getStates();i?this._onInputChange(o,s):this._checkInputChangeValid(o)&&this._onInputChange(o,s)},this.handleInputCompositionStart=s=>{const{maxLength:o}=this.getProps();Lm(o)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=s=>{const{value:o}=s.target,{maxLength:i,onInputExceed:a,separator:r}=this.getProps();if(!Lm(i))return;this._adapter.setEntering(!1);let c=!0;const f=K_(o,r);let e=0;for(;ei){c=!1,xu(a)&&a(o);break}if(c)this._adapter.setInputValue(o);else{const E=f.slice(0,e);e{const{maxLength:o,onInputExceed:i,separator:a}=this._adapter.getProps(),{inputValue:r}=this._adapter.getStates();let c=!0;if(Lm(o)){const f=K_(s,a),e=K_(r,a),E=Math.max(f.length,e.length);for(let _=0;_e[_].length)&&f[_].length>o){c=!1,xu(i)&&i(s);break}}return c},this.handleKeyDown=s=>{const{inputValue:o,tagsArray:i}=this._adapter.getStates(),a=s.keyCode;a===lm.ENTER&&(s.preventDefault(),o!==""&&this._handleAddTags(s));const{length:r}=i;if(a===lm.BACKSPACE&&o===""&&r>0){const c=i.slice(0,r-1),f=i[r-1];this._onRemove(c,f,r-1)}this._adapter.notifyKeyDown(s)}}_handleAddTags(t){const{separator:s,max:o,onExceed:i,allowDuplicates:a}=this._adapter.getProps(),{inputValue:r,tagsArray:c}=this._adapter.getStates();let f=K_(r,s);f=f.filter((E,_)=>!a&&(c.includes(E)||f.indexOf(E)!==_)?!1:Bd(E)&&E.trim()!=="");let e=c.concat(f);Lm(o)&&e.length>o&&(xu(i)&&i(e),e=e.slice(0,o),f=f.slice(0,o-c.length)),f.length>0&&this._onAdd(e,f),this._onInputChange("",t)}handleInputBlur(t){const{addOnBlur:s}=this._adapter.getProps();s===!0&&this._handleAddTags(t),this._adapter.setFocusing(!1),this._adapter.notifyBlur(t)}handleInputFocus(t){this._adapter.setFocusing(!0),this._adapter.notifyFocus(t)}handleClearEnterPress(t){S2(t)&&this.handleClearBtn(t)}handleClearBtn(t){const{inputValue:s,tagsArray:o}=this._adapter.getStates();o.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),s.length>0&&this._onInputChange("",t),t.stopPropagation()}handleTagClose(t){const{tagsArray:s}=this._adapter.getStates(),o=[...s];o.splice(t,1);const i=s[t];this._onRemove(o,i,t)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(t){const{disabled:s}=this.getProps();if(s)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler(i=>this.clickOutsideCallBack()))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(t){const{disabled:s}=this._adapter.getProps(),{isFocus:o}=this._adapter.getStates();!s&&!o&&this._adapter.toggleFocusing(!0)}handlePreventMouseDown(t){t&&xu(t.preventDefault)&&t.preventDefault()}_onRemove(t,s,o){this._isControlledComponent()||this._adapter.setTagsArray(t),this._adapter.notifyTagChange(t),this._adapter.notifyTagRemove(s,o)}_onAdd(t,s){this._isControlledComponent()||this._adapter.setTagsArray(t),this._adapter.notifyTagChange(t),this._adapter.notifyTagAdd(s)}_onInputChange(t,s){this._adapter.setInputValue(t),this._adapter.notifyInputChange(t,s)}handleSortEnd(t){const{oldIndex:s,newIndex:o}=t,{tagsArray:i}=this.getStates(),a=A_e(i,s,o);this._isControlledComponent()||this._adapter.setTagsArray(a),this._adapter.notifyTagChange(a)}}const T_e=__e;function N_e(){for(var n=arguments.length,t=new Array(n),s=0;so=>{t.forEach(i=>i(o))},t)}const g3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function lS(n){const t=Object.prototype.toString.call(n);return t==="[object Window]"||t==="[object global]"}function W9(n){return"nodeType"in n}function sv(n){var t,s;return n?lS(n)?n:W9(n)&&(t=(s=n.ownerDocument)==null?void 0:s.defaultView)!=null?t:window:window}function G9(n){const{Document:t}=sv(n);return n instanceof t}function kA(n){return lS(n)?!1:n instanceof sv(n).HTMLElement}function dZ(n){return n instanceof sv(n).SVGElement}function uS(n){return n?lS(n)?n.document:W9(n)?G9(n)?n:kA(n)||dZ(n)?n.ownerDocument:document:document:document}const b1=g3?lt.useLayoutEffect:lt.useEffect;function v3(n){const t=lt.useRef(n);return b1(()=>{t.current=n}),lt.useCallback(function(){for(var s=arguments.length,o=new Array(s),i=0;i{n.current=setInterval(o,i)},[]),s=lt.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[t,s]}function k5(n,t){t===void 0&&(t=[n]);const s=lt.useRef(n);return b1(()=>{s.current!==n&&(s.current=n)},t),s}function DA(n,t){const s=lt.useRef();return lt.useMemo(()=>{const o=n(s.current);return s.current=o,o},[...t])}function o4(n){const t=v3(n),s=lt.useRef(null),o=lt.useCallback(i=>{i!==s.current&&(t==null||t(i,s.current)),s.current=i},[]);return[s,o]}function i4(n){const t=lt.useRef();return lt.useEffect(()=>{t.current=n},[n]),t.current}let $R={};function MA(n,t){return lt.useMemo(()=>{if(t)return t;const s=$R[n]==null?0:$R[n]+1;return $R[n]=s,n+"-"+s},[n,t])}function fZ(n){return function(t){for(var s=arguments.length,o=new Array(s>1?s-1:0),i=1;i{const c=Object.entries(r);for(const[f,e]of c){const E=a[f];E!=null&&(a[f]=E+n*e)}return a},{...t})}}const qE=fZ(1),D5=fZ(-1);function I_e(n){return"clientX"in n&&"clientY"in n}function b3(n){if(!n)return!1;const{KeyboardEvent:t}=sv(n.target);return t&&n instanceof t}function R_e(n){if(!n)return!1;const{TouchEvent:t}=sv(n.target);return t&&n instanceof t}function a4(n){if(R_e(n)){if(n.touches&&n.touches.length){const{clientX:t,clientY:s}=n.touches[0];return{x:t,y:s}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:t,clientY:s}=n.changedTouches[0];return{x:t,y:s}}}return I_e(n)?{x:n.clientX,y:n.clientY}:null}const zC=Object.freeze({Translate:{toString(n){if(!n)return;const{x:t,y:s}=n;return"translate3d("+(t?Math.round(t):0)+"px, "+(s?Math.round(s):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:t,scaleY:s}=n;return"scaleX("+t+") scaleY("+s+")"}},Transform:{toString(n){if(n)return[zC.Translate.toString(n),zC.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:t,duration:s,easing:o}=n;return t+" "+s+"ms "+o}}}),zB="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function P_e(n){return n.matches(zB)?n:n.querySelector(zB)}const $_e={display:"none"};function k_e(n){let{id:t,value:s}=n;return De.createElement("div",{id:t,style:$_e},s)}function D_e(n){let{id:t,announcement:s,ariaLiveType:o="assertive"}=n;const i={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return De.createElement("div",{id:t,style:i,role:"status","aria-live":o,"aria-atomic":!0},s)}function M_e(){const[n,t]=lt.useState("");return{announce:lt.useCallback(o=>{o!=null&&t(o)},[]),announcement:n}}const hZ=lt.createContext(null);function j_e(n){const t=lt.useContext(hZ);lt.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(n)},[n,t])}function F_e(){const[n]=lt.useState(()=>new Set),t=lt.useCallback(o=>(n.add(o),()=>n.delete(o)),[n]);return[lt.useCallback(o=>{let{type:i,event:a}=o;n.forEach(r=>{var c;return(c=r[i])==null?void 0:c.call(r,a)})},[n]),t]}const U_e={draggable:` + To pick up a draggable item, press the space bar. + While dragging, use the arrow keys to move the item. + Press space again to drop the item in its new position, or press escape to cancel. + `},B_e={onDragStart(n){let{active:t}=n;return"Picked up draggable item "+t.id+"."},onDragOver(n){let{active:t,over:s}=n;return s?"Draggable item "+t.id+" was moved over droppable area "+s.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(n){let{active:t,over:s}=n;return s?"Draggable item "+t.id+" was dropped over droppable area "+s.id:"Draggable item "+t.id+" was dropped."},onDragCancel(n){let{active:t}=n;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function z_e(n){let{announcements:t=B_e,container:s,hiddenTextDescribedById:o,screenReaderInstructions:i=U_e}=n;const{announce:a,announcement:r}=M_e(),c=MA("DndLiveRegion"),[f,e]=lt.useState(!1);if(lt.useEffect(()=>{e(!0)},[]),j_e(lt.useMemo(()=>({onDragStart(_){let{active:R}=_;a(t.onDragStart({active:R}))},onDragMove(_){let{active:R,over:D}=_;t.onDragMove&&a(t.onDragMove({active:R,over:D}))},onDragOver(_){let{active:R,over:D}=_;a(t.onDragOver({active:R,over:D}))},onDragEnd(_){let{active:R,over:D}=_;a(t.onDragEnd({active:R,over:D}))},onDragCancel(_){let{active:R,over:D}=_;a(t.onDragCancel({active:R,over:D}))}}),[a,t])),!f)return null;const E=De.createElement(De.Fragment,null,De.createElement(k_e,{id:o,value:i.draggable}),De.createElement(D_e,{id:c,announcement:r}));return s?Gg.createPortal(E,s):E}var wm;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(wm||(wm={}));function l4(){}function kR(n,t){return lt.useMemo(()=>({sensor:n,options:t??{}}),[n,t])}function H_e(){for(var n=arguments.length,t=new Array(n),s=0;s[...t].filter(o=>o!=null),[...t])}const W1=Object.freeze({x:0,y:0});function pZ(n,t){return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))}function V_e(n,t){const s=a4(n);if(!s)return"0 0";const o={x:(s.x-t.left)/t.width*100,y:(s.y-t.top)/t.height*100};return o.x+"% "+o.y+"%"}function mZ(n,t){let{data:{value:s}}=n,{data:{value:o}}=t;return s-o}function W_e(n,t){let{data:{value:s}}=n,{data:{value:o}}=t;return o-s}function HB(n){let{left:t,top:s,height:o,width:i}=n;return[{x:t,y:s},{x:t+i,y:s},{x:t,y:s+o},{x:t+i,y:s+o}]}function gZ(n,t){if(!n||n.length===0)return null;const[s]=n;return t?s[t]:s}function VB(n,t,s){return t===void 0&&(t=n.left),s===void 0&&(s=n.top),{x:t+n.width*.5,y:s+n.height*.5}}const G_e=n=>{let{collisionRect:t,droppableRects:s,droppableContainers:o}=n;const i=VB(t,t.left,t.top),a=[];for(const r of o){const{id:c}=r,f=s.get(c);if(f){const e=pZ(VB(f),i);a.push({id:c,data:{droppableContainer:r,value:e}})}}return a.sort(mZ)},K_e=n=>{let{collisionRect:t,droppableRects:s,droppableContainers:o}=n;const i=HB(t),a=[];for(const r of o){const{id:c}=r,f=s.get(c);if(f){const e=HB(f),E=i.reduce((R,D,J)=>R+pZ(e[J],D),0),_=Number((E/4).toFixed(4));a.push({id:c,data:{droppableContainer:r,value:_}})}}return a.sort(mZ)};function q_e(n,t){const s=Math.max(t.top,n.top),o=Math.max(t.left,n.left),i=Math.min(t.left+t.width,n.left+n.width),a=Math.min(t.top+t.height,n.top+n.height),r=i-o,c=a-s;if(o{let{collisionRect:t,droppableRects:s,droppableContainers:o}=n;const i=[];for(const a of o){const{id:r}=a,c=s.get(r);if(c){const f=q_e(c,t);f>0&&i.push({id:r,data:{droppableContainer:a,value:f}})}}return i.sort(W_e)};function X_e(n,t,s){return{...n,scaleX:t&&s?t.width/s.width:1,scaleY:t&&s?t.height/s.height:1}}function vZ(n,t){return n&&t?{x:n.left-t.left,y:n.top-t.top}:W1}function Z_e(n){return function(s){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a({...r,top:r.top+n*c.y,bottom:r.bottom+n*c.y,left:r.left+n*c.x,right:r.right+n*c.x}),{...s})}}const J_e=Z_e(1);function bZ(n){if(n.startsWith("matrix3d(")){const t=n.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(n.startsWith("matrix(")){const t=n.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Q_e(n,t,s){const o=bZ(t);if(!o)return n;const{scaleX:i,scaleY:a,x:r,y:c}=o,f=n.left-r-(1-i)*parseFloat(s),e=n.top-c-(1-a)*parseFloat(s.slice(s.indexOf(" ")+1)),E=i?n.width/i:n.width,_=a?n.height/a:n.height;return{width:E,height:_,top:e,right:f+E,bottom:e+_,left:f}}const eTe={ignoreTransform:!1};function cS(n,t){t===void 0&&(t=eTe);let s=n.getBoundingClientRect();if(t.ignoreTransform){const{transform:e,transformOrigin:E}=sv(n).getComputedStyle(n);e&&(s=Q_e(s,e,E))}const{top:o,left:i,width:a,height:r,bottom:c,right:f}=s;return{top:o,left:i,width:a,height:r,bottom:c,right:f}}function WB(n){return cS(n,{ignoreTransform:!0})}function tTe(n){const t=n.innerWidth,s=n.innerHeight;return{top:0,left:0,right:t,bottom:s,width:t,height:s}}function nTe(n,t){return t===void 0&&(t=sv(n).getComputedStyle(n)),t.position==="fixed"}function rTe(n,t){t===void 0&&(t=sv(n).getComputedStyle(n));const s=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const a=t[i];return typeof a=="string"?s.test(a):!1})}function y3(n,t){const s=[];function o(i){if(t!=null&&s.length>=t||!i)return s;if(G9(i)&&i.scrollingElement!=null&&!s.includes(i.scrollingElement))return s.push(i.scrollingElement),s;if(!kA(i)||dZ(i)||s.includes(i))return s;const a=sv(n).getComputedStyle(i);return i!==n&&rTe(i,a)&&s.push(i),nTe(i,a)?s:o(i.parentNode)}return n?o(n):s}function yZ(n){const[t]=y3(n,1);return t??null}function DR(n){return!g3||!n?null:lS(n)?n:W9(n)?G9(n)||n===uS(n).scrollingElement?window:kA(n)?n:null:null}function CZ(n){return lS(n)?n.scrollX:n.scrollLeft}function wZ(n){return lS(n)?n.scrollY:n.scrollTop}function IP(n){return{x:CZ(n),y:wZ(n)}}var Dm;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(Dm||(Dm={}));function EZ(n){return!g3||!n?!1:n===document.scrollingElement}function LZ(n){const t={x:0,y:0},s=EZ(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},o={x:n.scrollWidth-s.width,y:n.scrollHeight-s.height},i=n.scrollTop<=t.y,a=n.scrollLeft<=t.x,r=n.scrollTop>=o.y,c=n.scrollLeft>=o.x;return{isTop:i,isLeft:a,isBottom:r,isRight:c,maxScroll:o,minScroll:t}}const sTe={x:.2,y:.2};function oTe(n,t,s,o,i){let{top:a,left:r,right:c,bottom:f}=s;o===void 0&&(o=10),i===void 0&&(i=sTe);const{isTop:e,isBottom:E,isLeft:_,isRight:R}=LZ(n),D={x:0,y:0},J={x:0,y:0},re={height:t.height*i.y,width:t.width*i.x};return!e&&a<=t.top+re.height?(D.y=Dm.Backward,J.y=o*Math.abs((t.top+re.height-a)/re.height)):!E&&f>=t.bottom-re.height&&(D.y=Dm.Forward,J.y=o*Math.abs((t.bottom-re.height-f)/re.height)),!R&&c>=t.right-re.width?(D.x=Dm.Forward,J.x=o*Math.abs((t.right-re.width-c)/re.width)):!_&&r<=t.left+re.width&&(D.x=Dm.Backward,J.x=o*Math.abs((t.left+re.width-r)/re.width)),{direction:D,speed:J}}function iTe(n){if(n===document.scrollingElement){const{innerWidth:a,innerHeight:r}=window;return{top:0,left:0,right:a,bottom:r,width:a,height:r}}const{top:t,left:s,right:o,bottom:i}=n.getBoundingClientRect();return{top:t,left:s,right:o,bottom:i,width:n.clientWidth,height:n.clientHeight}}function SZ(n){return n.reduce((t,s)=>qE(t,IP(s)),W1)}function aTe(n){return n.reduce((t,s)=>t+CZ(s),0)}function lTe(n){return n.reduce((t,s)=>t+wZ(s),0)}function xZ(n,t){if(t===void 0&&(t=cS),!n)return;const{top:s,left:o,bottom:i,right:a}=t(n);yZ(n)&&(i<=0||a<=0||s>=window.innerHeight||o>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const uTe=[["x",["left","right"],aTe],["y",["top","bottom"],lTe]];class K9{constructor(t,s){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const o=y3(s),i=SZ(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,r,c]of uTe)for(const f of r)Object.defineProperty(this,f,{get:()=>{const e=c(o),E=i[a]-e;return this.rect[f]+E},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class $x{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(s=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...s)})},this.target=t}add(t,s,o){var i;(i=this.target)==null||i.addEventListener(t,s,o),this.listeners.push([t,s,o])}}function cTe(n){const{EventTarget:t}=sv(n);return n instanceof t?n:uS(n)}function MR(n,t){const s=Math.abs(n.x),o=Math.abs(n.y);return typeof t=="number"?Math.sqrt(s**2+o**2)>t:"x"in t&&"y"in t?s>t.x&&o>t.y:"x"in t?s>t.x:"y"in t?o>t.y:!1}var n1;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(n1||(n1={}));function GB(n){n.preventDefault()}function dTe(n){n.stopPropagation()}var Sd;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter"})(Sd||(Sd={}));const AZ={start:[Sd.Space,Sd.Enter],cancel:[Sd.Esc],end:[Sd.Space,Sd.Enter]},fTe=(n,t)=>{let{currentCoordinates:s}=t;switch(n.code){case Sd.Right:return{...s,x:s.x+25};case Sd.Left:return{...s,x:s.x-25};case Sd.Down:return{...s,y:s.y+25};case Sd.Up:return{...s,y:s.y-25}}};class q9{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:s}}=t;this.props=t,this.listeners=new $x(uS(s)),this.windowListeners=new $x(sv(s)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(n1.Resize,this.handleCancel),this.windowListeners.add(n1.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(n1.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:s}=this.props,o=t.node.current;o&&xZ(o),s(W1)}handleKeyDown(t){if(b3(t)){const{active:s,context:o,options:i}=this.props,{keyboardCodes:a=AZ,coordinateGetter:r=fTe,scrollBehavior:c="smooth"}=i,{code:f}=t;if(a.end.includes(f)){this.handleEnd(t);return}if(a.cancel.includes(f)){this.handleCancel(t);return}const{collisionRect:e}=o.current,E=e?{x:e.left,y:e.top}:W1;this.referenceCoordinates||(this.referenceCoordinates=E);const _=r(t,{active:s,context:o.current,currentCoordinates:E});if(_){const R=D5(_,E),D={x:0,y:0},{scrollableAncestors:J}=o.current;for(const re of J){const ie=t.code,{isTop:ae,isRight:de,isLeft:ye,isBottom:Fe,maxScroll:Ge,minScroll:tt}=LZ(re),ht=iTe(re),yt={x:Math.min(ie===Sd.Right?ht.right-ht.width/2:ht.right,Math.max(ie===Sd.Right?ht.left:ht.left+ht.width/2,_.x)),y:Math.min(ie===Sd.Down?ht.bottom-ht.height/2:ht.bottom,Math.max(ie===Sd.Down?ht.top:ht.top+ht.height/2,_.y))},Ft=ie===Sd.Right&&!de||ie===Sd.Left&&!ye,Zt=ie===Sd.Down&&!Fe||ie===Sd.Up&&!ae;if(Ft&&yt.x!==_.x){const Nt=re.scrollLeft+R.x,kt=ie===Sd.Right&&Nt<=Ge.x||ie===Sd.Left&&Nt>=tt.x;if(kt&&!R.y){re.scrollTo({left:Nt,behavior:c});return}kt?D.x=re.scrollLeft-Nt:D.x=ie===Sd.Right?re.scrollLeft-Ge.x:re.scrollLeft-tt.x,D.x&&re.scrollBy({left:-D.x,behavior:c});break}else if(Zt&&yt.y!==_.y){const Nt=re.scrollTop+R.y,kt=ie===Sd.Down&&Nt<=Ge.y||ie===Sd.Up&&Nt>=tt.y;if(kt&&!R.x){re.scrollTo({top:Nt,behavior:c});return}kt?D.y=re.scrollTop-Nt:D.y=ie===Sd.Down?re.scrollTop-Ge.y:re.scrollTop-tt.y,D.y&&re.scrollBy({top:-D.y,behavior:c});break}}this.handleMove(t,qE(D5(_,this.referenceCoordinates),D))}}}handleMove(t,s){const{onMove:o}=this.props;t.preventDefault(),o(s)}handleEnd(t){const{onEnd:s}=this.props;t.preventDefault(),this.detach(),s()}handleCancel(t){const{onCancel:s}=this.props;t.preventDefault(),this.detach(),s()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}q9.activators=[{eventName:"onKeyDown",handler:(n,t,s)=>{let{keyboardCodes:o=AZ,onActivation:i}=t,{active:a}=s;const{code:r}=n.nativeEvent;if(o.start.includes(r)){const c=a.activatorNode.current;return c&&n.target!==c?!1:(n.preventDefault(),i==null||i({event:n.nativeEvent}),!0)}return!1}}];function KB(n){return!!(n&&"distance"in n)}function qB(n){return!!(n&&"delay"in n)}class Y9{constructor(t,s,o){var i;o===void 0&&(o=cTe(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=s;const{event:a}=t,{target:r}=a;this.props=t,this.events=s,this.document=uS(r),this.documentListeners=new $x(this.document),this.listeners=new $x(o),this.windowListeners=new $x(sv(r)),this.initialCoordinates=(i=a4(a))!=null?i:W1,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:s,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(n1.Resize,this.handleCancel),this.windowListeners.add(n1.DragStart,GB),this.windowListeners.add(n1.VisibilityChange,this.handleCancel),this.windowListeners.add(n1.ContextMenu,GB),this.documentListeners.add(n1.Keydown,this.handleKeydown),s){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(qB(s)){this.timeoutId=setTimeout(this.handleStart,s.delay);return}if(KB(s))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:s}=this.props;t&&(this.activated=!0,this.documentListeners.add(n1.Click,dTe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(n1.SelectionChange,this.removeTextSelection),s(t))}handleMove(t){var s;const{activated:o,initialCoordinates:i,props:a}=this,{onMove:r,options:{activationConstraint:c}}=a;if(!i)return;const f=(s=a4(t))!=null?s:W1,e=D5(i,f);if(!o&&c){if(KB(c)){if(c.tolerance!=null&&MR(e,c.tolerance))return this.handleCancel();if(MR(e,c.distance))return this.handleStart()}return qB(c)&&MR(e,c.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),r(f)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===Sd.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const hTe={move:{name:"pointermove"},end:{name:"pointerup"}};class _Z extends Y9{constructor(t){const{event:s}=t,o=uS(s.target);super(t,hTe,o)}}_Z.activators=[{eventName:"onPointerDown",handler:(n,t)=>{let{nativeEvent:s}=n,{onActivation:o}=t;return!s.isPrimary||s.button!==0?!1:(o==null||o({event:s}),!0)}}];const pTe={move:{name:"mousemove"},end:{name:"mouseup"}};var RP;(function(n){n[n.RightClick=2]="RightClick"})(RP||(RP={}));class TZ extends Y9{constructor(t){super(t,pTe,uS(t.event.target))}}TZ.activators=[{eventName:"onMouseDown",handler:(n,t)=>{let{nativeEvent:s}=n,{onActivation:o}=t;return s.button===RP.RightClick?!1:(o==null||o({event:s}),!0)}}];const jR={move:{name:"touchmove"},end:{name:"touchend"}};class NZ extends Y9{constructor(t){super(t,jR)}static setup(){return window.addEventListener(jR.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(jR.move.name,t)};function t(){}}}NZ.activators=[{eventName:"onTouchStart",handler:(n,t)=>{let{nativeEvent:s}=n,{onActivation:o}=t;const{touches:i}=s;return i.length>1?!1:(o==null||o({event:s}),!0)}}];var kx;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(kx||(kx={}));var M5;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(M5||(M5={}));function mTe(n){let{acceleration:t,activator:s=kx.Pointer,canScroll:o,draggingRect:i,enabled:a,interval:r=5,order:c=M5.TreeOrder,pointerCoordinates:f,scrollableAncestors:e,scrollableAncestorRects:E,delta:_,threshold:R}=n;const D=vTe({delta:_,disabled:!a}),[J,re]=O_e(),ie=lt.useRef({x:0,y:0}),ae=lt.useRef({x:0,y:0}),de=lt.useMemo(()=>{switch(s){case kx.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case kx.DraggableRect:return i}},[s,i,f]),ye=lt.useRef(null),Fe=lt.useCallback(()=>{const tt=ye.current;if(!tt)return;const ht=ie.current.x*ae.current.x,yt=ie.current.y*ae.current.y;tt.scrollBy(ht,yt)},[]),Ge=lt.useMemo(()=>c===M5.TreeOrder?[...e].reverse():e,[c,e]);lt.useEffect(()=>{if(!a||!e.length||!de){re();return}for(const tt of Ge){if((o==null?void 0:o(tt))===!1)continue;const ht=e.indexOf(tt),yt=E[ht];if(!yt)continue;const{direction:Ft,speed:Zt}=oTe(tt,yt,de,t,R);for(const Nt of["x","y"])D[Nt][Ft[Nt]]||(Zt[Nt]=0,Ft[Nt]=0);if(Zt.x>0||Zt.y>0){re(),ye.current=tt,J(Fe,r),ie.current=Zt,ae.current=Ft;return}}ie.current={x:0,y:0},ae.current={x:0,y:0},re()},[t,Fe,o,re,a,r,JSON.stringify(de),JSON.stringify(D),J,e,Ge,E,JSON.stringify(R)])}const gTe={x:{[Dm.Backward]:!1,[Dm.Forward]:!1},y:{[Dm.Backward]:!1,[Dm.Forward]:!1}};function vTe(n){let{delta:t,disabled:s}=n;const o=i4(t);return DA(i=>{if(s||!o||!i)return gTe;const a={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[Dm.Backward]:i.x[Dm.Backward]||a.x===-1,[Dm.Forward]:i.x[Dm.Forward]||a.x===1},y:{[Dm.Backward]:i.y[Dm.Backward]||a.y===-1,[Dm.Forward]:i.y[Dm.Forward]||a.y===1}}},[s,t,o])}function bTe(n,t){const s=t!==null?n.get(t):void 0,o=s?s.node.current:null;return DA(i=>{var a;return t===null?null:(a=o??i)!=null?a:null},[o,t])}function yTe(n,t){return lt.useMemo(()=>n.reduce((s,o)=>{const{sensor:i}=o,a=i.activators.map(r=>({eventName:r.eventName,handler:t(r.handler,o)}));return[...s,...a]},[]),[n,t])}var j5;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(j5||(j5={}));var PP;(function(n){n.Optimized="optimized"})(PP||(PP={}));const YB=new Map;function CTe(n,t){let{dragging:s,dependencies:o,config:i}=t;const[a,r]=lt.useState(null),{frequency:c,measure:f,strategy:e}=i,E=lt.useRef(n),_=ie(),R=k5(_),D=lt.useCallback(function(ae){ae===void 0&&(ae=[]),!R.current&&r(de=>de===null?ae:de.concat(ae.filter(ye=>!de.includes(ye))))},[R]),J=lt.useRef(null),re=DA(ae=>{if(_&&!s)return YB;if(!ae||ae===YB||E.current!==n||a!=null){const de=new Map;for(let ye of n){if(!ye)continue;if(a&&a.length>0&&!a.includes(ye.id)&&ye.rect.current){de.set(ye.id,ye.rect.current);continue}const Fe=ye.node.current,Ge=Fe?new K9(f(Fe),Fe):null;ye.rect.current=Ge,Ge&&de.set(ye.id,Ge)}return de}return ae},[n,a,s,_,f]);return lt.useEffect(()=>{E.current=n},[n]),lt.useEffect(()=>{_||D()},[s,_]),lt.useEffect(()=>{a&&a.length>0&&r(null)},[JSON.stringify(a)]),lt.useEffect(()=>{_||typeof c!="number"||J.current!==null||(J.current=setTimeout(()=>{D(),J.current=null},c))},[c,_,D,...o]),{droppableRects:re,measureDroppableContainers:D,measuringScheduled:a!=null};function ie(){switch(e){case j5.Always:return!1;case j5.BeforeDragging:return s;default:return!s}}}function X9(n,t){return DA(s=>n?s||(typeof t=="function"?t(n):n):null,[t,n])}function wTe(n,t){return X9(n,t)}function ETe(n){let{callback:t,disabled:s}=n;const o=v3(t),i=lt.useMemo(()=>{if(s||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(o)},[o,s]);return lt.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function C3(n){let{callback:t,disabled:s}=n;const o=v3(t),i=lt.useMemo(()=>{if(s||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(o)},[s]);return lt.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function LTe(n){return new K9(cS(n),n)}function XB(n,t,s){t===void 0&&(t=LTe);const[o,i]=lt.useReducer(c,null),a=ETe({callback(f){if(n)for(const e of f){const{type:E,target:_}=e;if(E==="childList"&&_ instanceof HTMLElement&&_.contains(n)){i();break}}}}),r=C3({callback:i});return b1(()=>{i(),n?(r==null||r.observe(n),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(r==null||r.disconnect(),a==null||a.disconnect())},[n]),o;function c(f){if(!n)return null;if(n.isConnected===!1){var e;return(e=f??s)!=null?e:null}const E=t(n);return JSON.stringify(f)===JSON.stringify(E)?f:E}}function STe(n){const t=X9(n);return vZ(n,t)}const ZB=[];function xTe(n){const t=lt.useRef(n),s=DA(o=>n?o&&o!==ZB&&n&&t.current&&n.parentNode===t.current.parentNode?o:y3(n):ZB,[n]);return lt.useEffect(()=>{t.current=n},[n]),s}function ATe(n){const[t,s]=lt.useState(null),o=lt.useRef(n),i=lt.useCallback(a=>{const r=DR(a.target);r&&s(c=>c?(c.set(r,IP(r)),new Map(c)):null)},[]);return lt.useEffect(()=>{const a=o.current;if(n!==a){r(a);const c=n.map(f=>{const e=DR(f);return e?(e.addEventListener("scroll",i,{passive:!0}),[e,IP(e)]):null}).filter(f=>f!=null);s(c.length?new Map(c):null),o.current=n}return()=>{r(n),r(a)};function r(c){c.forEach(f=>{const e=DR(f);e==null||e.removeEventListener("scroll",i)})}},[i,n]),lt.useMemo(()=>n.length?t?Array.from(t.values()).reduce((a,r)=>qE(a,r),W1):SZ(n):W1,[n,t])}function JB(n,t){t===void 0&&(t=[]);const s=lt.useRef(null);return lt.useEffect(()=>{s.current=null},t),lt.useEffect(()=>{const o=n!==W1;o&&!s.current&&(s.current=n),!o&&s.current&&(s.current=null)},[n]),s.current?D5(n,s.current):W1}function _Te(n){lt.useEffect(()=>{if(!g3)return;const t=n.map(s=>{let{sensor:o}=s;return o.setup==null?void 0:o.setup()});return()=>{for(const s of t)s==null||s()}},n.map(t=>{let{sensor:s}=t;return s}))}function TTe(n,t){return lt.useMemo(()=>n.reduce((s,o)=>{let{eventName:i,handler:a}=o;return s[i]=r=>{a(r,t)},s},{}),[n,t])}function OZ(n){return lt.useMemo(()=>n?tTe(n):null,[n])}const FR=[];function NTe(n,t){t===void 0&&(t=cS);const[s]=n,o=OZ(s?sv(s):null),[i,a]=lt.useReducer(c,FR),r=C3({callback:a});return n.length>0&&i===FR&&a(),b1(()=>{n.length?n.forEach(f=>r==null?void 0:r.observe(f)):(r==null||r.disconnect(),a())},[n]),i;function c(){return n.length?n.map(f=>EZ(f)?o:new K9(t(f),f)):FR}}function IZ(n){if(!n)return null;if(n.children.length>1)return n;const t=n.children[0];return kA(t)?t:n}function OTe(n){let{measure:t}=n;const[s,o]=lt.useState(null),i=lt.useCallback(e=>{for(const{target:E}of e)if(kA(E)){o(_=>{const R=t(E);return _?{..._,width:R.width,height:R.height}:R});break}},[t]),a=C3({callback:i}),r=lt.useCallback(e=>{const E=IZ(e);a==null||a.disconnect(),E&&(a==null||a.observe(E)),o(E?t(E):null)},[t,a]),[c,f]=o4(r);return lt.useMemo(()=>({nodeRef:c,rect:s,setRef:f}),[s,c,f])}const ITe=[{sensor:_Z,options:{}},{sensor:q9,options:{}}],RTe={current:{}},KT={draggable:{measure:WB},droppable:{measure:WB,strategy:j5.WhileDragging,frequency:PP.Optimized},dragOverlay:{measure:cS}};class Dx extends Map{get(t){var s;return t!=null&&(s=super.get(t))!=null?s:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:s}=t;return!s})}getNodeFor(t){var s,o;return(s=(o=this.get(t))==null?void 0:o.node.current)!=null?s:void 0}}const PTe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Dx,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:l4},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:KT,measureDroppableContainers:l4,windowRect:null,measuringScheduled:!1},RZ={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:l4,draggableNodes:new Map,over:null,measureDroppableContainers:l4},jA=lt.createContext(RZ),PZ=lt.createContext(PTe);function $Te(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Dx}}}function kTe(n,t){switch(t.type){case wm.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case wm.DragMove:return n.draggable.active?{...n,draggable:{...n.draggable,translate:{x:t.coordinates.x-n.draggable.initialCoordinates.x,y:t.coordinates.y-n.draggable.initialCoordinates.y}}}:n;case wm.DragEnd:case wm.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case wm.RegisterDroppable:{const{element:s}=t,{id:o}=s,i=new Dx(n.droppable.containers);return i.set(o,s),{...n,droppable:{...n.droppable,containers:i}}}case wm.SetDroppableDisabled:{const{id:s,key:o,disabled:i}=t,a=n.droppable.containers.get(s);if(!a||o!==a.key)return n;const r=new Dx(n.droppable.containers);return r.set(s,{...a,disabled:i}),{...n,droppable:{...n.droppable,containers:r}}}case wm.UnregisterDroppable:{const{id:s,key:o}=t,i=n.droppable.containers.get(s);if(!i||o!==i.key)return n;const a=new Dx(n.droppable.containers);return a.delete(s),{...n,droppable:{...n.droppable,containers:a}}}default:return n}}function DTe(n){let{disabled:t}=n;const{active:s,activatorEvent:o,draggableNodes:i}=lt.useContext(jA),a=i4(o),r=i4(s==null?void 0:s.id);return lt.useEffect(()=>{if(!t&&!o&&a&&r!=null){if(!b3(a)||document.activeElement===a.target)return;const c=i.get(r);if(!c)return;const{activatorNode:f,node:e}=c;if(!f.current&&!e.current)return;requestAnimationFrame(()=>{for(const E of[f.current,e.current]){if(!E)continue;const _=P_e(E);if(_){_.focus();break}}})}},[o,t,i,r,a]),null}function $Z(n,t){let{transform:s,...o}=t;return n!=null&&n.length?n.reduce((i,a)=>a({transform:i,...o}),s):s}function MTe(n){return lt.useMemo(()=>({draggable:{...KT.draggable,...n==null?void 0:n.draggable},droppable:{...KT.droppable,...n==null?void 0:n.droppable},dragOverlay:{...KT.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function jTe(n){let{activeNode:t,measure:s,initialRect:o,config:i=!0}=n;const a=lt.useRef(!1),{x:r,y:c}=typeof i=="boolean"?{x:i,y:i}:i;b1(()=>{if(!r&&!c||!t){a.current=!1;return}if(a.current||!o)return;const e=t==null?void 0:t.node.current;if(!e||e.isConnected===!1)return;const E=s(e),_=vZ(E,o);if(r||(_.x=0),c||(_.y=0),a.current=!0,Math.abs(_.x)>0||Math.abs(_.y)>0){const R=yZ(e);R&&R.scrollBy({top:_.y,left:_.x})}},[t,r,c,o,s])}const w3=lt.createContext({...W1,scaleX:1,scaleY:1});var Zy;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(Zy||(Zy={}));const FTe=lt.memo(function(t){var s,o,i,a;let{id:r,accessibility:c,autoScroll:f=!0,children:e,sensors:E=ITe,collisionDetection:_=Y_e,measuring:R,modifiers:D,...J}=t;const re=lt.useReducer(kTe,void 0,$Te),[ie,ae]=re,[de,ye]=F_e(),[Fe,Ge]=lt.useState(Zy.Uninitialized),tt=Fe===Zy.Initialized,{draggable:{active:ht,nodes:yt,translate:Ft},droppable:{containers:Zt}}=ie,Nt=ht?yt.get(ht):null,kt=lt.useRef({initial:null,translated:null}),fn=lt.useMemo(()=>{var di;return ht!=null?{id:ht,data:(di=Nt==null?void 0:Nt.data)!=null?di:RTe,rect:kt}:null},[ht,Nt]),tn=lt.useRef(null),[zn,qn]=lt.useState(null),[gr,$n]=lt.useState(null),hr=k5(J,Object.values(J)),Mn=MA("DndDescribedBy",r),dr=lt.useMemo(()=>Zt.getEnabled(),[Zt]),Rt=MTe(R),{droppableRects:mn,measureDroppableContainers:Pn,measuringScheduled:Yn}=CTe(dr,{dragging:tt,dependencies:[Ft.x,Ft.y],config:Rt.droppable}),ir=bTe(yt,ht),br=lt.useMemo(()=>gr?a4(gr):null,[gr]),Rr=ni(),Mr=wTe(ir,Rt.draggable.measure);jTe({activeNode:ht?yt.get(ht):null,config:Rr.layoutShiftCompensation,initialRect:Mr,measure:Rt.draggable.measure});const Hr=XB(ir,Rt.draggable.measure,Mr),Er=XB(ir?ir.parentElement:null),is=lt.useRef({activatorEvent:null,active:null,activeNode:ir,collisionRect:null,collisions:null,droppableRects:mn,draggableNodes:yt,draggingNode:null,draggingNodeRect:null,droppableContainers:Zt,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Cs=Zt.getNodeFor((s=is.current.over)==null?void 0:s.id),hs=OTe({measure:Rt.dragOverlay.measure}),zr=(o=hs.nodeRef.current)!=null?o:ir,Zn=tt?(i=hs.rect)!=null?i:Hr:null,Ks=!!(hs.nodeRef.current&&hs.rect),Zs=STe(Ks?null:Hr),bs=OZ(zr?sv(zr):null),As=xTe(tt?Cs??ir:null),ds=NTe(As),Ms=$Z(D,{transform:{x:Ft.x-Zs.x,y:Ft.y-Zs.y,scaleX:1,scaleY:1},activatorEvent:gr,active:fn,activeNodeRect:Hr,containerNodeRect:Er,draggingNodeRect:Zn,over:is.current.over,overlayNodeRect:hs.rect,scrollableAncestors:As,scrollableAncestorRects:ds,windowRect:bs}),no=br?qE(br,Ft):null,Ls=ATe(As),Ro=JB(Ls),Yt=JB(Ls,[Hr]),yn=qE(Ms,Ro),ar=Zn?J_e(Zn,Ms):null,fr=fn&&ar?_({active:fn,collisionRect:ar,droppableRects:mn,droppableContainers:dr,pointerCoordinates:no}):null,cr=gZ(fr,"id"),[sr,Nn]=lt.useState(null),er=Ks?Ms:qE(Ms,Yt),ns=X_e(er,(a=sr==null?void 0:sr.rect)!=null?a:null,Hr),io=lt.useCallback((di,xi)=>{let{sensor:ii,options:pn}=xi;if(tn.current==null)return;const Sr=yt.get(tn.current);if(!Sr)return;const Ws=di.nativeEvent,zo=new ii({active:tn.current,activeNode:Sr,event:Ws,options:pn,context:is,onStart(Ia){const Wo=tn.current;if(Wo==null)return;const du=yt.get(Wo);if(!du)return;const{onDragStart:fu}=hr.current,su={active:{id:Wo,data:du.data,rect:kt}};Gg.unstable_batchedUpdates(()=>{fu==null||fu(su),Ge(Zy.Initializing),ae({type:wm.DragStart,initialCoordinates:Ia,active:Wo}),de({type:"onDragStart",event:su})})},onMove(Ia){ae({type:wm.DragMove,coordinates:Ia})},onEnd:Oa(wm.DragEnd),onCancel:Oa(wm.DragCancel)});Gg.unstable_batchedUpdates(()=>{qn(zo),$n(di.nativeEvent)});function Oa(Ia){return async function(){const{active:du,collisions:fu,over:su,scrollAdjustedTranslate:Al}=is.current;let Fa=null;if(du&&Al){const{cancelDrop:ol}=hr.current;Fa={activatorEvent:Ws,active:du,collisions:fu,delta:Al,over:su},Ia===wm.DragEnd&&typeof ol=="function"&&await Promise.resolve(ol(Fa))&&(Ia=wm.DragCancel)}tn.current=null,Gg.unstable_batchedUpdates(()=>{ae({type:Ia}),Ge(Zy.Uninitialized),Nn(null),qn(null),$n(null);const ol=Ia===wm.DragEnd?"onDragEnd":"onDragCancel";if(Fa){const qc=hr.current[ol];qc==null||qc(Fa),de({type:ol,event:Fa})}})}}},[yt]),ao=lt.useCallback((di,xi)=>(ii,pn)=>{const Sr=ii.nativeEvent,Ws=yt.get(pn);if(tn.current!==null||!Ws||Sr.dndKit||Sr.defaultPrevented)return;const zo={active:Ws};di(ii,xi.options,zo)===!0&&(Sr.dndKit={capturedBy:xi.sensor},tn.current=pn,io(ii,xi))},[yt,io]),_o=yTe(E,ao);_Te(E),b1(()=>{Hr&&Fe===Zy.Initializing&&Ge(Zy.Initialized)},[Hr,Fe]),lt.useEffect(()=>{const{onDragMove:di}=hr.current,{active:xi,activatorEvent:ii,collisions:pn,over:Sr}=is.current;if(!xi||!ii)return;const Ws={active:xi,activatorEvent:ii,collisions:pn,delta:{x:yn.x,y:yn.y},over:Sr};Gg.unstable_batchedUpdates(()=>{di==null||di(Ws),de({type:"onDragMove",event:Ws})})},[yn.x,yn.y]),lt.useEffect(()=>{const{active:di,activatorEvent:xi,collisions:ii,droppableContainers:pn,scrollAdjustedTranslate:Sr}=is.current;if(!di||tn.current==null||!xi||!Sr)return;const{onDragOver:Ws}=hr.current,zo=pn.get(cr),Oa=zo&&zo.rect.current?{id:zo.id,rect:zo.rect.current,data:zo.data,disabled:zo.disabled}:null,Ia={active:di,activatorEvent:xi,collisions:ii,delta:{x:Sr.x,y:Sr.y},over:Oa};Gg.unstable_batchedUpdates(()=>{Nn(Oa),Ws==null||Ws(Ia),de({type:"onDragOver",event:Ia})})},[cr]),b1(()=>{is.current={activatorEvent:gr,active:fn,activeNode:ir,collisionRect:ar,collisions:fr,droppableRects:mn,draggableNodes:yt,draggingNode:zr,draggingNodeRect:Zn,droppableContainers:Zt,over:sr,scrollableAncestors:As,scrollAdjustedTranslate:yn},kt.current={initial:Zn,translated:ar}},[fn,ir,fr,ar,yt,zr,Zn,mn,Zt,sr,As,yn]),mTe({...Rr,delta:Ft,draggingRect:ar,pointerCoordinates:no,scrollableAncestors:As,scrollableAncestorRects:ds});const Ao=lt.useMemo(()=>({active:fn,activeNode:ir,activeNodeRect:Hr,activatorEvent:gr,collisions:fr,containerNodeRect:Er,dragOverlay:hs,draggableNodes:yt,droppableContainers:Zt,droppableRects:mn,over:sr,measureDroppableContainers:Pn,scrollableAncestors:As,scrollableAncestorRects:ds,measuringConfiguration:Rt,measuringScheduled:Yn,windowRect:bs}),[fn,ir,Hr,gr,fr,Er,hs,yt,Zt,mn,sr,Pn,As,ds,Rt,Yn,bs]),na=lt.useMemo(()=>({activatorEvent:gr,activators:_o,active:fn,activeNodeRect:Hr,ariaDescribedById:{draggable:Mn},dispatch:ae,draggableNodes:yt,over:sr,measureDroppableContainers:Pn}),[gr,_o,fn,Hr,ae,Mn,yt,sr,Pn]);return De.createElement(hZ.Provider,{value:ye},De.createElement(jA.Provider,{value:na},De.createElement(PZ.Provider,{value:Ao},De.createElement(w3.Provider,{value:ns},e)),De.createElement(DTe,{disabled:(c==null?void 0:c.restoreFocus)===!1})),De.createElement(z_e,{...c,hiddenTextDescribedById:Mn}));function ni(){const di=(zn==null?void 0:zn.autoScrollEnabled)===!1,xi=typeof f=="object"?f.enabled===!1:f===!1,ii=tt&&!di&&!xi;return typeof f=="object"?{...f,enabled:ii}:{enabled:ii}}}),UTe=lt.createContext(null),QB="button",BTe="Droppable";function zTe(n){let{id:t,data:s,disabled:o=!1,attributes:i}=n;const a=MA(BTe),{activators:r,activatorEvent:c,active:f,activeNodeRect:e,ariaDescribedById:E,draggableNodes:_,over:R}=lt.useContext(jA),{role:D=QB,roleDescription:J="draggable",tabIndex:re=0}=i??{},ie=(f==null?void 0:f.id)===t,ae=lt.useContext(ie?w3:UTe),[de,ye]=o4(),[Fe,Ge]=o4(),tt=TTe(r,t),ht=k5(s);b1(()=>(_.set(t,{id:t,key:a,node:de,activatorNode:Fe,data:ht}),()=>{const Ft=_.get(t);Ft&&Ft.key===a&&_.delete(t)}),[_,t]);const yt=lt.useMemo(()=>({role:D,tabIndex:re,"aria-disabled":o,"aria-pressed":ie&&D===QB?!0:void 0,"aria-roledescription":J,"aria-describedby":E.draggable}),[o,D,re,ie,J,E.draggable]);return{active:f,activatorEvent:c,activeNodeRect:e,attributes:yt,isDragging:ie,listeners:o?void 0:tt,node:de,over:R,setNodeRef:ye,setActivatorNodeRef:Ge,transform:ae}}function kZ(){return lt.useContext(PZ)}const HTe="Droppable",VTe={timeout:25};function WTe(n){let{data:t,disabled:s=!1,id:o,resizeObserverConfig:i}=n;const a=MA(HTe),{active:r,dispatch:c,over:f,measureDroppableContainers:e}=lt.useContext(jA),E=lt.useRef({disabled:s}),_=lt.useRef(!1),R=lt.useRef(null),D=lt.useRef(null),{disabled:J,updateMeasurementsFor:re,timeout:ie}={...VTe,...i},ae=k5(re??o),de=lt.useCallback(()=>{if(!_.current){_.current=!0;return}D.current!=null&&clearTimeout(D.current),D.current=setTimeout(()=>{e(Array.isArray(ae.current)?ae.current:[ae.current]),D.current=null},ie)},[ie]),ye=C3({callback:de,disabled:J||!r}),Fe=lt.useCallback((yt,Ft)=>{ye&&(Ft&&(ye.unobserve(Ft),_.current=!1),yt&&ye.observe(yt))},[ye]),[Ge,tt]=o4(Fe),ht=k5(t);return lt.useEffect(()=>{!ye||!Ge.current||(ye.disconnect(),_.current=!1,ye.observe(Ge.current))},[Ge,ye]),b1(()=>(c({type:wm.RegisterDroppable,element:{id:o,key:a,disabled:s,node:Ge,rect:R,data:ht}}),()=>c({type:wm.UnregisterDroppable,key:a,id:o})),[o]),lt.useEffect(()=>{s!==E.current.disabled&&(c({type:wm.SetDroppableDisabled,id:o,key:a,disabled:s}),E.current.disabled=s)},[o,a,s,c]),{active:r,rect:R,isOver:(f==null?void 0:f.id)===o,node:Ge,over:f,setNodeRef:tt}}function GTe(n){let{animation:t,children:s}=n;const[o,i]=lt.useState(null),[a,r]=lt.useState(null),c=i4(s);return!s&&!o&&c&&i(c),b1(()=>{if(!a)return;const f=o==null?void 0:o.key,e=o==null?void 0:o.props.id;if(f==null||e==null){i(null);return}Promise.resolve(t(e,a)).then(()=>{i(null)})},[t,o,a]),De.createElement(De.Fragment,null,s,o?lt.cloneElement(o,{ref:r}):null)}const KTe={x:0,y:0,scaleX:1,scaleY:1};function qTe(n){let{children:t}=n;return De.createElement(jA.Provider,{value:RZ},De.createElement(w3.Provider,{value:KTe},t))}const YTe={position:"fixed",touchAction:"none"},XTe=n=>b3(n)?"transform 250ms ease":void 0,ZTe=lt.forwardRef((n,t)=>{let{as:s,activatorEvent:o,adjustScale:i,children:a,className:r,rect:c,style:f,transform:e,transition:E=XTe}=n;if(!c)return null;const _=i?e:{...e,scaleX:1,scaleY:1},R={...YTe,width:c.width,height:c.height,top:c.top,left:c.left,transform:zC.Transform.toString(_),transformOrigin:i&&o?V_e(o,c):void 0,transition:typeof E=="function"?E(o):E,...f};return De.createElement(s,{className:r,style:R,ref:t},a)}),JTe=n=>t=>{let{active:s,dragOverlay:o}=t;const i={},{styles:a,className:r}=n;if(a!=null&&a.active)for(const[c,f]of Object.entries(a.active))f!==void 0&&(i[c]=s.node.style.getPropertyValue(c),s.node.style.setProperty(c,f));if(a!=null&&a.dragOverlay)for(const[c,f]of Object.entries(a.dragOverlay))f!==void 0&&o.node.style.setProperty(c,f);return r!=null&&r.active&&s.node.classList.add(r.active),r!=null&&r.dragOverlay&&o.node.classList.add(r.dragOverlay),function(){for(const[f,e]of Object.entries(i))s.node.style.setProperty(f,e);r!=null&&r.active&&s.node.classList.remove(r.active)}},QTe=n=>{let{transform:{initial:t,final:s}}=n;return[{transform:zC.Transform.toString(t)},{transform:zC.Transform.toString(s)}]},eNe={duration:250,easing:"ease",keyframes:QTe,sideEffects:JTe({styles:{active:{opacity:"0"}}})};function tNe(n){let{config:t,draggableNodes:s,droppableContainers:o,measuringConfiguration:i}=n;return v3((a,r)=>{if(t===null)return;const c=s.get(a);if(!c)return;const f=c.node.current;if(!f)return;const e=IZ(r);if(!e)return;const{transform:E}=sv(r).getComputedStyle(r),_=bZ(E);if(!_)return;const R=typeof t=="function"?t:nNe(t);return xZ(f,i.draggable.measure),R({active:{id:a,data:c.data,node:f,rect:i.draggable.measure(f)},draggableNodes:s,dragOverlay:{node:r,rect:i.dragOverlay.measure(e)},droppableContainers:o,measuringConfiguration:i,transform:_})})}function nNe(n){const{duration:t,easing:s,sideEffects:o,keyframes:i}={...eNe,...n};return a=>{let{active:r,dragOverlay:c,transform:f,...e}=a;if(!t)return;const E={x:c.rect.left-r.rect.left,y:c.rect.top-r.rect.top},_={scaleX:f.scaleX!==1?r.rect.width*f.scaleX/c.rect.width:1,scaleY:f.scaleY!==1?r.rect.height*f.scaleY/c.rect.height:1},R={x:f.x-E.x,y:f.y-E.y,..._},D=i({...e,active:r,dragOverlay:c,transform:{initial:f,final:R}}),[J]=D,re=D[D.length-1];if(JSON.stringify(J)===JSON.stringify(re))return;const ie=o==null?void 0:o({active:r,dragOverlay:c,...e}),ae=c.node.animate(D,{duration:t,easing:s,fill:"forwards"});return new Promise(de=>{ae.onfinish=()=>{ie==null||ie(),de()}})}}let ez=0;function rNe(n){return lt.useMemo(()=>{if(n!=null)return ez++,ez},[n])}const sNe=De.memo(n=>{let{adjustScale:t=!1,children:s,dropAnimation:o,style:i,transition:a,modifiers:r,wrapperElement:c="div",className:f,zIndex:e=999}=n;const{activatorEvent:E,active:_,activeNodeRect:R,containerNodeRect:D,draggableNodes:J,droppableContainers:re,dragOverlay:ie,over:ae,measuringConfiguration:de,scrollableAncestors:ye,scrollableAncestorRects:Fe,windowRect:Ge}=kZ(),tt=lt.useContext(w3),ht=rNe(_==null?void 0:_.id),yt=$Z(r,{activatorEvent:E,active:_,activeNodeRect:R,containerNodeRect:D,draggingNodeRect:ie.rect,over:ae,overlayNodeRect:ie.rect,scrollableAncestors:ye,scrollableAncestorRects:Fe,transform:tt,windowRect:Ge}),Ft=X9(R),Zt=tNe({config:o,draggableNodes:J,droppableContainers:re,measuringConfiguration:de}),Nt=Ft?ie.setRef:void 0;return De.createElement(qTe,null,De.createElement(GTe,{animation:Zt},_&&ht?De.createElement(ZTe,{key:ht,id:_.id,ref:Nt,as:c,activatorEvent:E,adjustScale:t,className:f,transition:a,rect:Ft,style:{zIndex:e,...i},transform:yt},s):null))});function DZ(n,t,s){const o=n.slice();return o.splice(s<0?o.length+s:s,0,o.splice(t,1)[0]),o}function oNe(n,t){return n.reduce((s,o,i)=>{const a=t.get(o);return a&&(s[i]=a),s},Array(n.length))}function q_(n){return n!==null&&n>=0}function iNe(n,t){if(n===t)return!0;if(n.length!==t.length)return!1;for(let s=0;s{let{rects:t,activeIndex:s,overIndex:o,index:i}=n;const a=DZ(t,o,s),r=t[i],c=a[i];return!c||!r?null:{x:c.left-r.left,y:c.top-r.top,scaleX:c.width/r.width,scaleY:c.height/r.height}},MZ="Sortable",jZ=De.createContext({activeIndex:-1,containerId:MZ,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Z9,disabled:{draggable:!1,droppable:!1}});function lNe(n){let{children:t,id:s,items:o,strategy:i=Z9,disabled:a=!1}=n;const{active:r,dragOverlay:c,droppableRects:f,over:e,measureDroppableContainers:E}=kZ(),_=MA(MZ,s),R=c.rect!==null,D=lt.useMemo(()=>o.map(tt=>typeof tt=="object"&&"id"in tt?tt.id:tt),[o]),J=r!=null,re=r?D.indexOf(r.id):-1,ie=e?D.indexOf(e.id):-1,ae=lt.useRef(D),de=!iNe(D,ae.current),ye=ie!==-1&&re===-1||de,Fe=aNe(a);b1(()=>{de&&J&&E(D)},[de,D,J,E]),lt.useEffect(()=>{ae.current=D},[D]);const Ge=lt.useMemo(()=>({activeIndex:re,containerId:_,disabled:Fe,disableTransforms:ye,items:D,overIndex:ie,useDragOverlay:R,sortedRects:oNe(D,f),strategy:i}),[re,_,Fe.draggable,Fe.droppable,ye,D,ie,f,R,i]);return De.createElement(jZ.Provider,{value:Ge},t)}const uNe=n=>{let{id:t,items:s,activeIndex:o,overIndex:i}=n;return DZ(s,o,i).indexOf(t)},cNe=n=>{let{containerId:t,isSorting:s,wasDragging:o,index:i,items:a,newIndex:r,previousItems:c,previousContainerId:f,transition:e}=n;return!e||!o||c!==a&&i===r?!1:s?!0:r!==i&&t===f},dNe={duration:200,easing:"ease"},FZ="transform",fNe=zC.Transition.toString({property:FZ,duration:0,easing:"linear"}),hNe={roleDescription:"sortable"};function pNe(n){let{disabled:t,index:s,node:o,rect:i}=n;const[a,r]=lt.useState(null),c=lt.useRef(s);return b1(()=>{if(!t&&s!==c.current&&o.current){const f=i.current;if(f){const e=cS(o.current,{ignoreTransform:!0}),E={x:f.left-e.left,y:f.top-e.top,scaleX:f.width/e.width,scaleY:f.height/e.height};(E.x||E.y)&&r(E)}}s!==c.current&&(c.current=s)},[t,s,o,i]),lt.useEffect(()=>{a&&r(null)},[a]),a}function mNe(n){let{animateLayoutChanges:t=cNe,attributes:s,disabled:o,data:i,getNewIndex:a=uNe,id:r,strategy:c,resizeObserverConfig:f,transition:e=dNe}=n;const{items:E,containerId:_,activeIndex:R,disabled:D,disableTransforms:J,sortedRects:re,overIndex:ie,useDragOverlay:ae,strategy:de}=lt.useContext(jZ),ye=gNe(o,D),Fe=E.indexOf(r),Ge=lt.useMemo(()=>({sortable:{containerId:_,index:Fe,items:E},...i}),[_,i,Fe,E]),tt=lt.useMemo(()=>E.slice(E.indexOf(r)),[E,r]),{rect:ht,node:yt,isOver:Ft,setNodeRef:Zt}=WTe({id:r,data:Ge,disabled:ye.droppable,resizeObserverConfig:{updateMeasurementsFor:tt,...f}}),{active:Nt,activatorEvent:kt,activeNodeRect:fn,attributes:tn,setNodeRef:zn,listeners:qn,isDragging:gr,over:$n,setActivatorNodeRef:hr,transform:Mn}=zTe({id:r,data:Ge,attributes:{...hNe,...s},disabled:ye.draggable}),dr=N_e(Zt,zn),Rt=!!Nt,mn=Rt&&!J&&q_(R)&&q_(ie),Pn=!ae&&gr,Yn=Pn&&mn?Mn:null,br=mn?Yn??(c??de)({rects:re,activeNodeRect:fn,activeIndex:R,overIndex:ie,index:Fe}):null,Rr=q_(R)&&q_(ie)?a({id:r,items:E,activeIndex:R,overIndex:ie}):Fe,Mr=Nt==null?void 0:Nt.id,Hr=lt.useRef({activeId:Mr,items:E,newIndex:Rr,containerId:_}),Er=E!==Hr.current.items,is=t({active:Nt,containerId:_,isDragging:gr,isSorting:Rt,id:r,index:Fe,items:E,newIndex:Hr.current.newIndex,previousItems:Hr.current.items,previousContainerId:Hr.current.containerId,transition:e,wasDragging:Hr.current.activeId!=null}),Cs=pNe({disabled:!is,index:Fe,node:yt,rect:ht});return lt.useEffect(()=>{Rt&&Hr.current.newIndex!==Rr&&(Hr.current.newIndex=Rr),_!==Hr.current.containerId&&(Hr.current.containerId=_),E!==Hr.current.items&&(Hr.current.items=E)},[Rt,Rr,_,E]),lt.useEffect(()=>{if(Mr===Hr.current.activeId)return;if(Mr&&!Hr.current.activeId){Hr.current.activeId=Mr;return}const zr=setTimeout(()=>{Hr.current.activeId=Mr},50);return()=>clearTimeout(zr)},[Mr]),{active:Nt,activeIndex:R,attributes:tn,data:Ge,rect:ht,index:Fe,newIndex:Rr,items:E,isOver:Ft,isSorting:Rt,isDragging:gr,listeners:qn,node:yt,overIndex:ie,over:$n,setNodeRef:dr,setActivatorNodeRef:hr,setDroppableNodeRef:Zt,setDraggableNodeRef:zn,transform:Cs??br,transition:hs()};function hs(){if(Cs||Er&&Hr.current.newIndex===Fe)return fNe;if(!(Pn&&!b3(kt)||!e)&&(Rt||is))return zC.Transition.toString({...e,property:FZ})}}function gNe(n,t){var s,o;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(s=n==null?void 0:n.draggable)!=null?s:t.draggable,droppable:(o=n==null?void 0:n.droppable)!=null?o:t.droppable}}function u4(n){if(!n)return!1;const t=n.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const vNe=[Sd.Down,Sd.Right,Sd.Up,Sd.Left],bNe=(n,t)=>{let{context:{active:s,collisionRect:o,droppableRects:i,droppableContainers:a,over:r,scrollableAncestors:c}}=t;if(vNe.includes(n.code)){if(n.preventDefault(),!s||!o)return;const f=[];a.getEnabled().forEach(_=>{if(!_||_!=null&&_.disabled)return;const R=i.get(_.id);if(R)switch(n.code){case Sd.Down:o.topR.top&&f.push(_);break;case Sd.Left:o.left>R.left&&f.push(_);break;case Sd.Right:o.left1&&(E=e[1].id),E!=null){const _=a.get(s.id),R=a.get(E),D=R?i.get(R.id):null,J=R==null?void 0:R.node.current;if(J&&D&&_&&R){const ie=y3(J).some((tt,ht)=>c[ht]!==tt),ae=UZ(_,R),de=yNe(_,R),ye=ie||!ae?{x:0,y:0}:{x:de?o.width-D.width:0,y:de?o.height-D.height:0},Fe={x:D.left,y:D.top};return ye.x&&ye.y?Fe:D5(Fe,ye)}}}};function UZ(n,t){return!u4(n)||!u4(t)?!1:n.data.current.sortable.containerId===t.data.current.sortable.containerId}function yNe(n,t){return!u4(n)||!u4(t)||!UZ(n,t)?!1:n.data.current.sortable.indext.indexOf(Ge),[t]),ae=lt.useMemo(()=>D?ie(D):-1,[ie,D]),de=lt.useCallback(Ge=>{let{active:tt}=Ge;tt&&J(tt.id)},[]),ye=lt.useCallback(Ge=>{let{over:tt}=Ge;if(J(null),tt){const ht=ie(tt.id);ae!==ht&&s({oldIndex:ae,newIndex:ht})}},[ae,ie,s]),Fe=lt.useCallback(()=>{J(null)},[]);return De.createElement(FTe,{sensors:re,collisionDetection:c,onDragStart:de,onDragEnd:ye,onDragCancel:Fe,autoScroll:{order:M5.ReversedTreeOrder}},De.createElement(lNe,{items:t,strategy:f},De.createElement(_,null,t.map((Ge,tt)=>De.createElement(SNe,{key:Ge,id:Ge,index:tt,renderItem:i,useDragOverlay:e,prefix:R,transition:a})))),e?Gg.createPortal(De.createElement(sNe,{adjustScale:o,style:{zIndex:void 0},className:E},D?i({id:D,sortableHandle:Ge=>Ge}):null),document.body):null)}function SNe(n){let{animateLayoutChanges:t,id:s,renderItem:o,prefix:i,transition:a}=n;const{listeners:r,setNodeRef:c,transform:f,transition:e,active:E,isOver:_,attributes:R}=mNe({id:s,animateLayoutChanges:t,transition:a}),D=lt.useCallback(ie=>()=>De.createElement("span",Object.assign({},r,{style:{lineHeight:0},onMouseDown:ae=>{r.onMouseDown(ae),ae.preventDefault(),ae.stopPropagation()}}),De.createElement(ie,null)),[r]),J=Ar(`${i}-sortable-item`,{[`${i}-sortable-item-over`]:_,[`${i}-sortable-item-active`]:(E==null?void 0:E.id)===s}),re=EL(a)?void 0:{transform:zC.Transform.toString(Object.assign(Object.assign({},f),{scaleX:1,scaleY:1})),transition:e};return De.createElement("div",Object.assign({ref:c,style:re,className:J},R),o({id:s,sortableHandle:D}))}var xNe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{this.foundation.handleInputChange(s)},this.handleKeyDown=s=>{this.foundation.handleKeyDown(s)},this.handleInputFocus=s=>{this.foundation.handleInputFocus(s)},this.handleInputBlur=s=>{this.foundation.handleInputBlur(s)},this.handleClearBtn=s=>{this.foundation.handleClearBtn(s)},this.handleClearEnterPress=s=>{this.foundation.handleClearEnterPress(s)},this.handleTagClose=s=>{this.foundation.handleTagClose(s)},this.handleInputMouseLeave=s=>{this.foundation.handleInputMouseLeave()},this.handleClick=s=>{this.foundation.handleClick(s)},this.handleInputMouseEnter=s=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=s=>{this.foundation.handleClickPrefixOrSuffix(s)},this.handlePreventMouseDown=s=>{this.foundation.handlePreventMouseDown(s)},this.getAllTags=()=>{const{tagsArray:s}=this.state;return s.map((o,i)=>this.renderTag(o,i))},this.renderTag=(s,o,i)=>{const{size:a,disabled:r,renderTagItem:c,showContentTooltip:f,draggable:e}=this.props,{active:E}=this.state,_=E&&e,R=Ar(`${jd}-wrapper-tag`,{[`${jd}-wrapper-tag-size-${a}`]:a,[`${jd}-wrapper-tag-icon`]:_}),D=Ar(`${jd}-wrapper-typo`,{[`${jd}-wrapper-typo-disabled`]:r}),J=Ar({[`${jd}-drag-item`]:_,[`${jd}-wrapper-tag-icon`]:_}),re=i&&i(()=>De.createElement(hLe,{className:`${jd}-drag-handler`})),ie=_?s:`${o}${s}`,ae=()=>{!r&&this.handleTagClose(o)};return xu(c)?De.createElement("div",{className:J,key:ie},_&&i?De.createElement(re,null):null,c(s,o,ae)):De.createElement(cm,{className:R,color:"white",size:a==="small"?"small":"large",type:"light",onClose:ae,closable:!r,key:ie,visible:!0,"aria-label":`${r?"":"Closable "}Tag: ${s}`},_&&i?De.createElement(re,null):null,De.createElement(i3,{className:D,ellipsis:{showTooltip:f,rows:1}},s))},this.renderSortTag=s=>{const{id:o,sortableHandle:i}=s,{tagsArray:a}=this.state,r=a.indexOf(o);return this.renderTag(o,r,i)},this.onSortEnd=s=>{this.foundation.handleSortEnd(s)},this.handleInputCompositionStart=s=>{this.foundation.handleInputCompositionStart(s)},this.handleInputCompositionEnd=s=>{this.foundation.handleInputCompositionEnd(s)},this.foundation=new T_e(this.adapter),this.state={tagsArray:t.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=De.createRef(),this.tagInputRef=De.createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(t,s){const{value:o,inputValue:i}=t,{tagsArray:a}=s;let r;return K8(o)?r=o:"value"in t&&!o?r=[]:r=a,{tagsArray:r,inputValue:Bd(i)?i:s.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:t=>{this.setState({inputValue:t})},setTagsArray:t=>{this.setState({tagsArray:t})},setFocusing:t=>{this.setState({focusing:t})},toggleFocusing:t=>{const{preventScroll:s}=this.props,o=this.inputRef&&this.inputRef.current;t?o&&o.focus({preventScroll:s}):o&&o.blur(),this.setState({focusing:t})},setHovering:t=>{this.setState({hovering:t})},setActive:t=>{this.setState({active:t})},setEntering:t=>{this.setState({entering:t})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:t=>{this.props.onBlur(t)},notifyFocus:t=>{this.props.onFocus(t)},notifyInputChange:(t,s)=>{this.props.onInputChange(t,s)},notifyTagChange:t=>{this.props.onChange(t)},notifyTagAdd:t=>{this.props.onAdd(t)},notifyTagRemove:(t,s)=>{this.props.onRemove(t,s)},notifyKeyDown:t=>{this.props.onKeyDown(t)},registerClickOutsideHandler:t=>{const s=o=>{const i=this.tagInputRef&&this.tagInputRef.current,a=o.target;i&&!i.contains(a)&&t(o)};this.clickOutsideHandler=s,document.addEventListener("click",s,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:t,autoFocus:s,preventScroll:o}=this.props;!t&&s&&(this.inputRef.current.focus({preventScroll:o}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:t,tagsArray:s,inputValue:o}=this.state,{showClear:i,disabled:a,clearIcon:r}=this.props,c=Ar(`${jd}-clearBtn`,{[`${jd}-clearBtn-invisible`]:!t||o===""&&s.length===0||a});return i?De.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:c,onClick:f=>this.handleClearBtn(f),onKeyPress:f=>this.handleClearEnterPress(f)},r||De.createElement(_A,null)):null}renderPrefix(){const{prefix:t,insetLabel:s,insetLabelId:o}=this.props,i=t||s;if(EL(i)||Hm(i))return null;const a=Ar(`${jd}-prefix`,{[`${jd}-inset-label`]:s,[`${jd}-prefix-text`]:i&&Bd(i),[`${jd}-prefix-icon`]:l1(i)});return De.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:o,"x-semi-prop":"prefix"},i)}renderSuffix(){const{suffix:t}=this.props;if(EL(t)||Hm(t))return null;const s=Ar(`${jd}-suffix`,{[`${jd}-suffix-text`]:t&&Bd(t),[`${jd}-suffix-icon`]:l1(t)});return De.createElement("div",{className:s,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},t)}renderTags(){const{disabled:t,maxTagCount:s,showRestTagsPopover:o,restTagsPopoverProps:i={},draggable:a,expandRestTagsOnClick:r}=this.props,{tagsArray:c,active:f}=this.state,e=Ar(`${jd}-wrapper-n`,{[`${jd}-wrapper-n-disabled`]:t}),E=this.getAllTags();let _=[],R=[...E];(!f||!r)&&s&&s({item:re,key:c[ie]}));return f&&a&&J.length>0?De.createElement(LNe,{items:c,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:ANe,prefix:jd,transition:null,dragOverlayCls:`${jd}-right-item-drag-item-move`}):De.createElement(De.Fragment,null,R,_.length>0&&(o?De.createElement(T0,Object.assign({content:_,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},i),D):D))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:t,disabled:s}=this.props;this.inputRef.current.focus({preventScroll:t}),s||this.foundation.handleClick()}render(){const t=this.props,{size:s,style:o,className:i,disabled:a,placeholder:r,validateStatus:c}=t,f=xNe(t,["size","style","className","disabled","placeholder","validateStatus"]),{focusing:e,hovering:E,tagsArray:_,inputValue:R,active:D}=this.state,J=Ar(jd,i,{[`${jd}-focus`]:e||D,[`${jd}-disabled`]:a,[`${jd}-hover`]:E&&!a,[`${jd}-error`]:c==="error",[`${jd}-warning`]:c==="warning",[`${jd}-small`]:s==="small",[`${jd}-large`]:s==="large"}),re=Ar(`${jd}-wrapper-input`,`${jd}-wrapper-input-${s}`),ie=Ar(`${jd}-wrapper`);return De.createElement("div",Object.assign({ref:this.tagInputRef,style:o,className:J,"aria-disabled":a,"aria-label":this.props["aria-label"],"aria-invalid":c==="error",onMouseEnter:ae=>{this.handleInputMouseEnter(ae)},onMouseLeave:ae=>{this.handleInputMouseLeave(ae)},onClick:ae=>{this.handleClick(ae)}},this.getDataAttr(f)),this.renderPrefix(),De.createElement("div",{className:ie},this.renderTags(),De.createElement(U0,{"aria-label":"input value",ref:this.inputRef,className:re,disabled:a,value:R,size:s,placeholder:_.length===0?r:"",onKeyDown:ae=>{this.handleKeyDown(ae)},onChange:(ae,de)=>{this.handleInputChange(de)},onBlur:ae=>{this.handleInputBlur(ae)},onFocus:ae=>{this.handleInputFocus(ae)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}J9.propTypes={children:W.node,clearIcon:W.node,style:W.object,className:W.string,disabled:W.bool,allowDuplicates:W.bool,max:W.number,maxTagCount:W.number,maxLength:W.number,showRestTagsPopover:W.bool,restTagsPopoverProps:W.object,showContentTooltip:W.oneOfType([W.shape({type:W.string,opts:W.object}),W.bool]),defaultValue:W.array,value:W.array,inputValue:W.string,placeholder:W.string,separator:W.oneOfType([W.string,W.array]),showClear:W.bool,addOnBlur:W.bool,draggable:W.bool,expandRestTagsOnClick:W.bool,autoFocus:W.bool,renderTagItem:W.func,onBlur:W.func,onFocus:W.func,onChange:W.func,onInputChange:W.func,onExceed:W.func,onInputExceed:W.func,onAdd:W.func,onRemove:W.func,onKeyDown:W.func,size:W.oneOf(BB.SIZE_SET),validateStatus:W.oneOf(BB.STATUS),prefix:W.oneOfType([W.string,W.node]),suffix:W.oneOfType([W.string,W.node]),"aria-label":W.string,preventScroll:W.bool};J9.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:os,onFocus:os,onChange:os,onInputChange:os,onExceed:os,onInputExceed:os,onAdd:os,onRemove:os,onKeyDown:os};const BZ=J9,tb={PREFIX:`${mo}-collapse`},_Ne={iconPosition:["left","right"]};class TNe extends fc{constructor(t){super(Object.assign({},t))}initActiveKey(){const{defaultActiveKey:t,activeKey:s,accordion:o}=this.getProps();let i=s||t;return o&&(i=Array.isArray(i)?i[0]:i),i&&i.length?(i=Array.isArray(i)?i:[i],i):[]}handleChange(t,s){const{activeKey:o,accordion:i}=this.getProps(),{activeSet:a}=this.getStates();let r=new Set(a);r.has(t)?r.delete(t):i?r=new Set([t]):r.add(t),this._adapter.handleChange([...r.values()],s),typeof o>"u"&&this._adapter.addActiveKey(r)}}class NNe extends fc{constructor(t){super(Object.assign({},t)),this.updateDOMInRenderTree=s=>{this._adapter.setDOMInRenderTree(s)},this.updateDOMHeight=s=>{this._adapter.setDOMHeight(s)},this.updateVisible=s=>{this._adapter.setVisible(s)},this.updateIsTransitioning=s=>{this._adapter.setIsTransitioning(s)}}}const ONe=NNe,tz={PREFIX:`${mo}-collapsible`};class dS extends Ml{constructor(t){super(t),this.domRef=De.createRef(),this.handleResize=s=>{const o=s[0];if(o){const i=dS.getEntryInfo(o);this.foundation.updateDOMHeight(i.height),this.foundation.updateDOMInRenderTree(i.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new ONe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:t=>{this.state.domInRenderTree!==t&&this.setState({domInRenderTree:t})},setDOMHeight:t=>{this.state.domHeight!==t&&this.setState({domHeight:t})},setVisible:t=>{this.state.visible!==t&&this.setState({visible:t})},setIsTransitioning:t=>{this.state.isTransitioning!==t&&this.setState({isTransitioning:t})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const t=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(t),t&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(t,s,o){const i=Object.keys(this.props).filter(r=>!Mp(this.props[r],t[r])),a=Object.keys(this.state).filter(r=>!Mp(this.state[r],s[r]));i.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),i.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&t.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const t=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),s=Ar(`${tz.PREFIX}-wrapper`,{[`${tz.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className);return De.createElement("div",Object.assign({className:s,style:t,onTransitionEnd:()=>{var o,i;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(i=(o=this.props).onMotionEnd)===null||i===void 0||i.call(o)}},this.getDataAttr(this.props)),De.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},(this.props.keepDOM||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen)&&this.props.children))}}dS.defaultProps={isOpen:!1,duration:250,motion:!0,keepDOM:!1,collapseHeight:0,fade:!1};dS.getEntryInfo=n=>{let t;n.borderBoxSize?t=!(n.borderBoxSize[0].blockSize===0&&n.borderBoxSize[0].inlineSize===0):t=!(n.contentRect.height===0&&n.contentRect.width===0);let s=0;return n.borderBoxSize?s=Math.ceil(n.borderBoxSize[0].blockSize):s=n.target.clientHeight,{isShown:t,height:s}};dS.propTypes={motion:W.bool,children:W.node,isOpen:W.bool,duration:W.number,keepDOM:W.bool,collapseHeight:W.number,style:W.object,className:W.string,reCalcKey:W.oneOfType([W.string,W.number])};const INe=dS,RNe=De.createContext({}),zZ=RNe;var PNe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{var o;(this.context.clickHeaderToExpand||!((o=this.headerExpandIconTriggerRef.current)===null||o===void 0)&&o.contains(s.target))&&this.context.onClick(t,s)}}componentDidMount(){this.ariaID=UC({})}renderHeader(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const{showArrow:o,header:i,extra:a}=this.props;let{expandIcon:r,collapseIcon:c}=this.context;const{expandIconPosition:f}=this.context;typeof r>"u"&&(r=De.createElement(AA,null)),typeof c>"u"&&(c=De.createElement(w9,null));const e=De.createElement("span",{ref:this.headerExpandIconTriggerRef,"aria-hidden":"true",className:Ar([`${tb.PREFIX}-header-icon`,{[`${tb.PREFIX}-header-iconDisabled`]:!s}])},s&&t?c:r),E=f==="left";return typeof i=="string"?De.createElement(De.Fragment,null,o&&(E?e:null),De.createElement("span",null,i),De.createElement("span",{className:`${tb.PREFIX}-header-right`},De.createElement("span",null,a),o&&(E?null:e))):De.createElement(De.Fragment,null,o&&(E?e:null),i,o&&(E?null:e))}render(){const t=this.props,{className:s,children:o,itemKey:i,reCalcKey:a,header:r,extra:c,showArrow:f,disabled:e}=t,E=PNe(t,["className","children","itemKey","reCalcKey","header","extra","showArrow","disabled"]),{keepDOM:_,expandIconPosition:R,activeSet:D,motion:J}=this.context,re=D.has(i),ie=Ar(s,{[`${tb.PREFIX}-item`]:!0}),ae=Ar({[`${tb.PREFIX}-header`]:!0,[`${tb.PREFIX}-header-disabled`]:e,[`${tb.PREFIX}-header-iconLeft`]:R==="left"}),de=Ar({[`${tb.PREFIX}-content`]:!0});return De.createElement("div",Object.assign({className:ie},E),De.createElement("div",{role:"button",tabIndex:0,className:ae,"aria-disabled":e,"aria-expanded":re?"true":"false","aria-owns":this.ariaID,onClick:ye=>!e&&this.handleClick(i,ye)},this.renderHeader(re,o!==void 0&&!e)),o&&De.createElement(INe,{isOpen:re,keepDOM:_,motion:J,onMotionEnd:this.props.onMotionEnd,reCalcKey:a},De.createElement("div",{className:de,"aria-hidden":!re,id:this.ariaID},De.createElement("div",{className:`${tb.PREFIX}-content-wrapper`},o))))}}E3.contextType=zZ;E3.propTypes={itemKey:W.string,extra:W.node,header:W.oneOfType([W.string,W.node]),className:W.string,reCalcKey:W.oneOfType([W.string,W.number]),showArrow:W.bool,disabled:W.bool};E3.defaultProps={showArrow:!0,disabled:!1};var $Ne=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{this.foundation.handleChange(o,i)},this.foundation=new TNe(this.adapter);const s=this.foundation.initActiveKey();this.state={activeSet:new Set(s)},this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{handleChange:(t,s)=>this.props.onChange(t,s),addActiveKey:t=>this.setState({activeSet:t})})}static getDerivedStateFromProps(t,s){if(t.activeKey){const o=Array.isArray(t.activeKey)?t.activeKey:[t.activeKey],i=new Set(o);return Mp(i,s.activeSet)?s:Object.assign(Object.assign({},s),{activeSet:i})}return s}componentWillUnmount(){this.foundation.destroy()}render(){const t=this.props,{defaultActiveKey:s,accordion:o,style:i,motion:a,className:r,keepDOM:c,expandIconPosition:f,expandIcon:e,collapseIcon:E,children:_,clickHeaderToExpand:R}=t;$Ne(t,["defaultActiveKey","accordion","style","motion","className","keepDOM","expandIconPosition","expandIcon","collapseIcon","children","clickHeaderToExpand"]);const D=Ar(tb.PREFIX,r),{activeSet:J}=this.state;return De.createElement("div",Object.assign({className:D,style:i},this.getDataAttr(this.props)),De.createElement(zZ.Provider,{value:{activeSet:J,expandIcon:e,collapseIcon:E,clickHeaderToExpand:R,keepDOM:c,expandIconPosition:f,onClick:this.onChange,motion:a}},_))}}L3.Panel=E3;L3.propTypes={activeKey:W.oneOfType([W.string,W.array]),defaultActiveKey:W.oneOfType([W.string,W.array]),accordion:W.bool,clickHeaderToExpand:W.bool,onChange:W.func,expandIcon:W.node,collapseIcon:W.node,style:W.object,className:W.string,keepDOM:W.bool,motion:W.oneOfType([W.bool,W.func,W.object]),expandIconPosition:W.oneOf(_Ne.iconPosition)};L3.defaultProps={defaultActiveKey:"",clickHeaderToExpand:!0,onChange:fb,expandIconPosition:"right"};const _g=L3;function kNe(n,t){return n&&(typeof n=="function"||typeof n=="object")&&t&&(typeof t=="function"||typeof t=="object")&&Object.entries(t).forEach(s=>{let[o,i]=s;n[o]=i}),n}var DNe=BO,MNe=XO,jNe=1,FNe=2;function UNe(n,t,s,o){var i=s.length,a=i,r=!o;if(n==null)return!a;for(n=Object(n);i--;){var c=s[i];if(r&&c[2]?c[1]!==n[c[0]]:!(c[0]in n))return!1}for(;++i-1?i[a?t[r]:r]:void 0}}var G4e=W4e,K4e=G4e,q4e=GZ,Y4e=K4e(q4e),X4e=Y4e;const u2=ml(X4e);var Z4e=m9,J4e=qO,nz=p3;function Q4e(n,t,s){var o=n==null?0:n.length;return o?(s&&typeof s!="number"&&J4e(n,t,s)?(t=0,s=o):(t=t==null?0:nz(t),s=s===void 0?o:nz(s)),Z4e(n,t,s)):[]}var eOe=Q4e;const tOe=ml(eOe),nOe={PREFIX:`${mo}`};var rOe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{const{layout:t="horizontal",dashed:s,align:o="center",className:i,margin:a,style:r,children:c}=n,f=rOe(n,["layout","dashed","align","className","margin","style","children"]),e=Ar(`${mw}-divider`,i,{[`${mw}-divider-horizontal`]:t==="horizontal",[`${mw}-divider-vertical`]:t==="vertical",[`${mw}-divider-dashed`]:!!s,[`${mw}-divider-with-text`]:c&&t==="horizontal",[`${mw}-divider-with-text-${o}`]:c&&t==="horizontal"});let E={};return a!==void 0&&(t==="vertical"?E={marginLeft:a,marginRight:a}:t==="horizontal"&&(E={marginTop:a,marginBottom:a})),De.createElement("div",Object.assign({},f,{className:e,style:Object.assign(Object.assign({},E),r)}),c&&t==="horizontal"?typeof c=="string"?De.createElement("span",{className:`${mw}-divider_inner-text`,"x-semi-prop":"children"},c):c:null)},uC=sOe,oOe={PREFIX:`${mo}-empty`};var iOe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{for(const o of s)o.type==="attributes"&&o.attributeName==="theme-mode"&&this.updateMode()},this.updateMode=()=>{const s=this.body.getAttribute("theme-mode");s!==this.state.mode&&this.setState({mode:s})},this.state={mode:null}}componentDidMount(){if(this.props.darkModeImage){this.body=window.document.body,this.updateMode();const t={attributes:!0,childList:!1,subtree:!1};this.observer=new MutationObserver(this.observe),this.observer.observe(this.body,t)}}componentWillUnmount(){this.observer&&this.observer.disconnect()}render(){const t=this.props,{className:s,image:o,description:i,style:a,title:r,imageStyle:c,children:f,layout:e,darkModeImage:E}=t,_=iOe(t,["className","image","description","style","title","imageStyle","children","layout","darkModeImage"]),R=typeof i=="string"?i:"empty",D=this.state.mode==="dark"&&E?E:o;let J=null;typeof D=="string"?J=De.createElement("img",{alt:R,src:D}):D&&"id"in D?J=De.createElement("svg",{"aria-hidden":"true"},De.createElement("use",{xlinkHref:`#${D.id}`})):J=D;const re=Ar(s,gw,{[`${gw}-${e}`]:e}),ie=J?{heading:4}:{heading:6,style:{fontWeight:400}};return De.createElement("div",Object.assign({className:re,style:a},this.getDataAttr(_)),De.createElement("div",{className:`${gw}-image`,style:c,"x-semi-prop":"image,darkModeImage"},J),De.createElement("div",{className:`${gw}-content`},r?De.createElement(I5.Title,Object.assign({},ie,{className:`${gw}-title`,"x-semi-prop":"title"}),r):null,i?De.createElement("div",{className:`${gw}-description`,"x-semi-prop":"description"},i):null,f?De.createElement("div",{className:`${gw}-footer`,"x-semi-prop":"children"},f):null))}};KZ.defaultProps={layout:"vertical"};const Vf={DIALOG:`${mo}-modal`},rz={cancelKey:"cancel",confirmKey:"confirm",SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function aOe(n){return n!==null&&typeof n=="object"}function $P(n){return aOe(n)&&typeof n.then=="function"}class lOe extends fc{constructor(t){super(Object.assign({},t)),this.toggleDisplayNone=(s,o)=>{this._adapter.toggleDisplayNone(s,o)}}destroy(){this.afterHide()}handleCancel(t){var s;const o=this._adapter.notifyCancel(t);$P(o)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),(s=o==null?void 0:o.then(()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})}))===null||s===void 0||s.catch(i=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),i}))}handleOk(t){var s;const o=this._adapter.notifyOk(t);$P(o)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),(s=o==null?void 0:o.then(()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})}))===null||s===void 0||s.catch(i=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),i}))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}enabledBodyScroll(){this._adapter.enabledBodyScroll()}}class Q9 extends fc{constructor(t){super(Object.assign(Object.assign({},Q9.defaultAdapter),t)),this.handleKeyDown=s=>{const{closeOnEsc:o}=this.getProps();if(o&&s.keyCode===lm.ESC){s.stopPropagation(),this.close(s);return}}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(t){const{dialogMouseDown:s}=this.getStates();t.target===t.currentTarget&&!s&&this.close(t)}close(t){this._adapter.notifyClose(t)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var uOe=tZ,cOe=KO,dOe=u9,fOe=cOe(function(n,t){return dOe(n)?uOe(n,t):[]}),hOe=fOe;const pOe=ml(hOe);class Mx{constructor(t,s){var o;this.addFocusRedirectListener=i=>(this.focusRedirectListenerList.push(i),()=>this.removeFocusRedirectListener(i)),this.removeFocusRedirectListener=i=>{this.focusRedirectListenerList=pOe(this.focusRedirectListenerList,i)},this.destroy=()=>{var i;(i=this.container)===null||i===void 0||i.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=i=>{if(!this.enable)return!1;for(const a of this.focusRedirectListenerList)if(!a(i))return!1;return!0},this.focusElement=(i,a)=>{const{preventScroll:r}=this.options;i==null||i.focus({preventScroll:r}),a.preventDefault()},this.onKeyPress=i=>{if(i&&i.key==="Tab"){const a=Mx.getFocusableElements(this.container);a.length&&(i.shiftKey?this.handleContainerShiftTabKeyDown(a,i):this.handleContainerTabKeyDown(a,i))}},this.handleContainerTabKeyDown=(i,a)=>{const r=Mx.getActiveElement(),c=i[i.length-1]===r,f=i[0];c&&this.shouldFocusRedirect(f)&&this.focusElement(f,a)},this.handleContainerShiftTabKeyDown=(i,a)=>{const r=Mx.getActiveElement(),c=i[0]===r,f=i[i.length-1];c&&this.shouldFocusRedirect(f)&&this.focusElement(f,a)},Object.freeze(s),this.container=t,this.options=s,this.enable=(o=s==null?void 0:s.enable)!==null&&o!==void 0?o:!0,this.focusRedirectListenerList=s!=null&&s.onFocusRedirectListener?Array.isArray(s.onFocusRedirectListener)?[...s.onFocusRedirectListener]:[s.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(t){this._enable=t}static getFocusableElements(t){if(!kw(t))return[];const o=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(t.querySelectorAll(o))}static getActiveElement(){return document?document.activeElement:null}}const Y_=Mx;var UR=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{this.foundation.handleKeyDown(s)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=s=>{this.foundation.handleMaskClick(s)},this.close=s=>{this.foundation.close(s)},this.getMaskElement=()=>{const s=UR(this.props,[]),{mask:o,maskClassName:i}=s;if(o){const a=Ar(`${Vf.DIALOG}-mask`,{});return De.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:Ar(a,i),style:s.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:s,closeIcon:o}=this.props;let i;if(s){const a=o||De.createElement(sw,{"x-semi-prop":"closeIcon"});i=De.createElement(oS,{"aria-label":"close",className:`${Vf.DIALOG}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:a,theme:"borderless",size:"small"})}return i},this.renderIcon=()=>{const{icon:s}=this.props;return s?De.createElement("span",{className:`${Vf.DIALOG}-icon-wrapper`,"x-semi-prop":"icon"},s):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:s}=this.props,o=this.renderCloseBtn(),i=this.renderIcon();return s==null?null:De.createElement("div",{className:`${Vf.DIALOG}-header`},i,De.createElement(I5.Title,{heading:5,className:`${Vf.DIALOG}-title`,id:`${Vf.DIALOG}-title`,"x-semi-prop":"title"},s),o)},this.renderBody=()=>{const{bodyStyle:s,children:o,title:i}=this.props,a=Ar(`${Vf.DIALOG}-body`,{[`${Vf.DIALOG}-withIcon`]:this.props.icon}),r=this.renderCloseBtn(),c=this.renderIcon();return i!=null||"header"in this.props?De.createElement("div",{className:a,id:`${Vf.DIALOG}-body`,style:s,"x-semi-prop":"children"},o):De.createElement("div",{className:`${Vf.DIALOG}-body-wrapper`},c,De.createElement("div",{className:a,style:s,"x-semi-prop":"children"},o),r)},this.getDialogElement=()=>{const s=UR(this.props,[]),o={},i=Ar(`${Vf.DIALOG}`,{[`${Vf.DIALOG}-centered`]:s.centered,[`${Vf.DIALOG}-${s.size}`]:s.size});s.width&&(o.width=s.width),s.height&&(o.height=s.height),s.isFullScreen&&(o.width="100%",o.height="100%",o.margin="unset");const a=this.renderBody(),r=this.renderHeader(),c=s.footer?De.createElement("div",{className:`${Vf.DIALOG}-footer`,"x-semi-prop":"footer"},s.footer):null;return De.createElement("div",{key:"dialog-element",className:i,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},s.style),o),id:this.dialogId},De.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Vf.DIALOG}-title`,"aria-describedby":`${Vf.DIALOG}-body`,onAnimationEnd:s.onAnimationEnd,className:Ar([`${Vf.DIALOG}-content`,s.contentClassName,{[`${Vf.DIALOG}-content-fullScreen`]:s.isFullScreen}])},r,a,c))},this.state={dialogMouseDown:!1,prevFocusElement:Y_.getActiveElement()},this.foundation=new Q9(this.adapter),this.dialogId=`dialog-${mOe++}`,this.modalDialogRef=De.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:t=>{this.props.onClose(t)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout(()=>{this.setState({dialogMouseDown:!1})},0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var t,s,o;const{preventScroll:i}=this.props;let a;if(this.modalDialogRef){const r=Y_.getActiveElement();a=this.modalDialogRef.current.contains(r),(t=this.focusTrapHandle)===null||t===void 0||t.destroy(),this.focusTrapHandle=new Y_(this.modalDialogRef.current,{preventScroll:i})}a||(o=(s=this.modalDialogRef)===null||s===void 0?void 0:s.current)===null||o===void 0||o.focus({preventScroll:i})},modalDialogBlur:()=>{var t,s;(t=this.modalDialogRef)===null||t===void 0||t.current.blur(),(s=this.focusTrapHandle)===null||s===void 0||s.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:t}=this.state,{preventScroll:s}=this.props,o=_s(t,"focus");xu(o)&&t.focus({preventScroll:s})}})}componentDidMount(){var t;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const s=Y_.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||(t=s[0])===null||t===void 0||t.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){const t=this.props,{maskClosable:s,className:o,getPopupContainer:i,maskFixed:a,getContainerContext:r}=t,c=UR(t,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:f}=this.context,e=Ar(o,{[`${Vf.DIALOG}-popup`]:i&&!a,[`${Vf.DIALOG}-fixed`]:a,[`${Vf.DIALOG}-rtl`]:f==="rtl"}),E=r(),_=this.getDataAttr(c),R=De.createElement("div",Object.assign({className:e},_),this.getMaskElement(),De.createElement("div",Object.assign({role:"none",className:Ar({[`${Vf.DIALOG}-wrap`]:!0,[`${Vf.DIALOG}-wrap-center`]:this.props.centered}),onClick:s?this.onMaskClick:null,onMouseUp:s?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return E&&E.Provider?De.createElement(E.Provider,{value:E.value},R):R}}S3.contextType=K1;S3.propTypes={close:W.func,getContainerContext:W.func,contentClassName:W.string,maskClassName:W.string,onAnimationEnd:W.func,preventScroll:W.bool};S3.defaultProps={close:os,getContainerContext:os,contentClassName:"",maskClassName:""};var gOe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{const[t,s]=lt.useState(!0),[o,i]=lt.useState(),[a,r]=lt.useState(),{direction:c}=n,{title:f,content:e,icon:E,type:_,onCancel:R,onOk:D,className:J}=n,re=gOe(n,["title","content","icon","type","onCancel","onOk","className"]),ie=lt.useCallback(yt=>{const Ft=D&&D(yt);Ft&&Ft.then?(i(!0),Ft.then(function(){s(!1),i(!1)},Zt=>{i(!1)})):s(!1)},[D]),ae=lt.useCallback(yt=>{const Ft=R&&R(yt);Ft&&Ft.then?(r(!0),Ft.then(function(){s(!1),r(!1)},Zt=>{r(!1)})):s(!1)},[R]),de=`${Vf.DIALOG}-confirm`,ye=Ar(J,de,{[`${de}-rtl`]:c==="rtl"}),Fe=Ar(`${Vf.DIALOG}-${_}`),Ge=l1(E)?De.cloneElement(E,{className:`${de}-icon ${Fe}-icon`,size:"extra-large"}):E,tt=f==null?null:De.createElement("span",{className:`${de}-title-text`},f),ht=Ar(`${de}-content`,{[`${de}-content-withIcon`]:n.icon});return De.createElement(eJ,Object.assign({className:ye,title:tt,confirmLoading:o,cancelLoading:a,onOk:ie,onCancel:ae,icon:Ge,visible:t},re),De.createElement("div",{className:ht,"x-semi-prop":"content"},e))},qZ=vOe;function FA(n){const t=document.createElement("div");document.body.appendChild(t);let s=Object.assign({},n);const o=()=>{F1.unmountComponentAtNode(t)&&t.parentNode&&t.parentNode.removeChild(t);for(let f=0;f<_E.length;f++)if(_E[f]===a){_E.splice(f,1);break}};function i(c){const{afterClose:f}=c;F1.render(De.createElement(qZ,Object.assign({},c,{afterClose:function(){f==null||f(...arguments),o()},motion:n.motion})),t)}function a(){s=Object.assign(Object.assign({},s),{visible:!1}),i(s)}function r(c){s=Object.assign(Object.assign({},s),c),i(s)}return i(s),_E.push(a),{destroy:a,update:r}}function YZ(n){return Object.assign({type:"info",icon:De.createElement(n3,null)},n)}function XZ(n){return Object.assign({type:"success",icon:De.createElement(TA,null)},n)}function ZZ(n){return Object.assign({type:"warning",icon:De.createElement(xA,null)},n)}function JZ(n){return Object.assign({type:"error",icon:De.createElement(tS,null),okButtonProps:Object.assign({type:"danger"},n.okButtonProps)},Gm(n,["okButtonProps"]))}function QZ(n){return Object.assign({type:"confirm",icon:De.createElement(gLe,null)},n)}var bOe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{var{afterClose:s,config:o}=n;bOe(n,["afterClose","config"]);const[i,a]=De.useState(o);De.useImperativeHandle(t,()=>({destroy:()=>{a(c=>Object.assign(Object.assign({},c),{visible:!1}))},update:c=>{a(f=>Object.assign(Object.assign({},f),c))}}));const r=()=>{var c;(c=o==null?void 0:o.afterClose)===null||c===void 0||c.call(o),s()};return De.createElement(qZ,Object.assign({},i,{afterClose:r}))},COe=De.forwardRef(yOe);let sz=0;function wOe(){const[n,t]=De.useState([]);function s(o){return t(i=>[...i,o]),()=>{t(i=>i.filter(a=>a!==o))}}return[n,s]}function EOe(){const[n,t]=wOe();function s(o){return function(a){sz+=1;const r=De.createRef();let c;const f=De.createElement(COe,{key:`semi-modal-${sz}`,config:o(a),ref:r,afterClose:()=>{c()}});return c=t(f),{destroy:()=>{r.current&&r.current.destroy()},update:e=>{r.current&&r.current.update(e)}}}}return[{info:s(YZ),success:s(XZ),error:s(JZ),warning:s(ZZ),confirm:s(QZ)},De.createElement(De.Fragment,null,n)]}var LOe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{this.foundation.handleCancel(s)},this.handleOk=s=>{this.foundation.handleOk(s)},this.updateState=()=>{const{visible:s}=this.props;this.foundation.toggleDisplayNone(!s)},this.renderFooter=()=>{const{okText:s,okType:o,cancelText:i,confirmLoading:a,cancelLoading:r,hasCancel:c}=this.props,f=e=>c?De.createElement(xl,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:r===void 0?this.state.onCancelReturnPromiseStatus==="pending":r,type:"tertiary",autoFocus:!0},this.props.cancelButtonProps,{"x-semi-children-alias":"cancelText"}),i||e.cancel):null;return De.createElement(dm,{componentName:"Modal"},(e,E)=>De.createElement("div",null,f(e),De.createElement(xl,Object.assign({"aria-label":"confirm",type:o,theme:"solid",loading:a===void 0?this.state.onOKReturnPromiseStatus==="pending":a,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),s||e.confirm)))},this.renderDialog=()=>{let s=this.props,{footer:o,className:i,motion:a,maskStyle:r,keepDOM:c,style:f,zIndex:e,getPopupContainer:E,visible:_}=s,R=LOe(s,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible"]),D=f;const J=r,re="footer"in this.props?o:this.renderFooter();let ie={zIndex:e};E&&(ie={zIndex:e,position:"static"});const ae=Ar(i,{[`${Vf.DIALOG}-displayNone`]:c&&this.state.displayNone}),de=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return de&&(this._haveRendered=!0),De.createElement(BC,{motion:this.props.motion,animationState:_?"enter":"leave",startClassName:_?`${Vf.DIALOG}-content-animate-show`:`${Vf.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},ye=>{let{animationClassName:Fe,animationEventsNeedBind:Ge}=ye;return De.createElement(BC,{motion:this.props.motion,animationState:_?"enter":"leave",startClassName:_?`${Vf.DIALOG}-mask-animate-show`:`${Vf.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},tt=>{let{animationClassName:ht,animationEventsNeedBind:yt}=tt;return de?De.createElement(QO,{style:ie,getPopupContainer:E}," ",De.createElement(S3,Object.assign({},R,{contentExtraProps:Ge,maskExtraProps:yt,isFullScreen:this.state.isFullScreen,contentClassName:Fe,maskClassName:ht,className:ae,getPopupContainer:E,maskStyle:J,style:D,ref:this.modalRef,footer:re,onClose:this.handleCancel}))):De.createElement(De.Fragment,null)})})},this.state={displayNone:!t.visible,isFullScreen:t.fullScreen},this.foundation=new lOe(this.adapter),this.modalRef=De.createRef(),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{const{getPopupContainer:t}=this.props;this.bodyOverflow=document.body.style.overflow||"",!t&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:t}=this.props;!t&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:t=>this.props.onCancel(t),notifyOk:t=>this.props.onOk(t),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(t,s)=>{t!==this.state.displayNone&&this.setState({displayNone:t},s||os)},notifyFullScreen:t=>{t!==this.state.isFullScreen&&this.setState({isFullScreen:t})}})}static getDerivedStateFromProps(t,s){const o={};return t.fullScreen!==s.isFullScreen&&(o.isFullScreen=t.fullScreen),t.visible&&s.displayNone&&(o.displayNone=!1),o}componentDidMount(){this.scrollBarWidth=v9(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(t,s,o){!t.visible&&this.props.visible&&this.foundation.beforeShow(),!s.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible?this.foundation.destroy():this.foundation.enabledBodyScroll()}render(){return this.props,this.renderDialog()}};_b.propTypes={mask:W.bool,closable:W.bool,centered:W.bool,visible:W.bool,width:W.oneOfType([W.string,W.number]),height:W.oneOfType([W.string,W.number]),confirmLoading:W.bool,cancelLoading:W.bool,okText:W.string,okType:W.string,cancelText:W.string,maskClosable:W.bool,onCancel:W.func,onOk:W.func,afterClose:W.func,okButtonProps:W.object,cancelButtonProps:W.object,style:W.object,className:W.string,maskStyle:W.object,bodyStyle:W.object,zIndex:W.number,title:W.node,icon:W.node,header:W.node,footer:W.node,hasCancel:W.bool,motion:W.bool,children:W.node,getPopupContainer:W.func,getContainerContext:W.func,maskFixed:W.bool,closeIcon:W.node,closeOnEsc:W.bool,size:W.oneOf(rz.SIZE),keepDOM:W.bool,lazyRender:W.bool,direction:W.oneOf(rz.directions),fullScreen:W.bool};_b.defaultProps={zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:os,onOk:os,afterClose:os,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1};_b.useModal=EOe;_b.info=function(n){return FA(YZ(n))};_b.success=function(n){return FA(XZ(n))};_b.error=function(n){return FA(JZ(n))};_b.warning=function(n){return FA(ZZ(n))};_b.confirm=function(n){return FA(QZ(n))};_b.destroyAll=function(){for(;_E.length;){const t=_E.pop();t&&t()}};const eJ=_b,UA={PREFIX:`${mo}-dropdown`,SELECTED:`${mo}-dropdown-item-selected`,DISABLED:`${mo}-dropdown-item-disabled`},x3={POSITION_SET:OC.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},oz={SPACING:4,NESTED_SPACING:2};class SOe extends fc{handleVisibleChange(t){this._adapter.setPopVisible(t),this._adapter.notifyVisibleChange(t);const{trigger:s}=this.getProps();if(t&&s==="click"){const o=this._adapter.getPopupId();this.setFocusToFirstMenuItem(o)}}getMenuItemNodes(t){const s=document.getElementById(t);return s?Array.from(s.getElementsByTagName("li")).filter(o=>o.ariaDisabled==="false"):null}setFocusToFirstMenuItem(t){const s=this.getMenuItemNodes(t);s&&BCe(s)}setFocusToLastMenuItem(t){const s=this.getMenuItemNodes(t);s&&zCe(s)}handleKeyDown(t){var s,o;const i=(o=(s=t.target)===null||s===void 0?void 0:s.attributes["data-popupid"])===null||o===void 0?void 0:o.value,{visible:a}=this._adapter.getStates();switch(t.key){case" ":case"Enter":t.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(i),a&&ig(t);break;case"ArrowUp":this.setFocusToLastMenuItem(i),a&&ig(t);break}}}class xOe extends fc{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(t){this._adapter.getContext("trigger")==="custom"&&(t&&KCe(document.querySelectorAll("[data-popupid]"),t.id)).focus()}setFocusByFirstCharacter(t,s){const o=WCe(this.menuItemNodes,t,this.firstChars,s);o>=0&&SA(this.menuItemNodes,this.menuItemNodes[o])}onMenuKeydown(t){const s=GCe(t.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...t.target.parentNode.getElementsByTagName("li")].filter(i=>i.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(i=>{var a;this.firstChars.push((a=i.textContent.trim()[0])===null||a===void 0?void 0:a.toLowerCase())});const o=this.menuItemNodes.find(i=>i.tabIndex===0);switch(t.key){case" ":case"Enter":t.target.click();break;case"Escape":this.handleEscape(s);break;case"ArrowUp":HCe(this.menuItemNodes,o),ig(t);break;case"ArrowDown":VCe(this.menuItemNodes,o),ig(t);break;default:UCe(t.key)&&this.setFocusByFirstCharacter(o,t.key);break}}}const AOe=De.createContext({level:0}),xL=AOe;var _Oe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);ithis.foundation.onMenuKeydown(r)}),s)}}eD.propTypes={children:W.node,className:W.string,style:W.object};eD.contextType=xL;const NOe=eD,vw=UA.PREFIX;class BA extends Ml{render(){const{children:t,disabled:s,className:o,forwardRef:i,style:a,type:r,active:c,icon:f,onKeyDown:e,showTick:E,hover:_}=this.props,{showTick:R}=this.context,D=R??E,J=Ar(o,{[`${vw}-item`]:!0,[`${vw}-item-disabled`]:s,[`${vw}-item-hover`]:_,[`${vw}-item-withTick`]:D,[`${vw}-item-${r}`]:r,[`${vw}-item-active`]:c}),re={};s||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(de=>{de==="onClick"?re.onMouseDown=ye=>{var Fe,Ge;ye.button===0&&((Ge=(Fe=this.props)[de])===null||Ge===void 0||Ge.call(Fe,ye))}:re[de]=this.props[de]});let ie=null;switch(!0){case(D&&c):ie=De.createElement(O5,null);break;case(D&&!c):ie=De.createElement(O5,{style:{color:"transparent"}});break;default:ie=null;break}let ae=null;return f&&(ae=De.createElement("div",{className:`${vw}-item-icon`},f)),De.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":s},re,{onKeyDown:e,ref:de=>i(de),className:J,style:a},this.getDataAttr(this.props)),ie,ae,t)}}BA.propTypes={children:W.oneOfType([W.string,W.node]),name:W.string,disabled:W.bool,selected:W.bool,onClick:W.func,onMouseEnter:W.func,onMouseLeave:W.func,onContextMenu:W.func,className:W.string,style:W.object,forwardRef:W.func,type:W.oneOf(x3.ITEM_TYPE),active:W.bool,icon:W.node};BA.contextType=xL;BA.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:os,onMouseLeave:os,forwardRef:os};BA.elementType="Dropdown.Item";const OOe=BA,IOe=UA.PREFIX,tJ=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:t,className:s}=n;return De.createElement("div",{className:Ar(`${IOe}-divider`,s),style:t})};tJ.propTypes={style:W.object,className:W.string};const ROe=tJ,iz=UA.PREFIX;class tD extends lt.PureComponent{render(){const{className:t,style:s,children:o}=this.props,{showTick:i}=this.context,a=Ar({[`${iz}-title`]:!0,[`${iz}-title-withTick`]:i},t);return De.createElement("div",{className:a,style:s},o)}}tD.propTypes={children:W.node,className:W.string,style:W.object};tD.contextType=xL;const POe=tD;var BR=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);ithis.foundation.handleVisibleChange(s),this.state={popVisible:t.visible},this.foundation=new SOe(this.adapter),this.tooltipRef=De.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:t=>this.setState({popVisible:t}),notifyVisibleChange:t=>this.props.onVisibleChange(t),getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:t,menu:s,contentClassName:o,style:i,showTick:a,prefixCls:r,trigger:c}=this.props,f=Ar(r,o),{level:e=0}=this.context,E={showTick:a,level:e+1,trigger:c};let _=null;return De.isValidElement(t)?_=t:Array.isArray(s)&&(_=this.renderMenu()),De.createElement(xL.Provider,{value:E},De.createElement("div",{className:f,style:i},De.createElement("div",{className:`${r}-content`,"x-semi-prop":"render"},_)))}renderMenu(){const{menu:t}=this.props,s=t.map((o,i)=>{switch(o.node){case"title":{const{name:a,node:r}=o,c=BR(o,["name","node"]);return De.createElement(Pv.Title,Object.assign({},c,{key:r+a+i}),a)}case"item":{const{node:a,name:r}=o,c=BR(o,["node","name"]);return De.createElement(Pv.Item,Object.assign({},c,{key:a+r+i}),r)}case"divider":return De.createElement(Pv.Divider,{key:o.node+i});default:return null}});return De.createElement(Pv.Menu,null,s)}renderPopCard(){const{render:t,contentClassName:s,style:o,showTick:i,prefixCls:a}=this.props,r=Ar(a,s),{level:c=0}=this.context,f={showTick:i,level:c+1};return De.createElement(xL.Provider,{value:f},De.createElement("div",{className:r,style:o},De.createElement("div",{className:`${a}-content`},t)))}render(){const t=this.props,{children:s,position:o,trigger:i,onVisibleChange:a,zIndex:r,className:c,motion:f,margin:e,style:E,prefixCls:_}=t,R=BR(t,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:D}=this.props;const{level:J}=this.context,{popVisible:re}=this.state,ie=this.renderContent();return J>0?D=typeof D=="number"?D:oz.NESTED_SPACING:(D===null||typeof D>"u")&&(D=oz.SPACING),De.createElement(Ip,Object.assign({zIndex:r,motion:f,margin:e,content:ie,className:c,prefixCls:_,spacing:D,position:o,trigger:i,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},R),De.isValidElement(s)?De.cloneElement(s,{className:Ar(_s(s,"props.className"),{[`${_}-showing`]:re}),"aria-haspopup":!0,"aria-expanded":re,onKeyDown:ae=>{this.foundation.handleKeyDown(ae);const de=_s(s,"props.onKeyDown");de&&de(ae)}}):s)}}Pv.Menu=NOe;Pv.Item=OOe;Pv.Divider=ROe;Pv.Title=POe;Pv.contextType=xL;Pv.propTypes={children:W.node,contentClassName:W.oneOfType([W.string,W.array]),className:W.string,getPopupContainer:W.func,margin:W.oneOfType([W.number,W.object]),mouseEnterDelay:W.number,mouseLeaveDelay:W.number,menu:W.array,motion:W.oneOfType([W.bool,W.func,W.object]),onVisibleChange:W.func,prefixCls:W.string,position:W.oneOf($Oe),rePosKey:W.oneOfType([W.string,W.number]),render:W.node,spacing:W.oneOfType([W.number,W.object]),showTick:W.bool,style:W.object,trigger:W.oneOf(kOe),visible:W.bool,zIndex:W.number};Pv.defaultProps={onVisibleChange:os,prefixCls:UA.PREFIX,zIndex:Xy.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:x3.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:os};const dc=Pv,nJ={PREFIX:`${mo}`};var DOe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);igwe(lz[t],{match:()=>{typeof this.props.gutter=="object"&&this.setState(s=>({screens:Object.assign(Object.assign({},s.screens),{[t]:!0})}))},unmatch:()=>{typeof this.props.gutter=="object"&&this.setState(s=>({screens:Object.assign(Object.assign({},s.screens),{[t]:!1})}))}}))}componentWillUnmount(){this.unRegisters.forEach(t=>t())}getGutter(){const{gutter:t=0}=this.props,s=[0,0];return(Array.isArray(t)?t.slice(0,2):[t,0]).forEach((i,a)=>{if(typeof i=="object")for(let r=0;r0?{marginLeft:E[0]/-2,marginRight:E[0]/-2}:{}),E[1]>0?{marginTop:E[1]/-2,marginBottom:E[1]/-2}:{}),c),J=Object.assign({},e);return delete J.gutter,De.createElement(rJ.Provider,{value:{gutters:E}},De.createElement("div",Object.assign({},J,{className:R,style:D,"x-semi-prop":"children"}),f))}}A3.propTypes={type:W.oneOf(["flex"]),align:W.oneOf(["top","middle","bottom"]),justify:W.oneOf(["start","end","center","space-around","space-between"]),className:W.string,style:W.object,children:W.node,gutter:W.oneOfType([W.object,W.number,W.array]),prefixCls:W.string};A3.defaultProps={prefixCls:nJ.PREFIX};A3.RowContext={gutters:W.any};const ev=A3;var MOe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{let ae={};typeof t[ie]=="number"?ae.span=t[ie]:typeof t[ie]=="object"&&(ae=t[ie]||{}),delete E[ie],_=Object.assign(Object.assign({},_),{[`${R}-${ie}-${ae.span}`]:ae.span!==void 0,[`${R}-${ie}-order-${ae.order}`]:ae.order||ae.order===0,[`${R}-${ie}-offset-${ae.offset}`]:ae.offset||ae.offset===0,[`${R}-${ie}-push-${ae.push}`]:ae.push||ae.push===0,[`${R}-${ie}-pull-${ae.pull}`]:ae.pull||ae.pull===0})});const D=Ar(R,{[`${R}-${o}`]:o!==void 0,[`${R}-order-${i}`]:i,[`${R}-offset-${a}`]:a,[`${R}-push-${r}`]:r,[`${R}-pull-${c}`]:c},f,_);let{style:J}=E,re;try{re=this.context.gutters}catch{throw new Error("please make sure inside ")}return J=Object.assign(Object.assign(Object.assign({},re[0]>0?{paddingLeft:re[0]/2,paddingRight:re[0]/2}:{}),re[1]>0?{paddingTop:re[1]/2,paddingBottom:re[1]/2}:{}),J),De.createElement("div",Object.assign({},E,{style:J,className:D,"x-semi-prop":"children"}),e)}}_3.contextType=rJ;_3.propTypes={span:W.number,order:W.number,offset:W.number,push:W.number,pull:W.number,className:W.string,children:W.node,xs:G2,sm:G2,md:G2,lg:G2,xl:G2,xxl:G2,prefixCls:W.string};_3.defaultProps={prefixCls:nJ.PREFIX};const Oc=_3,TE={PREFIX:`${mo}-list`},kP={SIZE:["large","small","default"],LAYOUT:["vertical","horizontal"],ALIGN:["flex-start","flex-end","center","baseline","stretch"]},jOe=De.createContext(null),sJ=jOe;var uz=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{const{emptyContent:t}=this.props;return t?De.createElement("div",{className:`${TE.PREFIX}-empty`,"x-semi-prop":"emptyContent"},t):De.createElement(dm,{componentName:"List"},s=>De.createElement("div",{className:`${TE.PREFIX}-empty`},s.emptyText))}}wrapChildren(t,s){const{grid:o}=this.props;if(o){const i={};return["align","gutter","justify","type"].forEach(a=>{a in o&&(i[a]=o[a])}),De.createElement(ev,Object.assign({type:"flex"},i),t||null,s)}return De.createElement("ul",{className:`${bw}-items`},t||null,s)}render(){const t=this.props,{style:s,className:o,header:i,loading:a,onRightClick:r,onClick:c,footer:f,layout:e,grid:E,size:_,split:R,loadMore:D,bordered:J,dataSource:re,renderItem:ie,children:ae}=t,de=FOe(t,["style","className","header","loading","onRightClick","onClick","footer","layout","grid","size","split","loadMore","bordered","dataSource","renderItem","children"]),ye=Ar(bw,o,{[`${bw}-flex`]:e==="horizontal",[`${bw}-${_}`]:_,[`${bw}-grid`]:E,[`${bw}-split`]:R,[`${bw}-bordered`]:J});let Fe;if(re&&re.length){Fe=[];const Ge=ie?re.map((tt,ht)=>ie(tt,ht)):[];De.Children.forEach(Ge,(tt,ht)=>{const yt=tt.key||`list-item-${ht}`;Fe.push(De.cloneElement(tt,{key:yt}))})}else!ae&&!a&&(Fe=this.renderEmpty());return De.createElement("div",Object.assign({className:ye,style:s},this.getDataAttr(de)),i?De.createElement("div",{className:`${TE.PREFIX}-header`,"x-semi-prop":"header"},i):null,De.createElement(sJ.Provider,{value:{grid:E,onRightClick:r,onClick:c}},De.createElement(V1,{spinning:a,size:"large"},this.wrapChildren(Fe,ae))),f?De.createElement("div",{className:`${TE.PREFIX}-footer`,"x-semi-prop":"footer"},f):null,D||null)}}N3.Item=T3;N3.propTypes={style:W.object,className:W.string,bordered:W.bool,footer:W.node,header:W.node,layout:W.oneOf(kP.LAYOUT),size:W.oneOf(kP.SIZE),split:W.bool,emptyContent:W.node,dataSource:W.array,renderItem:W.func,grid:W.object,loading:W.bool,loadMore:W.node,onRightClick:W.func,onClick:W.func};N3.defaultProps={bordered:!1,split:!0,loading:!1,layout:"vertical",size:"default",onRightClick:os,onClick:os};const d4=N3;let xv=null;const cz={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},dz=n=>{Object.keys(cz).forEach(t=>{n.style.setProperty(t,cz[t],"important")})},fz=(n,t)=>{const s=n.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?s+t.borderSize:s-t.paddingSize};function UOe(n,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/0;xv||(xv=document.createElement("textarea"),xv.setAttribute("tab-index","-1"),xv.setAttribute("aria-hidden","true"),dz(xv)),xv.parentNode===null&&document.body.appendChild(xv);const{paddingSize:i,borderSize:a,sizingStyle:r}=n,{boxSizing:c}=r;Object.keys(r).forEach(R=>{xv.style[R]=r[R]}),dz(xv),xv.value=t;let f=fz(xv,n);xv.value="x";const e=fz(xv,n)-i-a;let E=e*s;c==="border-box"&&(E=E+i+a),f=Math.max(E,f);let _=e*o;return c==="border-box"&&(_=_+i+a),f=Math.min(_,f),f}const BOe=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],zOe=n=>{const t=window.getComputedStyle(n);if(t===null)return null;const s=by(t,BOe),{boxSizing:o}=s;if(o==="")return null;const i=parseFloat(s.paddingBottom)+parseFloat(s.paddingTop),a=parseFloat(s.borderBottomWidth)+parseFloat(s.borderTopWidth);return{sizingStyle:s,paddingSize:i,borderSize:a}},HOe=zOe;class nD extends fc{static get textAreaDefaultAdapter(){return{notifyChange:os,setValue:os,toggleFocusing:os,toggleHovering:os,notifyFocus:os,notifyBlur:os,notifyKeyDown:os,notifyEnterPress:os}}constructor(t){super(Object.assign(Object.assign({},nD.textAreaDefaultAdapter),t)),this.resizeTextarea=()=>{var s;const{height:o}=this.getStates(),{rows:i,autosize:a}=this.getProps(),r=this._adapter.getRef(),c=HOe(r);if(!c)return;const[f,e]=a!==null&&typeof a=="object"?[(s=a==null?void 0:a.minRows)!==null&&s!==void 0?s:i,a==null?void 0:a.maxRows]:[i],E=UOe(c,r.value||r.placeholder||"x",f,e);if(o!==E){this._adapter.notifyHeightUpdate(E),r.style.height=`${E}px`;return}}}init(){this.setInitValue()}destroy(){}setInitValue(){const{defaultValue:t,value:s}=this.getProps();let o=t;this._isControlledComponent()&&(o=s),this._adapter.setValue(o)}handleValueChange(t){this._adapter.setValue(t)}handleChange(t,s){const{maxLength:o,minLength:i,getValueLength:a}=this._adapter.getProps();let r=t;o&&xu(a)&&(r=this.handleVisibleMaxLength(t)),i&&xu(a)&&this.handleVisibleMinLength(r),this._isControlledComponent()?this._adapter.notifyChange(r,s):(this._adapter.setValue(r),this._adapter.notifyChange(r,s))}handleVisibleMinLength(t){const{minLength:s,getValueLength:o}=this._adapter.getProps(),{minLength:i}=this._adapter.getStates();if(Lm(s)&&s>=0&&xu(o)&&Bd(t)){const a=o(t);if(a=0&&Bd(t)){if(xu(o)){if(o(t)>s)return console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(t,s)}else if(t.length>s)return console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit"),t.slice(0,s);return t}}handleTruncateValue(t,s){const{getValueLength:o}=this._adapter.getProps();if(xu(o)){let i="";for(let a=1,r=t.length;a<=r;a++){const c=t.slice(0,a);if(o(c)>s)return i;i=c}return i}else return t.slice(0,s)}handleFocus(t){const{value:s}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(s,t)}handleBlur(t){const{value:s}=this.getStates(),{maxLength:o}=this.getProps();let i=s;o&&(i=this.handleVisibleMaxLength(s),i!==s&&(this._isControlledComponent()||this._adapter.setValue(i),this._adapter.notifyChange(i,t))),this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(i,t)}handleKeyDown(t){this._adapter.notifyKeyDown(t),t.keyCode===13&&this._adapter.notifyPressEnter(t)}handleMouseEnter(t){this._adapter.toggleHovering(!0)}handleMouseLeave(t){this._adapter.toggleHovering(!1)}isAllowClear(){const{value:t,isFocus:s,isHover:o}=this._adapter.getStates(),{showClear:i,disabled:a,readonly:r}=this._adapter.getProps();return t&&i&&!a&&(s||o)&&!r}handleClear(t){const{isFocus:s}=this.getStates();this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),s&&this._adapter.notifyBlur("",t),this._adapter.notifyChange("",t),this._adapter.notifyClear(t),this.stopPropagation(t)}}var VOe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{this.foundation.handleClear(s)},this.setRef=s=>{this.libRef.current=s;const{forwardRef:o}=this.props;typeof o=="function"?o(s):o&&typeof o=="object"&&(o.current=s)},this.state={value:"",isFocus:!1,isHover:!1,height:0,minLength:t.minLength},this.focusing=!1,this.foundation=new nD(this.adapter),this.libRef=De.createRef(),this.throttledResizeTextarea=T5(this.foundation.resizeTextarea,10)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:t=>this.setState({value:t},()=>{this.props.autosize&&this.foundation.resizeTextarea()}),getRef:()=>this.libRef.current,toggleFocusing:t=>this.setState({isFocus:t}),toggleHovering:t=>this.setState({isHover:t}),notifyChange:(t,s)=>{this.props.onChange(t,s)},notifyClear:t=>this.props.onClear(t),notifyBlur:(t,s)=>this.props.onBlur(s),notifyFocus:(t,s)=>this.props.onFocus(s),notifyKeyDown:t=>{this.props.onKeyDown(t)},notifyHeightUpdate:t=>{this.setState({height:t}),this.props.onResize({height:t})},notifyPressEnter:t=>{this.props.onEnterPress&&this.props.onEnterPress(t)},setMinLength:t=>this.setState({minLength:t})})}static getDerivedStateFromProps(t,s){const o={};return t.value!==s.cachedValue&&(o.value=t.value,o.cachedValue=t.value),o}componentWillUnmount(){var t,s;this.throttledResizeTextarea&&((s=(t=this.throttledResizeTextarea)===null||t===void 0?void 0:t.cancel)===null||s===void 0||s.call(t),this.throttledResizeTextarea=null)}componentDidUpdate(t,s){(this.props.value!==t.value||this.props.placeholder!==t.placeholder)&&this.props.autosize&&this.foundation.resizeTextarea()}renderClearBtn(){const{showClear:t}=this.props,s=this.foundation.isAllowClear(),o=Ar(`${Dg}-clearbtn`,{[`${Dg}-clearbtn-hidden`]:!s});return t?De.createElement("div",{className:o,onClick:this.handleClear},De.createElement(_A,null)):null}renderCounter(){let t,s,o,i;const{showCounter:a,maxCount:r,getValueLength:c}=this.props;if(a||r){const{value:f}=this.state;s=f?xu(c)?c(f):f.length:0,o=r||null,i=Ar(`${Dg}-textarea-counter`,{[`${Dg}-textarea-counter-exceed`]:s>o}),t=De.createElement("div",{className:i},s,o?"/":null,o)}else t=null;return t}render(){const t=this.props,{autosize:s,placeholder:o,onEnterPress:i,onResize:a,disabled:r,readonly:c,className:f,showCounter:e,validateStatus:E,maxCount:_,defaultValue:R,style:D,forwardRef:J,getValueLength:re,maxLength:ie,minLength:ae,showClear:de,borderless:ye,autoFocus:Fe}=t,Ge=VOe(t,["autosize","placeholder","onEnterPress","onResize","disabled","readonly","className","showCounter","validateStatus","maxCount","defaultValue","style","forwardRef","getValueLength","maxLength","minLength","showClear","borderless","autoFocus"]),{isFocus:tt,value:ht,minLength:yt}=this.state,Ft=Ar(f,`${Dg}-textarea-wrapper`,{[`${Dg}-textarea-borderless`]:ye,[`${Dg}-textarea-wrapper-disabled`]:r,[`${Dg}-textarea-wrapper-readonly`]:c,[`${Dg}-textarea-wrapper-${E}`]:!!E,[`${Dg}-textarea-wrapper-focus`]:tt}),Zt=Ar(`${Dg}-textarea`,{[`${Dg}-textarea-disabled`]:r,[`${Dg}-textarea-readonly`]:c,[`${Dg}-textarea-autosize`]:Bg(s)?Hm(s==null?void 0:s.maxRows):s,[`${Dg}-textarea-showClear`]:de}),Nt=Object.assign(Object.assign({},Gm(Ge,"insetLabel","insetLabelId","getValueLength","onClear","showClear")),{autoFocus:Fe||this.props.autofocus,className:Zt,disabled:r,readOnly:c,placeholder:o||null,onChange:kt=>this.foundation.handleChange(kt.target.value,kt),onFocus:kt=>this.foundation.handleFocus(kt),onBlur:kt=>this.foundation.handleBlur(kt.nativeEvent),onKeyDown:kt=>this.foundation.handleKeyDown(kt),value:ht??""});return xu(re)||(Nt.maxLength=ie),yt&&(Nt.minLength=yt),De.createElement("div",{className:Ft,style:D,onMouseEnter:kt=>this.foundation.handleMouseEnter(kt),onMouseLeave:kt=>this.foundation.handleMouseLeave(kt)},s?De.createElement(zw,{onResize:this.throttledResizeTextarea},De.createElement("textarea",Object.assign({},Nt,{ref:this.setRef}))):De.createElement("textarea",Object.assign({},Nt,{ref:this.setRef})),this.renderClearBtn(),this.renderCounter())}}rD.propTypes={autosize:W.oneOfType([W.bool,W.object]),borderless:W.bool,placeholder:W.string,value:W.string,rows:W.number,cols:W.number,maxCount:W.number,onEnterPress:W.func,validateStatus:W.string,className:W.string,style:W.object,showClear:W.bool,onClear:W.func,onResize:W.func,getValueLength:W.func};rD.defaultProps={autosize:!1,borderless:!1,rows:4,cols:20,showCounter:!1,showClear:!1,onEnterPress:os,onChange:os,onBlur:os,onFocus:os,onKeyDown:os,onResize:os,onClear:os};const WOe=De.forwardRef((n,t)=>De.createElement(rD,Object.assign({},n,{forwardRef:t}))),c2=WOe;var GOe=zX;function KOe(n){return GOe(n)&&n!=+n}var qOe=KOe;const YOe=ml(qOe),XOe=(n,t)=>{const{isNaN:s}=Number;return s(n)&&s(t)},ZOe=XOe,JOe=Object.assign({},I9),Mw=Object.assign(Object.assign({},Exe),{DEFAULT_STEP:1,DEFAULT_SHIFT_STEP:10,DEFAULT_PRESS_TIMEOUT:250,DEFAULT_PRESS_INTERVAL:0,MOUSE_BUTTON_LEFT:0}),QOe=Object.assign({},OA);function e3e(n,t){const s=(n.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length,i=Math.pow(10,Math.max(s,o));return(n*i+t*i)/i}function hz(n,t){return e3e(n,-t)}class t3e extends fc{init(){this._setInitValue()}destroy(){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}isControlled(){return this._isControlledComponent("value")}_doInput(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=t,a=t,r=!0;const c=this.isControlled();typeof t!="number"&&(a=this.doParse(t,!1),r=!isNaN(a)),r&&(i=a,c||this._adapter.setNumber(a)),c||this._adapter.setValue(t,o),this.getProp("keepFocus")&&this._adapter.setFocusing(!0,()=>{this._adapter.setClickUpOrDown(!0)}),this.notifyChange(i,s)}_registerInterval(t){const s=this.getProp("pressInterval")||Mw.DEFAULT_PRESS_INTERVAL;this._intervalHasRegistered=!0,this._interval=setInterval(()=>{typeof t=="function"&&this._intervalHasRegistered&&t()},s)}_unregisterInterval(){this._interval&&(this._intervalHasRegistered=!1,clearInterval(this._interval),this._interval=null)}_registerTimer(t){const s=this.getProp("pressTimeout")||Mw.DEFAULT_PRESS_TIMEOUT;this._timerHasRegistered=!0,this._timer=setTimeout(()=>{this._timerHasRegistered&&typeof t=="function"&&t()},s)}_unregisterTimer(){this._timer&&(this._timerHasRegistered=!1,clearTimeout(this._timer),this._timer=null)}handleInputFocus(t){this.getState("value"),this._adapter.recordCursorPosition(),this._adapter.setFocusing(!0,null),this._adapter.setClickUpOrDown(!1),this._adapter.notifyFocus(t)}handleInputChange(t,s){const o=this.doParse(t,!0,!0,!0),i=this.doParse(t,!1,!1,!1),a=this.afterParser(t);this._adapter.recordCursorPosition();let r,c=i,f=t;if(t==="")this.isControlled()||(c=null);else if(this.isValidNumber(i)&&this.isValidNumber(o))r=i,f=this.doFormat(i,!1);else{if(typeof i=="number"&&!isNaN(i)){f=this.doFormat(i,!1);const e=a.lastIndexOf("."),E=a.length-1-e,_=this._getPrecLen(i);if(_){if(_-1?a.slice(e):"";f+=R}c=i}else f=this.doFormat(a,!1);r=a}!this.isControlled()&&(c===null||typeof c=="number"&&!isNaN(c))&&this._adapter.setNumber(c),this._adapter.setValue(this.isControlled()?f:this.doFormat(a,!1),()=>{this._adapter.restoreCursor()}),this.notifyChange(r,s)}handleInputKeyDown(t){const s=t.keyCode;if(s===lm.UP||s===lm.DOWN){this._adapter.setClickUpOrDown(!0),this._adapter.recordCursorPosition();const o=s===lm.UP?this.add(null,t):this.minus(null,t);this._doInput(o,t,()=>{this._adapter.restoreCursor()}),t.preventDefault()}this._adapter.notifyKeyDown(t)}handleInputBlur(t){const s=Yy(this.getState("value"));let o=this.getState("number");if(o!=null||s!=null&&s!==""){const i=this.doParse(s,!1,!0,!0);let a=!1,r=!1,c,f;this.isValidNumber(i)&&o!==i&&(c=i,this.isControlled()||(o=c),a=!0);const e=this.doFormat(o,!0);if(e!==s&&(f=e,r=!0),r||a){const E=f??c;f!=null&&this._adapter.setValue(f),c!=null&&(this._isControlledComponent("value")||this._adapter.setNumber(c)),this.notifyChange(E,t)}}this._adapter.setFocusing(!1),this._adapter.notifyBlur(t)}handleInputMouseEnter(t){this._adapter.setHovering(!0)}handleInputMouseLeave(t){this._adapter.setHovering(!1)}handleInputMouseMove(t){this._adapter.setHovering(!0)}handleMouseUp(t){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}handleUpClick(t){const{readonly:s}=this.getProps();!this._isMouseButtonLeft(t)||s||(this._adapter.setClickUpOrDown(!0),t&&(this._persistEvent(t),t.stopPropagation(),this._preventDefault(t)),this.upClick(t),this._registerTimer(()=>{this._registerInterval(()=>{this.upClick(t)})}))}handleDownClick(t){const{readonly:s}=this.getProps();!this._isMouseButtonLeft(t)||s||(this._adapter.setClickUpOrDown(!0),t&&(this._persistEvent(t),t.stopPropagation(),this._preventDefault(t)),this.downClick(t),this._registerTimer(()=>{this._registerInterval(()=>{this.downClick(t)})}))}_isMouseButtonLeft(t){return _s(t,"button")===Mw.MOUSE_BUTTON_LEFT}_preventDefault(t){const s=this._adapter.getProp("keepFocus"),o=this._adapter.getProp("innerButtons");(s||o)&&t.preventDefault()}handleMouseLeave(t){this._adapter.registerGlobalEvent("mouseup",()=>{this.handleMouseUp(t)})}upClick(t){const s=this.add(null,t);this._doInput(s,t),this._adapter.notifyUpClick(s,t)}downClick(t){const s=this.minus(null,t);this._doInput(s,t),this._adapter.notifyDownClick(s,t)}_setInitValue(){const{defaultValue:t,value:s}=this.getProps(),o=this._isControlledComponent("value")?s:t,i=this.doParse(Yy(o),!1,!0,!0);let a=null;typeof i=="number"&&!isNaN(i)&&(a=i);const r=typeof a=="number"?this.doFormat(a,!0):"";this._adapter.setNumber(a),this._adapter.setValue(r),Bd(r)&&r!==String(o??"")&&this.notifyChange(r,null)}add(t,s){const i=s&&s.shiftKey?this.getProp("shiftStep"):this.getProp("step");t=t==null?i:Number(t);const a=Math.abs(HS(t)),r=this.getState("number");let c=this.toNumber(r)||0;const f=this.getProp("min"),e=this.getProp("max"),E=this._getPrecLen(f),_=this._getPrecLen(e),R=this._getPrecLen(c),D=this._getPrecLen(t),J=Math.pow(10,Math.max(E,_,R,D));return t<0?Math.abs(hz(f,c))>=a&&(c=(c*J+t*J)/J):t>0&&Math.abs(hz(e,c))>=a&&(c=(c*J+t*J)/J),typeof f=="number"&&f>c&&(c=f),typeof e=="number"&&e0&&arguments[0]!==void 0?arguments[0]:0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,o;const i=this.getProp("formatter");return s?o=this._adjustPrec(t):o=Yy(t),typeof i=="function"&&(o=i(o)),o}fetchMinOrMax(t){const{min:s,max:o}=this.getProps();return to?o:t}doParse(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(typeof t=="number")return i&&(t=this.fetchMinOrMax(t)),o&&(t=this._adjustPrec(t)),HS(t);const a=this.getProp("parser");if(typeof a=="function"&&(t=a(t)),s&&typeof t=="string"){const r=t.indexOf(".")===-1||t.indexOf(".")>-1&&(t==="0"||t.lastIndexOf("0")f===".").length<2;if(!r||!c)return NaN}return o&&(t=this._adjustPrec(t)),typeof t=="string"&&t.length?i?this.fetchMinOrMax(HS(t)):HS(t):NaN}afterParser(t){const s=this.getProp("parser");return Yy(typeof t=="string"&&typeof s=="function"?s(t):t)}toNumber(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof t=="number")return t;if(typeof t=="string"){const o=this.getProp("parser");typeof o=="function"&&(t=o(t)),s&&(t=this._adjustPrec(t))}return HS(t)}isValidNumber(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof t=="number"&&!isNaN(t)){const{min:o,max:i,precision:a}=this.getProps(),r=this._getPrecLen(t),c=s?typeof a=="number"&&r<=a||typeof a!="number":!0;if(t>=o&&t<=i&&c)return!0}return!1}isValidString(t){if(typeof t=="string"&&t.length){const s=this.doParse(t);return this.isValidNumber(s)}return!1}notifyChange(t,s){if(t==null||t==="")this._adapter.notifyChange("",s);else{const o=this.toNumber(t,!0);typeof o=="number"&&!isNaN(o)?(this._adapter.notifyChange(o,s),this.notifyNumberChange(o,s)):this._adapter.notifyChange(this.afterParser(t),s)}}notifyNumberChange(t,s){const{number:o}=this.getStates();this.isValidNumber(t)&&t!==o&&this._adapter.notifyNumberChange(t,s)}updateStates(t,s){this._adapter.updateStates(t,s)}}const n3e=t3e;var r3e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);ithis.setState({value:s},o),setNumber:(s,o)=>this.setState({number:s},o),setFocusing:(s,o)=>this.setState({focusing:s},o),setHovering:s=>this.setState({hovering:s}),notifyChange:function(){return t.props.onChange(...arguments)},notifyNumberChange:function(){return t.props.onNumberChange(...arguments)},notifyBlur:s=>this.props.onBlur(s),notifyFocus:s=>this.props.onFocus(s),notifyUpClick:(s,o)=>this.props.onUpClick(s,o),notifyDownClick:(s,o)=>this.props.onDownClick(s,o),notifyKeyDown:s=>this.props.onKeyDown(s),registerGlobalEvent:(s,o)=>{s&&typeof o=="function"&&(this.adapter.unregisterGlobalEvent(s),this.adapter.setCache(s,o),document.addEventListener(s,o))},unregisterGlobalEvent:s=>{if(s){const o=this.adapter.getCache(s);document.removeEventListener(s,o),this.adapter.setCache(s,null)}},recordCursorPosition:()=>{try{this.inputNode&&(this.cursorStart=this.inputNode.selectionStart,this.cursorEnd=this.inputNode.selectionEnd,this.currentValue=this.inputNode.value,this.cursorBefore=this.inputNode.value.substring(0,this.cursorStart),this.cursorAfter=this.inputNode.value.substring(this.cursorEnd))}catch(s){console.warn(s)}},restoreByAfter:s=>{if(yb(s))return!1;const o=this.inputNode.value,i=o.lastIndexOf(s);return i===-1?!1:i+s.length===o.length?(this.adapter.fixCaret(i,i),!0):!1},restoreCursor:function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.cursorAfter;return yb(s)?!1:Array.prototype.some.call(s,(o,i)=>{const a=s.substring(i);return t.adapter.restoreByAfter(a)})},fixCaret:(s,o)=>{if(!(s===void 0||o===void 0||!this.inputNode||!this.inputNode.value))try{const i=this.inputNode.selectionStart,a=this.inputNode.selectionEnd;(s!==i||o!==a)&&this.inputNode.setSelectionRange(s,o)}catch{}},setClickUpOrDown:s=>{this.clickUpOrDown=s},updateStates:(s,o)=>{this.setState(s,o)}})}constructor(t){super(t),this.setInputRef=s=>{const{forwardedRef:o}=this.props;this.inputNode=s,o&&typeof o=="object"?o.current=s:typeof o=="function"&&o(s)},this.handleInputFocus=s=>this.foundation.handleInputFocus(s),this.handleInputChange=(s,o)=>this.foundation.handleInputChange(s,o),this.handleInputBlur=s=>this.foundation.handleInputBlur(s),this.handleInputKeyDown=s=>this.foundation.handleInputKeyDown(s),this.handleInputMouseEnter=s=>this.foundation.handleInputMouseEnter(s),this.handleInputMouseLeave=s=>this.foundation.handleInputMouseLeave(s),this.handleInputMouseMove=s=>this.foundation.handleInputMouseMove(s),this.handleUpClick=s=>this.foundation.handleUpClick(s),this.handleDownClick=s=>this.foundation.handleDownClick(s),this.handleMouseUp=s=>this.foundation.handleMouseUp(s),this.handleMouseLeave=s=>this.foundation.handleMouseLeave(s),this.renderButtons=()=>{const{prefixCls:s,disabled:o,innerButtons:i,max:a,min:r}=this.props,{hovering:c,focusing:f,number:e}=this.state,E=o||e===a,_=o||e===r,R=Ar(`${s}-number-suffix-btns`,{[`${s}-number-suffix-btns-inner`]:i,[`${s}-number-suffix-btns-inner-hover`]:i&&c&&!f}),D=Ar(`${s}-number-button`,`${s}-number-button-up`,{[`${s}-number-button-up-disabled`]:o,[`${s}-number-button-up-not-allowed`]:E}),J=Ar(`${s}-number-button`,`${s}-number-button-down`,{[`${s}-number-button-down-disabled`]:o,[`${s}-number-button-down-not-allowed`]:_});return De.createElement("div",{className:R},De.createElement("span",{className:D,onMouseDown:E?os:this.handleUpClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},De.createElement(w9,{size:"extra-small"})),De.createElement("span",{className:J,onMouseDown:_?os:this.handleDownClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},De.createElement(AA,{size:"extra-small"})))},this.renderSuffix=()=>{const{innerButtons:s,suffix:o}=this.props,{hovering:i,focusing:a}=this.state;return s&&(i||a)?this.renderButtons():o},this.state={value:"",number:null,focusing:!!t.autofocus||!1,hovering:!1},this.inputNode=null,this.foundation=new n3e(this.adapter),this.clickUpOrDown=!1}componentDidUpdate(t){const{value:s,preventScroll:o}=this.props,{focusing:i}=this.state;let a;if(s!==t.value&&!ZOe(s,t.value)){if(yb(s)||s==="")a="",this.foundation.updateStates({value:a,number:null});else{let r=s;typeof s=="number"&&(r=this.foundation.doFormat(s));const c=this.foundation.doParse(r,!1,!0,!0),f=typeof s=="number"?s:this.foundation.doParse(r,!1,!1,!1);if(i)if(this.foundation.isValidNumber(c)&&c!==this.state.number){const e={number:c};this.clickUpOrDown&&(e.value=this.foundation.doFormat(e.number,!0),a=e.value),this.foundation.updateStates(e,()=>this.adapter.restoreCursor())}else YOe(f)?this.foundation.updateStates({value:r}):(a=this.foundation.doFormat(f,!1),this.foundation.updateStates({value:a}));else this.foundation.isValidNumber(c)?(a=this.foundation.doFormat(c),this.foundation.updateStates({number:c,value:a})):(a="",this.foundation.updateStates({number:null,value:a}))}a&&Bd(a)&&a!==String(this.props.value)&&this.foundation.notifyChange(a,null)}this.clickUpOrDown&&this.props.keepFocus&&this.state.focusing&&document.activeElement!==this.inputNode&&this.inputNode.focus({preventScroll:o})}render(){const t=this.props,{disabled:s,className:o,prefixCls:i,min:a,max:r,step:c,shiftStep:f,precision:e,formatter:E,parser:_,forwardedRef:R,onUpClick:D,onDownClick:J,pressInterval:re,pressTimeout:ie,suffix:ae,size:de,hideButtons:ye,innerButtons:Fe,style:Ge,onNumberChange:tt,keepFocus:ht,defaultValue:yt}=t,Ft=r3e(t,["disabled","className","prefixCls","min","max","step","shiftStep","precision","formatter","parser","forwardedRef","onUpClick","onDownClick","pressInterval","pressTimeout","suffix","size","hideButtons","innerButtons","style","onNumberChange","keepFocus","defaultValue"]),{value:Zt,number:Nt}=this.state,kt=Ar(o,`${i}-number`,{[`${i}-number-size-${de}`]:de}),fn=this.renderButtons(),tn={"aria-disabled":s,step:c};return Nt&&(tn["aria-valuenow"]=Nt),r!==1/0&&(tn["aria-valuemax"]=r),a!==-1/0&&(tn["aria-valuemin"]=a),De.createElement("div",{className:kt,style:Ge,onMouseMove:qn=>this.handleInputMouseMove(qn),onMouseEnter:qn=>this.handleInputMouseEnter(qn),onMouseLeave:qn=>this.handleInputMouseLeave(qn)},De.createElement(U0,Object.assign({role:"spinbutton"},tn,Ft,{size:de,disabled:s,ref:this.setInputRef,value:Zt,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,suffix:this.renderSuffix()})),ye||Fe?null:fn)}}f4.propTypes={"aria-label":W.string,"aria-labelledby":W.string,"aria-invalid":W.bool,"aria-errormessage":W.string,"aria-describedby":W.string,"aria-required":W.bool,autofocus:W.bool,clearIcon:W.node,className:W.string,defaultValue:W.oneOfType([W.number,W.string]),disabled:W.bool,formatter:W.func,forwardedRef:W.any,hideButtons:W.bool,innerButtons:W.bool,insetLabel:W.node,insetLabelId:W.string,keepFocus:W.bool,max:W.number,min:W.number,parser:W.func,precision:W.number,prefixCls:W.string,pressInterval:W.number,pressTimeout:W.number,preventScroll:W.bool,shiftStep:W.number,step:W.number,style:W.object,suffix:W.any,value:W.oneOfType([W.number,W.string]),onBlur:W.func,onChange:W.func,onDownClick:W.func,onKeyDown:W.func,onNumberChange:W.func,onUpClick:W.func};f4.defaultProps={forwardedRef:os,innerButtons:!1,keepFocus:!1,max:1/0,min:-1/0,prefixCls:JOe.PREFIX,pressInterval:Mw.DEFAULT_PRESS_TIMEOUT,pressTimeout:Mw.DEFAULT_PRESS_TIMEOUT,shiftStep:Mw.DEFAULT_SHIFT_STEP,size:QOe.DEFAULT_SIZE,step:Mw.DEFAULT_STEP,onBlur:os,onChange:os,onDownClick:os,onFocus:os,onKeyDown:os,onNumberChange:os,onUpClick:os};const O3=kNe(De.forwardRef(function(t,s){return De.createElement(f4,Object.assign({},t,{forwardedRef:s}))}),f4),s3e={PREFIX:mo+"-overflow-list"},pz={COLLAPSE:"collapse",SCROLL:"scroll"},mz={START:"start",END:"end"},o3e={NONE:0,GROW:1,SHRINK:2},Hw={BOUNDARY_SET:Object.values(mz),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(pz),MODE_MAP:pz,BOUNDARY_MAP:mz,OVERFLOW_DIR:o3e},gz={MINIMUM_HTML_ELEMENT_WIDTH:4};class sD extends De.PureComponent{componentDidMount(){const{items:t}=this.props;this.cachedKeys=Object.keys(t);const{root:s,threshold:o,rootMargin:i,option:a,onIntersect:r}=this.props;this.observer=new IntersectionObserver(r,Object.assign({root:s,threshold:o,rootMargin:i},a)),this.observeElement()}componentDidUpdate(){const{items:t}=this.props,s=Object.keys(t);Mp(this.cachedKeys,s)||(this.observeElement(!0),this.cachedKeys=s)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{items:s}=this.props;if(ib(s)){this.observer.disconnect();return}t&&this.observer.disconnect(),Object.keys(s).forEach(o=>{const i=s[o];i&&kw(i)&&this.observer.observe(i)})}render(){const{children:t}=this.props;return t}}sD.propTypes={onIntersect:W.func,option:W.object,root:W.any,threshold:W.number,rootMargin:W.string,items:W.object};sD.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const i3e=Hw.BOUNDARY_MAP;class a3e extends fc{constructor(t){super(Object.assign({},t)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:s}=this.getProps();return s==="scroll"},this.getReversedItems=()=>{const{items:s}=this.getProps();return RB(s).reverse()}}getOverflowItem(){const{items:t}=this.getProps(),{visibleState:s,overflow:o}=this.getStates();if(!this.isScrollMode())return o;const i=t.map(f=>{let{key:e}=f;return!!s.get(e)}),a=i.indexOf(!0),r=i.lastIndexOf(!0),c=[];return c[0]=a>=0?t.slice(0,a):[],c[1]=r>=0?t.slice(r+1,t.length):t,c}handleIntersect(t){const s=RB(this.getState("visibleState")),o={};t.forEach(f=>{const e=_s(f,"target.dataset.scrollkey"),E=f.isIntersecting;o[e]=f,s.set(e,E)});let i=!1;for(const f of s.values())if(f){i=!0;break}const a=i,[r]=t,c=r.boundingClientRect.y;if(!a&&this.previousY!==void 0&&c!==this.previousY){this.previousY=c;return}this.previousY=c,this._adapter.updateVisibleState(s),this._adapter.notifyIntersect(o)}handleCollapseOverflow(){const{minVisibleItems:t,collapseFrom:s}=this.getProps(),{overflowWidth:o,containerWidth:i,pivot:a,overflowStatus:r}=this.getStates(),{items:c,onOverflow:f}=this.getProps();let e=o,E=0,_=!1;for(const R of this._adapter.getItemSizeMap().values()){if(e+=R,e>i){_=!0;break}if(E===c.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:c.length-1,visible:c,overflow:[]});break}E++}if(_){const R=Math.max(t,E),D=s===i3e.START,J=D?this.getReversedItems().slice(0,R).reverse():c.slice(0,R),re=D?this.getReversedItems().slice(R).reverse():c.slice(R);this._adapter.updateStates({overflowStatus:"overflowed",pivot:R,visible:J,overflow:re}),a!==R&&f(re);return}}}const l3e=a3e,KS=s3e.PREFIX,zR=Hw.BOUNDARY_MAP,vz=Hw.OVERFLOW_DIR,qS=Hw.MODE_MAP;class oD extends Ml{constructor(t){var s;super(t),s=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:o}=this.props;return o===qS.SCROLL},this.resize=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var i;const a=(i=o[0])===null||i===void 0?void 0:i.target.clientWidth;s.setState({containerWidth:a,overflowStatus:"calculating"})},this.reintersect=o=>{this.foundation.handleIntersect(o)},this.mergeRef=(o,i,a)=>{this.itemRefs[a]=i,typeof o=="function"?o(i):typeof o=="object"&&o&&"current"in o&&(o.current=i)},this.renderOverflow=()=>{const o=this.foundation.getOverflowItem();return this.props.overflowRenderer(o)},this.getItemKey=(o,i)=>{const{itemKey:a}=this.props;return xu(a)?a(o):_s(o,a||"key",i)},this.renderItemList=()=>{const{className:o,wrapperClassName:i,wrapperStyle:a,style:r,visibleItemRenderer:c,renderMode:f,collapseFrom:e}=this.props,{visible:E,overflowStatus:_}=this.state;let R=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(R)&&(R=De.createElement(De.Fragment,null,R)),De.isValidElement(R))){const re=De.cloneElement(R);R=De.createElement(zw,{onResize:ie=>{let[ae]=ie;this.setState({overflowWidth:ae.target.clientWidth,overflowStatus:"calculating"})}},De.createElement("div",{className:`${KS}-overflow`},re))}const D=f===qS.SCROLL?[R[0],De.createElement("div",{className:Ar(i,`${KS}-scroll-wrapper`),ref:re=>{this.scroller=re},style:Object.assign({},a),key:`${KS}-scroll-wrapper`},E.map(c).map(re=>{const{forwardRef:ie,key:ae}=re;return De.cloneElement(re,{ref:de=>this.mergeRef(ie,de,ae),"data-scrollkey":`${ae}`,key:ae})})),R[1]]:[e===zR.START?R:null,E.map((re,ie)=>{const{key:ae}=re,de=c(re,ie),ye=De.cloneElement(de);return De.createElement(zw,{key:ae??ie,onResize:Fe=>{let[Ge]=Fe;return this.onItemResize(Ge,re,ie)}},De.createElement("div",{key:ae??ie,className:`${KS}-item`},ye))}),e===zR.END?R:null];return De.createElement("div",{className:Ar(`${KS}`,o),style:Object.assign(Object.assign({},r),f===qS.COLLAPSE?{maxWidth:"100%",visibility:_==="calculating"?"hidden":"visible"}:null)},...D)},this.onItemResize=(o,i,a)=>{const r=this.getItemKey(i,a),c=this.itemSizeMap.get(r);c?c!==o.target.clientWidth&&(this.itemSizeMap.set(r,o.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(r,o.target.clientWidth);const{maxCount:f}=this.state;this.itemSizeMap.size===f&&this.setState({overflowStatus:"calculating"})},this.state={direction:vz.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new l3e(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(t,s){const{prevProps:o}=s,i={};i.prevProps=t;const a=r=>!o&&r in t||o&&!Mp(o[r],t[r]);if(a("items")||a("style")){if(i.direction=vz.GROW,i.lastOverflowCount=0,i.maxCount=0,t.renderMode===qS.SCROLL)i.visible=t.items,i.overflow=[];else{let r=t.items.length;Math.floor(s.containerWidth/gz.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(r=Math.min(r,Math.floor(s.containerWidth/gz.MINIMUM_HTML_ELEMENT_WIDTH)));const c=t.collapseFrom===zR.START,f=c?a1(t.items).reverse().slice(0,r):t.items.slice(0,r),e=c?a1(t.items).reverse().slice(r):t.items.slice(r);i.visible=f,i.overflow=e,i.maxCount=r}i.pivot=-1,i.overflowStatus="calculating"}return i}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:t=>{this.setState({visibleState:t})},updateStates:t=>{this.setState(Object.assign({},t))},notifyIntersect:t=>{this.props.onIntersect&&this.props.onIntersect(t)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(t,s){const o=t.items.map(e=>e.key),i=this.props.items.map(e=>e.key);Mp(o,i)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:a,containerWidth:r,visible:c,overflowStatus:f}=this.state;this.isScrollMode()||f!=="calculating"||this.foundation.handleCollapseOverflow()}render(){const t=this.renderItemList(),{renderMode:s}=this.props;return s===qS.SCROLL?De.createElement(sD,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},t):De.createElement(zw,{onResize:this.resize},t)}}oD.defaultProps={collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null};oD.propTypes={className:W.string,collapseFrom:W.oneOf(Hw.BOUNDARY_SET),direction:W.oneOf(Hw.POSITION_SET),items:W.array,minVisibleItems:W.number,onIntersect:W.func,onOverflow:W.func,overflowRenderer:W.func,renderMode:W.oneOf(Hw.MODE_SET),style:W.object,threshold:W.number,visibleItemRenderer:W.func,wrapperClassName:W.string,wrapperStyle:W.object};const oJ=oD,u3e={PREFIX:`${mo}-page`},iD={PAGE_SHOW_MAX:7,REST_PAGE_SHOW_MAX:5,DEFAULT_PAGE_SIZE:10,PAGE_SIZE_OPTION:[10,20,40,100],REST_PAGE_MAX_SIZE:1e6};class c3e extends fc{constructor(t){super(Object.assign({},t))}init(){const{currentPage:t,total:s,pageSize:o}=this.getStates();this._updateDisabled({currentPage:t,total:s,pageSize:o}),this._updatePageList({currentPage:t,total:s,pageSize:o}),this._registerEventHandler()}destroy(){this._unregisterEventHandler()}_registerEventHandler(){this._adapter.registerKeyDownHandler(this.handleKeyDown)}_unregisterEventHandler(){this._adapter.unregisterKeyDownHandler(this.handleKeyDown)}_updateDisabled(t){const{currentPage:s,total:o,pageSize:i}=t,a=this._getTotalPageNumber(o,i);let r=!1,c=!1;s===1?(r=!0,c=a<2):s===a&&(r=!1,c=!0),this._adapter.setDisabled(r,c)}goPage(t){if(t==="...")return;const{pageSize:s,currentPage:o}=this.getStates(),i=this._isInProps("currentPage");t!==o&&(i?(this._adapter.notifyPageChange(t),this._adapter.notifyChange(t,s)):(this.updatePage(t),this._adapter.notifyPageChange(t),this._adapter.notifyChange(t,s)))}updatePage(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,s=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;(s===null||typeof s>"u")&&(s=this.getState("total")),(o===null||typeof o>"u")&&(o=this.getState("pageSize")),this._updateDisabled({currentPage:t,total:s,pageSize:o}),this._updatePageList({currentPage:t,total:s,pageSize:o}),this._adapter.updateTotal(s),this._adapter.setCurrentPage(t),this._adapter.updatePageSize(o)}updateAllPageNumbers(t,s){const{size:o,hoverShowPageSelect:i,disabled:a}=this.getProps();if(!(o!=="small"||!i||a)){const r=Array.from({length:Math.ceil(t/s)},(c,f)=>f+1);this._adapter.updateAllPageNumbers(r)}}goPrev(){const{currentPage:t}=this.getStates();t>1&&this.goPage(t-1)}goNext(){const{currentPage:t,total:s,pageSize:o}=this.getStates(),i=this._getTotalPageNumber(s,o);t<=i-1&&this.goPage(t+1)}_updatePageList(t){const{currentPage:s,total:o,pageSize:i}=t;let a=[],r=[],c=[];const f=this._getTotalPageNumber(o,i),{PAGE_SHOW_MAX:e,REST_PAGE_MAX_SIZE:E}=iD;if(f<=e)a=Array.from({length:f},(_,R)=>R+1),r=[],c=[];else switch(!0){case s<4:a=[1,2,3,4,"...",f-1,f],c=Array.from({length:Math.min(f-6,E)},(D,J)=>J+5),r=[];break;case s===4:a=[1,2,3,4,5,"...",f],c=Array.from({length:Math.min(f-6,E)},(D,J)=>J+6),r=[];break;case(4s+(J-1));a=[1].concat("...",_,"...",f),c=Array.from({length:Math.min(f-s-2,E)},(D,J)=>s+J+2),r=Array.from({length:Math.min(s-3,E)},(D,J)=>J+2);break;case(s-3<=s&&s<=f):const R=Array.from({length:5},(D,J)=>f-(4-J));a=[1,"..."].concat(R),c=[],r=Array.from({length:Math.min(R[0]-2,E)},(D,J)=>J+2);break}this._adapter.setPageList({pageList:a,restLeftPageList:r,restRightPageList:c})}changePageSize(t){const{pageSize:s}=this.getStates();this._adapter.updatePageSize(t),this._adapter.notifyPageSizeChange(t);const{total:o,currentPage:i}=this.getStates(),a=(i-1)*s+1,r=Math.ceil(a/t);this.updatePage(r,o,t),i!==r&&this._adapter.notifyPageChange(r),this._adapter.notifyChange(r,t)}handleKeyDown(){}pageSizeInOpts(){const{pageSizeOpts:t}=this.getProps(),{pageSize:s}=this.getStates(),o=[...t];if(o.indexOf(s)===-1){const i=o.findIndex(a=>a>s);o.splice(i,0,s)}return o}handleQuickJumpNumberChange(t){this._adapter.updateQuickJumpPage(t)}_handleQuickJump(t){let s=Number(t);const{pageSize:o,total:i}=this.getStates(),a=this._getTotalPageNumber(i,o);Number.isNaN(s)||(s>a&&(s=a),s<=0&&(s=1),this._adapter.updateQuickJumpPage(""),this.goPage(s))}handleQuickJumpBlur(){const{quickJumpPage:t}=this.getStates();(typeof t=="string"&&t||typeof t=="number")&&this._handleQuickJump(t)}handleQuickJumpEnterPress(t){this._handleQuickJump(t)}_getTotalPageNumber(t,s){return Math.ceil(t/s)}}const d3e=c3e;var bz=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);io?r[1]:r[1].value)}catch{s=[]}break;case(i&&!t.size):s=[];break;case(!i&&!!t.size):try{s=o?[...t][0][1]:[...t][0][1].value}catch{}break;case(!i&&!t.size):break}const a=this._adapter.getOptionsFromChildren();this._update(s,a)}handleValueChange(t){const{allowCreate:s,autoClearSearchValue:o,remote:i}=this.getProps(),{inputValue:a}=this.getStates();let r;s&&this._isControlledComponent()?(r=this.getState("options"),r.forEach(c=>c._show=!0)):r=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!o&&a&&!i&&(r=this._filterOption(r,a)),this._update(t,r)}_update(t,s){let o;this._isMultiple()?(o=this._updateMultiple(t,s),this.updateOverflowItemCount(o.size)):o=this._updateSingle(t,s),this._adapter.updateSelection(o),this.updateOptionsActiveStatus(o,s)}_updateSingle(t,s){const o=new Map,{onChangeWithObject:i}=this.getProps(),a=i&&typeof t<"u"?t.value:t,r=s.filter(f=>f.value===a),c=!r.length&&typeof a<"u"&&a!==null;if(r.length){const f=r[0],e=Object.assign({},f);o.set(e.label,e)}else if(c){let f={value:t,label:t,_notExist:!0,_scrollIndex:-1};i&&(f=Object.assign(Object.assign({},t),{_notExist:!0,_scrollIndex:-1})),o.set(f.label,f)}return o}_updateMultiple(t,s){const o=this.getState("selections");let i=[];const a=Array.isArray(t);this.checkMultipleProps(),o.size&&(i=[...o].map(e=>e[1]));const r=new Map;let c=t;const{onChangeWithObject:f}=this.getProps();return f&&a&&(c=t.map(e=>e.value)),a&&c.length&&c.forEach((e,E)=>{const _=s.findIndex(R=>R.value===e);if(_!==-1)r.set(s[_].label,s[_]);else{const R=i.findIndex(D=>D.value===e);if(R!==-1){const D=i[R];r.set(D.label,D)}else{let D={value:e,label:e,_notExist:!0};f&&(D=Object.assign(Object.assign({},t[E]),{_notExist:!0})),r.set(D.label,Object.assign(Object.assign({},D),{_scrollIndex:-1}))}}}),r}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filter")}handleClick(t){const{clickToHide:s}=this.getProps(),{isOpen:o}=this.getStates();this._isDisabled()||(o?o&&s?this.close(t):o&&!s&&this.focusInput():(this.open(),this._notifyFocus(t)))}open(t,s){const o=this._isFilterable(),i=s||this.getState("options");if(o){const a="",r=this._filterOption(i,a).filter(c=>!c._inputCreateOnly);this._adapter.updateOptions(r),this.toggle2SearchInput(!0)}else this._adapter.updateFocusState(!0);this._adapter.openMenu(),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler(a=>{this.close(a),this._notifyBlur(a),this._adapter.updateFocusState(!1)})}toggle2SearchInput(t){t?this._adapter.toggleInputShow(t,()=>this.focusInput()):this._adapter.toggleInputShow(t,()=>{})}close(t,s){this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),this._adapter.unregisterClickOutsideHandler();const o=this._isFilterable();o&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",()=>{o&&this.clearInput(t),s&&s()})}onSelect(t,s,o){if(this._isDisabled())return;t._inputCreateOnly&&this._adapter.notifyCreate(t),this._isMultiple()?this._handleMultipleSelect(t,o):(this._handleSingleSelect(t,o),this._focusTrigger()),this._adapter.updateFocusIndex(s)}_handleSingleSelect(t,s){var{value:o,label:i}=t,a=bz(t,["value","label"]);const r=new Map().set(i,Object.assign({value:o,label:i},a));this._notifySelect(o,Object.assign({value:o,label:i},a)),this._isControlledComponent()?this.close(s,()=>{this._notifyChange(r)}):(this._adapter.updateSelection(r),this._notifyChange(r),this.close(s,()=>{this.updateOptionsActiveStatus(r)}))}_handleMultipleSelect(t,s){var{value:o,label:i}=t,a=bz(t,["value","label"]);const r=this._adapter.getMaxLimit(),c=this._adapter.getSelections(),{autoClearSearchValue:f}=this.getProps();if(c.has(i))this._notifyDeselect(o,Object.assign({value:o,label:i},a)),c.delete(i);else if(r&&c.size===r){this._adapter.notifyMaxLimit(Object.assign({value:o,label:i},Gm(a,"_scrollIndex")));return}else this._notifySelect(o,Object.assign({value:o,label:i},a)),c.set(i,Object.assign({value:o,label:i},a));if(this._isControlledComponent())this._notifyChange(c),this._isFilterable()&&(f&&this.clearInput(s),this.focusInput());else{this._adapter.updateSelection(c),this.updateOverflowItemCount(c.size),this._adapter.rePositionDropdown();let{options:e}=this.getStates();if(this._isFilterable()){if(f){this.clearInput(s);const E="";e=this._filterOption(e,E)}this.focusInput()}this.updateOptionsActiveStatus(c,e),this._notifyChange(c)}}clearSelected(){const t=new Map;this._isControlledComponent()?(this._notifyChange(t),this._adapter.notifyClear()):(this._adapter.updateSelection(t),this.updateOptionsActiveStatus(t),this._notifyChange(t),this._adapter.notifyClear());const{isOpen:s}=this.getStates();s&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getState("options");const{allowCreate:o}=this.getProps(),i=s.map(a=>(t.has(a.label)?(a._selected=!0,o&&delete a._inputCreateOnly):(a._inputCreateOnly&&(a._show=!1),a._selected=!1),a));this._adapter.updateOptions(i)}removeTag(t){const s=this._adapter.getSelections();s.delete(t.label),this._isControlledComponent()?(this._notifyDeselect(t.value,t),this._notifyChange(s)):(this._notifyDeselect(t.value,t),this._adapter.updateSelection(s),this.updateOverflowItemCount(s.size),this.updateOptionsActiveStatus(s),this._adapter.rePositionDropdown(),this._notifyChange(s))}clearInput(t){const{inputValue:s}=this.getStates();if(s!==""){this._adapter.updateInputValue(""),this._adapter.notifySearch("",t);const{options:o}=this.getStates(),{remote:i}=this.getProps();let a=o;i||(a=this._filterOption(o,"")),this._adapter.updateOptions(a)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(t,s){this._adapter.updateInputValue(t);const{options:o,isOpen:i}=this.getStates(),{allowCreate:a,remote:r}=this.getProps();let c=o;r||(c=this._filterOption(o,t)),c=this._createOptionByInput(a,c,t),this._adapter.updateOptions(c),this._adapter.notifySearch(t,s),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(t,s){const o=this.getProp("filter");if(o){if(typeof o=="boolean"&&o){const i=s.toLowerCase();return t.map(a=>{const r=a.label.toString().toLowerCase(),c=a._parentGroup&&a._parentGroup.label,f=r.includes(i),e=Bd(c)&&c.toLowerCase().includes(i);return f||e?a._show=!0:a._show=!1,a})}else if(typeof o=="function")return t.map(i=>(o(s,i)?i._show=!0:i._show=!1,i))}else return t}_createOptionByInput(t,s,o){if(t)if(o){const i={_show:!0,_selected:!1,value:o,label:o,_inputCreateOnly:!0};let a=-1,r=-1;s.forEach((c,f)=>{!c._show&&!c._inputCreateOnly||(c.label===o&&(r=f),c._inputCreateOnly&&(a=f,c.value=o,c.label=o,c._show=!0))}),a===-1&&r===-1&&s.push(i),r!==-1&&(s=s.filter(c=>!c._inputCreateOnly))}else s=s.filter(i=>!i._inputCreateOnly);return s}bindKeyBoardEvent(){this._keydownHandler=t=>{this._handleKeyDown(t)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(t){const s=t.keyCode,{loading:o,filter:i,multiple:a,disabled:r}=this.getProps(),{isOpen:c}=this.getStates();if(!(o||r))switch(s){case lm.UP:t.preventDefault(),this._handleArrowKeyDown(-1);break;case lm.DOWN:t.preventDefault(),this._handleArrowKeyDown(1);break;case lm.BACKSPACE:this._handleBackspaceKeyDown();break;case lm.ENTER:ig(t),this._handleEnterKeyDown(t);break;case lm.ESC:c&&this.close(t),i&&!a&&this._focusTrigger();break;case lm.TAB:this._handleTabKeyDown(t);break}}handleContainerKeyDown(t){const s=t.keyCode,{isOpen:o}=this.getStates();switch(s){case lm.TAB:o&&this._handleTabKeyDown(t);break}}_getEnableFocusIndex(t){const{focusIndex:s,options:o}=this.getStates(),i=o.filter(c=>c._show),a=i.length;let r=s+t;if(r<0&&(r=a-1),r>=a&&(r=0),t>0){let c=-1;for(let f=0;f=r));f++);r=c}else{let c=i.length;for(let f=a-1;f>=0&&(!i[f].disabled&&(c=f),!(c<=r));f--);r=c}this._adapter.updateFocusIndex(r),this._adapter.updateScrollTop(r)}_handleArrowKeyDown(t){const{isOpen:s}=this.getStates();s?this._getEnableFocusIndex(t):this.open()}_handleTabKeyDown(t){const{isOpen:s}=this.getStates();if(this._adapter.updateFocusState(!1),s){const o=this._adapter.getContainer(),i=this._adapter.getFocusableElements(o);i.length>0?t.shiftKey?this._handlePanelOpenShiftTabKeyDown(i,t):this._handlePanelOpenTabKeyDown(i,t):(this.close(t),this._notifyBlur(t))}else this._notifyBlur(t)}_handlePanelOpenTabKeyDown(t,s){const o=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?o===t[t.length-1]&&(this._focusTrigger(),this.close(s),ig(s)):(t[0].focus(),this._adapter.setIsFocusInContainer(!0),ig(s))}_handlePanelOpenShiftTabKeyDown(t,s){const o=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?o===t[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),ig(s)):(this.close(s),this._notifyBlur(s))}_handleEnterKeyDown(t){const{isOpen:s,options:o,focusIndex:i}=this.getStates();if(!s)this.open();else if(i!==-1){const a=o.filter(c=>c._show),{length:r}=a;if(r<=i)return;if(a&&r){const c=a[i];if(c.disabled)return;this.onSelect(c,i,t)}}else this.close(t)}_handleBackspaceKeyDown(){if(this._isMultiple()){const t=this._adapter.getSelections(),{inputValue:s}=this.getStates(),o=t.size;if(o&&!s){const i=[...t.keys()];let a=o-1,r=i[a],c=t.get(r),f=!1;if(c.disabled&&a===0)return;for(;c.disabled&&a!==0;)a=a-1,r=i[a],c=t.get(r),a==0&&c.disabled&&(f=!0);f||this.removeTag(c)}}}_notifyChange(t){const{onChangeWithObject:s}=this.getProps(),o=this.getState("selections");let i;const a=[...t.values()],r=this._isMultiple();if(this._diffSelections(t,o,r))switch(!0){case s:this._notifyChangeWithObject(t);break;case(!s&&!r):i=a.length?a[0].value:void 0,this._adapter.notifyChange(i);break;case(!s&&r):i=a.length?a.map(f=>f.value):[],this._adapter.notifyChange(i);break}}_removeInternalKey(t){let s=Object.assign({},t);return delete s._parentGroup,delete s._show,delete s._selected,delete s._scrollIndex,delete s._keyInJsx,"_keyInOptionList"in s&&(s.key=s._keyInOptionList,delete s._keyInOptionList),s}_notifySelect(t,s){const o=this._removeInternalKey(s);this._adapter.notifySelect(t,o)}_notifyDeselect(t,s){const o=this._removeInternalKey(s);this._adapter.notifyDeselect(t,o)}_diffSelections(t,s,o){let i=!0;if(!o){const a=[...t.values()],r=[...s.values()],c=a[0]?a[0].label:a[0],f=r[0]?r[0].label:r[0];i=!Mp(c,f)}return i}_notifyChangeWithObject(t){this.getState("selections");const s=[];for(const o of t.entries()){let i=Object.assign({label:o[0]},o[1]);i=this._removeInternalKey(i),s.push(i)}this._isMultiple()?this._adapter.notifyChange(s):this._adapter.notifyChange(s[0])}_notifyBlur(t){this._adapter.notifyBlur(t)}_notifyFocus(t){this._adapter.notifyFocus(t)}handleMouseEnter(t){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(t)}handleMouseLeave(t){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(t)}handleClearClick(t){const{filter:s}=this.getProps();s&&this.clearInput(t),this.clearSelected(),t.stopPropagation()}handleKeyPress(t){t&&t.key===S9&&this.handleClick(t)}handleClearBtnEnterPress(t){S2(t)&&this.handleClearClick(t)}handleOptionMouseEnter(t){this._adapter.updateFocusIndex(t)}handleListScroll(t){this._adapter.notifyListScroll(t)}handleTriggerFocus(t){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(t){this.getProps();const{isOpen:s,isFocus:o}=this.getStates();o&&!s&&(this._notifyBlur(t),this._adapter.updateFocusState(!1))}handleInputBlur(t){const{filter:s,autoFocus:o}=this.getProps(),i=this._isMultiple();o&&s&&!i&&this.toggle2SearchInput(!1)}selectAll(){const{options:t}=this.getStates(),{onChangeWithObject:s}=this.getProps();let o=[];if(!this._isMultiple()){console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select. + Please note that this is not a legal way to use it`);return}s?o=t:o=t.map(a=>a.value),this.handleValueChange(o),this._adapter.notifyChange(o)}checkMultipleProps(t){if(this._isMultiple()){const s=t||this.getProps(),{defaultValue:o,value:i}=s,a=i||o;!yb(a)&&!Array.isArray(a)&&Km(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(t,s){const{maxTagCount:o,ellipsisTrigger:i}=this.getProps();i&&(s?this._adapter.updateOverflowItemCount(s):typeof o=="number"&&(t-o>0?this._adapter.updateOverflowItemCount(t-o):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:t}=this.getStates();t||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const aD={PREFIX:`${mo}-select`,PREFIX_OPTION:`${mo}-select-option`,PREFIX_GROUP:`${mo}-select-group`},HR={SIZE_SET:["small","large","default"],POSITION_SET:OC.POSITION_SET,MODE_SELECT:"select",MODE_AUTOCOMPLETE:"autoComplete",STATUS:t9},iJ={LIST_HEIGHT:270},YS=aZ.PREFIX,aJ=aS.TAG_SIZE,h3e=aS.AVATAR_SHAPE;class h4 extends lt.PureComponent{renderNTag(t,s){const{size:o,showPopover:i,popoverProps:a,onPlusNMouseEnter:r}=this.props;let c=De.createElement(cm,{closable:!1,size:o,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:r},"+",t);return i&&(c=De.createElement(T0,Object.assign({showArrow:!0,content:s,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${YS}-rest-group-popover`},a,{key:"_+n_Popover"}),c)),c}renderMergeTags(t){const{maxTagCount:s,tagList:o,restCount:i}=this.props,a=i||o.length-s;let r=t;const c=t.slice(0,s),f=t.slice(s);let e=null;return a>0&&(e=this.renderNTag(a,f),c.push(e),r=c),r}renderAllTags(){const{tagList:t,size:s,mode:o,avatarShape:i,onTagClose:a}=this.props;return t.map(c=>{if(o==="custom")return c;const f=Object.assign({},c);return f.size||(f.size=s),f.avatarShape||(f.avatarShape=i),f.tagKey||(typeof f.children=="string"||typeof f.children=="number"?f.tagKey=f.children:f.tagKey=Math.random()),De.createElement(cm,Object.assign({},f,{key:f.tagKey,onClose:(e,E,_)=>{f.onClose&&f.onClose(e,E,_),a&&a(e,E,_)}}))})}render(){const{style:t,className:s,maxTagCount:o,size:i}=this.props,a=Ar({[`${YS}-group`]:!0,[`${YS}-group-max`]:o,[`${YS}-group-small`]:i==="small",[`${YS}-group-large`]:i==="large"},s),r=this.renderAllTags(),c=typeof o>"u"?r:this.renderMergeTags(r);return De.createElement("div",{style:t,className:a},c)}}h4.defaultProps={style:{},className:"",size:aJ[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};h4.propTypes={children:W.node,style:W.object,className:W.string,maxTagCount:W.number,restCount:W.number,tagList:W.array,size:W.oneOf(aJ),mode:W.string,onTagClose:W.func,showPopover:W.bool,popoverProps:W.object,avatarShape:W.oneOf(h3e)};var p3e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{const i=n.props;if(!n||!i)return null;const a=Object.assign(Object.assign({value:i.value,label:i.label||i.children||i.value,_show:!0,_selected:!1,_scrollIndex:s},i),{_parentGroup:t});return a._keyInJsx=o||n.key,a},m3e=n=>{let t=[],s=[];const o={label:"",children:[],_show:!1};let i=De.Children.toArray(n);i=i.filter(c=>c&&c.props);let a="",r=-1;return i.forEach(c=>{if(c.type.isSelectOption){a="option",r++;const f=yz(c,void 0,r);o.children.push(f),s.push(f)}else if(c.type.isSelectOptionGroup){a="group";let f=c.props,{children:e}=f,E=p3e(f,["children"]),_=[];Array.isArray(e)?_=e.map(J=>J.key):_.push(e.key),e=De.Children.toArray(e);const R=e.map((J,re)=>{let ie=J.key;return _[re]===null&&(ie=c.key+""+J.key),r++,yz(J,E,r,ie)}),D=Object.assign(Object.assign({},c.props),{children:R,key:c.key});t.push(D),s=s.concat(R)}else Km(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),a==="option"&&(t=[o]),{optionGroups:t,options:s}},g3e=n=>{let{index:t,data:s,style:o}=n;const{visibleOptions:i,renderOption:a}=s,r=i[t];return a(r,t,o)},v3e=g3e;var Cz=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);iDe.createElement("div",{className:Fe,"x-semi-prop":"emptyContent"},f||ht.emptyText));if(typeof ie=="function")return ie(Object.assign({disabled:o,focused:E,selected:a,style:D,label:r,value:i,inputValue:ae,onMouseEnter:ht=>J(ht),onClick:ht=>this.onClick(Object.assign({value:i,label:r,children:s},ye),ht)},ye));const tt={searchWords:ae,sourceString:s,option:{highlightClassName:`${re}-keyword`}};return De.createElement("div",{className:Fe,onClick:ht=>{this.onClick(Object.assign({value:i,label:r,children:s},ye),ht)},onMouseEnter:ht=>J&&J(ht),role:"option",id:de,"aria-selected":a?"true":"false","aria-disabled":o?"true":"false",style:D},_?De.createElement("div",{className:Ge},De.createElement(O5,null)):null,Bd(s)?De.createElement("div",{className:`${re}-text`},this.renderOptionContent({children:s,config:tt,inputValue:ae,prefixCls:re})):s)}};I3.isSelectOption=!0;I3.propTypes={children:W.node,disabled:W.bool,value:W.oneOfType([W.string,W.number]),selected:W.bool,label:W.node,empty:W.bool,emptyContent:W.node,onSelect:W.func,focused:W.bool,showTick:W.bool,className:W.string,style:W.object,onMouseEnter:W.func,prefixCls:W.string,renderOptionItem:W.func,inputValue:W.string};I3.defaultProps={prefixCls:aD.PREFIX_OPTION};const qT=I3,b3e=aD.PREFIX_GROUP;class lD extends Ml{render(){const{label:t,className:s,style:o}=this.props,i=Ar(s,{[b3e]:!0});return!t&&typeof t!="number"?null:De.createElement("div",{className:i,style:o},t)}}lD.isSelectOptionGroup=!0;lD.propTypes={children:W.oneOfType([W.array,W.node]),label:W.node,className:W.string,style:W.object};const lJ=lD;var y3e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);ithis.optionContainerEl={current:s},this.handleInputChange=(s,o)=>this.foundation.handleInputChange(s,o),this.getTagItem=(s,o,i)=>{const{size:a,disabled:r}=this.props,c=s[0],{value:f}=s[1],e=s[1].disabled||r,E=(J,re)=>{re&&typeof re.preventDefault=="function"&&re.preventDefault(),this.foundation.removeTag({label:c,value:f})},{content:_,isRenderInTag:R}=i(s[1],{index:o,disabled:e,onClose:E}),D={disabled:e,closable:!e,onClose:E};return R?De.createElement(cm,Object.assign({},D,{color:"white",size:a||"large",key:f,tabIndex:-1}),_):De.createElement(lt.Fragment,{key:f},_)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:C3e,inputValue:"",showInput:!1,focusIndex:t.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=De.createRef(),this.inputRef=De.createRef(),this.triggerRef=De.createRef(),this.optionsRef=De.createRef(),this.optionContainerEl=De.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new wX,this.foundation=new f3e(this.adapter)}get adapter(){var t=this;const s={registerKeyDown:a=>{const r={onKeyDown:a};this.setState({keyboardEventSet:r})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:a=>{this.setState({focusIndex:a})},scrollToFocusOption:()=>{}},o={updateInputValue:a=>{this.setState({inputValue:a})},toggleInputShow:(a,r)=>{this.setState({showInput:a},()=>{r()})},focusInput:()=>{const{preventScroll:a}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:a})}},i={notifyMaxLimit:a=>this.props.onExceed(a),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:a=>{const r=c=>{const f=this.optionsRef&&this.optionsRef.current,e=this.triggerRef&&this.triggerRef.current,E=F1.findDOMNode(f);E&&!E.contains(c.target)&&e&&!e.contains(c.target)&&a(c)};this.clickOutsideHandler=r,document.addEventListener("mousedown",r,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:a}=this.state;a=a+1,this.setState({optionKey:a})},notifyDeselect:(a,r)=>{delete r._parentGroup,this.props.onDeselect(a,r)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),s),o),i),{on:(a,r)=>this.eventManager.on(a,r),off:a=>this.eventManager.off(a),once:(a,r)=>this.eventManager.once(a,r),emit:a=>this.eventManager.emit(a),getOptionsFromChildren:function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.props.children,r=[],c=[];const{optionList:f}=t.props;if(f&&f.length)c=f.map((e,E)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:E},e)),r[0]={children:c,label:""};else{const e=m3e(a);r=e.optionGroups,c=e.options}return t.setState({optionGroups:r}),c},updateOptions:a=>{this.setState({options:a})},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const a=this.triggerRef.current;return a&&a.getBoundingClientRect().width},setOptionWrapperWidth:a=>{this.setState({dropdownMinWidth:a})},updateSelection:a=>{this.setState({selections:a})},getSelections:()=>new Map(this.state.selections),notifyChange:a=>{this.props.onChange(a)},notifySelect:(a,r)=>{delete r._parentGroup,this.props.onSelect(a,r)},notifyDropdownVisibleChange:a=>{this.props.onDropdownVisibleChange(a)},notifySearch:(a,r)=>{this.props.onSearch(a,r)},notifyCreate:a=>{this.props.onCreate(a)},notifyMouseEnter:a=>{this.props.onMouseEnter(a)},notifyMouseLeave:a=>{this.props.onMouseLeave(a)},notifyFocus:a=>{this.props.onFocus(a)},notifyBlur:a=>{this.props.onBlur(a)},notifyClear:()=>{this.props.onClear()},notifyListScroll:a=>{this.props.onListScroll(a)},updateHovering:a=>{this.setState({isHovering:a})},updateFocusState:a=>{this.setState({isFocus:a})},updateOverflowItemCount:a=>{this.setState({overflowItemCount:a})},focusTrigger:()=>{try{const{preventScroll:a}=this.props;this.triggerRef.current.focus({preventScroll:a})}catch{}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:a=>xX(a),getActiveElement:()=>SX(),setIsFocusInContainer:a=>{this.setState({isFocusInContainer:a})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:a=>{let r=`.${Na}-option-selected`;a!==void 0&&(r=`.${Na}-option:nth-child(${a})`);let c=document.querySelector(`#${Na}-${this.selectOptionListID} ${r}`);if(Array.isArray(c)&&(c=c[0]),c){const f=c.parentNode;f.scrollTop=c.offsetTop-f.offsetTop-f.clientHeight/2+c.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=UC(),this.selectID=this.props.id||UC()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(t,s){const o=De.Children.toArray(t.children).map(r=>r.key),i=De.Children.toArray(this.props.children).map(r=>r.key);let a=!1;(!Mp(o,i)||!Mp(t.optionList,this.props.optionList))&&(a=!0,this.foundation.handleOptionListChange()),(!Mp(this.props.value,t.value)||a)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderInput(){const{size:t,multiple:s,disabled:o,inputProps:i,filter:a}=this.props,r=_s(i,"className"),c=Ar(`${Na}-input`,{[`${Na}-input-single`]:!s,[`${Na}-input-multiple`]:s},r),{inputValue:f,focusIndex:e}=this.state,E=Object.assign({value:f,disabled:o,className:c,onChange:this.handleInputChange},i);let _={};return s&&(_={width:f?`${f.length*16}px`:"2px"},E.style=_),De.createElement(U0,Object.assign({ref:this.inputRef,size:t,"aria-activedescendant":e!==-1?`${this.selectID}-option-${e}`:"",onFocus:R=>{s&&a&&this.setState({isFocus:!0}),R.stopPropagation()},onBlur:R=>this.foundation.handleInputBlur(R)},E))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(t,s,o){this.foundation.onSelect(t,s,o)}onClear(t){t.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(t)}search(t,s){this.handleInputChange(t,s)}renderEmpty(){return De.createElement(qT,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const t=`${Na}-loading-wrapper`;return De.createElement("div",{className:t},De.createElement(V1,null))}renderOption(t,s,o){const{focusIndex:i,inputValue:a}=this.state,{renderOptionItem:r}=this.props;let c;const f=s===i;let e=o||{};return t.style&&(e=Object.assign(Object.assign({},e),t.style)),t._inputCreateOnly?c=this.renderCreateOption(t,f,s,o):("key"in t&&(t._keyInOptionList=t.key),c=De.createElement(qT,Object.assign({showTick:!0},t,{selected:t._selected,onSelect:(E,_)=>this.onSelect(E,s,_),focused:f,onMouseEnter:()=>this.onOptionHover(s),style:e,key:t._keyInOptionList||t._keyInJsx||t.label+t.value+s,renderOptionItem:r,inputValue:a,semiOptionId:`${this.selectID}-option-${s}`}),t.label)),c}renderCreateOption(t,s,o,i){const{renderCreateItem:a}=this.props;if(typeof a>"u")return De.createElement(qT,Object.assign({key:t.key||t.label+t.value,onSelect:(f,e)=>this.onSelect(f,o,e),onMouseEnter:()=>this.onOptionHover(o),showTick:!0},t,{focused:s,style:i}),De.createElement(dm,{componentName:"Select"},f=>De.createElement(De.Fragment,null,De.createElement("span",{className:`${Na}-create-tips`},f.createText),t.value)));const r=a(t.value,s,i);return De.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:c=>this.onSelect(t,o,c),key:t.key||t.label},r)}onOptionHover(t){this.foundation.handleOptionMouseEnter(t)}renderWithGroup(t){const s=[],o=new Map;return t.forEach((i,a)=>{const r=i._parentGroup,c=this.renderOption(i,a);if(r&&!o.has(r.label)){const f=De.createElement(lJ,Object.assign({},r,{key:r.label}));o.set(r.label,!0),s.push(f)}s.push(c)}),s}renderVirtualizeList(t){const{virtualize:s}=this.props,{direction:o}=this.context,{height:i,width:a,itemSize:r}=s;return De.createElement(iZ,{ref:this.virtualizeListRef,height:i||iJ.LIST_HEIGHT,itemCount:t.length,itemSize:r,itemData:{visibleOptions:t,renderOption:this.renderOption},width:a||"100%",style:{direction:o}},v3e)}renderOptions(t){const{dropdownMinWidth:s,options:o,selections:i}=this.state,{maxHeight:a,dropdownClassName:r,dropdownStyle:c,outerTopSlot:f,innerTopSlot:e,outerBottomSlot:E,innerBottomSlot:_,loading:R,virtualize:D,multiple:J,emptyContent:re}=this.props,ie=o.filter(Ge=>Ge._show);let ae=this.renderWithGroup(ie);D&&(ae=this.renderVirtualizeList(ie));const de=Object.assign({minWidth:s},c),ye=Ar({[`${Na}-option-list`]:!0,[`${Na}-option-list-chosen`]:i.size}),Fe=!o.length||!o.some(Ge=>Ge._show);return De.createElement("div",{id:`${Na}-${this.selectOptionListID}`,className:Ar({[`${Na}-option-list-wrapper`]:!(Fe&&re===null)},r),style:de,ref:this.setOptionContainerEl,onKeyDown:Ge=>this.foundation.handleContainerKeyDown(Ge)},f?De.createElement("div",{className:`${Na}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},f):null,De.createElement("div",{style:{maxHeight:`${a}px`},className:ye,role:"listbox","aria-multiselectable":J,onScroll:Ge=>this.foundation.handleListScroll(Ge)},e?De.createElement("div",{className:`${Na}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},e):null,R?this.renderLoading():Fe?this.renderEmpty():ae,_?De.createElement("div",{className:`${Na}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},_):null),E?De.createElement("div",{className:`${Na}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},E):null)}renderSingleSelection(t,s){let{renderSelectedItem:o}=this.props;const{placeholder:i}=this.props,{showInput:a,inputValue:r}=this.state;let c="";const f=[...t];if(typeof o>"u"&&(o=_=>_.label),f.length){const _=f[0][1];c=o(_)}const e=Ar({[`${Na}-selection-text`]:!0,[`${Na}-selection-placeholder`]:!c&&c!==0,[`${Na}-selection-text-hide`]:r&&a,[`${Na}-selection-text-inactive`]:!r&&a}),E=`${Na}-content-wrapper`;return De.createElement(De.Fragment,null,De.createElement("div",{className:E},De.createElement("span",{className:e,"x-semi-prop":"placeholder"},c||c===0?c:i),s&&a?this.renderInput():null))}renderTag(t,s,o){const{size:i,disabled:a}=this.props;let{renderSelectedItem:r}=this.props;const c=t[0],{value:f}=t[1],e=t[1].disabled||a,E=(re,ie)=>{ie&&typeof ie.preventDefault=="function"&&ie.preventDefault(),this.foundation.removeTag({label:c,value:f})};typeof r>"u"&&(r=re=>({isRenderInTag:!0,content:re.label}));const{content:_,isRenderInTag:R}=r(t[1],{index:s,disabled:e,onClose:E}),D={disabled:e,closable:!e,onClose:E},J=o&&!xu(this.props.renderSelectedItem)?De.createElement(o3,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},_):_;return R?De.createElement(cm,Object.assign({},D,{color:"white",size:i||"large",key:f,style:{maxWidth:"100%"}}),J):De.createElement(lt.Fragment,{key:f},J)}renderNTag(t,s){const{size:o,showRestTagsPopover:i,restTagsPopoverProps:a}=this.props;let r=De.createElement(cm,{closable:!1,size:o||"large",color:"grey",className:`${Na}-content-wrapper-collapse-tag`,key:`_+${t}`,style:{marginRight:0,flexShrink:0}},"+",t);return i&&(r=De.createElement(T0,Object.assign({showArrow:!0,content:De.createElement(eZ,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},s.map((c,f)=>this.renderTag(c,f))),trigger:"hover",position:"top",autoAdjustOverflow:!0},a,{key:`_+${t}_Popover`}),r)),r}renderOverflow(t,s){return t.length&&t[0]?this.renderTag(t[0],s,!0):null}handleOverflow(t){const{overflowItemCount:s,selections:o}=this.state,{maxTagCount:i}=this.props,a=o.size-i>0?o.size-i+t.length-1:t.length-1;s!==a&&this.foundation.updateOverflowItemCount(o.size,a)}renderCollapsedTags(t,s){const{overflowItemCount:o}=this.state,i=typeof s=="number"?t.slice(0,s):t;return De.createElement("div",{className:`${Na}-content-wrapper-collapse`},De.createElement(oJ,{items:i,key:String(t.length),overflowRenderer:a=>this.renderOverflow(a,s-1),onOverflow:a=>this.handleOverflow(a),visibleItemRenderer:(a,r)=>this.renderTag(a,r)}),o>0&&this.renderNTag(o,t.slice(t.length-o)))}renderOneLineTags(t,s){let{renderSelectedItem:o}=this.props;const{showRestTagsPopover:i,restTagsPopoverProps:a,maxTagCount:r}=this.props,{isFullTags:c}=this.state;let f;if(typeof o>"u"&&(o=e=>({isRenderInTag:!0,content:e.label})),i){const E=(c?t:t.slice(0,r)).map((_,R)=>this.getTagItem(_,R,o));f=De.createElement(h4,{tagList:E,maxTagCount:s,restCount:c?void 0:t.length-r,size:"large",mode:"custom",showPopover:i,popoverProps:a,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const E=t.slice(0,r).map((_,R)=>this.getTagItem(_,R,o));f=De.createElement(h4,{tagList:E,maxTagCount:s,restCount:t.length-r,size:"large",mode:"custom"})}return f}renderMultipleSelection(t,s){this.props;const{placeholder:o,maxTagCount:i,expandRestTagsOnClick:a,ellipsisTrigger:r}=this.props,{inputValue:c,isOpen:f}=this.state,e=[...t],E=Ar({[`${Na}-content-wrapper`]:!0,[`${Na}-content-wrapper-one-line`]:i&&!f,[`${Na}-content-wrapper-empty`]:!e.length}),_=Ar({[`${Na}-selection-text`]:!0,[`${Na}-selection-placeholder`]:!e.length,[`${Na}-selection-text-hide`]:e&&e.length}),R=o&&!c?De.createElement("span",{className:_},o):null,D=e.length>i?i:void 0,J=!i,re=r?this.renderCollapsedTags(e,D):this.renderOneLineTags(e,D),ie=J||a&&f?e.map((ae,de)=>this.renderTag(ae,de)):re;return De.createElement(De.Fragment,null,De.createElement("div",{className:E},e&&e.length?ie:R,s?this.renderInput():null))}onMouseEnter(t){this.foundation.handleMouseEnter(t)}onMouseLeave(t){this.foundation.handleMouseLeave(t)}onKeyPress(t){this.foundation.handleKeyPress(t)}handlePopoverVisibleChange(t){const{virtualize:s}=this.props,{selections:o}=this.state;if(t)if(s){let i=-1;if(o.forEach(a=>{const r=_s(a,"_scrollIndex");Lm(r)&&r>=0&&(i=i!==-1&&ithis.foundation.removeTag(Mn),onClear:this.onClear,disabled:s,triggerRender:re,placeholder:J,componentName:"Select",componentProps:Object.assign({},this.props)}):[De.createElement(lt.Fragment,{key:"prefix"},R||D?this.renderPrefix():null),De.createElement(lt.Fragment,{key:"selection"},De.createElement("div",{className:Ar(`${Na}-selection`)},o?this.renderMultipleSelection(Fe,fn):this.renderSingleSelection(Fe,fn))),De.createElement(lt.Fragment,{key:"clearicon"},zn?De.createElement("div",{className:Ar(`${Na}-clear`),onClick:this.onClear},gr):qn),De.createElement(lt.Fragment,{key:"suffix"},_?this.renderSuffix():null)],hr=s||fn&&Zt||fn&&o?-1:0;return De.createElement("div",Object.assign({role:"combobox","aria-disabled":s,"aria-expanded":Ge,"aria-controls":`${Na}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":Fe.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:tn,ref:Mn=>this.triggerRef.current=Mn,onClick:Mn=>this.foundation.handleClick(Mn),style:a,id:this.selectID,tabIndex:hr,"aria-activedescendant":Nt!==-1?`${this.selectID}-option-${Nt}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:Mn=>this.foundation.handleTriggerFocus(Mn),onBlur:Mn=>this.foundation.handleTriggerBlur(Mn),onKeyPress:this.onKeyPress},tt,this.getDataAttr(ye)),$n)}render(){const{direction:t}=this.context,s=t==="rtl"?"bottomRight":"bottomLeft",{children:o,position:i=s,zIndex:a,getPopupContainer:r,motion:c,autoAdjustOverflow:f,mouseLeaveDelay:e,mouseEnterDelay:E,spacing:_,stopPropagation:R,dropdownMargin:D}=this.props,{isOpen:J,optionKey:re}=this.state,ie=this.renderOptions(o),ae=this.renderSelection();return De.createElement(T0,{getPopupContainer:r,motion:c,margin:D,autoAdjustOverflow:f,mouseLeaveDelay:e,mouseEnterDelay:E,zIndex:a,ref:this.optionsRef,content:ie,visible:J,trigger:"custom",rePosKey:re,position:i,spacing:_,stopPropagation:R,disableArrowKeyDown:!0,onVisibleChange:de=>this.handlePopoverVisibleChange(de),afterClose:()=>this.foundation.handlePopoverClose()},ae)}};hS.contextType=K1;hS.Option=qT;hS.OptGroup=lJ;hS.propTypes={"aria-describedby":W.string,"aria-errormessage":W.string,"aria-invalid":W.bool,"aria-labelledby":W.string,"aria-required":W.bool,autoFocus:W.bool,autoClearSearchValue:W.bool,borderless:W.bool,children:W.node,clearIcon:W.node,defaultValue:W.oneOfType([W.string,W.number,W.array,W.object]),ellipsisTrigger:W.bool,value:W.oneOfType([W.string,W.number,W.array,W.object]),placeholder:W.node,onChange:W.func,multiple:W.bool,filter:W.oneOfType([W.func,W.bool]),max:W.number,maxTagCount:W.number,maxHeight:W.oneOfType([W.string,W.number]),style:W.object,className:W.string,size:W.oneOf(HR.SIZE_SET),disabled:W.bool,emptyContent:W.node,expandRestTagsOnClick:W.bool,onDropdownVisibleChange:W.func,zIndex:W.number,position:W.oneOf(HR.POSITION_SET),onSearch:W.func,getPopupContainer:W.func,dropdownClassName:W.string,dropdownStyle:W.object,dropdownMargin:W.oneOfType([W.number,W.object]),outerTopSlot:W.node,innerTopSlot:W.node,inputProps:W.object,outerBottomSlot:W.node,innerBottomSlot:W.node,optionList:W.array,dropdownMatchSelectWidth:W.bool,loading:W.bool,defaultOpen:W.bool,validateStatus:W.oneOf(HR.STATUS),defaultActiveFirstOption:W.bool,triggerRender:W.func,stopPropagation:W.bool,motion:W.bool,onChangeWithObject:W.bool,suffix:W.node,prefix:W.node,insetLabel:W.node,insetLabelId:W.string,showClear:W.bool,showArrow:W.bool,renderSelectedItem:W.func,allowCreate:W.bool,renderCreateItem:W.func,onMouseEnter:W.func,onMouseLeave:W.func,clickToHide:W.bool,onExceed:W.func,onCreate:W.func,remote:W.bool,onDeselect:W.func,onSelect:W.func,autoAdjustOverflow:W.bool,mouseEnterDelay:W.number,mouseLeaveDelay:W.number,spacing:W.oneOfType([W.number,W.object]),onBlur:W.func,onFocus:W.func,onClear:W.func,virtualize:W.object,renderOptionItem:W.func,onListScroll:W.func,arrowIcon:W.node,preventScroll:W.bool};hS.defaultProps={stopPropagation:!0,motion:!0,borderless:!1,zIndex:vy.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:os,onChangeWithObject:!1,onChange:os,onSearch:os,onMouseEnter:os,onMouseLeave:os,onDeselect:os,onSelect:os,onCreate:os,onExceed:os,onFocus:os,onBlur:os,onClear:os,onListScroll:os,maxHeight:iJ.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:De.createElement(AA,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1};const sy=hS;var wz=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);ir+1):[]},this.foundation=new d3e(this.adapter),this.renderDefaultPage=this.renderDefaultPage.bind(this),this.renderSmallPage=this.renderSmallPage.bind(this),Km(!!(t.showSizeChanger&&t.hideOnSinglePage),"[Semi Pagination] You should not use showSizeChanger and hideOnSinglePage in ths same time. At this time, hideOnSinglePage no longer takes effect, otherwise there may be a problem that the switch entry disappears")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPageList:t=>{const{pageList:s,restLeftPageList:o,restRightPageList:i}=t;this.setState({pageList:s,restLeftPageList:o,restRightPageList:i})},setDisabled:(t,s)=>{this.setState({prevDisabled:t,nextDisabled:s})},updateTotal:t=>this.setState({total:t}),updatePageSize:t=>this.setState({pageSize:t}),updateQuickJumpPage:t=>this.setState({quickJumpPage:t}),updateAllPageNumbers:t=>this.setState({allPageNumbers:t}),setCurrentPage:t=>{this.setState({currentPage:t})},registerKeyDownHandler:t=>{document.addEventListener("keydown",t)},unregisterKeyDownHandler:t=>{document.removeEventListener("keydown",t)},notifyPageChange:t=>{this.props.onPageChange(t)},notifyPageSizeChange:t=>{this.props.onPageSizeChange(t)},notifyChange:(t,s)=>{this.props.onChange(t,s)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(t){const s={currentPage:this.props.currentPage,total:this.props.total,pageSize:this.props.pageSize};let o=!1,i=!1;t.currentPage!==this.props.currentPage&&(o=!0),t.total!==this.props.total&&(o=!0,i=!0),t.pageSize!==this.props.pageSize&&(o=!0,i=!0),o&&this.foundation.updatePage(s.currentPage,s.total,s.pageSize),i&&this.foundation.updateAllPageNumbers(s.total,s.pageSize)}renderPrevBtn(){const{prevText:t,disabled:s}=this.props,{prevDisabled:o}=this.state,i=o||s,a=Ar({[`${ip}-item`]:!0,[`${ip}-prev`]:!0,[`${ip}-item-disabled`]:i});return De.createElement("li",{role:"button","aria-disabled":!!i,"aria-label":"Previous",onClick:r=>!i&&this.foundation.goPrev(r),className:a,"x-semi-prop":"prevText"},t||De.createElement(C9,{size:"large"}))}renderNextBtn(){const{nextText:t,disabled:s}=this.props,{nextDisabled:o}=this.state,i=o||s,a=Ar({[`${ip}-item`]:!0,[`${ip}-item-disabled`]:i,[`${ip}-next`]:!0});return De.createElement("li",{role:"button","aria-disabled":!!i,"aria-label":"Next",onClick:r=>!i&&this.foundation.goNext(r),className:a,"x-semi-prop":"nextText"},t||De.createElement(nS,{size:"large"}))}renderPageSizeSwitch(t){const{direction:s}=this.context,o=s==="rtl"?"bottomRight":"bottomLeft",{showSizeChanger:i,popoverPosition:a=o,disabled:r,popoverZIndex:c}=this.props,{pageSize:f}=this.state,e=Ar(`${ip}-switch`);if(!i)return null;const E=this.foundation.pageSizeInOpts(),_=t.pageSize,R=E.map(D=>De.createElement(w3e,{value:D,key:D},De.createElement("span",null,_.replace("${pageSize}",D.toString()))));return De.createElement("div",{className:e},De.createElement(sy,{"aria-label":"Page size selector",disabled:r,onChange:D=>this.foundation.changePageSize(D),value:f,key:f,position:a||"bottomRight",clickToHide:!0,zIndex:c,dropdownClassName:`${ip}-select-dropdown`},R))}renderQuickJump(t){const{showQuickJumper:s,disabled:o}=this.props,{quickJumpPage:i,total:a,pageSize:r}=this.state;if(!s)return null;const f=this.foundation._getTotalPageNumber(a,r)===1||o,e=Ar({[`${ip}-quickjump`]:!0,[`${ip}-quickjump-disabled`]:f});return De.createElement("div",{className:e},De.createElement("span",null,t.jumpTo),De.createElement(O3,{value:i,className:`${ip}-quickjump-input-number`,hideButtons:!0,disabled:f,onBlur:E=>this.foundation.handleQuickJumpBlur(),onEnterPress:E=>this.foundation.handleQuickJumpEnterPress(E.target.value),onChange:E=>this.foundation.handleQuickJumpNumberChange(E)}),De.createElement("span",null,t.page))}renderPageList(){const{pageList:t,currentPage:s,restLeftPageList:o,restRightPageList:i}=this.state,{popoverPosition:a,popoverZIndex:r,disabled:c}=this.props;return t.map((f,e)=>{const E=Ar(`${ip}-item`,{[`${ip}-item-active`]:s===f,[`${ip}-item-all-disabled`]:c,[`${ip}-item-all-disabled-active`]:s===f&&c}),_=De.createElement("li",{key:`${f}${e}`,onClick:()=>!c&&this.foundation.goPage(f,e),className:E,"aria-label":f==="..."?"More":`Page ${f}`,"aria-current":s===f?"page":!1},f);if(f==="..."&&!c){let R;return e<3?R=o:R=i,De.createElement(T0,{trigger:"hover",content:this.renderRestPageList(R),key:`${f}${e}`,position:a,zIndex:r},_)}return _})}renderRestPageList(t){const{direction:s}=this.context,o=Ar(`${ip}-rest-item`),i=t.length,a=f=>{const{index:e,style:E}=f,_=t[e];return De.createElement("div",{role:"listitem",key:`${_}${e}`,className:o,onClick:()=>this.foundation.goPage(_,e),style:E,"aria-label":`${_}`},_)},r=32,c=i>=5?r*5:r*i;return De.createElement(iZ,{className:`${ip}-rest-list`,itemData:t,itemSize:r,width:78,itemCount:i,height:c,style:{direction:s}},a)}renderSmallPageSelect(t){const s=this.state.allPageNumbers,o=this.renderRestPageList(s);return De.createElement(T0,{content:o},t)}renderSmallPage(t){const s=this.props,{className:o,style:i,hideOnSinglePage:a,hoverShowPageSelect:r,showSizeChanger:c,disabled:f}=s,e=wz(s,["className","style","hideOnSinglePage","hoverShowPageSelect","showSizeChanger","disabled"]),E=Ar(`${ip}-small`,ip,o,{[`${ip}-disabled`]:f}),{currentPage:_,total:R,pageSize:D}=this.state,J=Math.ceil(R/D);if(J<2&&a&&!c)return null;const re=Ar({[`${ip}-item`]:!0,[`${ip}-item-small`]:!0,[`${ip}-item-all-disabled`]:f}),ie=De.createElement("div",{className:re},_,"/",J," ");return De.createElement("div",Object.assign({className:E,style:i},this.getDataAttr(e)),this.renderPrevBtn(),r&&!f?this.renderSmallPageSelect(ie):ie,this.renderNextBtn(),this.renderQuickJump(t))}renderDefaultPage(t){const{total:s,pageSize:o}=this.state,i=this.props,{showTotal:a,className:r,style:c,hideOnSinglePage:f,showSizeChanger:e,disabled:E}=i,_=wz(i,["showTotal","className","style","hideOnSinglePage","showSizeChanger","disabled"]),R=Ar(r,`${ip}`,{[`${ip}-disabled`]:E}),D=`${ip}-total`;if(Math.ceil(s/o)<2&&f&&!e)return null;const re=Math.ceil(s/o),ie=t.total.replace("${total}",re.toString());return De.createElement("ul",Object.assign({className:R,style:c},this.getDataAttr(_)),a?De.createElement("span",{className:D},ie):null,this.renderPrevBtn(),this.renderPageList(),this.renderNextBtn(),this.renderPageSizeSwitch(t),this.renderQuickJump(t))}render(){const{size:t}=this.props;return De.createElement(dm,{componentName:"Pagination"},s=>t==="small"?this.renderSmallPage(s):this.renderDefaultPage(s))}}R3.contextType=K1;R3.propTypes={total:W.number,showTotal:W.bool,pageSize:W.number,pageSizeOpts:W.array,size:W.string,currentPage:W.number,defaultCurrentPage:W.number,onPageChange:W.func,onPageSizeChange:W.func,onChange:W.func,prevText:W.node,nextText:W.node,showSizeChanger:W.bool,popoverZIndex:W.number,popoverPosition:W.string,style:W.object,className:W.string,hideOnSinglePage:W.bool,hoverShowPageSelect:W.bool,showQuickJumper:W.bool,disabled:W.bool};R3.defaultProps={total:1,popoverZIndex:vy.DEFAULT_Z_INDEX,showTotal:!1,pageSize:null,pageSizeOpts:iD.PAGE_SIZE_OPTION,defaultCurrentPage:1,size:"default",onPageChange:os,onPageSizeChange:os,onChange:os,showSizeChanger:!1,className:"",hideOnSinglePage:!1,showQuickJumper:!1,disabled:!1};const E3e={PREFIX:`${mo}-progress`},Kg={types:["line","circle"],DEFAULT_TYPE:"line",STROKE_DEFAULT:"var(--semi-color-success)",strokeLineCap:["square","round"],DEFAULT_LINECAP:"round",sizes:["default","small","large"],DEFAULT_SIZE:"default",directions:["vertical","horizontal"],DEFAULT_DIRECTION:"horizontal"};function L3e(n,t,s){try{const o=S3e(n,t,s);if(o.length!==0)return o}catch{return}}function S3e(n,t,s){if(n.sort((i,a)=>i.percent-a.percent),n[0].percent>t)return Kg.STROKE_DEFAULT;const o=n[n.length-1];if(o.percenta.percent)continue;const r=n[i-1];return s?x3e({startColor:XS(r.color),endColor:XS(a.color),size:a.percent-r.percent-1},t-r.percent-1):XS(r.color)}}function x3e(n,t){const{startColor:s,endColor:o,size:i}=n,a=s.split(""),r=o.split(""),c=[parseInt(`${a[1]}${a[2]}`,16),parseInt(`${r[1]}${r[2]}`,16)],f=[parseInt(`${a[3]}${a[4]}`,16),parseInt(`${r[3]}${r[4]}`,16)],e=[parseInt(`${a[5]}${a[6]}`,16),parseInt(`${r[5]}${r[6]}`,16)],E=[parseInt(`${a[7]}${a[8]}`,16),parseInt(`${r[7]}${r[8]}`,16)],_=(c[0]-c[1])/(i+1),R=(f[0]-f[1])/(i+1),D=(e[0]-e[1])/(i+1),J=(E[0]-E[1])/(i+1);function re(ae){const de=Math.round(c[0]-_*(ae+1)).toString(16),ye=Math.round(f[0]-R*(ae+1)).toString(16),Fe=Math.round(e[0]-D*(ae+1)).toString(16),Ge=`${ie(de)}${ie(ye)}${ie(Fe)}`,tt=Math.floor(J*(ae+1)+E[1]).toString(16);return t1.Hex(`#${Ge}`,tt)}function ie(ae){return ae.length===1?`0${ae}`:ae.length===0?"00":ae}if(typeof t>"u"){const ae=[s];for(let de=0;des+s).join("")),`#${n}${t||"ff"}`)},SemiDesignToken(n){if(typeof window>"u")return;const t=getComputedStyle(document.body).getPropertyValue(`--semi-${n}`);if(t==="")return;const s=`rgba(${t}, 1)`;return t1.RgbA(s)},HslA(n){const t=NE.hslA.exec(n),s=parseInt(t[2]),o=parseInt(t[3])/100,i=parseInt(t[4])/100,a=t[5],r=(1-Math.abs(2*i-1))*o,c=r*(1-Math.abs(s/60%2-1)),f=i-r/2;let e=0,E=0,_=0;return 0<=s&&s<60?(e=r,E=c,_=0):60<=s&&s<120?(e=c,E=r,_=0):120<=s&&s<180?(e=0,E=r,_=c):180<=s&&s<240?(e=0,E=c,_=r):240<=s&&s<300?(e=c,E=0,_=r):300<=s&&s<360&&(e=r,E=0,_=c),e=Math.round((e+f)*255).toString(16),E=Math.round((E+f)*255).toString(16),_=Math.round((_+f)*255).toString(16),t1.utils.pAL(e,E,_,a)},RgbA(n){const t=NE.rgbA.exec(n),s=parseInt(t[2],10).toString(16),o=parseInt(t[3],10).toString(16),i=parseInt(t[4],10).toString(16),a=t[5];return t1.utils.pAL(s,o,i,a)},utils:{pAL(n,t,s,o){return n.length==1&&(n="0"+n),t.length==1&&(t="0"+t),s.length==1&&(s="0"+s),typeof o<"u"?(o=Math.round(parseInt(o)*255).toString(16),o.length==1&&(o="0"+o),"#"+n+t+s+o):"#"+n+t+s}}},NE={hex:/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,hslA:/(hsl)a?\(\s*?(\d+),?\s*?(\d+)%,?\s*?(\d+)%,?\s*?\/?(\s*?[\d.]+)?\s*?\)/,rgbA:/(rgb)a?\(\s*?(\d+),?\s*?(\d+),?\s*?(\d+),?\s*?\/?(\s*?[\d.]+)?\s*?\)/,semiDesignTokens:/(\w+)?-?(\w+)-?(\d)?/},Ez={ALONG:["black","white"],SEQUENCE:["amber","blue","cyan","green","grey","indigo","light-blue","light-green","lime","orange","pink","purple","red","teal","violet","yellow"]};var Lz=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{if(this._mounted===!1)return;const o=parseInt(s.value);this.setState({percentNumber:o})}),this.animation.on("rest",()=>{this._mounted!==!1&&this.setState({percentNumber:this.props.percent})}),this.animation.start()}}componentWillUnmount(){this.animation&&this.animation.destroy(),this._mounted=!1}renderCircleProgress(){const t=this.props,{strokeLinecap:s,style:o,className:i,strokeWidth:a,format:r,size:c,stroke:f,strokeGradient:e,showInfo:E,percent:_,orbitStroke:R,id:D}=t,J=Lz(t,["strokeLinecap","style","className","strokeWidth","format","size","stroke","strokeGradient","showInfo","percent","orbitStroke","id"]),re=this.props["aria-label"],ie=this.props["aria-labelledby"],ae=this.props["aria-valuetext"],{percentNumber:de}=this.state,ye={wrapper:Ar(`${A1}-circle`,i),svg:Ar(`${A1}-circle-ring`),circle:Ar(`${A1}-circle-ring-inner`)},Fe=this.calcPercent(_),Ge=this.calcPercent(de);let tt;this.props.width?tt=this.props.width:c===Kg.DEFAULT_SIZE?tt=72:tt=24;const ht=this.selectStroke(f,_,e),yt=tt/2,Ft=tt/2,Zt=(tt-a)/2,Nt=Zt*2*Math.PI,kt=(1-Fe/100)*Nt,fn=`${Nt} ${Nt}`,tn=r(Ge);return De.createElement("div",Object.assign({id:D,className:ye.wrapper,style:o,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Ge,"aria-labelledby":ie,"aria-label":re,"aria-valuetext":ae},H1(J)),De.createElement("svg",{key:c,className:ye.svg,height:tt,width:tt,"aria-hidden":!0},De.createElement("circle",{strokeDashoffset:0,strokeWidth:a,strokeDasharray:fn,strokeLinecap:s,fill:"transparent",stroke:R,r:Zt,cx:Ft,cy:yt,"aria-hidden":!0}),De.createElement("circle",{className:ye.circle,strokeDashoffset:kt,strokeWidth:a,strokeDasharray:fn,strokeLinecap:s,fill:"transparent",stroke:ht,r:Zt,cx:Ft,cy:yt,"aria-hidden":!0})),E&&c!=="small"?De.createElement("span",{className:`${A1}-circle-text`},tn):null)}calcPercent(t){let s;return t>100?s=100:t<0?s=0:s=t,s}selectStroke(t,s,o){if(typeof t=="string")return t;const i=L3e(t,s,o);return typeof i<"u"?i:Kg.STROKE_DEFAULT}renderLineProgress(){const t=this.props,{className:s,style:o,stroke:i,strokeGradient:a,direction:r,format:c,showInfo:f,size:e,percent:E,orbitStroke:_,id:R}=t,D=Lz(t,["className","style","stroke","strokeGradient","direction","format","showInfo","size","percent","orbitStroke","id"]),J=this.props["aria-label"],re=this.props["aria-labelledby"],ie=this.props["aria-valuetext"],{percentNumber:ae}=this.state,de=Ar(A1,s,{[`${A1}-horizontal`]:r===Kg.DEFAULT_DIRECTION,[`${A1}-vertical`]:r!==Kg.DEFAULT_DIRECTION,[`${A1}-large`]:e==="large"}),ye=Ar({[`${A1}-track`]:!0}),Fe=Ar(`${A1}-track-inner`),Ge=this.calcPercent(E),tt=this.calcPercent(ae),yt={background:this.selectStroke(i,E,a)};r===Kg.DEFAULT_DIRECTION?yt.width=`${Ge}%`:yt.height=`${Ge}%`;const Ft=c(tt);return De.createElement("div",Object.assign({id:R,className:de,style:o,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Ge,"aria-labelledby":re,"aria-label":J,"aria-valuetext":ie},H1(D)),De.createElement("div",{className:ye,style:_?{backgroundColor:_}:{},"aria-hidden":!0},De.createElement("div",{className:Fe,style:yt,"aria-hidden":!0})),f?De.createElement("div",{className:`${A1}-line-text`},Ft):null)}render(){const{type:t}=this.props;return t==="line"?this.renderLineProgress():this.renderCircleProgress()}}uD.propTypes={"aria-label":W.string,"aria-labelledby":W.string,"aria-valuetext":W.string,className:W.string,direction:W.oneOf(Kg.directions),format:W.oneOfType([W.func,W.node]),id:W.string,motion:W.oneOfType([W.bool,W.func,W.object]),orbitStroke:W.string,percent:W.number,scale:W.number,showInfo:W.bool,size:W.oneOf(Kg.sizes),stroke:W.oneOfType([W.string,W.arrayOf(W.shape({percent:W.number,color:W.string}))]),strokeGradient:W.bool,strokeLinecap:W.oneOf(Kg.strokeLineCap),strokeWidth:W.number,style:W.object,type:W.oneOf(Kg.types),width:W.number};uD.defaultProps={className:"",direction:Kg.DEFAULT_DIRECTION,format:n=>`${n}%`,motion:!0,orbitStroke:"var(--semi-color-fill-0)",percent:0,showInfo:!1,size:Kg.DEFAULT_SIZE,stroke:Kg.STROKE_DEFAULT,strokeGradient:!1,strokeLinecap:Kg.DEFAULT_LINECAP,strokeWidth:4,style:{},type:Kg.DEFAULT_TYPE};const Sz=uD,uJ={PREFIX:`${mo}-radio`,INNER:`${mo}-radio-inner`,TEXT:`${mo}-radio-text`,INPUT:`${mo}-radio-input`,CHECKED:`${mo}-radio-checked`,DISABLED:`${mo}-radio-disabled`,BUTTON:`${mo}-radio-button`},A3e={PREFIX:`${mo}-radioGroup`,INNER:`${mo}-radioGroup-inner`,TEXT:`${mo}-radioGroup-text`,INPUT:`${mo}-radioGroup-input`,CHECKED:`${mo}-radioGroup-checked`,DISABLED:`${mo}-radioGroup-disabled`},X0={DIRECTION_SET:["horizontal","vertical"],DEFAULT_DIRECTION:"horizontal",MODE:["advanced",""],TYPE_DEFAULT:"default",TYPE_BUTTON:"button",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",BUTTON_SIZE:["middle","small","large"]};class _3e extends fc{constructor(t){super(Object.assign({},t))}init(){const t=this._getDisplayValue();this._setValue(t)}_getDisplayValue(){const{value:t,defaultValue:s}=this.getProps();let o;return"value"in this.getProps()?o=t:"defaultValue"in this.getProps()&&(o=s),o}handleChange(t){const s=this.getProp("mode"),o=this.getState("value"),{checked:i,value:a}=t.target,r=this._adapter.isInProps("value"),c=Object.assign(Object.assign({},t),{target:Object.assign(Object.assign({},t.target),{value:a})});s==="advanced"&&!i&&(c.target.value=void 0),r||(s==="advanced"&&!i?this._setValue(void 0):this._setValue(a)),(s==="advanced"||o!==a)&&this._adapter.notifyChange(c)}handlePropValueChange(t){this._setValue(t)}_setValue(t){this._adapter.setValue(t)}destroy(){}}class T3e extends fc{constructor(){super(...arguments),this.handleFocusVisible=t=>{const{target:s}=t;try{s.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{Km(!0,"Warning: [Semi Radio] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{children:t,extra:s,extraId:o,addonId:i}=this._adapter.getProps();t&&!i&&this._adapter.setAddonId(),s&&!o&&this._adapter.setExtraId()}setHover(t){this._adapter.setHover(t)}setChecked(t){this._adapter.setChecked(t)}}class N3e extends fc{constructor(t){super(Object.assign({},t))}init(){const t=this._adapter.getProp("checked"),s=this._adapter.getProp("defaultChecked");this.setChecked(t||s)}setChecked(t){this._adapter.setNativeControlChecked(t)}getChecked(){return this._adapter.getProp("checked")}handleChange(t){const s="checked"in this.getProps(),{checked:o}=t.target,i=()=>{t.stopPropagation()},a=()=>{t.preventDefault()},r={target:Object.assign(Object.assign({},this.getProps()),{checked:o}),stopPropagation:i,preventDefault:a};s?this._adapter.notifyChange(r):(this.setChecked(o),this._adapter.notifyChange(r))}destroy(){}}const O3e=De.createContext(null),cD=O3e;class P3 extends Ml{constructor(t){super(t),this.state={checked:!1},this.foundation=new N3e(this.adapter),this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:t=>{this.setState({checked:t})},notifyChange:t=>{this.props.onChange(t)}})}componentDidMount(){this.foundation.init()}componentDidUpdate(t){t.checked!==this.props.checked&&this.foundation.setChecked(this.props.checked)}componentWillUnmount(){this.foundation.destroy()}blur(){this.inputEntity.blur()}focus(){const{preventScroll:t}=this.props;this.inputEntity.focus({preventScroll:t})}onChange(t){this.foundation.handleChange(t)}render(){const{disabled:t,mode:s,autoFocus:o,name:i,isButtonRadio:a,isPureCardRadioGroup:r,addonId:c,extraId:f,"aria-label":e,focusInner:E,onInputFocus:_,onInputBlur:R}=this.props,{checked:D}=this.state,J=this.props.prefixCls||uJ.PREFIX,re=Ar({[`${J}-inner`]:!0,[`${J}-inner-checked`]:!!D,[`${J}-inner-buttonRadio`]:a,[`${J}-inner-pureCardRadio`]:r}),ie=Ar({[`${J}-focus`]:E,[`${J}-focus-border`]:E&&!D,[`${J}-inner-display`]:!a});return De.createElement("span",{className:re},De.createElement("input",{ref:ae=>{this.inputEntity=ae},autoFocus:o,type:s==="advanced"?"checkbox":"radio",checked:!!D,disabled:t,onChange:this.onChange,name:i,"aria-label":e,"aria-labelledby":c,"aria-describedby":f,onFocus:_,onBlur:R}),De.createElement("span",{className:ie},D?De.createElement(FLe,null):null))}}P3.contextType=cD;P3.propTypes={checked:W.bool,disabled:W.bool,isButtonRadio:W.bool,onChange:W.func,mode:W.oneOf(["advanced",""]),"aria-label":W.string,focusInner:W.bool,onInputFocus:W.func,onInputBlur:W.func,preventScroll:W.bool};P3.defaultProps={onChange:os,isButtonRadio:!1};const I3e=P3;var R3e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{const{onChange:o}=this.props;if(this.isInGroup()){const{radioGroup:i}=this.context;i.onChange&&i.onChange(s)}!("checked"in this.props)&&this.foundation.setChecked(s.target.checked),o&&o(s)},this.handleMouseEnter=s=>{this.props.onMouseEnter(s),this.foundation.setHover(!0)},this.handleMouseLeave=s=>{this.props.onMouseLeave(s),this.foundation.setHover(!1)},this.handleFocusVisible=s=>{this.foundation.handleFocusVisible(s)},this.handleBlur=s=>{this.foundation.handleBlur()},this.state={hover:!1,addonId:t.addonId,extraId:t.extraId,checked:t.checked||t.defaultChecked||!1},this.foundation=new T3e(this.adapter),this.radioEntity=null}componentDidUpdate(t){this.props.checked!==t.checked&&(Hm(this.props.checked)?this.foundation.setChecked(!1):B9(this.props.checked)&&this.foundation.setChecked(this.props.checked))}get adapter(){return Object.assign(Object.assign({},super.adapter),{setHover:t=>{this.setState({hover:t})},setAddonId:()=>{this.setState({addonId:UC({prefix:"addon"})})},setChecked:t=>{this.setState({checked:t})},setExtraId:()=>{this.setState({extraId:UC({prefix:"extra"})})},setFocusVisible:t=>{this.setState({focusVisible:t})}})}isInGroup(){return this.context&&this.context.radioGroup}focus(){this.radioEntity.focus()}blur(){this.radioEntity.blur()}render(){const t=this.props,{addonClassName:s,addonStyle:o,disabled:i,style:a,className:r,prefixCls:c,displayMode:f,children:e,extra:E,mode:_,type:R,value:D,name:J}=t,re=R3e(t,["addonClassName","addonStyle","disabled","style","className","prefixCls","displayMode","children","extra","mode","type","value","name"]);let ie,ae,de,ye,Fe,Ge,tt,ht,yt;const{hover:Ft,addonId:Zt,extraId:Nt,focusVisible:kt,checked:fn}=this.state,tn={checked:fn,disabled:i};this.isInGroup()?(ie=this.context.radioGroup.value===D,ae=i||this.context.radioGroup.disabled,de=this.context.mode,ye=this.context.radioGroup.isButtonRadio,Fe=this.context.radioGroup.isCardRadio,Ge=this.context.radioGroup.isPureCardRadio,ht=this.context.radioGroup.buttonSize,yt=c||this.context.radioGroup.prefixCls,tn.checked=ie,tn.disabled=ae):(ie=fn,ae=i,de=_,tt=R==="button",yt=c,ye=R===X0.TYPE_BUTTON,Ge=R===X0.TYPE_PURECARD,Fe=R===X0.TYPE_CARD||Ge);const zn=typeof ye>"u"?tt:ye,qn=yt||uJ.PREFIX,gr=Fe||Ge||zn,$n=Ar(qn,{[`${qn}-disabled`]:ae,[`${qn}-checked`]:ie,[`${qn}-${f}`]:!!f,[`${qn}-buttonRadioComponent`]:tt,[`${qn}-buttonRadioGroup`]:ye,[`${qn}-buttonRadioGroup-${ht}`]:ye&&ht,[`${qn}-cardRadioGroup`]:Fe,[`${qn}-cardRadioGroup_disabled`]:ae&&Fe,[`${qn}-cardRadioGroup_checked`]:Fe&&ie&&!ae,[`${qn}-cardRadioGroup_checked_disabled`]:Fe&&ie&&ae,[`${qn}-cardRadioGroup_hover`]:Fe&&!ie&&Ft&&!ae,[r]:!!r,[`${qn}-focus`]:kt&&(Fe||Ge)}),hr=this.isInGroup()&&this.context.radioGroup.name,Mn=Ar({[`${qn}-addon`]:!zn,[`${qn}-addon-buttonRadio`]:zn,[`${qn}-addon-buttonRadio-checked`]:zn&&ie,[`${qn}-addon-buttonRadio-disabled`]:zn&&ae,[`${qn}-addon-buttonRadio-hover`]:zn&&!ie&&!ae&&Ft,[`${qn}-addon-buttonRadio-${ht}`]:zn&&ht,[`${qn}-focus`]:kt&&zn},s),dr=()=>!e&&!E?null:De.createElement("div",{className:Ar([`${qn}-content`,{[`${qn}-isCardRadioGroup_content`]:Fe}])},e?De.createElement("span",{className:Mn,style:o,id:Zt,"x-semi-prop":"children"},e):null,E&&!zn?De.createElement("div",{className:`${qn}-extra`,id:Nt,"x-semi-prop":"extra"},E):null);return De.createElement("label",Object.assign({style:a,className:$n,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.getDataAttr(re)),De.createElement(I3e,Object.assign({},this.props,tn,{mode:de,name:J??hr,isButtonRadio:zn,isPureCardRadioGroup:Ge,onChange:this.onChange,ref:Rt=>{this.radioEntity=Rt},addonId:e&&Zt,extraId:E&&Nt,focusInner:kt&&!gr,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),dr())}};zA.contextType=cD;zA.propTypes={autoFocus:W.bool,checked:W.bool,defaultChecked:W.bool,value:W.any,style:W.object,className:W.string,disabled:W.bool,prefixCls:W.string,displayMode:W.oneOf(["vertical",""]),onChange:W.func,onMouseEnter:W.func,onMouseLeave:W.func,mode:W.oneOf(X0.MODE),extra:W.node,addonStyle:W.object,addonClassName:W.string,type:W.oneOf([X0.TYPE_DEFAULT,X0.TYPE_BUTTON,X0.TYPE_CARD,X0.TYPE_PURECARD]),"aria-label":W.string,preventScroll:W.bool};zA.defaultProps={autoFocus:!1,defaultChecked:!1,value:void 0,style:void 0,onMouseEnter:os,onMouseLeave:os,mode:"",type:"default"};zA.elementType="Radio";const p4=zA;var P3e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{this.foundation.handleChange(s)},this.getFormatName=()=>this.props.name||"default",this.state={value:t.value||t.defaultValue},this.foundation=new _3e(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(t){typeof t.value=="number"&&isNaN(t.value)&&typeof this.props.value=="number"&&isNaN(this.props.value)||t.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:t=>{this.setState({value:t})},getProps:()=>this.props,isInProps:t=>t in this.props,notifyChange:t=>{this.props.onChange&&this.props.onChange(t)}})}render(){const t=this.props,{children:s,options:o,mode:i,prefixCls:a,className:r,style:c,direction:f,type:e,buttonSize:E,id:_}=t,R=P3e(t,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),D=e===X0.TYPE_BUTTON,J=e===X0.TYPE_PURECARD,re=e===X0.TYPE_CARD||J,ie=e===X0.TYPE_DEFAULT,ae=a||A3e.PREFIX,de=Ar(r,{[ae]:!0,[`${ae}-wrapper`]:!0,[`${ae}-${f}`]:f&&!D,[`${ae}-${f}-default`]:f&&ie,[`${ae}-${f}-card`]:f&&re,[`${ae}-buttonRadio`]:D}),ye=this.state.value;let Fe;return o?Fe=(o||[]).map((Ge,tt)=>typeof Ge=="string"?De.createElement(p4,{key:tt,disabled:this.props.disabled,value:Ge},Ge):De.createElement(p4,{key:tt,disabled:Ge.disabled||this.props.disabled,value:Ge.value,extra:Ge.extra,className:Ge.className,style:Ge.style},Ge.label)):s&&(Fe=De.Children.map(s,(Ge,tt)=>De.isValidElement(Ge)?De.cloneElement(Ge,{key:tt}):null)),De.createElement("div",Object.assign({className:de,style:c,id:_,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(R)),De.createElement(cD.Provider,{value:{radioGroup:{onChange:this.onChange,value:ye,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:D,isCardRadio:re,isPureCardRadio:J,buttonSize:E,prefixCls:a},mode:i}},Fe))}}dD.propTypes={defaultValue:W.any,disabled:W.bool,name:W.string,options:W.array,buttonSize:W.oneOf(X0.BUTTON_SIZE),type:W.oneOf([X0.TYPE_DEFAULT,X0.TYPE_BUTTON,X0.TYPE_CARD,X0.TYPE_PURECARD]),value:W.any,onChange:W.func,children:W.node,prefixCls:W.string,className:W.string,style:W.object,direction:W.oneOf(X0.DIRECTION_SET),mode:W.oneOf(X0.MODE),"aria-label":W.string,"aria-describedby":W.string,"aria-errormessage":W.string,"aria-invalid":W.bool,"aria-labelledby":W.string,"aria-required":W.bool,id:W.string};dD.defaultProps={disabled:!1,onChange:os,direction:X0.DEFAULT_DIRECTION,mode:"",type:X0.TYPE_DEFAULT,buttonSize:"middle"};const m4=dD;class cJ extends p4{}cJ.Group=m4;const cC=cJ,dJ={PREFIX:`${mo}-sidesheet`,DIALOG:`${mo}-modal`},DP={PLACEMENT:["top","right","bottom","left"],SIZE:["small","medium","large"],WIDTH:{small:448,medium:684,large:920},HEIGHT:448};var xz=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{t.target===t.currentTarget&&this.close(t)},this.close=t=>{const{onClose:s}=this.props;s&&s(t)}}componentDidMount(){this.sideSheetId=`sidesheet-${$3e++}`}componentWillUnmount(){clearTimeout(this.timeoutId)}getMaskElement(){var t;const{mask:s,maskStyle:o,maskClosable:i}=this.props;return s?De.createElement("div",Object.assign({"aria-hidden":!0,key:"mask",className:Ar(`${Xv}-mask`,(t=this.props.maskClassName)!==null&&t!==void 0?t:""),style:o,onClick:i?this.onMaskClick:null},this.props.maskExtraProps)):null}renderHeader(){const{title:t,closable:s,headerStyle:o,closeIcon:i}=this.props;let a,r;if(t&&(a=De.createElement("div",{className:`${Xv}-title`,"x-semi-prop":"title"},this.props.title)),s){const c=i||De.createElement(sw,null);r=De.createElement(oS,{className:`${Xv}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:c,theme:"borderless",size:"small"})}return De.createElement("div",{className:`${Xv}-header`,role:"heading","aria-level":1,style:Object.assign({},o)},a,r)}getDialogElement(){var t;const s=xz(this.props,[]),o={};s.width&&(o.width=s.width,s.mask||(o.width="100%")),s.height&&(o.height=s.height);const i=this.renderHeader();return De.createElement("div",Object.assign({key:"dialog-element",role:"dialog",tabIndex:-1,className:Ar(`${Xv}-inner`,`${Xv}-inner-wrap`,(t=this.props.dialogClassName)!==null&&t!==void 0?t:"",`${Xv}-size-${s.size}`),style:Object.assign(Object.assign({},s.style),o)},this.props.wrapperExtraProps),De.createElement("div",{className:`${Xv}-content`},i,De.createElement("div",{className:`${Xv}-body`,style:s.bodyStyle,"x-semi-prop":"children"},s.children),s.footer?De.createElement("div",{className:`${Xv}-footer`,"x-semi-prop":"footer"},s.footer):null))}render(){const t=this.props,{mask:s,className:o,width:i,onClose:a,maskStyle:r,maskClosable:c,maskClassName:f,title:e,closable:E,headerStyle:_,height:R,style:D,size:J,bodyStyle:re,dialogClassName:ie,children:ae,footer:de,maskExtraProps:ye,wrapperExtraProps:Fe}=t,Ge=xz(t,["mask","className","width","onClose","maskStyle","maskClosable","maskClassName","title","closable","headerStyle","height","style","size","bodyStyle","dialogClassName","children","footer","maskExtraProps","wrapperExtraProps"]),tt=Ar(o,{[`${Xv}-fixed`]:!s,[`${Xv}-size-${this.props.size}`]:!s}),ht={};!s&&i&&(ht.width=i);const yt=H1(Ge);return De.createElement("div",Object.assign({className:tt,style:ht},yt),this.getMaskElement(),this.getDialogElement())}}fD.propTypes={onClose:W.func,closeIcon:W.node};fD.defaultProps={onClose:os};class hD extends fc{constructor(t){super(Object.assign(Object.assign({},hD.defaultAdapter),t)),this.toggleDisplayNone=s=>{this._adapter.toggleDisplayNone(s)}}get defaultAdapter(){return{handleCancel:os,beforeShow:os,afterHide:os}}destroy(){this.afterHide()}handleCancel(t){this._adapter.notifyCancel(t)}beforeShow(){this.getProp("disableScroll")&&this._adapter.disabledBodyScroll(),this._adapter.setOnKeyDownListener()}afterHide(){this.getProp("disableScroll")&&this._adapter.enabledBodyScroll(),this._adapter.removeKeyDownListener()}handleKeyDown(t){const{closeOnEsc:s}=this.getProps();if(s&&t.keyCode===lm.ESC){t.stopPropagation(),this.handleCancel(t);return}}onVisibleChange(t){this._adapter.notifyVisibleChange(t)}}var k3e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{this.foundation.handleCancel(s)},this.handleKeyDown=s=>{this.foundation.handleKeyDown(s)},this.updateState=()=>{this.foundation.toggleDisplayNone(!this.props.visible)},this.state={displayNone:!this.props.visible},this.foundation=new hD(this.adapter),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{disabledBodyScroll:()=>{const{getPopupContainer:t}=this.props;this.bodyOverflow=document.body.style.overflow||"",!t&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:t}=this.props;!t&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:t=>{this.props.onCancel&&this.props.onCancel(t)},notifyVisibleChange:t=>{this.props.afterVisibleChange(t)},setOnKeyDownListener:()=>{window&&window.addEventListener("keydown",this.handleKeyDown)},removeKeyDownListener:()=>{window&&window.removeEventListener("keydown",this.handleKeyDown)},toggleDisplayNone:t=>{t!==this.state.displayNone&&this.setState({displayNone:t})}})}static getDerivedStateFromProps(t,s){const o={};return t.visible&&s.displayNone&&(o.displayNone=!1),!t.visible&&!t.motion&&!s.displayNone&&(o.displayNone=!0),o}componentDidMount(){this.scrollBarWidth=v9(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(t,s,o){!t.visible&&this.props.visible&&this.foundation.beforeShow(),t.visible&&!this.props.visible&&this.foundation.afterHide(),s.displayNone!==this.state.displayNone&&this.foundation.onVisibleChange(!this.state.displayNone)}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}renderContent(){const t=this.props,{placement:s,className:o,children:i,width:a,height:r,motion:c,visible:f,style:e,maskStyle:E,size:_,zIndex:R,getPopupContainer:D,keepDOM:J}=t,re=k3e(t,["placement","className","children","width","height","motion","visible","style","maskStyle","size","zIndex","getPopupContainer","keepDOM"]),{direction:ie}=this.context,ae=s==="left"||s==="right",de=s==="top"||s==="bottom",ye=de?r||D3e:"100%",Fe=Ar(Q1,o,{[`${Q1}-${s}`]:s,[`${Q1}-popup`]:D,[`${Q1}-horizontal`]:de,[`${Q1}-rtl`]:ie==="rtl",[`${Q1}-hidden`]:J&&this.state.displayNone}),Ge=Object.assign(Object.assign(Object.assign({},ae?a?{width:a}:{}:{width:"100%"}),re),{visible:f,motion:!1,size:_,className:Fe,height:ye,onClose:this.handleCancel}),tt=this.props.visible||this.props.keepDOM||this.props.motion&&!this.state.displayNone;return De.createElement(BC,{motion:this.props.motion,animationState:f?"enter":"leave",startClassName:f?`${Q1}-animation-mask_show`:`${Q1}-animation-mask_hide`,onAnimationEnd:this.updateState},ht=>{let{animationClassName:yt,animationEventsNeedBind:Ft}=ht;return De.createElement(BC,{motion:this.props.motion,animationState:f?"enter":"leave",startClassName:f?`${Q1}-animation-content_show_${this.props.placement}`:`${Q1}-animation-content_hide_${this.props.placement}`,onAnimationEnd:this.updateState},Zt=>{let{animationClassName:Nt,animationStyle:kt,animationEventsNeedBind:fn}=Zt;return tt?De.createElement(fD,Object.assign({},Ge,{maskExtraProps:Ft,wrapperExtraProps:fn,dialogClassName:Nt,maskClassName:yt,maskStyle:Object.assign({},E),style:Object.assign(Object.assign({},kt),e)}),i):De.createElement(De.Fragment,null)})})}render(){const{zIndex:t,getPopupContainer:s}=this.props;let o={zIndex:t};return s&&(o={zIndex:t,position:"static"}),De.createElement(QO,{getPopupContainer:s,style:o},this.renderContent())}}pS.contextType=K1;pS.propTypes={bodyStyle:W.object,headerStyle:W.object,children:W.node,className:W.string,closable:W.bool,disableScroll:W.bool,getPopupContainer:W.func,height:W.oneOfType([W.number,W.string]),mask:W.bool,maskClosable:W.bool,maskStyle:W.object,motion:W.oneOfType([W.bool,W.object,W.func]),onCancel:W.func,placement:W.oneOf(DP.PLACEMENT),size:W.oneOf(DP.SIZE),style:W.object,title:W.node,visible:W.bool,width:W.oneOfType([W.number,W.string]),zIndex:W.number,afterVisibleChange:W.func,closeOnEsc:W.bool,footer:W.node,keepDOM:W.bool,"aria-label":W.string};pS.defaultProps={visible:!1,motion:!0,mask:!0,placement:"right",closable:!0,footer:null,zIndex:1e3,maskClosable:!0,size:"small",disableScroll:!0,closeOnEsc:!1,afterVisibleChange:os,keepDOM:!1};const _v={PREFIX:`${mo}-slider`,DISABLED:`${mo}-slider-disabled`,VERTICAL:`${mo}-slider-vertical`,TRACK:`${mo}-slider-track`,DOTS:`${mo}-slider-dots`,MARKS:`${mo}-slider-marks`,HANDLE:`${mo}-slider-handle`},M3e=(n,t)=>(!globalThis.Touch||!(n instanceof Touch)||["stopPropagation","preventDefault"].forEach(o=>{let i=t[o];i&&(typeof i=="function"&&(i=function(){return t[o](...arguments)}),n[o]?Km(!0,`"The key ${o}" exist in Touch.`):n[o]=i)}),n),Az=M3e;class pD extends fc{constructor(t){var s;super(Object.assign(Object.assign({},pD.defaultAdapter),t)),s=this,this.getMinAndMaxPercent=o=>{const{range:i,min:a,max:r}=this._adapter.getProps(),c=i?(o[0]-a)/(r-a):(o-a)/(r-a),f=i?(o[1]-a)/(r-a):1;return{min:this._checkValidity(c),max:this._checkValidity(f)}},this._checkValidity=function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return o>a?a:o{const{focusPos:r,currentValue:c}=this._adapter.getStates(),f={min:!1,max:!1};let e;return i?e={min:i(a?this.outPutValue(c[0]):this.outPutValue(c)),max:a?i(this.outPutValue(c[1])):null}:e={min:a?this.outPutValue(c[0]):this.outPutValue(c),max:a?this.outPutValue(c[1]):null},o?(f.min=!0,f.max=!0):typeof o>"u"&&i&&(r==="min"?f.min=!0:r==="max"&&(f.max=!0)),{tipVisible:f,tipChildren:e}},this.valueFormatIsCorrect=o=>Array.isArray(o)?typeof o[0]=="number"&&typeof o[0]=="number":typeof o=="number",this.handleMousePos=(o,i)=>{const a=this._adapter.getParentRect(),r=this._adapter.getScrollParentVal(),c=a?a.left:0,f=a?a.top:0;return{x:o-c+r.scrollLeft,y:i-f+r.scrollTop}},this.getScrollParent=o=>{const i=o,a=/(auto|scroll)/,r=(e,E)=>window.getComputedStyle(e,null).getPropertyValue(E),c=e=>a.test(r(e,"overflow")+r(e,"overflow-y")+r(e,"overflow-x")),f=e=>!e||e===document.body||!(e instanceof Element)?document.body:c(e)?e:f(e.parentNode);return f(i)},this.checkMeetMinMax=o=>{const{vertical:i,verticalReverse:a,range:r}=this._adapter.getProps(),c=this._adapter.getState("currentValue");this.transValueToPos(c);const{sliderX:f,sliderY:e,sliderWidth:E,sliderHeight:_}=this._adapter.getSliderLengths();this._adapter.getStates();const R=i?_:E;let D;i&&a?D=e+R:D=i?e:f;let J;return i&&a?J=e:J=i?e+_:f+E,i&&a?o>=D?o=D:o<=J&&(o=J):o<=D?o=D:o>=J&&(o=J),o},this.transPosToValue=(o,i)=>{const a=this.checkMeetMinMax(o),{min:r,max:c,currentValue:f}=this._adapter.getStates(),{range:e,vertical:E,step:_,verticalReverse:R}=this._adapter.getProps(),{sliderX:D,sliderY:J,sliderWidth:re,sliderHeight:ie}=this._adapter.getSliderLengths(),ae=E?J:D,de=E?ie:re;let ye;E&&R?ye=(ae+de-a)/de*(c-r)+r:ye=(a-ae)/de*(c-r)+r;let Fe;return e?Fe=i?f[0]:f[1]:Fe=f,_!==1&&(ye=Math.round(ye/_)*_),e&&ye!==Fe?i?[ye,f[1]]:[f[0],ye]:!e&&ye!==Fe?ye:!1},this.transValueToPos=o=>{const{min:i,max:a}=this._adapter.getStates(),{vertical:r,range:c,verticalReverse:f}=this._adapter.getProps(),{sliderX:e,sliderY:E,sliderWidth:_,sliderHeight:R}=this._adapter.getSliderLengths(),D=r?E:e,J=r?R:_;return c?[(o[0]-i)*J/(a-i)+D,(o[1]-i)*J/(a-i)+D]:(o-i)*J/(a-i)+D},this.isMarkActive=o=>{const{min:i,max:a,range:r,included:c}=this._adapter.getProps(),f=this._adapter.getState("currentValue");return typeof(o/1)=="number"&&o>=i&&o<=a?r?(o>f[1]||o{const i=c=>{var f,e;return/^\d+(\.\d+)?$/.test(String(c))&&(e=(f=c.toString().split(".")[1])===null||f===void 0?void 0:f.length)!==null&&e!==void 0?e:0},a=this._adapter.getProp("step"),r=(()=>{const c=i(a),f=Math.pow(10,c);return e=>Math.round(e*f)/f})();return Array.isArray(o)?[r(o[0]),r(o[1])]:r(o)},this.handleDisabledChange=o=>{this._adapter.updateDisabled(o)},this.checkAndUpdateIsInRenderTreeState=()=>this._adapter.checkAndUpdateIsInRenderTreeState(),this.calculateOutputValue=(o,i)=>{const a=this.transPosToValue(o,i);if(a!==!1)return this.outPutValue(a)},this.handleValueChange=(o,i)=>{const{min:a,max:r}=this._adapter.getStates();let c=null;const f={};this.valueFormatIsCorrect(i)?(Array.isArray(o)&&Array.isArray(i)&&(i=[i[0]r?r:i[1]],c=Object.assign(f,{currentValue:i})),typeof o=="number"&&typeof i=="number"&&(i>r?i=r:i=i{this._adapter.onHandleDown(o);const a=this._adapter.getState("disabled"),{vertical:r}=this._adapter.getProps(),{dragging:c}=this._adapter.getOverallVars();if(a)return!1;this._adapter.setStateVal("isDrag",!0),this._adapter.setStateVal("chooseMovePos",i),i==="min"?this._adapter.setDragging([!0,c[1]]):this._adapter.setDragging([c[0],!0]);const f=this.handleMousePos(o.clientX,o.clientY);let e=r?f.y:f.x;if(!this._adapter.isEventFromHandle(o))this._dragOffset=0;else{const E=this._getHandleCenterPosition(r,o.target);this._dragOffset=e-E,e=E}return!0},this.onHandleMove=o=>{this._adapter.setEventDefault(o);const{disabled:i,chooseMovePos:a}=this._adapter.getStates(),{vertical:r}=this._adapter.getProps(),{dragging:c}=this._adapter.getOverallVars();if(i)return!1;this.onHandleEnter(a);const f=this.handleMousePos(o.clientX,o.clientY);let e=r?f.y:f.x;if(e=e-this._dragOffset,a==="min"&&c[0]||a==="max"&&c[1]){const E=this.calculateOutputValue(e,a==="min");if(E===void 0)return!1;this._adapter.notifyChange(E),this._adapter.onHandleMove(e,a==="min",void 0,!1,E)}return!0},this.onHandleTouchStart=(o,i)=>{const a=this._adapter.getMinHandleEl(),r=this._adapter.getMaxHandleEl();if(o.target===a||o.target===r){ig(o);const c=Az(o.touches[0],o);this.onHandleDown(c,i)}},this.onHandleTouchMove=o=>{const i=this._adapter.getMinHandleEl(),a=this._adapter.getMaxHandleEl();if(o.target===i||o.target===a){const r=Az(o.touches[0],o);this.onHandleMove(r)}},this.onHandleEnter=o=>{const{disabled:i,focusPos:a}=this._adapter.getStates();i||!a&&o!==a&&this._adapter.onHandleEnter(o)},this.onHandleLeave=()=>{!this._adapter.getState("disabled")&&this.getStates().focusPos===""&&this._adapter.onHandleLeave()},this.onHandleUp=o=>{this._adapter.onHandleUpBefore(o);const{disabled:i,chooseMovePos:a}=this._adapter.getStates(),{dragging:r}=this._adapter.getOverallVars();return i?!1:(a==="min"?this._adapter.setDragging([!1,r[1]]):this._adapter.setDragging([r[0],!1]),this._adapter.setStateVal("isDrag",!1),this._adapter.onHandleLeave(),this._adapter.onHandleUpAfter(),!0)},this._handleValueDecreaseWithKeyBoard=(o,i)=>{const{min:a,currentValue:r}=this.getStates(),{range:c}=this.getProps();if(i==="min")if(c){let f=r[0]-o;return f=f{const{max:a,currentValue:r}=this.getStates(),{range:c}=this.getProps();if(i==="min")if(c){let f=r[0]+o;return f=f>r[1]?r[1]:f,[f,r[1]]}else{let f=r+o;return f=f>a?a:f,f}else{let f=r[1]+o;return f=f>a?a:f,[r[0],f]}},this._handleHomeKey=o=>{const{min:i,currentValue:a}=this.getStates(),{range:r}=this.getProps();return o==="min"?r?[i,a[1]]:i:[a[0],a[0]]},this._handleEndKey=o=>{const{max:i,currentValue:a}=this.getStates(),{range:r}=this.getProps();return o==="min"?r?[a[1],a[1]]:i:[a[0],i]},this.handleKeyDown=(o,i)=>{const{min:a,max:r,currentValue:c}=this.getStates(),{step:f,range:e}=this.getProps();let E;switch(o.key){case"ArrowLeft":case"ArrowDown":E=this._handleValueDecreaseWithKeyBoard(f,i);break;case"ArrowRight":case"ArrowUp":E=this._handleValueIncreaseWithKeyBoard(f,i);break;case"PageUp":E=this._handleValueIncreaseWithKeyBoard(10*f,i);break;case"PageDown":E=this._handleValueDecreaseWithKeyBoard(10*f,i);break;case"Home":E=this._handleHomeKey(i);break;case"End":E=this._handleEndKey(i);break}if(["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","PageUp","PageDown","Home","End"].includes(o.key)){let _=!0;Array.isArray(c)?_=!(c[0]===E[0]&&c[1]===E[1]):_=c!==E,_&&(this._adapter.updateCurrentValue(E),this._adapter.notifyChange(E)),ig(o)}},this.onFocus=(o,i)=>{ig(o);const{target:a}=o;try{a.matches(":focus-visible")&&(i==="min"?this._adapter.setStateVal("firstDotFocusVisible",!0):this._adapter.setStateVal("secondDotFocusVisible",!0))}catch{Km(!0,"Warning: [Semi Slider] The current browser does not support the focus-visible")}},this.onBlur=(o,i)=>{const{firstDotFocusVisible:a,secondDotFocusVisible:r}=this.getStates();i==="min"?a&&this._adapter.setStateVal("firstDotFocusVisible",!1):r&&this._adapter.setStateVal("secondDotFocusVisible",!1)},this.handleWrapClick=o=>{const{disabled:i,isDrag:a}=this._adapter.getStates();if(a||i||this._adapter.isEventFromHandle(o))return;const{vertical:r}=this.getProps(),c=this.handleMousePos(o.clientX,o.clientY),f=r?c.y:c.x,e=this.checkWhichHandle(f),E=this.calculateOutputValue(f,e);E!==void 0&&(this._adapter.notifyChange(E),!this._isControlledComponent()&&this.setHandlePos(f,e,!0,E))},this.setHandlePos=function(o,i){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3?arguments[3]:void 0;s._adapter.onHandleMove(o,i,()=>s._adapter.onHandleUpAfter(),a,r)},this.checkWhichHandle=o=>{const{vertical:i,verticalReverse:a}=this.getProps(),{currentValue:r}=this._adapter.getStates(),c=this.transValueToPos(r);let f=!0;return Array.isArray(c)&&(o>c[1]||Math.abs(o-c[0])>Math.abs(o-c[1]))&&(f=!1),i&&a&&(f=!f),f},this.handleWrapperEnter=()=>{this._adapter.setStateVal("showBoundary",!0)},this.handleWrapperLeave=()=>{this._adapter.setStateVal("showBoundary",!1)}}init(){this._checkCurrentValue(),this._dragOffset=0}_checkCurrentValue(){const{currentValue:t,min:s,max:o}=this.getStates();let i;Array.isArray(t)?(i=[],i[0]=this._checkValidity(t[0],s,o),i[1]=this._checkValidity(t[1],s,o)):i=this._checkValidity(t,s,o),this._adapter.updateCurrentValue(i)}destroy(){this._adapter.unSubscribeEventListener()}_getHandleCenterPosition(t,s){const o=s.getBoundingClientRect(),{x:i,y:a}=this.handleMousePos(o.left+o.width*.5,o.top+o.height*.5);return t?a:i}}var j3e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{const{vertical:o,range:i,tooltipVisible:a,tipFormatter:r,"aria-label":c,"aria-labelledby":f,"aria-valuetext":e,getAriaValueText:E,disabled:_}=this.props,{chooseMovePos:R,isDrag:D,isInRenderTree:J,firstDotFocusVisible:re,secondDotFocusVisible:ie}=this.state,ae=o?"top":"left",de=this.foundation.getMinAndMaxPercent(this.state.currentValue),ye=de.min,Fe=de.max,{tipVisible:Ge,tipChildren:tt}=this.foundation.computeHandleVisibleVal(a&&J,r,i),ht=Ar(_v.HANDLE,{[`${_v.HANDLE}-clicked`]:R==="min"&&D}),yt=Ar(_v.HANDLE,{[`${_v.HANDLE}-clicked`]:R==="max"&&D}),{min:Ft,max:Zt,currentValue:Nt}=this.state,kt={"aria-label":c??(_?"Disabled Slider":void 0),"aria-labelledby":f,"aria-disabled":_};return o&&Object.assign(kt,{"aria-orientation":"vertical"}),i?De.createElement(De.Fragment,null,De.createElement(Ip,{content:tt.min,position:"top",trigger:"custom",rePosKey:ye,visible:J&&(Ge.min||re),className:`${_v.HANDLE}-tooltip`},De.createElement("span",Object.assign({ref:this.minHanleEl,className:ht,style:{[ae]:`${ye*100}%`,zIndex:R==="min"?2:1},onMouseDown:tn=>{this.foundation.onHandleDown(tn,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:tn=>{this.foundation.onHandleTouchStart(tn,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:tn=>{this.foundation.onHandleUp(tn)},onKeyUp:tn=>{this.foundation.onHandleUp(tn)},onTouchEnd:tn=>{this.foundation.onHandleUp(tn)},onKeyDown:tn=>{this.foundation.handleKeyDown(tn,"min")},onFocus:tn=>{this.foundation.onFocus(tn,"min")},onBlur:tn=>{this.foundation.onBlur(tn,"min")},role:"slider",tabIndex:_?-1:0},kt,{"aria-valuetext":E?E(Nt[0],0):e,"aria-valuenow":Nt[0],"aria-valuemax":Nt[1],"aria-valuemin":Ft}))),De.createElement(Ip,{content:tt.max,position:"top",trigger:"custom",rePosKey:Fe,visible:J&&(Ge.max||ie),className:`${_v.HANDLE}-tooltip`},De.createElement("span",Object.assign({ref:this.maxHanleEl,className:yt,style:{[ae]:`${Fe*100}%`,zIndex:R==="max"?2:1},onMouseDown:tn=>{this.foundation.onHandleDown(tn,"max")},onMouseEnter:()=>{this.foundation.onHandleEnter("max")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:tn=>{this.foundation.onHandleUp(tn)},onKeyUp:tn=>{this.foundation.onHandleUp(tn)},onTouchStart:tn=>{this.foundation.onHandleTouchStart(tn,"max")},onTouchEnd:tn=>{this.foundation.onHandleUp(tn)},onKeyDown:tn=>{this.foundation.handleKeyDown(tn,"max")},onFocus:tn=>{this.foundation.onFocus(tn,"max")},onBlur:tn=>{this.foundation.onBlur(tn,"max")},role:"slider",tabIndex:_?-1:0},kt,{"aria-valuetext":E?E(Nt[1],1):e,"aria-valuenow":Nt[1],"aria-valuemax":Zt,"aria-valuemin":Nt[0]})))):De.createElement(Ip,{content:tt.min,showArrow:this.props.showArrow,position:"top",trigger:"custom",rePosKey:ye,visible:J&&(Ge.min||re),className:`${_v.HANDLE}-tooltip`},De.createElement("span",Object.assign({onMouseOver:this.foundation.checkAndUpdateIsInRenderTreeState,ref:this.minHanleEl,className:ht,style:{[ae]:`${ye*100}%`,zIndex:R==="min"&&D?2:1},onMouseDown:tn=>{this.foundation.onHandleDown(tn,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:tn=>{this.foundation.onHandleTouchStart(tn,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:tn=>{this.foundation.onHandleUp(tn)},onKeyUp:tn=>{this.foundation.onHandleUp(tn)},onTouchEnd:tn=>{this.foundation.onHandleUp(tn)},onKeyDown:tn=>{this.foundation.handleKeyDown(tn,"min")},onFocus:tn=>{this.foundation.onFocus(tn,"min")},onBlur:tn=>{this.foundation.onBlur(tn,"min")},role:"slider","aria-valuetext":E?E(Nt,0):e,tabIndex:_?-1:0},kt,{"aria-valuenow":Nt,"aria-valuemax":Zt,"aria-valuemin":Ft})))},this.renderTrack=()=>{const{range:o,included:i,vertical:a}=this.props,r=this.foundation.getMinAndMaxPercent(this.state.currentValue),c=r.min,f=r.max;let e=a?{height:o?`${(f-c)*100}%`:`${c*100}%`,top:o?`${c*100}%`:0}:{width:o?`${(f-c)*100}%`:`${c*100}%`,left:o?`${c*100}%`:0};return e=i?e:{},De.createElement("div",{className:_v.TRACK,style:e,onClick:this.foundation.handleWrapClick})},this.renderStepDot=()=>{const{min:o,max:i,vertical:a,marks:r}=this.props,c=a?"top":"left";return r&&Object.keys(r).length>0?De.createElement("div",{className:_v.DOTS},Object.keys(r).map(e=>{const E=this.foundation.isMarkActive(Number(e)),_=Ar(`${Zv}-dot`,{[`${Zv}-dot-active`]:this.foundation.isMarkActive(Number(e))==="active"}),R=(Number(e)-o)/(i-o),D=De.createElement("span",{key:e,onClick:this.foundation.handleWrapClick,className:_,style:{[c]:`calc(${R*100}% - 2px)`}});return E?this.props.tooltipOnMark?De.createElement(Ip,{content:r[e]},D):D:null})):null},this.renderLabel=()=>{if(!this.props.showMarkLabel)return null;const{min:o,max:i,vertical:a,marks:r,verticalReverse:c}=this.props,f=a?"top":"left";return r&&Object.keys(r).length>0?De.createElement("div",{className:_v.MARKS+(a&&c?"-reverse":"")},Object.keys(r).map(E=>{const _=this.foundation.isMarkActive(Number(E)),R=(Number(E)-o)/(i-o);return _?De.createElement("span",{key:E,className:Ar(`${Zv}-mark${a&&c?"-reverse":""}`),style:{[f]:`${R*100}%`},onClick:this.foundation.handleWrapClick},r[E]):null})):null},this._getAriaValueText=(o,i)=>{const{getAriaValueText:a}=this.props;return a?a(o,i):o};let{value:s}=this.props;s||(s=this.props.defaultValue),this.state={currentValue:s||(this.props.range?[0,0]:0),min:this.props.min||0,max:this.props.max||0,focusPos:"",onChange:this.props.onChange,disabled:this.props.disabled||!1,chooseMovePos:"",isDrag:!1,clickValue:0,showBoundary:!1,isInRenderTree:!0,firstDotFocusVisible:!1,secondDotFocusVisible:!1},this.sliderEl=De.createRef(),this.minHanleEl=De.createRef(),this.maxHanleEl=De.createRef(),this.dragging=[!1,!1],this.foundation=new pD(this.adapter),this.eventListenerSet=new Set}get adapter(){var t=this;return Object.assign(Object.assign({},super.adapter),{getSliderLengths:()=>{if(this.sliderEl&&this.sliderEl.current){const s=this.sliderEl.current.getBoundingClientRect(),o={x:this.sliderEl.current.offsetLeft,y:this.sliderEl.current.offsetTop};return{sliderX:o.x,sliderY:o.y,sliderWidth:s.width,sliderHeight:s.height}}return{sliderX:0,sliderY:0,sliderWidth:0,sliderHeight:0}},getParentRect:()=>{const s=this.sliderEl&&this.sliderEl.current&&this.sliderEl.current.offsetParent;if(s)return s.getBoundingClientRect()},getScrollParentVal:()=>{const s=this.foundation.getScrollParent(this.sliderEl.current);return{scrollTop:s.scrollTop,scrollLeft:s.scrollLeft}},isEventFromHandle:s=>{const o=[this.minHanleEl,this.maxHanleEl];let i=!1;return o.forEach(a=>{if(!a)return;const r=a&&a.current,c=F1.findDOMNode(r);c&&c.contains(s.target)&&(i=!0)}),i},getOverallVars:()=>({dragging:this.dragging}),updateDisabled:s=>{this.setState({disabled:s})},transNewPropsToState(s){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:os;this.setState(s,o)},notifyChange:s=>this.props.onChange(s),setDragging:s=>{this.dragging=s},updateCurrentValue:s=>{const{currentValue:o}=this.state;s!==o&&this.setState({currentValue:s})},setOverallVars:(s,o)=>{this[s]=o},getMinHandleEl:()=>this.minHanleEl.current,getMaxHandleEl:()=>this.maxHanleEl.current,onHandleDown:s=>{this._addEventListener(document.body,"mousemove",this.foundation.onHandleMove,!1),this._addEventListener(window,"mouseup",this.foundation.onHandleUp,!1),this._addEventListener(document.body,"touchmove",this.foundation.onHandleTouchMove,!1)},onHandleMove:function(s,o){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:os,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,r=arguments.length>4?arguments[4]:void 0;if(!t.foundation.checkAndUpdateIsInRenderTreeState())return;const{value:f}=t.props;let e=r;if(e===void 0){const _=t.foundation.transPosToValue(s,o);if(_===!1)return;e=t.foundation.outPutValue(_)}const{currentValue:E}=t.state;if(!Mp(t.foundation.outPutValue(E),e)){if(!a&&t.foundation.valueFormatIsCorrect(f))return!1;t.setState({currentValue:e},i)}},setEventDefault:s=>{s.stopPropagation(),s.preventDefault()},setStateVal:(s,o)=>{this.setState({[s]:o})},checkAndUpdateIsInRenderTreeState:()=>{const s=F3e(this.sliderEl.current);return s!==this.state.isInRenderTree&&this.setState({isInRenderTree:s}),s},onHandleEnter:s=>{this.setState({focusPos:s})},onHandleLeave:()=>{this.setState({focusPos:""})},onHandleUpBefore:s=>{var o,i;(i=(o=this.props).onMouseUp)===null||i===void 0||i.call(o,s),s.stopPropagation(),s.preventDefault(),document.body.removeEventListener("mousemove",this.foundation.onHandleMove,!1),document.body.removeEventListener("mouseup",this.foundation.onHandleUp,!1)},onHandleUpAfter:()=>{const{currentValue:s}=this.state,o=this.foundation.outPutValue(s);this.props.onAfterChange(o)},unSubscribeEventListener:()=>{Array.from(this.eventListenerSet).forEach(s=>s())}})}componentDidMount(){this.foundation.init()}componentDidUpdate(t,s){const o=!Mp(this.props.value,t.value);if(this.props.disabled!==t.disabled&&this.foundation.handleDisabledChange(this.props.disabled),o){const a=this.props.value,r=this.state.currentValue;this.foundation.handleValueChange(r,a),this.props.onAfterChange(this.props.value)}}componentWillUnmount(){this.foundation.destroy()}render(){const{disabled:t,currentValue:s,min:o,max:i}=this.state,a=this.props,{vertical:r,verticalReverse:c,style:f,railStyle:e,range:E,className:_}=a,R=j3e(a,["vertical","verticalReverse","style","railStyle","range","className"]),D=Ar(`${Zv}-wrapper`,{[`${Zv}-disabled`]:t,[`${_v.VERTICAL}-wrapper`]:r,[`${Zv}-reverse`]:r&&c},_),J=Ar(`${Zv}-boundary`,{[`${Zv}-boundary-show`]:this.props.showBoundary&&this.state.showBoundary}),re=Ar({[`${Zv}`]:!r,[_v.VERTICAL]:r}),ie=E?`Range: ${this._getAriaValueText(s[0],0)} to ${this._getAriaValueText(s[1],1)}`:void 0,ae=De.createElement("div",Object.assign({className:D,style:f,ref:this.sliderEl,"aria-label":ie,onMouseEnter:()=>this.foundation.handleWrapperEnter(),onMouseLeave:()=>this.foundation.handleWrapperLeave()},this.getDataAttr(R)),De.createElement("div",{className:`${Zv}-rail`,onClick:this.foundation.handleWrapClick,style:e}),this.renderTrack(),this.renderStepDot(),De.createElement("div",null,this.renderHandle()),this.renderLabel(),De.createElement("div",{className:J},De.createElement("span",{className:`${Zv}-boundary-min`},o),De.createElement("span",{className:`${Zv}-boundary-max`},i)));return r?ae:De.createElement("div",{className:re},ae)}_addEventListener(t,s,o){if(t.addEventListener){for(var i=arguments.length,a=new Array(i>3?i-3:0),r=3;r{t==null||t.removeEventListener(s,o),Promise.resolve().then(()=>{this.eventListenerSet.delete(c)})};return this.eventListenerSet.add(c),c}else return os}}YE.propTypes={defaultValue:W.oneOfType([W.number,W.array]),disabled:W.bool,showMarkLabel:W.bool,included:W.bool,marks:W.object,max:W.number,min:W.number,range:W.bool,step:W.number,tipFormatter:W.func,value:W.oneOfType([W.number,W.array]),vertical:W.bool,onAfterChange:W.func,onChange:W.func,onMouseUp:W.func,tooltipOnMark:W.bool,tooltipVisible:W.bool,showArrow:W.bool,style:W.object,className:W.string,showBoundary:W.bool,railStyle:W.object,verticalReverse:W.bool,getAriaValueText:W.func};YE.defaultProps={disabled:!1,showMarkLabel:!0,tooltipOnMark:!1,included:!0,max:100,min:0,range:!1,showArrow:!0,step:1,tipFormatter:n=>n,vertical:!1,showBoundary:!1,onAfterChange:n=>{},onChange:n=>{},verticalReverse:!1};const mS={PREFIX:`${mo}-steps`,ITEM:`${mo}-steps-item`};var jx;(function(n){n.small="large",n.default="extra-large"})(jx||(jx={}));const mD=n=>{const{prefixCls:t,className:s,size:o,title:i,description:a,status:r,style:c,active:f,done:e,icon:E,stepNumber:_,onClick:R,onChange:D,onKeyDown:J}=n,re=()=>{let ye,Fe;if("icon"in n)De.isValidElement(E)&&(ye=E);else if("status"in n)switch(r){case"error":ye=De.createElement(tS,{size:jx[o]});break;case"wait":ye=De.createElement("span",{className:`${t}-number-icon`},_);break;case"process":ye=De.createElement("span",{className:`${t}-number-icon`},_),Fe=!0;break;case"finish":ye=De.createElement(TA,{size:jx[o]});break;case"warning":ye=De.createElement(xA,{size:jx[o]});break;default:ye=null;break}const Ge=Ar({[`${t}-icon`]:!0,[`${t}-custom-icon`]:"icon"in n,[`${t}-icon-process`]:Fe});return ye?De.createElement("span",{className:Ge},ye):null},ie=Ar(t,`${t}-${r}`,{[`${t}-active`]:f,[`${t}-done`]:e,[`${t}-hover`]:D||n.onClick,[`${t}-clickable`]:D||R,[`${t}-${r}-hover`]:D||n.onClick},s),ae=ye=>{R==null||R(ye),D==null||D()},de=ye=>{ye.key==="Enter"&&(J==null||J(ye),D==null||D())};return De.createElement("div",{role:n.role,"aria-label":n["aria-label"],tabIndex:0,"aria-current":"step",className:ie,style:c,onClick:ye=>ae(ye),onKeyDown:de},De.createElement("div",{className:`${t}-container`},De.createElement("div",{className:`${t}-left`},re()),De.createElement("div",{className:`${t}-content`},De.createElement("div",{className:`${t}-title`},De.createElement("div",{className:`${t}-title-text`},i)),a&&De.createElement("div",{className:`${t}-description`},a))))};mD.propTypes={prefixCls:W.string,description:W.node,icon:W.node,status:W.oneOf(["wait","process","finish","error","warning"]),title:W.node,className:W.string,style:W.object,onClick:W.func,active:W.bool,done:W.bool};mD.defaultProps={prefixCls:mS.ITEM,active:!1,done:!1,status:"wait",className:""};const U3e=mD,gD=n=>{const{prefixCls:t,className:s,title:o,description:i,status:a,style:r,onClick:c,icon:f,onChange:e,stepNumber:E,onKeyDown:_}=n,R=()=>{let re,ie;if("icon"in n)re=f;else if("status"in n)switch(a){case"error":re=De.createElement(tS,{size:"extra-large"});break;case"wait":re=E;break;case"process":re=E,ie=!0;break;case"finish":re=De.createElement(TA,{size:"extra-large"});break;case"warning":re=De.createElement(xA,{size:"extra-large"});break;default:re=null;break}const ae=Ar({[`${t}-left`]:!0,[`${t}-icon`]:"icon"in n,[`${t}-plain`]:!("icon"in n),[`${t}-icon-process`]:ie,[`${t}-hover`]:e||c});return re?De.createElement("div",{className:ae},re):null},D=re=>{c==null||c(re),e==null||e()},J=re=>{re.key==="Enter"&&(_==null||_(re),e==null||e())};return De.createElement("div",{role:n.role,"aria-label":n["aria-label"],"aria-current":"step",tabIndex:0,className:Ar({[t]:!0,[`${t}-${a}`]:!!a,[`${t}-${a}-hover`]:!!a&&(e||c),[`${t}-${a}-active`]:!!a&&(e||c),[`${t}-clickable`]:e||c},s),style:r,onClick:re=>{D(re)},onKeyDown:J},R(),De.createElement("div",{className:`${t}-content`},De.createElement("div",{className:`${t}-title`,title:typeof o=="string"?o:null},De.createElement("span",{className:`${t}-title-text`},o)),De.createElement("div",{className:`${t}-description`,title:typeof i=="string"?i:null},i)))};gD.propTypes={prefixCls:W.string,description:W.node,icon:W.node,status:W.oneOf(["wait","process","finish","error","warning"]),title:W.node,className:W.string,style:W.object,onClick:W.func};gD.defaultProps={prefixCls:mS.ITEM,status:"wait",className:""};const B3e=gD,vD=n=>{const{prefixCls:t,className:s,title:o,style:i,active:a,index:r,total:c,onClick:f,onKeyDown:e,onChange:E}=n,_=Ar(t,{[`${t}-active`]:a},s),R=J=>{f==null||f(J),E==null||E()},D=J=>{J.key==="Enter"&&(e==null||e(J),E==null||E())};return De.createElement("div",{role:n.role,"aria-label":n["aria-label"],"aria-current":"step",tabIndex:0,className:_,style:i,onClick:J=>R(J),onKeyDown:D},De.createElement("div",{className:`${t}-container`},De.createElement("div",{className:`${t}-content`},De.createElement("div",{className:`${t}-title`},o)),r!==c-1&&De.createElement("div",{className:`${t}-icon`},De.createElement(nS,{size:"small"}))))};vD.propTypes={prefixCls:W.string,title:W.node,className:W.string,style:W.object,onClick:W.func,active:W.bool};vD.defaultProps={prefixCls:mS.ITEM,active:!1,className:""};const z3e=vD,fJ=De.createContext(null),H3e=n=>{const{type:t}=lt.useContext(fJ);return(()=>{switch(t){case"fill":return De.createElement(B3e,Object.assign({},n));case"basic":return De.createElement(U3e,Object.assign({},n));case"nav":return De.createElement(z3e,Object.assign({},n));default:return null}})()},V3e=H3e;var W3e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{const{current:t,status:s,children:o,prefixCls:i,initial:a,direction:r,className:c,style:f,onChange:e}=n,E=W3e(n,["current","status","children","prefixCls","initial","direction","className","style","onChange"]),_=lt.useMemo(()=>{const D=lt.Children.toArray(o).filter(ie=>lt.isValidElement(ie)),J=r==="vertical"?null:{width:`${100/D.length}%`};return lt.Children.map(D,(ie,ae)=>{if(!ie)return null;const de=a+ae,ye=Object.assign({stepNumber:`${de+1}`,direction:r},ie.props);return s==="error"&&ae===t-1&&(ye.className=`${i}-next-error`),ie.props.status||(de===t?ye.status=s:de{ae!==t&&e(ae+a)}:void 0,De.createElement(Oc,{style:J},lt.cloneElement(ie,Object.assign({},ye)))})},[o,a,i,r,s,t,e]),R=Ar(c,{[i]:!0,[`${i}-${r}`]:!0});return De.createElement("div",Object.assign({className:R,style:f,"aria-label":n["aria-label"]},H1(E)),De.createElement(ev,{type:"flex",justify:"start"},_))};bD.propTypes={prefixCls:W.string,className:W.string,style:W.object,current:W.number,initial:W.number,direction:W.oneOf(["horizontal","vertical"]),status:W.oneOf(["wait","process","finish","error","warning"])};bD.defaultProps={prefixCls:mS.PREFIX,current:0,direction:"horizontal",initial:0,status:"process"};const G3e=bD;var K3e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{const{size:t,current:s,status:o,children:i,prefixCls:a,initial:r,direction:c,className:f,style:e,hasLine:E,onChange:_}=n,R=K3e(n,["size","current","status","children","prefixCls","initial","direction","className","style","hasLine","onChange"]),D=lt.useMemo(()=>{const re=lt.Children.toArray(i).filter(ae=>lt.isValidElement(ae));return lt.Children.map(re,(ae,de)=>{if(!ae)return null;const ye=r+de,Fe=Object.assign({stepNumber:`${ye+1}`,size:t},ae.props);return o==="error"&&de===s-1&&(Fe.className=`${a}-next-error`),ae.props.status||(ye===s?Fe.status=o:ye{de!==s&&_(de+r)}:void 0,lt.cloneElement(ae,Object.assign({},Fe))})},[i,r,a,c,o,s,t,_]),J=Ar(f,{[`${a}-basic`]:!0,[`${a}-${c}`]:!0,[`${a}-${t}`]:t!=="default",[`${a}-hasline`]:E});return De.createElement("div",Object.assign({"aria-label":n["aria-label"],className:J,style:e},H1(R)),D)};yD.propTypes={prefixCls:W.string,className:W.string,style:W.object,current:W.number,initial:W.number,direction:W.oneOf(["horizontal","vertical"]),status:W.oneOf(["wait","process","finish","error","warning"]),hasLine:W.bool};yD.defaultProps={prefixCls:mS.PREFIX,current:0,direction:"horizontal",size:"",initial:0,hasLine:!0,status:"process"};const q3e=yD;var Y3e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{const{size:t,current:s,initial:o,children:i,prefixCls:a,className:r,style:c,onChange:f}=n,e=Y3e(n,["size","current","initial","children","prefixCls","className","style","onChange"]),E=lt.useMemo(()=>{const R=lt.Children.toArray(i).filter(re=>lt.isValidElement(re)),D=R.length;return lt.Children.map(R,(re,ie)=>{if(!re)return null;const ae=Object.assign({index:ie,total:D},re.props);return ae.active=ie===s,ae.onChange=f?()=>{ie!==s&&f(ie+o)}:void 0,lt.cloneElement(re,Object.assign({},ae))})},[i,a,s,t,o,f]),_=Ar(r,{[`${a}-nav`]:!0,[`${a}-${t}`]:t!=="default"});return De.createElement("div",Object.assign({"aria-label":n["aria-label"],className:_,style:c},H1(e)),E)};CD.propTypes={prefixCls:W.string,className:W.string,style:W.object,current:W.number,initial:W.number,size:W.oneOf(["small","default"])};CD.defaultProps={prefixCls:mS.PREFIX,current:0,direction:"horizontal",size:"default",initial:0,status:"process"};const X3e=CD;var Z3e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i0&&arguments[0]!==void 0?arguments[0]:"log";if(typeof console[t]=="function"){for(var s=arguments.length,o=new Array(s>1?s-1:0),i=1;i2?a-2:0),c=2;c{if(s=_s(n,o),s!=null)return!1}),s}function _L(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=arguments.length>2?arguments[2]:void 0;t=t<0||typeof t!="number"?0:t,s=s>n.length||typeof s!="number"?n.length:s;let o=0;return ng(n,(i,a)=>{a>=t&&a2&&arguments[2]!==void 0?arguments[2]:["key"];const o=AL(n,a=>a.fixed===!0||a.fixed==="left"),i=SL(o,a=>s.every(r=>a[r]!=null&&a[r]===t[r]));return o.length>0&&i===o.length-1}function jP(n,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["key"];const o=AL(n,a=>a.fixed==="right"),i=SL(o,a=>s.every(r=>a[r]!=null&&a[r]===t[r]));return o.length>0&&i===0}function XT(n){return["left",!0].includes(_s(n,"fixed"))}function ZT(n){return["right"].includes(_s(n,"fixed"))}function IIe(n){return[pl.DEFAULT_KEY_COLUMN_EXPAND,pl.DEFAULT_KEY_COLUMN_SCROLLBAR,pl.DEFAULT_KEY_COLUMN_SELECTION].includes(n)}function pJ(n){return _s(n,"key")===pl.DEFAULT_KEY_COLUMN_EXPAND}function RIe(n){return _s(n,"key")===pl.DEFAULT_KEY_COLUMN_SCROLLBAR}function PIe(n){return _s(n,"key")===pl.DEFAULT_KEY_COLUMN_SELECTION}function TD(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[pl.DEFAULT_KEY_COLUMN_SCROLLBAR];return AL(n,s=>!t.includes(s.key))}function fC(n,t){return t===void 0&&(t="key"),typeof t=="function"?t(n):_s(n,t)}function VR(n,t){return t!=null&&s4(n,t)}function $Ie(n,t){return t!==null&&n.has(t)}function kIe(n,t){return t!==null&&n.has(t)}function Iz(n,t,s){return s===void 0&&(s="key"),u2(n,o=>t!=null&&t!==""&&fC(o,s)===t)}function DIe(n,t){return t===void 0&&(t="children"),_s(n,t)}function mJ(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t===void 0&&(t="__expanded_row"),n+t}function MIe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const s={};return n==="small"?(s.height=t?am.DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:am.DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,s.minHeight=am.DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT):n==="middle"?(s.height=t?am.DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:am.DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT,s.minHeight=am.DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT):(s.height=t?am.DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:am.DEFAULT_VIRTUALIZED_ROW_HEIGHT,s.minHeight=am.DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT),s}function XE(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children";const s=[];if(Array.isArray(n)&&n.length)for(const o of n)Array.isArray(o[t])&&o[t].length?s.push(...XE(o[t],t)):(UIe(o),s.push(o));return s}function g4(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children",s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const o=[];return ng(n,(i,a)=>{if(i.key==null){const r=i.dataIndex||a;i.key=`${s}-${r}`}Array.isArray(i[t])&&i[t].length&&o.push(...i[t])}),o.length&&g4(o,t,s+1),n}function gJ(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;const i=[];return Array.isArray(n)&&n.length&&o<=t&&n.forEach(a=>{const r=a[s];Array.isArray(r)&&r.length&&o2&&arguments[2]!==void 0?arguments[2]:"children",o;return ng(n,i=>{if(i&&i.key!=null&&!o&&i.key===t.key&&(o=i),i&&Array.isArray(i[s])&&!o&&(o=JT(i[s],t,s)),o)return!1}),o}function jIe(n){const{expandedRowRender:t,dataSource:s,hideExpandedColumn:o,childrenRecordName:i,rowExpandable:a}=n,r=typeof t=="function";return o&&r||!r&&s.some(c=>{const f=_s(c,i);return!!(Array.isArray(f)&&f.length||a(c))})}function vJ(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s;const o=t.findIndex(i=>n.dataIndex===i.dataIndex?(s=Object.assign(Object.assign({},i),n),!0):!1);return o>-1?t.splice(o,1,s):t.push(s),[...t]}function FIe(n,t){const s=[...t];for(const o of n)if(!yb(o.width)){const i=o.key,a=SL(s,r=>r.key===i);a!==-1&&(s[a].width=_s(o,"width"))}return s}function bJ(n){let{dataSource:t,getCheckboxProps:s,childrenRecordName:o,rowKey:i}=n;const a=[];if(Array.isArray(t)&&t.length&&typeof s=="function")for(const r of t){const c=s(r),f=typeof i=="function"?i(r):_s(r,i);c&&c.disabled&&a.push(f);const e=_s(r,o);if(Array.isArray(e)&&e.length){const E=bJ({dataSource:e,getCheckboxProps:s});a.push(...E)}}return a}function UIe(n){if(typeof n=="object"&&n!==null){const{filters:t,sorter:s,dataIndex:o,onFilter:i}=n,a=new hJ("[@douyinfe/semi-ui Table]");(Array.isArray(t)||xu(i)||xu(s))&&yb(o)&&a.warn("The column with sorter or filter must pass the 'dataIndex' prop")}}function BIe(n){let{dataSource:t,childrenRecordName:s="children"}=n,o=!1;if(Array.isArray(t))for(const i of t){const a=_s(i,s);if(Array.isArray(a)&&a.length){o=!0;break}}return o}function yJ(n,t){if(t==="rtl")switch(n){case"left":return"right";case"right":return"left";default:return n}return n}function ND(n){return n===!0||_s(n,"showTitle",!0)}class zIe{constructor(t){this._state=Object.assign({},t),this._listeners=[]}subscribe(t){return this._listeners.push(t),()=>{const o=this._listeners.indexOf(t);o>-1&&this._listeners.splice(o,1)}}setState(t){Object.assign(this._state,Object.assign({},t));for(const s of this._listeners)typeof s=="function"&&s(this._state)}getState(){return this._state}}const HIe=zIe;function VIe(n,t,s,o){for(var i=s-1,a=n.length;++i-1;)c!==n&&Rz.call(c,f,1),Rz.call(n,f,1);return n}var QIe=JIe,eRe=QIe;function tRe(n,t){return n&&n.length&&t&&t.length?eRe(n,t):n}var nRe=tRe,rRe=KO,sRe=nRe,oRe=rRe(sRe),iRe=oRe;const aRe=ml(iRe);function lRe(n){return new Set(n)}function uRe(n,t){if(n===t&&(t=lRe(t)),oC(n)&&n.size&&oC(t)&&t.size){for(const s of t)n.has(s)&&n.delete(s);return n}return n}function Pz(n,t){if(n!==null&&n.length&&t!==null&&t.length){const s=new Set(n),o=new Set(t),i=uRe(s,o);return Array.from(i)}return n}function cRe(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ascend";switch(t){case"descend":return(s,o)=>{const i=Number(n(s,o,t));return i!==0?-i:i};case"ascend":default:return(s,o)=>n(s,o,t)}}class v4 extends fc{static initColumnsFilteredValueAndSorterOrder(t){return t.forEach(s=>{v4.initFilteredValue(s),v4.initSorterOrder(s)}),t}static initFilteredValue(t){const{defaultFilteredValue:s,filteredValue:o}=t;Hm(o)&&(Array.isArray(s)&&s.length?t.filteredValue=s:t.filteredValue=[])}static initSorterOrder(t){const{defaultSortOrder:s,sortOrder:o,sorter:i}=t;i&&Hm(o)&&(Hm(s)?t.sortOrder=!1:t.sortOrder=s)}constructor(t){super(Object.assign({},t)),this.setPage=(i,a)=>{i=i||this._adapter.getCurrentPage();const r=this.getState("pagination"),{dataSource:c,pagination:f,disabledRowKeys:e,allRowKeys:E}=this.getCurrentPageData(null,Object.assign(Object.assign({},r),{currentPage:i,pageSize:a}));!this._pagerIsControlled()&&i>0&&(this._adapter.setDisabledRowKeys(e),this._adapter.setAllRowKeys(E),this._adapter.setPagination(f),this._adapter.setDataSource(c)),this._notifyChange(f)},this.setCachedFilteredSortedDataSource=i=>{this._adapter.setCachedFilteredSortedDataSource(i);const a=this.getAllRowKeys(i);this._adapter.setCachedFilteredSortedRowKeys(a)},this.isSortOrderValid=i=>pl.SORT_DIRECTIONS.includes(i)||i===!1;const s=this._adapter.getHandleColumns(),o=this._adapter.getMergePagination();this.memoizedWithFnsColumns=Dw(s,Mp),this.memoizedFilterColumns=Dw(TD),this.memoizedFlattenFnsColumns=Dw(XE),this.memoizedPagination=Dw(o,Mp)}init(){const t=[...this.getProp("dataSource")],{queries:s}=this._adapter.getStates(),o=this.getFilteredSortedDataSource(t,s),i=this.getAllDisabledRowKeys(o),a=this.getCurrentPageData(o);this.setAdapterPageData(a),this.initExpandedRowKeys(a),this.initSelectedRowKeys(a),this.setCachedFilteredSortedDataSource(o),this.setAllDisabledRowKeys(i)}initExpandedRowKeys(){let{groups:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{defaultExpandAllRows:s,defaultExpandedRowKeys:o=[],expandedRowKeys:i=[],dataSource:a=[],expandAllRows:r,defaultExpandAllGroupRows:c,expandAllGroupRows:f}=this.getProps(),e=[];s||r?this._addNoDuplicatedItemsToArr(e,this.getAllRowKeys(a),t&&N5(t)&&t.size?Array.from(t.keys()):[]):c||f?this._addNoDuplicatedItemsToArr(e,t&&N5(t)&&t.size?Array.from(t.keys()):[]):Array.isArray(o)&&o.length?this._addNoDuplicatedItemsToArr(e,o):Array.isArray(i)&&i.length&&this._addNoDuplicatedItemsToArr(e,i),this._adapter.setExpandedRowKeys(e)}initSelectedRowKeys(t){let{disabledRowKeys:s}=t;const o=this.getProp("rowSelection"),i=[];if(o){const a=_s(o,"selectedRowKeys"),r=_s(o,"defaultSelectedRowKeys");Array.isArray(a)?this._addNoDuplicatedItemsToArr(i,a):Array.isArray(r)&&this._addNoDuplicatedItemsToArr(i,r),Array.isArray(s)&&s.length&&aRe(i,...s),this._adapter.setSelectedRowKeys(i)}}getFilteredSortedDataSource(t,s){const o=this.filterDataSource(t,s.filter(a=>{const r=a.filteredValue?a.filteredValue:a.defaultFilteredValue;return xu(a.onFilter)&&Array.isArray(r)&&r.length}));return this.sortDataSource(o,s.filter(a=>a&&xu(a.sorter)))}getCurrentPageData(t,s,o){const i=this._adapter.getCachedFilteredSortedDataSource();t=t??[...i],s=s??(this.getState("pagination")&&Object.assign({},this.getState("pagination"))),o=o??[...this.getState("queries")];let a;if(this.getProp("groupBy")!=null){const{groups:e,dataSource:E}=this.groupDataSource(t);t=E,a=e}s=this.normalizePagination(s,t),t=this.limitPageDataSource(t,s);const r=this.getAllDisabledRowKeys(t),c=this.getAllRowKeys(t);return{dataSource:t,groups:a,pagination:s,disabledRowKeys:r,allRowKeys:c,queries:o}}groupDataSource(t,s){s=s??this.getProp("groupBy");const o=new Map,i=[];return s!=null&&ng(t,(a,r)=>{const c=typeof s=="function"?s(a):_s(a,s);if(c!=null&&c!==""){const f=this.getRecordKey(a);let e=o.get(c);oC(e)?e.add(f):(e=new Set([f]),o.set(c,e))}}),o&&o.size?o.forEach((a,r)=>{oC(a)&&a.forEach(c=>{i.push(this._getRecord(c))})}):i.push(...t),{groups:o,dataSource:i}}sortDataSource(t,s){return ng(s,o=>{const{sorter:i,sortOrder:a,defaultSortOrder:r,sortChildrenRecord:c}=o,f=this.isSortOrderValid(a)?a:r;if(xu(i)&&f&&pl.SORT_DIRECTIONS.includes(f)){if(c){const e=this.getProp("childrenRecordName");t=t&&t.map(E=>{const _=this._getRecordChildren(E);return Array.isArray(_)&&_.length?Object.assign(Object.assign({},E),{[e]:this.sortDataSource(_,[o])}):E})}return t.sort(cRe(i,f)),!1}}),t}filterDataSource(t,s){let o=null,i=!1;const a=this.getProp("childrenRecordName");return ng(s,r=>{const{onFilter:c,filteredValue:f,filterChildrenRecord:e,defaultFilteredValue:E}=r,_=Array.isArray(f)?f:E;typeof c=="function"&&Array.isArray(_)&&_.length&&(i=!0,o===null?o=new Map:(t=Array.from(o&&o.values()),o=new Map),ng(t,R=>{ng(_,D=>{const J=_s(R,a),re=this.getRecordKey(R);let ie;if(Array.isArray(J)&&J.length&&e&&(ie=this.filterDataSource(J,[r])),Array.isArray(ie)&&ie.length){if(re!=null){const ae=_s(o.get(re),a,[]);o.set(re,Object.assign(Object.assign({},R),{[a]:ie.reduce((de,ye)=>(de.find(Fe=>this.getRecordKey(Fe)===this.getRecordKey(ye))==null&&de.push(ye),de),[...ae])}))}}else c(D,R)&&o.set(re,R)})}))}),i&&(t=Array.from(o&&o.values())),t}limitPageDataSource(t,s){t=t??this.getProp("dataSource"),s=s??this.getState("pagination");let o=t;const i=_s(s,"currentPage");if(this.getProp("pagination")!==!1&&i&&t&&s&&!this._pagerIsControlled()){const{pageSize:a=am.DEFAULT_PAGE_SIZE}=s,r=(i-1)*a,c=i*a;o=tOe(t,r,c)}return o}normalizePagination(t,s){t=t??this._getPagination(),s=s??this._getDataSource();const o=this.getProp("pagination");if(t&&(t=typeof t=="object"?Object.assign({},t):{},t=LA({total:s&&s.length||0,pageSize:am.DEFAULT_PAGE_SIZE,currentPage:_s(o,"defaultCurrentPage",1),position:pl.PAGINATION_POSITIONS[0]},t),!this._pagerIsControlled())){const i=_s(o,"total",s.length),{currentPage:a,pageSize:r}=t,c=Math.ceil(i/r);t.total=i,a>c&&(t.currentPage=1)}return t}setAdapterPageData(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{pagination:s,dataSource:o,disabledRowKeys:i,allRowKeys:a,groups:r}=t;this._adapter.setDisabledRowKeys(i),this._adapter.setAllRowKeys(a),this._adapter.setPagination(s),this._adapter.setGroups(r),this._adapter.setDataSource(o)}destroy(){}setAllDisabledRowKeys(t){this._adapter.setAllDisabledRowKeys(t)}handleClick(t){}handleMouseEnter(t){}handleMouseLeave(t){}stopPropagation(t){this._adapter.stopPropagation(t)}_addNoDuplicatedItemsToArr(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(var s=arguments.length,o=new Array(s>1?s-1:0),i=1;it!=null&&t!==""&&this.getRecordKey(s)===t)}_getRecordChildren(t){return _s(t,this.getProp("childrenRecordName"))}_getPagination(){return this.getState("pagination")||{}}_getAllFilters(t){t=t||this.getState("queries");const s=[];return ng(t,o=>{Array.isArray(o.filteredValue)&&(o.filteredValue.length||this._filterIsControlled(o.dataIndex))&&s.push(o)}),s}_getAllSorters(t){return t=t||this.getState("queries"),AL(t,s=>s.sorter&&s.sortOrder)}_filterQueries(t,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];s=s??this.getState("queries");const i=[],a=[];return ng(s,(r,c)=>{YT(o,e=>e&&t[e]!=null&&t[e]===r[e])&&(i.push(r),a.push(c))}),{filteredQueries:i,filteredIndexes:a}}_mergeToQueries(t,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];s=s??this.getState("queries"),s=[...s],t=Object.assign({},t);const{filteredQueries:i,filteredIndexes:a}=this._filterQueries(t,s,o);return ng(i,(r,c)=>{s[a[c]]=Object.assign({},t)}),s}getRecordKey(t){if(!t)return;const s=this.getProp("rowKey");return typeof s=="function"?s(t):_s(t,s)}isEmpty(t){return t=t??this.getProp("dataSource"),!(Array.isArray(t)&&t.length>0)}handleSelectRow(t,s,o){if(this.stopPropagation(o),typeof s=="boolean"&&t!=null){const i=this._getSelectedRowKeys();let a=-1;const r=this.getSelectedRows(null,[t])[0];let c;(a=i.indexOf(t))>-1&&s===!1?(i.splice(a,1),c=this.getSelectedRows(null,i),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(i),this._adapter.notifySelect(r,s,c,o),this._adapter.notifySelectionChange(i,c)):i.indexOf(t)===-1&&s===!0&&(i.push(t),c=this.getSelectedRows(null,i),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(i),this._adapter.notifySelect(r,s,c,o),this._adapter.notifySelectionChange(i,c))}}handleSelectAllRow(t,s){if(this.stopPropagation(s),typeof t=="boolean"){const o=this._getSelectedRowKeys();let i=[...o];const a=this._getSelectedRowKeysSet();let r=[...this._adapter.getCachedFilteredSortedRowKeys()];const c=this._adapter.getAllDisabledRowKeys(),f=this._adapter.getAllDisabledRowKeysSet();let e;if(t){for(const R of r)!f.has(R)&&!a.has(R)&&i.push(R);r=Pz(r,[...c,...o]),e=[...r]}else i=Pz(i,r),e=[...o];const E=this.getSelectedRows(null,e||[]),_=this.getSelectedRows(null,i||[]);this._selectionIsControlled()||this._adapter.setSelectedRowKeys(i),this._adapter.notifySelectAll(t,_,E,s),this._adapter.notifySelectionChange(i,_)}}getSelectedRows(t,s,o){t=t??this._getDataSource(),s=s??this._getSelectedRowKeys(),oC(o)||(o=new Set(s));const i=this.getProp("childrenRecordName"),a=[];if(oC(o)&&o.size&&Array.isArray(t)&&t.length&&(a.push(...t.filter(r=>o.has(this.getRecordKey(r)))),a.lengths.has(o)).length)}handleRowExpanded(t,s,o){this.stopPropagation(o);const i=[...this.getState("expandedRowKeys")],a=i.indexOf(s),r=typeof s=="string"||typeof s=="number";r&&t&&a===-1?i.push(s):r&&!t&&a>-1&&i.splice(a,1),this._rowExpansionIsControlled()||this._adapter.setExpandedRowKeys(i);const c=this.getSelectedRows(null,i);let f=this.getSelectedRows(null,[s])[0];const e=this._getGroups();if(e){e.has(s)&&(f={groupKey:s});for(let E=0,_=i.length;E<_;E++)e.has(s)&&c.push({groupKey:i[E]})}this._adapter.notifyExpand(t,f,o),this._adapter.notifyExpandedRowsChange(c)}_getGroups(){return this._adapter.getProp("groupBy")!==null?this._adapter.getState("groups"):null}allIsSelected(t,s,o){const i=AL(o,a=>a!=null&&!s.has(a));if(i&&i.length){for(const a of i)if(a!=null&&!t.has(a))return!1;return!0}else return o.every(r=>t.has(r))||!1}allIsNotSelected(t,s){for(const o of s)if(o!=null&&Array.isArray(t)&&t.includes(o))return!0;return!1}formatPaginationInfo(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o="";const i=_s(this.getProp("pagination"),"formatPageText"),{total:a,pageSize:r,currentPage:c}=t,f=Math.min((c-1)*r+1,a),e=Math.min(c*r,a);return(i||i!==!1&&s&&a>0)&&(o=typeof i=="function"?i({currentStart:f,currentEnd:e,total:a}):s.replace("${currentStart}",f).replace("${currentEnd}",e).replace("${total}",a)),o}toggleShowFilter(t,s){let o=this.getQuery(t);const i=s;o=Object.assign(Object.assign({},o),{filterDropdownVisible:i}),this._filterShowIsControlled(),this._adapter.notifyFilterDropdownVisibleChange(i,t)}handleFilterSelect(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getQuery(t),i=[...this._adapter.getState("queries")];const{filteredValue:a}=s;o=Object.assign(Object.assign({},o),{filteredValue:a}),i=vJ(o,i);const r=this._mergeToQueries(o,null),c=this._getAllFilters(r);this._filterIsControlled(t)||(this._adapter.setQueries(i),this.handleClickFilterOrSorter(i)),this._notifyChange(null,c)}handleSort(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;this.stopPropagation(s);const{dataIndex:o}=t;let i=this.getState("queries"),a=null;i=[...i],ng(i,(r,c,f)=>{if(r.sorter){const e=Object.assign({},r),E=_s(e,"sortOrder"),_=_s(e,"defaultSortOrder",!1);let R=this.isSortOrderValid(E)?E:_;o&&o===e.dataIndex?R===pl.SORT_DIRECTIONS[0]?R=pl.SORT_DIRECTIONS[1]:R===pl.SORT_DIRECTIONS[1]?R=!1:R=pl.SORT_DIRECTIONS[0]:R=!1,f[c]=Object.assign(Object.assign({},e),{sortOrder:R}),o===e.dataIndex&&(a=f[c])}}),this._sorterIsControlled(o)||(this._adapter.setQueries(i),this.handleClickFilterOrSorter(i)),this._notifyChange(null,null,a,null)}handleClickFilterOrSorter(t){const s=[...this.getProp("dataSource")],o=this.getFilteredSortedDataSource(s,t),i=this.getAllDisabledRowKeys(o);this.setCachedFilteredSortedDataSource(o),this.setAllDisabledRowKeys(i);const a=this.getCurrentPageData(o);this.setAdapterPageData(a)}getQuery(t,s){if(s=s||this.getState("queries"),t!=null)return u2(s,o=>o.dataIndex===t)}getCellWidths(t,s,o){return this._adapter.getCellWidths(t,s,o)}setHeadWidths(t,s){return this._adapter.setHeadWidths(t,s)}getHeadWidths(t){return this._adapter.getHeadWidths(t)}mergedRowExpandable(t){return this._adapter.mergedRowExpandable(t)}setBodyHasScrollbar(t){this._adapter.setBodyHasScrollbar(t)}}const $z=v4,CJ={align:W.oneOf(pl.ALIGNS),className:W.string,colSpan:W.number,dataIndex:W.string,defaultSortOrder:W.oneOf(pl.SORT_DIRECTIONS),filterChildrenRecord:W.bool,filterDropdownProps:W.object,filterDropdown:W.node,filterDropdownVisible:W.bool,filterIcon:W.func,filterMultiple:W.bool,filteredValue:W.arrayOf(W.any),filters:W.array,fixed:W.oneOf(pl.FIXED_SET),onCell:W.func,onFilter:W.func,onFilterDropdownVisibleChange:W.func,onHeaderCell:W.func,onSorterChange:W.func,render:W.func,renderFilterDropdownItem:W.func,sortChildrenRecord:W.bool,sortDirections:W.arrayOf(W.string),sortOrder:W.oneOfType([W.bool,W.string]),sorter:W.oneOfType([W.bool,W.func]),title:W.oneOfType([W.func,W.node]),useFullRender:W.bool,width:W.oneOfType([W.number,W.string])};class D3 extends De.PureComponent{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t)}render(){return null}}D3.propTypes=Object.assign({},CJ);D3.elementType="Column";function b4(n){if(n){const t=[];return De.Children.forEach(n,s=>{if(De.isValidElement(s)&&(s.type===D3||_s(s,"type.elementType")==="Column")){const o=Gm(s.props,["children"]);Array.isArray(s.props.children)&&s.props.children.length&&(o.children=b4(s.props.children)),t.push(Object.assign({key:s.key},o))}}),t}return[]}const dRe=De.createContext({headWidths:[],setHeadWidths:os,handleRowExpanded:os}),A2=dRe,fRe=n=>{let{children:t,anyColumnFixed:s,flattenedColumns:o,tableWidth:i,headWidths:a,setHeadWidths:r,getHeadWidths:c,getCellWidths:f,handleRowExpanded:e,renderExpandIcon:E,renderSelection:_,getVirtualizedListRef:R,setBodyHasScrollbar:D,direction:J}=n;const re=lt.useMemo(()=>({anyColumnFixed:s,flattenedColumns:o,renderExpandIcon:E,renderSelection:_,setHeadWidths:r,getHeadWidths:c,getCellWidths:f,headWidths:a,tableWidth:i,handleRowExpanded:e,getVirtualizedListRef:R,setBodyHasScrollbar:D,direction:J}),[s,o,E,_,r,c,f,a,i,e,R,D,J]);return De.createElement(A2.Provider,{value:re},t)},hRe=fRe;class pRe extends fc{handleChange(t){const s=t.target.checked;this._adapter.notifyChange(s,t)}}class y4 extends Ml{get adapter(){var t=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return t.props.onChange(...arguments)}})}constructor(t){super(t),this.handleChange=s=>this.foundation.handleChange(s),this.foundation=new pRe(this.adapter)}render(){const{selected:t,getCheckboxProps:s,indeterminate:o,disabled:i,prefixCls:a,className:r}=this.props,c=this.props["aria-label"];let f={onChange:this.handleChange,disabled:i,indeterminate:o,checked:t};typeof s=="function"&&(f=Object.assign(Object.assign({},f),s()));const e=Ar(`${a}-selection-wrap`,{[`${a}-selection-disabled`]:i},r);return De.createElement("span",{className:e},De.createElement(P5,Object.assign({"aria-label":c},f)))}}y4.propTypes={columnTitle:W.string,getCheckboxProps:W.func,type:W.string,onChange:W.func,selected:W.bool,disabled:W.bool,indeterminate:W.bool,prefixCls:W.string,className:W.string,"aria-label":W.string};y4.defaultProps={disabled:!1,onChange:os,prefixCls:Ig.PREFIX};class OD extends lt.PureComponent{render(){const{pagination:t,prefixCls:s,info:o,renderPagination:i}=this.props,a=_s(t,"total"),r=i&&xu(i)?i(t):null;return De.createElement("div",{className:`${s}-pagination-outer`},lt.isValidElement(r)?r:De.createElement(De.Fragment,null,De.createElement("span",{className:`${s}-pagination-info`},o),De.createElement("span",{className:`${s}-pagination-wrapper`},a>0?De.createElement(R3,Object.assign({},t,{key:_s(t,"pageSize","pagination")})):null)))}}OD.propTypes={style:W.object,prefixCls:W.string,pagination:W.object,info:W.oneOfType([W.string,W.node]),renderPagination:W.func};OD.defaultProps={prefixCls:Ig.PREFIX};function wJ(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const{filterMultiple:o=!0,filters:i=[],filteredValue:a=[],filterDropdownVisible:r,onSelect:c=os,onFilterDropdownVisibleChange:f=os,trigger:e="click",position:E="bottom",renderFilterDropdownItem:_}=n,R=Object.assign(Object.assign({},n),{onVisibleChange:D=>f(D),trigger:e,position:E,render:De.createElement(dc.Menu,null,Array.isArray(i)&&i.map((D,J)=>{const re=tt=>{const ht=tt&&tt.nativeEvent;ht&&(ht.stopImmediatePropagation(),ht.stopPropagation(),ht.preventDefault());let yt=[...a];const Ft=yt.includes(D.value),Zt=yt.indexOf(D.value);return Zt>-1?yt.splice(Zt,1):o?yt.push(D.value):yt=[D.value],c({value:D.value,filteredValue:yt,included:!Ft,domEvent:ht})},ie=a.includes(D.value),{text:ae}=D,{value:de}=D,ye=`${s}_${J}`,Fe=typeof _=="function"?_({onChange:re,filterMultiple:o,value:de,text:ae,checked:ie,filteredValue:a,level:s}):null;let Ge=Fe&&De.isValidElement(Fe)?De.cloneElement(Fe,{key:ye}):De.createElement(dc.Item,{key:ye,onClick:re},o?De.createElement(P5,{checked:ie},ae):De.createElement(p4,{checked:ie},ae));if(Array.isArray(D.children)&&D.children.length){const tt=Object.assign(Object.assign({},n),{filters:D.children,trigger:"hover",position:"right"});delete tt.filterDropdownVisible,Ge=wJ(tt,Ge,s+1)}return Ge}))});return r!=null&&(R.visible=r),De.createElement(dc,Object.assign({},R,{key:`Dropdown_level_${s}`,className:`${Ig.PREFIX}-column-filter-dropdown`}),t)}function mRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:t=Ig.PREFIX,filteredValue:s,filterIcon:o="filter",renderFilterDropdown:i,filterDropdownProps:a}=n;let{filterDropdown:r=null}=n;const c=Ar(`${t}-column-filter`,{on:Array.isArray(s)&&s.length});let f;typeof o=="function"?f=o(Array.isArray(s)&&s.length>0):lt.isValidElement(o)?f=o:f=De.createElement("div",{className:c},"​",De.createElement(aLe,{role:"button","aria-label":"Filter data with this column","aria-haspopup":"listbox",tabIndex:-1,size:"default"}));const e=Object.assign(Object.assign({},n),a);return r=De.isValidElement(r)?r:typeof i=="function"?i(e,{iconElem:f}):wJ(e,f),r}class ID extends lt.PureComponent{render(){const{prefixCls:t,onClick:s,sortOrder:o,style:i,title:a,sortIcon:r}=this.props,c="default",f=Ar(`${t}-column-sorter-up`,{on:o===pl.SORT_DIRECTIONS[0]}),e=Ar(`${t}-column-sorter-down`,{on:o===pl.SORT_DIRECTIONS[1]}),E={"aria-label":`Current sort order is ${o?`${o}ing`:"none"}`,"aria-roledescription":"Sort data with this column"},_=()=>typeof r=="function"?r({sortOrder:o}):De.createElement("div",{style:i,className:`${t}-column-sorter`},De.createElement("span",{className:`${f}`},De.createElement(wEe,{size:c})),De.createElement("span",{className:`${e}`},De.createElement(e3,{size:c})));return De.createElement("div",Object.assign({role:"button"},E,{tabIndex:-1,className:`${t}-column-sorter-wrapper`,onClick:s,onKeyPress:R=>S2(R)&&s(R)}),a,_())}}ID.propTypes={className:W.string,style:W.object,onClick:W.func,prefixCls:W.string,sortOrder:W.oneOfType([W.string,W.bool]),sortIcon:W.func};ID.defaultProps={prefixCls:Ig.PREFIX,onClick:os,sortOrder:!1};function RD(n){const{expanded:t,componentType:s,onClick:o=os,onMouseEnter:i=os,onMouseLeave:a=os,expandIcon:r,prefixCls:c=Ig.PREFIX,motion:f=!0}=n;let e;De.isValidElement(r)?e=r:typeof r=="function"?e=r(t):s==="tree"?e=t&&!f?De.createElement(pSe,{size:"small"}):De.createElement(vSe,{size:"small"}):e=t&&!f?De.createElement(AA,null):De.createElement(nS,null);const E=lt.useCallback(_=>{typeof o=="function"&&o(!t,_)},[t]);if(f){const _=e;e=De.createElement(BC,{animationState:t?"enter":"leave",startClassName:`${Ig.PREFIX}-expandedIcon-${t?"show":"hide"}`},R=>{let{animationClassName:D}=R;return De.cloneElement(_,{className:(_.props.className||"")+" "+D})})}return De.createElement("span",{role:"button","aria-label":"Expand this row",tabIndex:-1,onClick:E,onMouseEnter:i,onMouseLeave:a,className:`${c}-expand-icon`,onKeyPress:_=>S2(_)&&E(_)},e)}RD.propTypes={expanded:W.bool,componentType:W.oneOf(["tree","expand"]),onClick:W.func,onMouseEnter:W.func,onMouseLeave:W.func,expandIcon:W.oneOfType([W.node,W.func]),prefixCls:W.string,motion:W.bool};RD.defaultProps={componentType:"expand",onClick:os,onMouseEnter:os,onMouseLeave:os,prefixCls:Ig.PREFIX};class M3 extends De.PureComponent{render(){const{columns:t,className:s,style:o,prefixCls:i,components:a}=this.props,r=_s(a,"colgroup.wrapper","colgroup"),c=_s(a,"colgroup.col","col"),f=XE(t).map((E,_)=>{const R={};return E.width&&(R.width=E.width,R.minWidth=R.width),De.createElement(c,{className:Ar(`${i}-col`,E.className),key:E.key||E.dataIndex||_,style:R})}),e=Ar(`${i}-colgroup`,s);return De.createElement(r,{className:e,style:o},f)}}M3.propTypes={columns:W.array,prefixCls:W.string,className:W.string,style:W.object,components:W.object};M3.defaultProps={columns:[],prefixCls:Ig.PREFIX};var gRe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{if(this.headerNode=s,s&&this.context.setHeadWidths){const{prefixCls:o,row:i,index:a}=this.props,r=`.${o}-row-head`,c=s&&s.querySelectorAll&&s.querySelectorAll(r);this.context.setHeadWidths(c4(c,(f,e)=>{let E=_s(i,[e,"column","width"]);const _=_s(i,[e,"column","key"]);return typeof E!="number"&&(E=f&&f.getBoundingClientRect().width||0),{width:E,key:_}}),a)}},this.headerNode=null}componentDidUpdate(t){t.columns!==this.props.columns&&this.headerNode&&this.cacheRef(this.headerNode)}render(){const{components:t,row:s,prefixCls:o,onHeaderRow:i,index:a,style:r,columns:c}=this.props,{getCellWidths:f,direction:e}=this.context,E=e==="rtl",_=gJ(c,a),R=f(_),D=_s(t,"header.row","tr"),J=_s(t,"header.cell","th"),re=i(c,a)||{};db(re,"className",Ar(_s(re,"className"),`${o}-row`));const ie=c4(s,(ae,de)=>{const{column:ye}=ae,Fe=gRe(ae,["column"]),Ge=typeof ye.onHeaderCell=="function"?ye.onHeaderCell(ye,de,a):{};let tt=Object.assign({},Ge.style);if(ye.align){const tn=yJ(ye.align,e);tt=Object.assign(Object.assign({},tt),{textAlign:tn}),Ge.className=Ar(Ge.className,ye.className,{[`${o}-align-${tn}`]:!!tn})}let ht,yt,Ft,Zt;if(E?(ht=ZT(ye),yt=XT(ye),Ft=jP(_,ye),Zt=MP(_,ye)):(ht=XT(ye),yt=ZT(ye),Ft=MP(_,ye),Zt=jP(_,ye)),Ge.className=Ar(`${o}-row-head`,ye.className,Ge.className,{[`${o}-cell-fixed-left`]:ht,[`${o}-cell-fixed-left-last`]:Ft,[`${o}-cell-fixed-right`]:yt,[`${o}-cell-fixed-right-first`]:Zt,[`${o}-row-head-ellipsis`]:ye.ellipsis}),R.length&&_.length){const tn=SL(_,zn=>zn&&zn.key!=null&&zn.key===ye.key);if(tn>-1){if(XT(ye)){const zn=E?"right":"left";tt=Object.assign(Object.assign({},tt),{position:"sticky",[zn]:_L(R,0,tn)})}else if(ZT(ye)){const zn=E?"left":"right";tt=Object.assign(Object.assign({},tt),{position:"sticky",[zn]:_L(R,tn+1)})}}}Object.assign(Fe,{resize:ye.resize});const Nt=Gm(Object.assign(Object.assign({},Fe),Ge),["colStart","colEnd","hasSubColumns","parents","level"]),{rowSpan:kt,colSpan:fn}=Nt;return kt===0||fn===0?null:De.createElement(J,Object.assign({role:"columnheader","aria-colindex":de+1},Nt,{style:tt,key:ye.key||ye.dataIndex||de}))});return De.createElement(D,Object.assign({role:"row","aria-rowindex":a+1},re,{style:r,ref:this.cacheRef}),ie)}}j3.contextType=A2;j3.propTypes={components:W.object,row:W.array,prefixCls:W.string,onHeaderRow:W.func,index:W.oneOfType([W.string,W.number]),style:W.object,columns:W.array,fixed:W.oneOfType([W.bool,W.string]),selectedRowKeysSet:W.instanceOf(Set).isRequired};j3.defaultProps={onHeaderRow:os,prefixCls:Ig.PREFIX,columns:[],components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};function vRe(n){const t=[];function s(i,a){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;t[c]=t[c]||[];let e=a;return i.map(_=>{const R={key:_.key,className:_.className||"",children:xu(_.title)?_.title():_.title,column:_,colStart:e,level:f,parents:r};let D=1;const J=_.children;J&&J.length>0&&(D=s(J,e,[...r,R],c+1,f+1).reduce((ae,de)=>ae+de,0),R.hasSubColumns=!0),"colSpan"in _&&({colSpan:D}=_),"rowSpan"in _&&(R.rowSpan=_.rowSpan),_.key===pl.DEFAULT_KEY_COLUMN_SCROLLBAR&&(R["x-type"]=pl.DEFAULT_KEY_COLUMN_SCROLLBAR),R.colSpan=D,R.colEnd=R.colStart+D-1,t[c].push(R),e+=D;const re=_==null?void 0:_.ellipsis;return ND(re)&&typeof R.children=="string"&&(R.title=R.children),D})}s(n,0);const o=t.length;for(let i=0;i{!("rowSpan"in a)&&!a.hasSubColumns&&(a.rowSpan=o-i)});return t}class PD extends Ml{get adapter(){return Object.assign({},super.adapter)}render(){const{components:t,columns:s,prefixCls:o,fixed:i,onHeaderRow:a,forwardedRef:r,selectedRowKeysSet:c}=this.props,f=vRe(s),e=t.header.wrapper;return De.createElement(e,{className:`${o}-thead`,ref:r},f.map((E,_)=>De.createElement(j3,{prefixCls:o,key:_,index:_,fixed:i,columns:s,row:E,components:t,onHeaderRow:a,selectedRowKeysSet:c})))}}PD.propTypes={components:W.any,columns:W.array,columnManager:W.object,prefixCls:W.string,onHeaderRow:W.func,onDidUpdate:W.func,fixed:W.oneOfType([W.bool,W.string]),selectedRowKeysSet:W.instanceOf(Set).isRequired};PD.defaultProps={columns:[],prefixCls:Ig.PREFIX,onHeaderRow:os,onDidUpdate:os,components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};const EJ=De.forwardRef((n,t)=>De.createElement(PD,Object.assign({},n,{forwardedRef:t})));class $D extends De.PureComponent{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{selectedRowKeysSet:new Set};super(t)}render(){const{scroll:t,prefixCls:s,fixed:o,forwardedRef:i,handleBodyScroll:a,columns:r,components:c,onDidUpdate:f,showHeader:e,tableLayout:E,bodyHasScrollBar:_,sticky:R}=this.props,D=_s(c,"header.outer","table"),J=_s(t,"x"),re={},ie={};J&&!o&&(ie.width=J),_&&(re.overflowY="scroll");const ae=De.createElement(M3,{columns:r,prefixCls:s}),de=De.createElement(EJ,Object.assign({},this.props,{columns:r,components:c,onDidUpdate:f})),ye=Ar(`${s}-header`,{[`${s}-header-sticky`]:R,[`${s}-header-hidden`]:!e}),Fe=_s(R,"top",0);return typeof Fe=="number"&&(re.top=Fe),De.createElement("div",{key:"headTable",style:re,className:ye,ref:i,onScroll:a},De.createElement(D,{style:ie,className:Ar(s,{[`${s}-fixed`]:E==="fixed"})},ae,de))}}$D.propTypes={tableLayout:W.string,bodyHasScrollBar:W.bool,columns:W.array,components:W.object,dataSource:W.array,fixed:W.oneOfType([W.bool,W.string]),handleBodyScroll:W.func,prefixCls:W.string,forwardedRef:W.oneOfType([W.object,W.func]),scroll:W.shape({x:W.oneOfType([W.number,W.string,W.bool]),y:W.oneOfType([W.number,W.string])}),selectedRowKeysSet:W.instanceOf(Set).isRequired,showHeader:W.bool,onDidUpdate:W.func,onHeaderRow:W.func};$D.defaultProps={handleBodyScroll:os};const bRe=De.forwardRef((n,t)=>De.createElement($D,Object.assign({},n,{forwardedRef:t})));var yRe=WZ,CRe=yRe("length"),wRe=CRe,ERe="\\ud800-\\udfff",LRe="\\u0300-\\u036f",SRe="\\ufe20-\\ufe2f",xRe="\\u20d0-\\u20ff",ARe=LRe+SRe+xRe,_Re="\\ufe0e\\ufe0f",TRe="\\u200d",NRe=RegExp("["+TRe+ERe+ARe+_Re+"]");function ORe(n){return NRe.test(n)}var kD=ORe,LJ="\\ud800-\\udfff",IRe="\\u0300-\\u036f",RRe="\\ufe20-\\ufe2f",PRe="\\u20d0-\\u20ff",$Re=IRe+RRe+PRe,kRe="\\ufe0e\\ufe0f",DRe="["+LJ+"]",FP="["+$Re+"]",UP="\\ud83c[\\udffb-\\udfff]",MRe="(?:"+FP+"|"+UP+")",SJ="[^"+LJ+"]",xJ="(?:\\ud83c[\\udde6-\\uddff]){2}",AJ="[\\ud800-\\udbff][\\udc00-\\udfff]",jRe="\\u200d",_J=MRe+"?",TJ="["+kRe+"]?",FRe="(?:"+jRe+"(?:"+[SJ,xJ,AJ].join("|")+")"+TJ+_J+")*",URe=TJ+_J+FRe,BRe="(?:"+[SJ+FP+"?",FP,xJ,AJ,DRe].join("|")+")",kz=RegExp(UP+"(?="+UP+")|"+BRe+URe,"g");function zRe(n){for(var t=kz.lastIndex=0;kz.test(n);)++t;return t}var HRe=zRe,VRe=wRe,WRe=kD,GRe=HRe;function KRe(n){return WRe(n)?GRe(n):VRe(n)}var qRe=KRe,YRe=f9,XRe=eS,ZRe=Ab,JRe=r9,QRe=qRe,e6e="[object Map]",t6e="[object Set]";function n6e(n){if(n==null)return 0;if(ZRe(n))return JRe(n)?QRe(n):n.length;var t=XRe(n);return t==e6e||t==t6e?n.size:YRe(n).length}var r6e=n6e;const X_=ml(r6e);var s6e=F9,o6e=fS,i6e=p3,a6e=Math.max,l6e=Math.min;function u6e(n,t,s){var o=n==null?0:n.length;if(!o)return-1;var i=o-1;return s!==void 0&&(i=i6e(s),i=s<0?a6e(o+i,0):l6e(i,o-1)),s6e(n,o6e(t),i,!0)}var c6e=u6e;const d6e=ml(c6e);class f6e extends fc{init(){this.initVirtualizedData(),this.initExpandBtnShouldInRow()}destroy(){this.unobserveBodyResize()}initVirtualizedData(t){this._adapter.setVirtualizedData(this.flattenData(this.getProp("dataSource")),t)}initExpandBtnShouldInRow(t){const s=this.getProps(),o=jIe(s);this._adapter.setCachedExpandBtnShouldInRow(o),!Bg(t)&&!t&&(t=pl.EXPAND_RELATED_PROPS.map(a=>_s(s,a,void 0))),this._adapter.setCachedExpandRelatedProps(t)}flattenData(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const a=[],{rowKey:r,childrenRecordName:c,expandedRowRender:f,expandedRowKeys:e,groups:E}=this.getProps();return s===0&&N5(E)?E.forEach((_,R)=>{const D=t.findIndex(J=>_.has(fC(J,r)));if(D>-1){const J=d6e(t,ie=>_.has(fC(ie,r))),re=s4(e,R);a.push({key:R,level:s,sectionRow:!0,group:_,groupKey:R,expanded:re}),re&&a.push(...this.flattenData(t.slice(D,J+1),s+1,[...o],[...i]))}}):t.forEach((_,R)=>{const D=fC(_,r),J=DIe(_,c);s&&i.push(D);const re={key:D,record:_,level:s,parentKeys:[...o],childrenKeys:[...i]};a.push(re);const ie=[];s4(e,D)&&(Array.isArray(J)&&J.length?ie.push(...this.flattenData(J,s+1,[...re.parentKeys],[...re.childrenKeys])):f&&ie.push({key:mJ(D),level:s,expandedRow:!0,record:_}),a.push(...ie))}),a}observeBodyResize(t){const{scroll:s}=this.getProps();if(_s(s,"y"))return this._adapter.observeBodyResize(t)}unobserveBodyResize(){return this._adapter.unobserveBodyResize()}}var h6e=YO,p6e=4;function m6e(n){return h6e(n,p6e)}var g6e=m6e;const v6e=ml(g6e);let WR,GR;const Dz={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function b6e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"vertical";if(typeof document>"u"||typeof window>"u")return 0;const t=n==="vertical";if(t&&WR)return WR;if(!t&&GR)return GR;const s=document.createElement("div");Object.keys(Dz).forEach(i=>{s.style[i]=Dz[i]}),t?s.style.overflowY="scroll":s.style.overflowX="scroll",document.body.appendChild(s);let o=0;return t?(o=s.offsetWidth-s.clientWidth,WR=o):(o=s.offsetHeight-s.clientHeight,GR=o),document.body.removeChild(s),o}function NJ(n){return typeof n=="number"?n-am.DEFAULT_CELL_PADDING_LEFT-am.DEFAULT_CELL_PADDING_RIGHT-am.DEFAULT_CELL_BORDER_WIDTH_LEFT-am.DEFAULT_CELL_BORDER_WIDTH_RIGHT-b6e("vertical"):void 0}function Mz(n,t){return LA({},{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:t?{outer:"div",wrapper:"div",row:"div",cell:"div",colgroup:{wrapper:"div",col:"div"}}:{outer:"table",wrapper:"tbody",row:"tr",cell:"td",colgroup:{wrapper:"colgroup",col:"col"}},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},n)}const Fx=new hJ("[@douyinfe/semi-ui Table]");function BP(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const i=[],a=o?a1:v6e;return c4(t,r=>{r=Object.assign({},r);const c=Oz(r,s),f=c!=null&&u2(n,e=>Oz(e,s)===c);f?i.push(a(Object.assign(Object.assign({},f),r))):i.push(a(r))}),i}function y6e(){return!0}var C6e=y6e;const w6e=ml(C6e);function E6e(n,t){if(n===t)return!0;if(!n||!t)return!1;const s=Object.keys(n),o=Object.keys(t),i=s.length;if(o.length!==i)return!1;for(let a=0;athis.ref=s,this.handleClick=s=>{this.foundation.handleClick(s);const o=this.adapter.getCache("customCellProps");o&&typeof o.onClick=="function"&&o.onClick(s)},this.ref=lt.createRef(),this.foundation=new S6e(this.adapter)}shouldComponentUpdate(t){const s=this.props,{column:o,expandIcon:i}=s,a=PIe(o),r=pJ(o)||i;if((a||r)&&!Mp(t,this.props))return!0;{const c=["selected","expanded","expandIcon","disabled"],f=Gm(s,c),e=Gm(t,c);if(!Mp(e,f))return!0}return!1}componentDidUpdate(){this.props.onDidUpdate(this.ref)}getTdProps(){const{record:t,index:s,column:o={},fixedLeft:i,fixedRight:a,width:r,height:c}=this.props;let f={},e={};const{direction:E}=this.context,_=E==="rtl";if(i||typeof i=="number"?db(f,_?"style.right":"style.left",typeof i=="number"?i:0):(a||typeof a=="number")&&db(f,_?"style.left":"style.right",typeof a=="number"?a:0),r!=null&&db(f,"style.width",r),c!=null&&db(f,"style.height",c),o.onCell){e=o.onCell(t,s),this.adapter.setCache("customCellProps",Object.assign({},e)),f=Object.assign(Object.assign({},f),Gm(e,["style","className","onClick"]));const J=_s(e,"style")||{};f.style=Object.assign(Object.assign({},f.style),J)}if(o.align){const J=yJ(o.align,E);f.style=Object.assign(Object.assign({},f.style),{textAlign:J})}return{tdProps:f,customCellProps:e}}renderText(t){const{record:s,indentSize:o,prefixCls:i,indent:a,index:r,expandIcon:c,renderExpandIcon:f,column:e={}}=this.props,{dataIndex:E,render:_,useFullRender:R}=e;let D,J,re;typeof E=="number"?D=_s(s,E):!E||E.length===0?D=s:D=_s(s,E);const ie=a&&o?De.createElement("span",{style:{paddingLeft:`${o*a}px`},className:`${i}-row-indent indent-level-${a}`}):null,ae=typeof f=="function"?f(s):c;if(_){const de={expandIcon:ae};if(R){const{renderSelection:ye}=this.context,Fe=typeof ye=="function"?ye(s):null;Object.assign(de,{selection:Fe,indentText:ie})}D=_(D,s,r,de),jz(D)&&(t=D.props?LA(t,D.props):t,J=t.colSpan,re=t.rowSpan,D=D.children)}return{text:D,indentText:ie,rowSpan:re,colSpan:J,realExpandIcon:ae,tdProps:t}}renderInner(t,s,o){const{prefixCls:i,isSection:a,expandIcon:r,column:c={}}=this.props,{tableWidth:f,anyColumnFixed:e}=this.context,{useFullRender:E}=c;let _=null;return E?_=t:_=[De.createElement(lt.Fragment,{key:"indentText"},s),De.createElement(lt.Fragment,{key:"expandIcon"},r?o:null),De.createElement(lt.Fragment,{key:"text"},t)],a&&(_=De.createElement("div",{className:Ar(`${i}-section-inner`),style:{width:e?NJ(f):void 0}},_)),_}render(){const{prefixCls:t,column:s={},component:o,fixedLeft:i,fixedRight:a,lastFixedLeft:r,firstFixedRight:c,colIndex:f}=this.props,{direction:e}=this.context,E=e==="rtl",{className:_,ellipsis:R}=s,D=i||typeof i=="number",J=a||typeof a=="number",{tdProps:re,customCellProps:ie}=this.getTdProps(),ae=this.renderText(re);let{text:de}=ae;const{indentText:ye,rowSpan:Fe,colSpan:Ge,realExpandIcon:tt,tdProps:ht}=ae;let yt;if(ND(R)&&typeof de=="string"&&(yt=de),Fe===0||Ge===0)return null;jz(de)&&(de=null);const Zt=this.renderInner(de,ye,tt);let Nt,kt,fn,tn;E?(Nt=J,kt=c,fn=D,tn=r):(Nt=D,kt=r,fn=J,tn=c);const zn=Ar(_,`${t}-row-cell`,_s(ie,"className"),{[`${t}-cell-fixed-left`]:Nt,[`${t}-cell-fixed-left-last`]:kt,[`${t}-cell-fixed-right`]:fn,[`${t}-cell-fixed-right-first`]:tn,[`${t}-row-cell-ellipsis`]:R});return De.createElement(o,Object.assign({role:"gridcell","aria-colindex":f+1,className:zn,onClick:this.handleClick,title:yt},ht,{ref:this.setRef}),Zt)}}F5.contextType=A2;F5.defaultProps={indent:0,indentSize:am.DEFAULT_INDENT_WIDTH,onClick:os,prefixCls:Ig.PREFIX,component:"td",onDidUpdate:os,column:{}};F5.propTypes={record:W.object,prefixCls:W.string,index:W.number,fixedLeft:W.oneOfType([W.bool,W.number]),lastFixedLeft:W.bool,fixedRight:W.oneOfType([W.bool,W.number]),firstFixedRight:W.bool,indent:W.number,indentSize:W.number,column:W.object,expandIcon:W.any,renderExpandIcon:W.func,hideExpandedColumn:W.bool,component:W.any,onClick:W.func,onDidUpdate:W.func,isSection:W.bool,width:W.oneOfType([W.string,W.number]),height:W.oneOfType([W.string,W.number]),selected:W.bool,expanded:W.bool,colIndex:W.number};var Fz=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{this.ref.current=s},this.renderExpandIcon=s=>{const{renderExpandIcon:o}=this.props;return o(s,!0)},this.handleMouseEnter=s=>{this.foundation.handleMouseEnter(s);const o=this.adapter.getCache("customRowProps");typeof(o==null?void 0:o.onMouseEnter)=="function"&&o.onMouseEnter(s)},this.handleMouseLeave=s=>{this.foundation.handleMouseLeave(s);const o=this.adapter.getCache("customRowProps");typeof(o==null?void 0:o.onMouseLeave)=="function"&&o.onMouseLeave(s)},this.handleClick=s=>{this.foundation.handleClick(s);const o=this.adapter.getCache("customRowProps");o&&typeof o.onClick=="function"&&o.onClick(s)},this.ref=lt.createRef(),this.foundation=new L6e(this.adapter)}componentDidMount(){const{onRow:t,index:s,record:o}=this.props;if(typeof this.adapter.getCache("customRowProps")>"u"){const a=t(o,s)||{},r=Fz(a,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},r))}}shouldComponentUpdate(t){const s=["cellWidths"];return!E6e(Gm(t,s),Gm(this.props,s))||!Mp(by(t,s),by(this.props,s))}renderCells(){const{columns:t,record:s,index:o,prefixCls:i,fixed:a,components:r,expandableRow:c,level:f,expandIcon:e,rowExpandable:E,isSection:_,expandedRow:R,virtualized:D,indentSize:J,hideExpandedColumn:re,cellWidths:ie,selected:ae,expanded:de,disabled:ye,onDidUpdate:Fe}=this.props,Ge=_s(r,"body.cell",pl.DEFAULT_COMPONENTS.body.cell),tt=[],ht=E(s);let yt=0;return ng(t,(Ft,Zt)=>{const Nt=_s(Ft,"key"),kt={};if(a!=="right"&&(IIe(Nt)&&yt++,c&&Zt===yt&&(kt.renderExpandIcon=this.renderExpandIcon,(re||_)&&(kt.expandIcon=e??!0)),f!=null&&Zt===yt&&(kt.indent=f,!c&&re&&(kt.indent=f+1))),pJ(Ft)&&!ht)tt.push(De.createElement(F5,{key:Zt,colIndex:Zt,isSection:_}));else if(!RIe(Ft)){const fn={};Ge!==pl.DEFAULT_COMPONENTS.body.cell&&D&&!R&&(fn.width=_s(ie,Zt)),tt.push(De.createElement(F5,Object.assign({colIndex:Zt},kt,fn,{hideExpandedColumn:re,indentSize:J,isSection:_,prefixCls:`${i}`,column:Ft,key:Zt,index:o,record:s,component:Ge,fixedLeft:XT(Ft)&&_L(ie,0,Zt),lastFixedLeft:MP(t,Ft),fixedRight:ZT(Ft)&&_L(ie,Zt+1),firstFixedRight:jP(t,Ft),selected:ae,expanded:de,disabled:ye,onDidUpdate:Fe})))}}),tt}render(){const{style:t}=this.props,{components:s,prefixCls:o,selected:i,onRow:a,index:r,className:c,replaceClassName:f,record:e,hovered:E,expanded:_,displayNone:R,expandableRow:D,level:J,expandedRow:re,isSection:ie}=this.props,ae=s.body.row,de=a(e,r)||{},{className:ye,style:Fe}=de,Ge=Fz(de,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},Ge));const tt=Object.assign(Object.assign({},t),Fe),ht=typeof f=="string"&&f.length?f:Ar(c,`${o}-row`,{[`${o}-row-selected`]:i,[`${o}-row-expanded`]:_,[`${o}-row-hovered`]:E,[`${o}-row-hidden`]:R},ye),yt={};return typeof r=="number"&&(yt["aria-rowindex"]=r+1),D&&(yt["aria-expanded"]=_),(_||re)&&(yt["aria-level"]=2),typeof J=="number"&&(yt["aria-level"]=J+1),ie&&(yt["aria-level"]=1),De.createElement(ae,Object.assign({role:"row"},yt,Ge,{style:tt,className:ht,ref:this._cacheNode,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick}),this.renderCells())}}HA.propTypes=OJ;HA.defaultProps={columns:[],rowExpandable:w6e,components:{body:{row:"tr",cell:"td"}},prefixCls:Ig.PREFIX,onRow:os,onRowClick:os,onRowDoubleClick:os,onRowMouseEnter:os,onRowMouseLeave:os,onHover:os,onDidUpdate:os,visible:!0,hovered:!1,selected:!1,disabled:!1};var x6e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i({props:Ge,children:De.createElement("div",{className:Ar(`${o}-expand-inner`),style:{width:ae?NJ(ie):void 0}},Fe)})},tt)],yt=Ar(i,`${o}-row-expand`),Ft=de(ht);return De.createElement(HA,{style:_,components:E,className:yt,expandedRow:!0,renderExpandIcon:c,rowKey:`${t.key}-expanded-row`,columns:ht,store:e,virtualized:R,indentSize:D,cellWidths:Ft,displayNone:re})}}F3.contextType=A2;F3.propTypes={cellWidths:W.array.isRequired,className:W.string,columns:W.array,components:W.object,defaultExpandAllRows:W.bool,defaultExpandedRowKeys:W.array,expandIcon:W.oneOfType([W.object,W.node,W.func]),expandRowByClick:W.bool,expanded:W.bool,expandedRowKeys:W.array,expandedRowRender:W.func,indentSize:W.number,index:W.oneOfType([W.string,W.number]),onExpand:W.func,onExpandedRowsChange:W.func,prefixCls:W.string,record:W.object,renderExpandIcon:W.func,store:W.object,style:W.object,virtualized:W.oneOfType([W.bool,W.object])};F3.defaultProps={record:{},prefixCls:Ig.PREFIX};var A6e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{typeof i=="function"&&o&&i(!r,a,f),typeof c.onClick=="function"&&c.onClick(f)}})},this.collectGroupedData=()=>{const{data:s,group:o,rowKey:i}=this.props;return Array.isArray(s)&&s.length&&oC(o)?s.filter(a=>{const r=typeof i=="function"?i(a):_s(a,i);return r!=null&&r!==""&&o.has(r)}):[]},this.renderExpandIcon=s=>{const{renderExpandIcon:o,groupKey:i}=this.props;return typeof o=="function"?o(s,!1,i):null}}isInnerColumnKey(t){return t!=null?[pl.DEFAULT_KEY_COLUMN_EXPAND,pl.DEFAULT_KEY_COLUMN_SELECTION].includes(t):!1}render(){const{record:t,columns:s=[],prefixCls:o,className:i,expanded:a,renderGroupSection:r,components:c,index:f,store:e,group:E,groupKey:_,virtualized:R,style:D}=this.props,J={};let re={},ie=null;const ae=typeof r=="function"?r(_,[...E]):null;if(lt.isValidElement(ae))ie=ae;else if(ae&&Object.prototype.toString.call(ae)==="[object Object]"){const tt=ae,{children:ht}=tt,yt=A6e(tt,["children"]);ie=ht,re=Object.assign({},yt)}J.colSpan=TD(s).length;const de=[Object.assign({render:()=>({props:J,children:ie})},re)],ye=Ar(i,`${o}-row-section`,{on:a}),{getCellWidths:Fe}=this.context,Ge=Fe(de,null,!0);return De.createElement(HA,{components:c,virtualized:R,index:f,onRow:this.onRow,expanded:a,expandIcon:!0,isSection:!0,record:t,replaceClassName:ye,expandableRow:!0,renderExpandIcon:this.renderExpandIcon,rowKey:_,columns:de,store:e,style:D,cellWidths:Ge})}}U3.contextType=A2;U3.propTypes=IJ;U3.defaultProps={prefixCls:Ig.PREFIX,components:{body:{row:"tr",cell:"td"}}};const _6e=U3;var Uz=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{const{forwardedRef:f}=this.props;this.ref.current=c,this.foundation.observeBodyResize(c),typeof f=="function"?f(c):f&&typeof f=="object"&&(f.current=c)},this.itemSize=c=>{const{virtualized:f,size:e}=this.props,{virtualizedData:E}=this.state,_=_s(E,c),R=MIe(e,_.sectionRow),D=_s(f,"itemSize",R.height);let J=D;return typeof D=="function"&&(J=D(c,{expandedRow:_s(_,"expandedRow",!1),sectionRow:_s(_,"sectionRow",!1)})),J_s(f,[c,"key"],c),this.handleRowClick=(c,f,e)=>{const{handleRowExpanded:E}=this.context;E(!e,c,f)},this.handleVirtualizedScroll=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const f=_s(o.props.virtualized,"onScroll");typeof f=="function"&&f(c)},this.handleVirtualizedBodyScroll=c=>{const{handleBodyScroll:f}=this.props,e=_s(c,"nativeEvent.target.scrollLeft"),E=_s(c,"nativeEvent.target.scrollTop");E===this.state.cache.virtualizedScrollTop&&this.handleVirtualizedScroll({horizontalScrolling:!0}),this.state.cache.virtualizedScrollLeft=e,this.state.cache.virtualizedScrollTop=E,typeof f=="function"&&f(c)},this.getVirtualizedRowWidth=()=>{const{getCellWidths:c}=this.context,{columns:f}=this.props,e=c(f);return _L(e,0,X_(f))},this.renderVirtualizedRow=c=>{const{index:f,style:e}=c,{virtualizedData:E,cachedExpandBtnShouldInRow:_}=this.state,{flattenedColumns:R}=this.context,D=_s(E,[f],{}),{key:J,parentKeys:re,expandedRow:ie,sectionRow:ae}=D,de=Uz(D,["key","parentKeys","expandedRow","sectionRow"]),ye=this.getVirtualizedRowWidth(),Fe=_,Ge=Object.assign(Object.assign(Object.assign(Object.assign({},this.props),{style:Object.assign(Object.assign({},e),{width:ye})}),de),{columns:R,index:f,expandBtnShouldInRow:Fe});return ae?this.renderSectionRow(Ge):ie?this.renderExpandedRow(Ge):this.renderBaseRow(Ge)},this.renderTbody=De.forwardRef(function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=arguments.length>1?arguments[1]:void 0;return De.createElement("div",Object.assign({},c,{onScroll:function(){c.onScroll&&c.onScroll(...arguments)},className:Ar(c.className,`${o.props.prefixCls}-tbody`),style:Object.assign({},c.style),ref:f}))}),this.renderOuter=De.forwardRef((c,f)=>{const{children:e}=c,E=Uz(c,["children"]),{handleWheel:_,prefixCls:R,emptySlot:D,dataSource:J}=this.props,re=this.getVirtualizedRowWidth(),ie=Ar(`${R}`,`${R}-fixed`);return De.createElement("div",Object.assign({},E,{ref:f,onWheel:function(){_&&_(...arguments),E.onWheel&&E.onWheel(...arguments)},onScroll:function(){o.handleVirtualizedBodyScroll(...arguments),E.onScroll&&E.onScroll(...arguments)}}),De.createElement("div",{style:{width:re},className:ie},e),X_(J)===0&&D)}),this.onItemsRendered=c=>{this.state.cache.virtualizedScrollLeft&&this.ref.current&&(this.ref.current.scrollLeft=this.state.cache.virtualizedScrollLeft)},this.renderVirtualizedBody=c=>{const{scroll:f,prefixCls:e,virtualized:E,columns:_}=this.props,{virtualizedData:R}=this.state,{getCellWidths:D}=this.context,J=D(_);if(!X_(J))return null;const re=_s(f,"y"),ie=typeof re=="number",ae=ie?re:600;ie||Fx.warn('You have to specific "scroll.y" which must be a number for table virtualization!');const de={width:"100%",height:R!=null&&R.length?ae:null,overflowX:"auto",overflowY:"auto"},ye=Ar(`${e}-body`);return De.createElement(w_e,Object.assign({},typeof E=="object"?E:{},{initialScrollOffset:this.state.cache.virtualizedScrollTop,onScroll:this.handleVirtualizedScroll,onItemsRendered:this.onItemsRendered,ref:this.listRef,className:ye,outerRef:this.forwardRef,height:R!=null&&R.length?ae:0,width:de.width,itemData:R,itemSize:this.itemSize,itemCount:R.length,itemKey:this.itemKey,innerElementType:this.renderTbody,outerElementType:this.renderOuter,style:Object.assign(Object.assign({},de),{direction:c}),direction:c}),this.renderVirtualizedRow)},this.renderSectionRow=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{groupKey:void 0};const{dataSource:f,rowKey:e,group:E,groupKey:_,index:R}=c,D=Object.keys(IJ),J=by(c,D),{handleRowExpanded:re}=o.context;return De.createElement(_6e,Object.assign({},J,{record:{groupKey:_,records:[...E].map(ie=>Iz(f,ie,e))},index:R,onExpand:re,data:f,key:_||R}))},this.renderExpandedRow=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{renderExpandIcon:()=>null};const{style:f,components:e,renderExpandIcon:E,expandedRowRender:_,record:R,columns:D,expanded:J,index:re,rowKey:ie,virtualized:ae,displayNone:de}=c;let ye=fC(R,ie);ye==null&&(ye=re);const{flattenedColumns:Fe,getCellWidths:Ge}=o.context;return Fe!==o.flattenedColumns&&(o.flattenedColumns=Fe,o.cellWidths=Ge(Fe)),De.createElement(F3,{style:f,components:e,renderExpandIcon:E,expandedRowRender:_,record:R,columns:D,expanded:J,index:re,virtualized:ae,key:mJ(ye),cellWidths:o.cellWidths,displayNone:de})},this.renderGroupedRows=()=>{const{groups:c,dataSource:f,rowKey:e,expandedRowKeys:E,keepDOM:_}=this.props,{flattenedColumns:R}=this.context,D=new Map,J=[];c!=null&&Array.isArray(f)&&f.length&&f.forEach(ie=>{const ae=fC(ie,e);c.forEach((de,ye)=>{if(de.has(ae))return D.has(ye)||D.set(ye,new Set([])),D.get(ye).add(ae),!1})});let re=-1;return D.forEach((ie,ae)=>{const de=VR(E,ae);if(J.push(this.renderSectionRow(Object.assign(Object.assign({},this.props),{columns:R,index:++re,group:ie,groupKey:ae,expanded:de}))),de||_){const ye=[];ie.forEach(Fe=>{const Ge=Iz(f,Fe,e);Ge!=null&&ye.push(Ge)}),J.push(this.renderBodyRows(ye,void 0,[],!de))}}),J},this.renderBody=c=>{const{scroll:f,prefixCls:e,columns:E,components:_,fixed:R,handleWheel:D,headerRef:J,handleBodyScroll:re,anyColumnFixed:ie,showHeader:ae,emptySlot:de,includeHeader:ye,dataSource:Fe,onScroll:Ge,groups:tt,expandedRowRender:ht,tableLayout:yt}=this.props,Ft=_s(f,"x"),Zt=_s(f,"y"),Nt={},kt={},fn=_s(_,"body.outer","table"),tn=_s(_,"body.wrapper")||"tbody";Zt&&(Nt.maxHeight=Zt),Ft&&(kt.width=Ft),ie&&X_(Fe)&&(Nt.overflow="auto",Nt.WebkitTransform="translate3d (0, 0, 0)");const zn=De.createElement(M3,{components:_s(_,"body"),columns:E,prefixCls:e}),qn=`${e}-body`,gr=De.createElement("div",{key:"bodyTable",className:qn,style:Nt,ref:this.forwardRef,onWheel:D,onScroll:re},De.createElement(fn,{role:N5(tt)||xu(ht)||BIe({dataSource:Fe})?"treegrid":"grid","aria-rowcount":Fe&&Fe.length,"aria-colcount":E&&E.length,style:kt,className:Ar(e,{[`${e}-fixed`]:yt==="fixed"})},zn,ye&&ae?De.createElement(EJ,Object.assign({},this.props,{ref:J,components:_,columns:E})):null,De.createElement(tn,{className:`${e}-tbody`,onScroll:Ge},N5(tt)?this.renderGroupedRows():this.renderBodyRows(Fe))),de);return R&&E.length?De.createElement("div",{key:"bodyTable",className:`${e}-body-outer`},gr):gr},this.ref=De.createRef(),this.state={virtualizedData:[],cache:{virtualizedScrollTop:null,virtualizedScrollLeft:null},cachedExpandBtnShouldInRow:null,cachedExpandRelatedProps:[]},this.listRef=De.createRef();const{getVirtualizedListRef:i,flattenedColumns:a,getCellWidths:r}=s;i&&(t.virtualized?i(this.listRef):console.warn("getVirtualizedListRef only works with virtualized. See https://semi.design/en-US/show/table for more information.")),this.foundation=new f6e(this.adapter),this.flattenedColumns=a,this.cellWidths=r(a),this.observer=null}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVirtualizedData:(t,s)=>this.setState({virtualizedData:t},s),setCachedExpandBtnShouldInRow:t=>this.setState({cachedExpandBtnShouldInRow:t}),setCachedExpandRelatedProps:t=>this.setState({cachedExpandRelatedProps:t}),observeBodyResize:t=>{const{setBodyHasScrollbar:s}=this.context,o=()=>{const i=()=>{const{offsetWidth:r,clientWidth:c}=t,f=c{const t=this.ref.current;this.observer&&(this.observer.unobserve(t),this.observer=null)}})}componentDidUpdate(t,s){const{virtualized:o,dataSource:i,expandedRowKeys:a,columns:r,scroll:c}=this.props;o&&(t.dataSource!==i||t.expandedRowKeys!==a||t.columns!==r)&&this.foundation.initVirtualizedData();const e=pl.EXPAND_RELATED_PROPS.map(R=>_s(this.props,R,void 0));Mp(e,s.cachedExpandRelatedProps)||this.foundation.initExpandBtnShouldInRow(e);const E=_s(c,"y"),_=this.ref.current;E&&E!==_s(t,"scroll.y")&&this.foundation.observeBodyResize(_)}renderBaseRow(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowKey:s,columns:o,expandedRowKeys:i,rowExpandable:a,record:r,index:c,level:f,expandBtnShouldInRow:e,selectedRowKeysSet:E,disabledRowKeysSet:_,expandRowByClick:R}=t,D=Object.keys(OJ),J=by(t,D);let re=fC(r,s);re==null&&(re=c);const ie=VR(i,re),ae=a&&a(r),de={level:void 0,expanded:ie};(ae||e)&&(de.level=f,de.expandableRow=ae,R&&(de.onRowClick=this.handleRowClick));const ye={selected:$Ie(E,re),disabled:kIe(_,re)},{getCellWidths:Fe}=this.context,Ge=Fe(o,null,!0);return De.createElement(HA,Object.assign({},J,de,ye,{key:re,rowKey:re,cellWidths:Ge}))}renderBodyRows(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{rowKey:a,expandedRowRender:r,expandedRowKeys:c,childrenRecordName:f,rowExpandable:e,keepDOM:E}=this.props,_=typeof r=="function",R=this.state.cachedExpandBtnShouldInRow,{flattenedColumns:D}=this.context;return ng(t,(J,re)=>{let ie=fC(J,a);ie==null&&(ie=re);const ae=_s(J,f),de=!!(Array.isArray(ae)&&ae.length);o.push(this.renderBaseRow(Object.assign(Object.assign({},this.props),{columns:D,expandBtnShouldInRow:R,displayNone:i,record:J,key:ie,level:s,index:re})));const ye=VR(c,ie),Fe=ye||E;if(_&&e&&e(J)&&Fe){const Ge=this.renderExpandedRow(Object.assign(Object.assign({},this.props),{columns:D,level:s,index:re,record:J,expanded:ye,displayNone:i||!ye}));EL(Ge)||o.push(Ge)}if(de&&Fe){const Ge=this.renderBodyRows(ae,s+1,[],i||!ye);o.push(...Ge)}}),o}render(){const{virtualized:t}=this.props,{direction:s}=this.context;return t?this.renderVirtualizedBody(s):this.renderBody(s)}}DD.contextType=A2;DD.propTypes={anyColumnFixed:W.bool,childrenRecordName:W.string,columns:W.array,components:W.object,dataSource:W.array,disabledRowKeysSet:W.instanceOf(Set).isRequired,emptySlot:W.node,expandRowByClick:W.bool,expandedRowKeys:W.array,expandedRowRender:W.func,fixed:W.oneOfType([W.string,W.bool]),forwardedRef:W.oneOfType([W.object,W.func]),groups:W.instanceOf(Map),handleBodyScroll:W.func,handleWheel:W.func,headerRef:W.oneOfType([W.object,W.func]),includeHeader:W.bool,onScroll:W.func,prefixCls:W.string,renderExpandIcon:W.func,rowExpandable:W.func,rowKey:W.oneOfType([W.string,W.bool,W.func]),scroll:W.object,selectedRowKeysSet:W.instanceOf(Set).isRequired,showHeader:W.bool,size:W.string,store:W.object,virtualized:W.oneOfType([W.bool,W.object])};const T6e=De.forwardRef(function(t,s){return De.createElement(DD,Object.assign({},t,{forwardedRef:s}))});var N6e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{this.bodyWrapRef.current&&(this.bodyWrapRef.current.scrollTop=0)},setSelectedRowKeys:s=>{this.setState({rowSelection:Object.assign(Object.assign({},this.state.rowSelection),{selectedRowKeys:[...s],selectedRowKeysSet:new Set(s)})})},setDisabledRowKeys:s=>{this.setState({disabledRowKeys:s,disabledRowKeysSet:new Set(s)})},setCurrentPage:s=>{const{pagination:o}=this.state;typeof o=="object"?this.setState({pagination:Object.assign(Object.assign({},o),{currentPage:s})}):this.setState({pagination:{currentPage:s}})},setPagination:s=>this.setState({pagination:s}),setGroups:s=>this.setState({groups:s}),setDataSource:s=>this.setState({dataSource:s}),setExpandedRowKeys:s=>this.setState({expandedRowKeys:[...s]}),setQuery:function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=[...t.state.queries];o=vJ(s,o),t.setState({queries:o})},setQueries:s=>this.setState({queries:s}),setFlattenData:s=>this.setState({flattenData:s}),setAllRowKeys:s=>this.setState({allRowKeys:s}),setHoveredRowKey:s=>{this.store.setState({hoveredRowKey:s})},setCachedFilteredSortedDataSource:s=>{this.cachedFilteredSortedDataSource=s},setCachedFilteredSortedRowKeys:s=>{this.cachedFilteredSortedRowKeys=s,this.cachedFilteredSortedRowKeysSet=new Set(s)},setAllDisabledRowKeys:s=>{const o=new Set(s);this.setState({allDisabledRowKeys:s,allDisabledRowKeysSet:o})},getCurrentPage:()=>_s(this.state,"pagination.currentPage",1),getCurrentPageSize:()=>_s(this.state,"pagination.pageSize",am.DEFAULT_PAGE_SIZE),getCachedFilteredSortedDataSource:()=>this.cachedFilteredSortedDataSource,getCachedFilteredSortedRowKeys:()=>this.cachedFilteredSortedRowKeys,getCachedFilteredSortedRowKeysSet:()=>this.cachedFilteredSortedRowKeysSet,getAllDisabledRowKeys:()=>this.state.allDisabledRowKeys,getAllDisabledRowKeysSet:()=>this.state.allDisabledRowKeysSet,notifyFilterDropdownVisibleChange:(s,o)=>this._invokeColumnFn(o,"onFilterDropdownVisibleChange",s),notifyChange:function(){return t.props.onChange(...arguments)},notifyExpand:function(){return t.props.onExpand(...arguments)},notifyExpandedRowsChange:function(){return t.props.onExpandedRowsChange(...arguments)},notifySelect:function(){for(var s=arguments.length,o=new Array(s),i=0;iYT(this.getColumns(s||this.props.columns,this.props.children),o=>!!o.fixed),useFixedHeader:()=>{const{scroll:s,sticky:o}=this.props;return!!(_s(s,"y")||o)},getTableLayout:()=>{let s=!1;const{flattenColumns:o}=this.state;return Array.isArray(o)&&(s=o.some(i=>!!i.ellipsis||!!i.fixed)),this.adapter.useFixedHeader()&&(s=!0),s?"fixed":"auto"},setHeadWidths:function(s){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;OIe(t.state.headWidths[o],s)||t.setState(i=>{const a=[...i.headWidths];return a[o]=[...s],{headWidths:a}})},getHeadWidths:function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t.state.headWidths.length&&typeof s=="number"?(t.state.headWidths[s]||[]).map(i=>i.width):[]},getCellWidths:function(s){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Array.isArray(s)&&s.length&&(o=o==null&&t.state.headWidths.length?nIe(t.state.headWidths):[],Array.isArray(o)&&o.length)?s.reduce((a,r)=>{const c=r.key===pl.DEFAULT_KEY_COLUMN_SCROLLBAR&&i?null:u2(o,f=>f&&f.key!=null&&f.key===r.key);return c&&a.push(c.width),a},[]):[]},mergedRowExpandable:s=>{const{expandedRowRender:o,childrenRecordName:i,rowExpandable:a}=this.props,r=_s(s,i),c=typeof o=="function",f=typeof a=="function",e=Array.isArray(r)&&r.length,E=f&&a(s);return(c||e)&&(!f||E)||!(c||e)&&E},isAnyColumnUseFullRender:s=>YT(s,o=>!!o.useFullRender),getNormalizeColumns:()=>this.normalizeColumns,getHandleColumns:()=>this.handleColumns,getMergePagination:()=>this.mergePagination,setBodyHasScrollbar:s=>{s!==this.state.bodyHasScrollBar&&this.setState({bodyHasScrollBar:s})},stopPropagation(s){s&&typeof s=="object"&&(typeof s.stopPropagation=="function"&&s.stopPropagation(),s.nativeEvent&&typeof s.nativeEvent.stopPropagation=="function"?s.nativeEvent.stopPropagation():typeof s.stopImmediatePropagation=="function"&&s.stopImmediatePropagation())}})}constructor(t,s){var o;super(t),o=this,this._warnIfNoKey=()=>{(this.props.rowSelection||this.props.expandedRowRender)&&YT(this.props.dataSource,E=>this.foundation.getRecordKey(E)==null)&&Fx.error('You must specify a key for each element in the dataSource or use "rowKey" to specify an attribute name as the primary key!')},this._invokeRowSelection=function(E){const _=_s(o.state,["rowSelection",E]);if(typeof _=="function"){for(var R=arguments.length,D=new Array(R>1?R-1:0),J=1;J2?R-2:0),J=2;J{this.headerWrapRef.current=E},this.getCurrentPageData=()=>{const E=this.foundation.getCurrentPageData(),_=["dataSource","groups"].reduce((R,D)=>(E[D]&&(R[D]=E[D]),R),{});return a1(_)},this.getColumns=(E,_)=>!Array.isArray(E)||!E||!E.length?b4(_):E,this.getCellWidths=function(){return o.foundation.getCellWidths(...arguments)},this.setHeadWidths=function(){return o.foundation.setHeadWidths(...arguments)},this.getHeadWidths=function(){return o.foundation.getHeadWidths(...arguments)},this.mergedRowExpandable=function(){return o.foundation.mergedRowExpandable(...arguments)},this.setBodyHasScrollbar=function(){return o.foundation.setBodyHasScrollbar(...arguments)},this.handleWheel=E=>{const{scroll:_={}}=this.props;if(window.navigator.userAgent.match(/Trident\/7\./)&&_.y){E.preventDefault();const R=E.deltaY,{target:D}=E,J=this.bodyWrapRef.current;let re=0;this.lastScrollTop?re=this.lastScrollTop+R:re=R,J&&D!==J&&(J.scrollTop=re)}},this.handleBodyScrollLeft=E=>{if(E.currentTarget!==E.target)return;const{target:_}=E,R=this.headerWrapRef.current,D=this.bodyWrapRef.current;_.scrollLeft!==this.lastScrollLeft&&(_===D&&R?R.scrollLeft=_.scrollLeft:_===R&&D&&(D.scrollLeft=_.scrollLeft),this.setScrollPositionClassName()),this.lastScrollLeft=_.scrollLeft},this.handleWindowResize=()=>{this.syncTableWidth(),this.setScrollPositionClassName()},this.handleBodyScrollTop=E=>{const{target:_}=E;if(E.currentTarget!==_)return;const{scroll:R={}}=this.props,D=this.headerWrapRef.current,J=this.bodyWrapRef.current;if(_.scrollTop!==this.lastScrollTop&&R.y&&_!==D){const{scrollTop:re}=_;J&&_!==J&&(J.scrollTop=re)}this.lastScrollTop=_.scrollTop},this.handleBodyScroll=E=>{this.handleBodyScrollLeft(E),this.handleBodyScrollTop(E)},this.setScrollPosition=E=>{const{prefixCls:_}=this.props,R=[`${_}-scroll-position-both`,`${_}-scroll-position-middle`,`${_}-scroll-position-left`,`${_}-scroll-position-right`];this.scrollPosition=E;const D=this.wrapRef.current;if(D&&D.nodeType)if(E==="both"){const J=[`${_}-scroll-position-left`,`${_}-scroll-position-right`];D.classList.remove(...$B(R,J)),D.classList.add(...J)}else{const J=[`${_}-scroll-position-${E}`];D.classList.remove(...$B(R,J)),D.classList.add(...J)}},this.setScrollPositionClassName=()=>{const E=this.bodyWrapRef.current;if(E&&E.children&&E.children.length){const _=E.scrollLeft===0,R=Math.abs(E.scrollLeft)+1>=E.children[0].getBoundingClientRect().width-E.getBoundingClientRect().width;_&&R?this.setScrollPosition("both"):_?this.setScrollPosition("left"):R?this.setScrollPosition("right"):this.scrollPosition!=="middle"&&this.setScrollPosition("middle")}},this.syncTableWidth=()=>{this.rootWrapRef&&this.rootWrapRef.current&&this.setState({tableWidth:this.rootWrapRef.current.getBoundingClientRect().width})},this.renderSelection=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{rowSelection:R,allDisabledRowKeysSet:D}=o.state;if(R&&typeof R=="object"){const{selectedRowKeys:J=[],selectedRowKeysSet:re=new Set,getCheckboxProps:ie,disabled:ae}=R;if(_){const de=_s(R,"key",pl.DEFAULT_KEY_COLUMN_SELECTION),ye=o.cachedFilteredSortedRowKeys,Fe=o.cachedFilteredSortedRowKeysSet,Ge=o.foundation.allIsSelected(re,D,ye),tt=o.foundation.hasRowSelected(J,Fe);return De.createElement(y4,{"aria-label":`${Ge?"Deselect":"Select"} all rows`,disabled:ae,key:de,selected:Ge,indeterminate:tt&&!Ge,onChange:(ht,yt)=>{o.toggleSelectAllRow(ht,yt)}})}else{const de=o.foundation.getRecordKey(E),ye=re.has(de),Fe=()=>typeof ie=="function"?ie(E):{};return De.createElement(y4,{"aria-label":`${ye?"Deselect":"Select"} this row`,getCheckboxProps:Fe,selected:ye,onChange:(Ge,tt)=>o.toggleSelectRow(Ge,de,tt)})}}return null},this.renderRowSelectionCallback=function(E){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return o.renderSelection(_)},this.renderTitleSelectionCallback=()=>this.renderSelection(null,!0),this.normalizeSelectionColumn=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowSelection:_,prefixCls:R}=E;let D={};if(_){const J=["selectedRowKeys","selectedRowKeysSet"];D={key:pl.DEFAULT_KEY_COLUMN_SELECTION},Bg(_)&&(D=Object.assign(Object.assign({},D),Gm(_,J))),D.className=Ar(D.className,`${R}-column-selection`),D.title=o.renderTitleSelectionCallback,D.render=o.renderRowSelectionCallback}return D},this.normalizeScrollbarColumn=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{scrollbarWidth:_=0}=E;return{key:pl.DEFAULT_KEY_COLUMN_SCROLLBAR,width:_,fixed:"right"}},this.renderExpandIcon=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const{expandedRowKeys:D}=o.state,{expandIcon:J}=o.props,re=typeof R=="string"||typeof R=="number"?R:o.foundation.getRecordKey(E);return De.createElement(RD,{key:re,componentType:_?"tree":"expand",expanded:s4(D,re),expandIcon:J,onClick:(ie,ae)=>o.handleRowExpanded(ie,re,ae)})},this.handleRowExpanded=function(){return o.foundation.handleRowExpanded(...arguments)},this.normalizeExpandColumn=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=null;const{prefixCls:R,expandCellFixed:D,expandIcon:J}=E;return _={fixed:D,key:pl.DEFAULT_KEY_COLUMN_EXPAND},_.className=Ar(_.className,`${R}-column-expand`),_.render=J!==!1?function(){let re=arguments.length>1?arguments[1]:void 0;return o.adapter.mergedRowExpandable(re)?o.renderExpandIcon(re):null}:()=>null,_},this.addFnsInColumn=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:_}=o.props;if(E&&(E.sorter||E.filters||E.useFullRender)){let R=!1;const{dataIndex:D,title:J,useFullRender:re}=E,ie=o.foundation.getQuery(D),ae={},de=[];re&&(ae.selection=o.renderSelection(null,!0));const ye=_s(ie,"sortOrder"),Fe=_s(ie,"defaultSortOrder",!1),Ge=o.foundation.isSortOrderValid(ye)?ye:Fe,tt=ND(E.ellipsis),ht=typeof J!="function"&&De.createElement("span",{className:`${_}-row-head-title`,key:pl.DEFAULT_KEY_COLUMN_TITLE,title:tt&&typeof J=="string"?J:void 0},J);if(typeof E.sorter=="function"||E.sorter===!0){const kt=De.createElement(ID,{key:pl.DEFAULT_KEY_COLUMN_SORTER,sortOrder:Ge,sortIcon:E.sortIcon,onClick:fn=>o.foundation.handleSort(E,fn),title:ht});re&&(ae.sorter=kt),R=!0,de.push(kt)}else de.push(ht);const yt=_s(ie,"filteredValue"),Ft=_s(ie,"defaultFilteredValue"),Zt=yt||Ft;if(Array.isArray(E.filters)&&E.filters.length||lt.isValidElement(E.filterDropdown)){const kt=De.createElement(mRe,Object.assign({key:pl.DEFAULT_KEY_COLUMN_FILTER},ie,{filteredValue:Zt,onFilterDropdownVisibleChange:fn=>o.foundation.toggleShowFilter(D,fn),onSelect:fn=>o.foundation.handleFilterSelect(D,fn)}));re&&(ae.filter=kt),R=!0,de.push(kt)}const Nt=typeof J=="function"?()=>J(ae):R?De.createElement("div",{className:`${_}-operate-wrapper`},de):de;E=Object.assign(Object.assign({},E),{title:Nt})}return E},this.toggleSelectRow=(E,_,R)=>{this.foundation.handleSelectRow(_,E,R)},this.toggleSelectAllRow=(E,_)=>{this.foundation.handleSelectAllRow(E,_)},this.renderPagination=(E,_)=>{if(!E)return null;const R=this.foundation.memoizedPagination(E);return De.createElement(dm,{componentName:"Table"},D=>{const J=this.foundation.formatPaginationInfo(R,D.pageText);return De.createElement(OD,{info:J,pagination:R,renderPagination:_})})},this.renderTitle=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{title:_}=E;const{prefixCls:R,dataSource:D}=E;return typeof _=="function"&&(_=_(D)),lt.isValidElement(_)||typeof _=="string"?De.createElement("div",{className:`${R}-title`,"x-semi-prop":"title"},_):null},this.renderEmpty=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:_,empty:R,dataSource:D}=E,J=`${_}-placeholder`;return o.foundation.isEmpty(D)?De.createElement(dm,{componentName:"Table",key:"emptyText"},(ie,ae)=>De.createElement("div",{className:J},De.createElement("div",{className:`${_}-empty`,"x-semi-prop":"empty"},R||ie.emptyText))):null},this.renderFooter=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{footer:_}=E;const{prefixCls:R,dataSource:D}=E;return typeof _=="function"&&(_=_(D)),lt.isValidElement(_)||typeof _=="string"?De.createElement("div",{className:`${R}-footer`,key:"footer","x-semi-prop":"footer"},_):null},this.renderMainTable=E=>{const _=this.adapter.useFixedHeader(),R=this.renderEmpty(E);return[this.renderTable(Object.assign(Object.assign({},E),{fixed:!1,useFixedHeader:_,headerRef:this._cacheHeaderRef,bodyRef:this.bodyWrapRef,includeHeader:!_,emptySlot:R})),this.renderFooter(E)]},this.renderTable=E=>{const{columns:_,filteredColumns:R,fixed:D,useFixedHeader:J,scroll:re,prefixCls:ie,anyColumnFixed:ae,includeHeader:de,showHeader:ye,components:Fe,headerRef:Ge,bodyRef:tt,onHeaderRow:ht,rowSelection:yt,dataSource:Ft,bodyHasScrollBar:Zt,disabledRowKeysSet:Nt,sticky:kt}=E,fn=_s(yt,"selectedRowKeysSet",new Set),tn=this.adapter.getTableLayout(),zn=D||J?De.createElement(bRe,{key:"head",tableLayout:tn,ref:Ge,columns:R,prefixCls:ie,fixed:D,handleBodyScroll:this.handleBodyScrollLeft,components:Fe,scroll:re,showHeader:ye,selectedRowKeysSet:fn,onHeaderRow:ht,dataSource:Ft,bodyHasScrollBar:Zt,sticky:kt}):null,qn=De.createElement(T6e,Object.assign({},Gm(E,["rowSelection","headWidths"]),{key:"body",ref:tt,columns:R,fixed:D,prefixCls:ie,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,anyColumnFixed:ae,tableLayout:tn,includeHeader:de,showHeader:ye,scroll:re,components:Fe,store:this.store,selectedRowKeysSet:fn,disabledRowKeysSet:Nt}));return[zn,qn]},this.handleColumns=(E,_)=>{const{hideExpandedColumn:R,scroll:D,prefixCls:J,expandCellFixed:re,expandIcon:ie,rowSelection:ae}=this.props,de="children";let ye=a1(_);const Fe=function(){let Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Array.isArray(Ge)&&Ge.length&&ng(Ge,(tt,ht,yt)=>{const Ft=o.addFnsInColumn(tt),Zt=tt[de];if(Array.isArray(Zt)&&Zt.length){const Nt=[...Zt];Fe(Nt),Ft[de]=Nt}yt[ht]=Ft})};if(Fe(ye),!R){const Ge=this.normalizeExpandColumn({prefixCls:J,expandCellFixed:re,expandIcon:ie}),tt=SL(ye,ht=>ht.key===pl.DEFAULT_KEY_COLUMN_EXPAND);Ge&&(tt>-1?ye[tt]=Object.assign(Object.assign({},Ge),ye[tt]):Ge.fixed==="right"?ye=[...ye,Ge]:ye=[Ge,...ye])}if(ae&&!_s(ae,"hidden")){const Ge=SL(ye,ht=>ht.key===pl.DEFAULT_KEY_COLUMN_SELECTION),tt=this.normalizeSelectionColumn({rowSelection:ae,prefixCls:J});Ge>-1?ye[Ge]=Object.assign(Object.assign({},tt),ye[Ge]):tt.fixed==="right"?ye=[...ye,tt]:ye=[tt,...ye]}return g4(ye),ye},this.normalizeColumns=(E,_)=>a1(this.getColumns(E,_)),this.mergePagination=E=>Object.assign({onChange:this.foundation.setPage},E),this.foundation=new $z(this.adapter);const i=this.getColumns(t.columns,t.children),a=XE(i),r=$z.initColumnsFilteredValueAndSorterOrder(a1(a)),c=this.foundation.getFilteredSortedDataSource(this.props.dataSource,r),f=Tpe(this.props.pagination)?this.props.pagination:{},e=this.foundation.getCurrentPageData(c,f,r);this.state={cachedColumns:i,cachedChildren:t.children,flattenColumns:a,components:Mz(t.components,t.virtualized),queries:r,dataSource:e.dataSource,flattenData:[],expandedRowKeys:[...t.expandedRowKeys||[],...t.defaultExpandedRowKeys||[]],rowSelection:t.rowSelection?Bg(t.rowSelection)?Object.assign({},t.rowSelection):{}:null,pagination:e.pagination,groups:null,allRowKeys:[],disabledRowKeys:[],disabledRowKeysSet:new Set,allDisabledRowKeys:[],allDisabledRowKeysSet:new Set,headWidths:[],bodyHasScrollBar:!1,prePropRowSelection:void 0,prePagination:void 0},this.rootWrapRef=lt.createRef(),this.wrapRef=lt.createRef(),this.bodyWrapRef=lt.createRef(),this.headerWrapRef=lt.createRef(),this.store=new HIe({hoveredRowKey:null}),this.debouncedWindowResize=Ffe(this.handleWindowResize,150),this.cachedFilteredSortedDataSource=[],this.cachedFilteredSortedRowKeys=[],this.cachedFilteredSortedRowKeysSet=new Set}static getDerivedStateFromProps(t,s){const o={},{rowSelection:i,dataSource:a,childrenRecordName:r,rowKey:c,pagination:f}=t;if(t.columns&&t.children&&Fx.warn("columns should not given by object and children at the same time"),t.columns&&t.columns!==s.cachedColumns){const e=XE(t.columns);o.flattenColumns=e,o.queries=BP(s.queries,e,null,!1),o.cachedColumns=t.columns,o.cachedChildren=null}else if(t.children&&t.children!==s.cachedChildren){const e=b4(t.children),E=XE(e),_=BP(s.queries,E,null,!1);o.flattenColumns=E,o.queries=[..._],o.cachedColumns=[...e],o.cachedChildren=t.children}if(i!==s.prePropRowSelection){let e={};Bg(s.rowSelection)&&(e=Object.assign(Object.assign({},e),s.rowSelection)),Bg(i)&&(e=Object.assign(Object.assign({},e),i));const E=_s(i,"selectedRowKeys"),_=_s(i,"getCheckboxProps");if(E&&Array.isArray(E)&&(e.selectedRowKeysSet=new Set(E)),xu(_)){const R=bJ({dataSource:a,getCheckboxProps:_,childrenRecordName:r,rowKey:c}),D=new Set(R);o.disabledRowKeys=R,o.disabledRowKeysSet=D,o.allDisabledRowKeys=R,o.allDisabledRowKeysSet=D}o.rowSelection=e,o.prePropRowSelection=i}if(f!==s.prePagination){let e={};Bg(s.pagination)&&(e=Object.assign(Object.assign({},e),s.pagination)),Bg(f)&&(e=Object.assign(Object.assign({},e),f)),o.pagination=e,o.prePagination=f}return o}componentDidMount(){super.componentDidMount(),this.setScrollPosition("left"),(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.handleWindowResize(),window.addEventListener("resize",this.debouncedWindowResize))}componentDidUpdate(t,s){const{dataSource:o,expandedRowKeys:i,expandAllRows:a,expandAllGroupRows:r,virtualized:c,components:f,pagination:e}=this.props,{pagination:E,queries:_,cachedColumns:R,cachedChildren:D,groups:J}=this.state,re={};if(this._warnIfNoKey(),Array.isArray(i)&&i!==t.expandedRowKeys&&this.setState({expandedRowKeys:i}),(f!==t.components||c!==t.virtualized)&&this.setState({components:Mz(f,c)}),(a!==t.expandAllRows||r!==t.expandAllGroupRows)&&this.foundation.initExpandedRowKeys({groups:J}),o!==t.dataSource||R!==s.cachedColumns||D!==s.cachedChildren){const ie=[...o],ae=this.foundation.getFilteredSortedDataSource(ie,_),de=this.foundation.getAllDisabledRowKeys(ae);this.foundation.setCachedFilteredSortedDataSource(ae),this.foundation.setAllDisabledRowKeys(de),re.dataSource=ae,this.props.groupBy&&(re.groups=null)}if(o!==t.dataSource&&(re.pagination=Bg(E)?Object.assign(Object.assign({},E),{currentPage:Bg(e)&&e.currentPage?e.currentPage:1}):E),Object.keys(re).length){const{pagination:ie=null,queries:ae=null,dataSource:de=null}=re,ye=this.foundation.getCurrentPageData(de,ie,ae);this.adapter.setAllRowKeys(ye.allRowKeys),this.adapter.setDisabledRowKeys(ye.disabledRowKeys),"dataSource"in re&&((this.props.defaultExpandAllRows&&ye.groups&&ye.groups.size||this.props.expandAllRows||this.props.expandAllGroupRows)&&this.foundation.initExpandedRowKeys(ye),re.pagination=ye.pagination);const Fe=Object.keys(re);for(const Ge of Fe)this.setState({[Ge]:ye[Ge]})}(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.debouncedWindowResize||window.addEventListener("resize",this.debouncedWindowResize))}componentWillUnmount(){super.componentWillUnmount(),this.debouncedWindowResize&&(window.removeEventListener("resize",this.debouncedWindowResize),this.debouncedWindowResize.cancel(),this.debouncedWindowResize=null)}render(){let t=this.props,{scroll:s,prefixCls:o,className:i,style:a={},bordered:r,id:c,pagination:f,virtualized:e,size:E,renderPagination:_,getVirtualizedListRef:R,loading:D,hideExpandedColumn:J,rowSelection:re}=t,ie=N6e(t,["scroll","prefixCls","className","style","bordered","id","pagination","virtualized","size","renderPagination","getVirtualizedListRef","loading","hideExpandedColumn","rowSelection"]),{rowSelection:ae,expandedRowKeys:de,headWidths:ye,tableWidth:Fe,pagination:Ge,dataSource:tt,queries:ht,cachedColumns:yt,bodyHasScrollBar:Ft}=this.state;a=Object.assign({},a);let Zt;if(this.adapter.isAnyColumnUseFullRender(ht))Zt=this.handleColumns(ht,yt);else{const Rt=re&&!_s(re,"hidden");Zt=this.foundation.memoizedWithFnsColumns(ht,yt,Rt,J,Ft)}const Nt=this.foundation.memoizedFilterColumns(Zt),kt=this.foundation.memoizedFlattenFnsColumns(Zt),fn=this.adapter.isAnyColumnFixed(Zt),tn=Object.assign(Object.assign(Object.assign({},ie),this.state),{virtualized:e,scroll:s,prefixCls:o,size:E,hideExpandedColumn:J,columns:Zt,anyColumnFixed:fn,rowExpandable:this.mergedRowExpandable,pagination:Ge,dataSource:tt,rowSelection:ae,expandedRowKeys:de,renderExpandIcon:this.renderExpandIcon,filteredColumns:Nt}),zn=_s(s,"x"),qn=_s(s,"y");e&&typeof a.width!="number"&&(a.width=zn);const gr=Ar({[`${o}-${pl.SIZE_SMALL}`]:E===pl.SIZE_SMALL,[`${o}-${pl.SIZE_MIDDLE}`]:E===pl.SIZE_MIDDLE,[`${o}-virtualized`]:!!e,[`${o}-bordered`]:r,[`${o}-fixed-header`]:!!qn,[`${o}-scroll-position-left`]:["both","left"].includes(this.position),[`${o}-scroll-position-right`]:["both","right"].includes(this.position)}),$n=Ge&&f?this.renderPagination(Ge,_):null,hr=_s(f,"position","bottom"),Mn=Object.assign(Object.assign({},this.context),{headWidths:ye,tableWidth:Fe,anyColumnFixed:fn,flattenedColumns:kt,renderExpandIcon:this.renderExpandIcon,renderSelection:this.renderSelection,setHeadWidths:this.setHeadWidths,getHeadWidths:this.getHeadWidths,getCellWidths:this.getCellWidths,handleRowExpanded:this.handleRowExpanded,getVirtualizedListRef:R,setBodyHasScrollbar:this.setBodyHasScrollbar}),dr=this.getDataAttr(ie);return De.createElement("div",Object.assign({ref:this.rootWrapRef,className:Ar(i,`${o}-wrapper`,`${o}-wrapper-${tn.direction}`),"data-column-fixed":fn,style:a,id:c},dr),De.createElement(hRe,Object.assign({},Mn,{direction:tn.direction}),De.createElement(V1,{spinning:D,size:"large"},De.createElement("div",{ref:this.wrapRef,className:gr},De.createElement(De.Fragment,{key:"pagination-top"},["top","both"].includes(hr)?$n:null),this.renderTitle({title:tn.title,dataSource:tn.dataSource,prefixCls:tn.prefixCls}),De.createElement("div",{className:`${o}-container`},this.renderMainTable(Object.assign({},tn))),De.createElement(De.Fragment,{key:"pagination-bottom"},["bottom","both"].includes(hr)?$n:null)))))}};B3.contextType=A2;B3.propTypes={className:W.string,style:W.object,prefixCls:W.string,components:W.any,bordered:W.bool,loading:W.bool,size:W.oneOf(pl.SIZES),tableLayout:W.oneOf(pl.LAYOUTS),columns:W.arrayOf(W.shape(CJ)),hideExpandedColumn:W.bool,id:W.string,expandIcon:W.oneOfType([W.bool,W.func,W.node]),expandCellFixed:W.oneOf(pl.FIXED_SET),title:W.oneOfType([W.string,W.node,W.func]),onHeaderRow:W.func,showHeader:W.bool,indentSize:W.number,rowKey:W.oneOfType([W.func,W.string,W.number]),onRow:W.func,onExpandedRowsChange:W.func,onExpand:W.func,rowExpandable:W.func,expandedRowRender:W.func,expandedRowKeys:W.array,defaultExpandAllRows:W.bool,expandAllRows:W.bool,defaultExpandAllGroupRows:W.bool,expandAllGroupRows:W.bool,defaultExpandedRowKeys:W.array,pagination:W.oneOfType([W.object,W.bool]),renderPagination:W.func,footer:W.oneOfType([W.func,W.string,W.node]),empty:W.node,dataSource:W.array,childrenRecordName:W.string,rowSelection:W.oneOfType([W.object,W.bool]),onChange:W.func,scroll:W.shape({x:W.oneOfType([W.number,W.string,W.bool]),y:W.oneOfType([W.number,W.string])}),groupBy:W.oneOfType([W.string,W.number,W.func]),renderGroupSection:W.oneOfType([W.func]),onGroupedRow:W.func,clickGroupedRowToExpand:W.bool,virtualized:W.oneOfType([W.object,W.bool]),dropdownPrefixCls:W.string,expandRowByClick:W.bool,getVirtualizedListRef:W.func};B3.defaultProps={tableLayout:"",dataSource:[],prefixCls:Ig.PREFIX,rowSelection:null,className:"",childrenRecordName:"children",size:"default",loading:!1,bordered:!1,expandCellFixed:!1,hideExpandedColumn:!0,showHeader:!0,indentSize:am.DEFAULT_INDENT_WIDTH,onChange:os,pagination:!0,rowKey:"key",defaultExpandedRowKeys:[],defaultExpandAllRows:!1,defaultExpandAllGroupRows:!1,expandAllRows:!1,expandAllGroupRows:!1,onFilterDropdownVisibleChange:os,onExpand:os,onExpandedRowsChange:os,expandRowByClick:!1};const MD=B3;var O6e=m9;function I6e(n,t,s){var o=n.length;return s=s===void 0?o:s,!t&&s>=o?n:O6e(n,t,s)}var R6e=I6e,P6e=xb,$6e=Gv,k6e="[object RegExp]";function D6e(n){return $6e(n)&&P6e(n)==k6e}var M6e=D6e,j6e=M6e,F6e=ZL,Bz=HO,zz=Bz&&Bz.isRegExp,U6e=zz?F6e(zz):j6e,B6e=U6e;function z6e(n){return n.split("")}var H6e=z6e,RJ="\\ud800-\\udfff",V6e="\\u0300-\\u036f",W6e="\\ufe20-\\ufe2f",G6e="\\u20d0-\\u20ff",K6e=V6e+W6e+G6e,q6e="\\ufe0e\\ufe0f",Y6e="["+RJ+"]",zP="["+K6e+"]",HP="\\ud83c[\\udffb-\\udfff]",X6e="(?:"+zP+"|"+HP+")",PJ="[^"+RJ+"]",$J="(?:\\ud83c[\\udde6-\\uddff]){2}",kJ="[\\ud800-\\udbff][\\udc00-\\udfff]",Z6e="\\u200d",DJ=X6e+"?",MJ="["+q6e+"]?",J6e="(?:"+Z6e+"(?:"+[PJ,$J,kJ].join("|")+")"+MJ+DJ+")*",Q6e=MJ+DJ+J6e,e7e="(?:"+[PJ+zP+"?",zP,$J,kJ,Y6e].join("|")+")",t7e=RegExp(HP+"(?="+HP+")|"+e7e+Q6e,"g");function n7e(n){return n.match(t7e)||[]}var r7e=n7e,s7e=H6e,o7e=kD,i7e=r7e;function a7e(n){return o7e(n)?i7e(n):s7e(n)}var l7e=a7e,u7e=IY,c7e=R6e,d7e=kD,f7e=qO,h7e=B6e,p7e=l7e,m7e=J8,g7e=4294967295;function v7e(n,t,s){return s&&typeof s!="number"&&f7e(n,t,s)&&(t=s=void 0),s=s===void 0?g7e:s>>>0,s?(n=m7e(n),n&&(typeof t=="string"||t!=null&&!h7e(t))&&(t=u7e(t),!t&&d7e(n))?c7e(p7e(n),0,s):n.split(t,s)):[]}var b7e=v7e;const jJ=ml(b7e);function y7e(n){const t=jJ(n,/\s+/);for(var s=arguments.length,o=new Array(s>1?s-1:0),i=1;i!t.includes(r));return Ar(n,...a)}function C7e(n){const t=jJ(n,/\s+/);for(var s=arguments.length,o=new Array(s>1?s-1:0),i=1;i{const r=t.indexOf(a);r>-1&&t.splice(r,1)}),Ar(...t)}var jD={exports:{}},VA={},z3={exports:{}},FJ={};function UJ(n){var t,s,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n))for(t=0;t0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const s=(n=window.document)===null||n===void 0||(n=n.documentElement)===null||n===void 0?void 0:n.style;if(!s||t in s)return"";for(let o=0;ot===s.identifier)||n.changedTouches&&(0,kv.findInArray)(n.changedTouches,s=>t===s.identifier)}function z7e(n){if(n.targetTouches&&n.targetTouches[0])return n.targetTouches[0].identifier;if(n.changedTouches&&n.changedTouches[0])return n.changedTouches[0].identifier}function H7e(n){if(!n)return;let t=n.getElementById("react-draggable-style-el");t||(t=n.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} +`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} +`,n.getElementsByTagName("head")[0].appendChild(t)),n.body&&WJ(n.body,"react-draggable-transparent-selection")}function V7e(n){if(n)try{if(n.body&&GJ(n.body,"react-draggable-transparent-selection"),n.selection)n.selection.empty();else{const t=(n.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch{}}function WJ(n,t){n.classList?n.classList.add(t):n.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(n.className+=" ".concat(t))}function GJ(n,t){n.classList?n.classList.remove(t):n.className=n.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var Nb={};Object.defineProperty(Nb,"__esModule",{value:!0});Nb.canDragX=K7e;Nb.canDragY=q7e;Nb.createCoreData=X7e;Nb.createDraggableData=Z7e;Nb.getBoundPosition=W7e;Nb.getControlPosition=Y7e;Nb.snapToGrid=G7e;var Tv=Tb,OE=B0;function W7e(n,t,s){if(!n.props.bounds)return[t,s];let{bounds:o}=n.props;o=typeof o=="string"?o:J7e(o);const i=UD(n);if(typeof o=="string"){const{ownerDocument:a}=i,r=a.defaultView;let c;if(o==="parent"?c=i.parentNode:c=a.querySelector(o),!(c instanceof r.HTMLElement))throw new Error('Bounds selector "'+o+'" could not find an element.');const f=c,e=r.getComputedStyle(i),E=r.getComputedStyle(f);o={left:-i.offsetLeft+(0,Tv.int)(E.paddingLeft)+(0,Tv.int)(e.marginLeft),top:-i.offsetTop+(0,Tv.int)(E.paddingTop)+(0,Tv.int)(e.marginTop),right:(0,OE.innerWidth)(f)-(0,OE.outerWidth)(i)-i.offsetLeft+(0,Tv.int)(E.paddingRight)-(0,Tv.int)(e.marginRight),bottom:(0,OE.innerHeight)(f)-(0,OE.outerHeight)(i)-i.offsetTop+(0,Tv.int)(E.paddingBottom)-(0,Tv.int)(e.marginBottom)}}return(0,Tv.isNum)(o.right)&&(t=Math.min(t,o.right)),(0,Tv.isNum)(o.bottom)&&(s=Math.min(s,o.bottom)),(0,Tv.isNum)(o.left)&&(t=Math.max(t,o.left)),(0,Tv.isNum)(o.top)&&(s=Math.max(s,o.top)),[t,s]}function G7e(n,t,s){const o=Math.round(t/n[0])*n[0],i=Math.round(s/n[1])*n[1];return[o,i]}function K7e(n){return n.props.axis==="both"||n.props.axis==="x"}function q7e(n){return n.props.axis==="both"||n.props.axis==="y"}function Y7e(n,t,s){const o=typeof t=="number"?(0,OE.getTouch)(n,t):null;if(typeof t=="number"&&!o)return null;const i=UD(s),a=s.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,OE.offsetXYFromParent)(o||n,a,s.props.scale)}function X7e(n,t,s){const o=!(0,Tv.isNum)(n.lastX),i=UD(n);return o?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:s,x:t,y:s}:{node:i,deltaX:t-n.lastX,deltaY:s-n.lastY,lastX:n.lastX,lastY:n.lastY,x:t,y:s}}function Z7e(n,t){const s=n.props.scale;return{node:t.node,x:n.state.x+t.deltaX/s,y:n.state.y+t.deltaY/s,deltaX:t.deltaX/s,deltaY:t.deltaY/s,lastX:n.state.x,lastY:n.state.y}}function J7e(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}}function UD(n){const t=n.findDOMNode();if(!t)throw new Error(": Unmounted during event!");return t}var H3={},V3={};Object.defineProperty(V3,"__esModule",{value:!0});V3.default=Q7e;function Q7e(){}Object.defineProperty(H3,"__esModule",{value:!0});H3.default=void 0;var qR=tPe(lt),dv=BD(yA),ePe=BD(Gg),gg=B0,Dy=Nb,YR=Tb,ZS=BD(V3);function BD(n){return n&&n.__esModule?n:{default:n}}function KJ(n){if(typeof WeakMap!="function")return null;var t=new WeakMap,s=new WeakMap;return(KJ=function(o){return o?s:t})(n)}function tPe(n,t){if(!t&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var s=KJ(t);if(s&&s.has(n))return s.get(n);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in n)if(a!=="default"&&Object.prototype.hasOwnProperty.call(n,a)){var r=i?Object.getOwnPropertyDescriptor(n,a):null;r&&(r.get||r.set)?Object.defineProperty(o,a,r):o[a]=n[a]}return o.default=n,s&&s.set(n,o),o}function Mg(n,t,s){return t=nPe(t),t in n?Object.defineProperty(n,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[t]=s,n}function nPe(n){var t=rPe(n,"string");return typeof t=="symbol"?t:String(t)}function rPe(n,t){if(typeof n!="object"||n===null)return n;var s=n[Symbol.toPrimitive];if(s!==void 0){var o=s.call(n,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}const R1={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let My=R1.mouse,W3=class extends qR.Component{constructor(){super(...arguments),Mg(this,"dragging",!1),Mg(this,"lastX",NaN),Mg(this,"lastY",NaN),Mg(this,"touchIdentifier",null),Mg(this,"mounted",!1),Mg(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&typeof t.button=="number"&&t.button!==0)return!1;const s=this.findDOMNode();if(!s||!s.ownerDocument||!s.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:o}=s;if(this.props.disabled||!(t.target instanceof o.defaultView.Node)||this.props.handle&&!(0,gg.matchesSelectorAndParentsTo)(t.target,this.props.handle,s)||this.props.cancel&&(0,gg.matchesSelectorAndParentsTo)(t.target,this.props.cancel,s))return;t.type==="touchstart"&&t.preventDefault();const i=(0,gg.getTouchIdentifier)(t);this.touchIdentifier=i;const a=(0,Dy.getControlPosition)(t,i,this);if(a==null)return;const{x:r,y:c}=a,f=(0,Dy.createCoreData)(this,r,c);(0,ZS.default)("DraggableCore: handleDragStart: %j",f),(0,ZS.default)("calling",this.props.onStart),!(this.props.onStart(t,f)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,gg.addUserSelectStyles)(o),this.dragging=!0,this.lastX=r,this.lastY=c,(0,gg.addEvent)(o,My.move,this.handleDrag),(0,gg.addEvent)(o,My.stop,this.handleDragStop))}),Mg(this,"handleDrag",t=>{const s=(0,Dy.getControlPosition)(t,this.touchIdentifier,this);if(s==null)return;let{x:o,y:i}=s;if(Array.isArray(this.props.grid)){let c=o-this.lastX,f=i-this.lastY;if([c,f]=(0,Dy.snapToGrid)(this.props.grid,c,f),!c&&!f)return;o=this.lastX+c,i=this.lastY+f}const a=(0,Dy.createCoreData)(this,o,i);if((0,ZS.default)("DraggableCore: handleDrag: %j",a),this.props.onDrag(t,a)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(f)}return}this.lastX=o,this.lastY=i}),Mg(this,"handleDragStop",t=>{if(!this.dragging)return;const s=(0,Dy.getControlPosition)(t,this.touchIdentifier,this);if(s==null)return;let{x:o,y:i}=s;if(Array.isArray(this.props.grid)){let f=o-this.lastX||0,e=i-this.lastY||0;[f,e]=(0,Dy.snapToGrid)(this.props.grid,f,e),o=this.lastX+f,i=this.lastY+e}const a=(0,Dy.createCoreData)(this,o,i);if(this.props.onStop(t,a)===!1||this.mounted===!1)return!1;const c=this.findDOMNode();c&&this.props.enableUserSelectHack&&(0,gg.removeUserSelectStyles)(c.ownerDocument),(0,ZS.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,c&&((0,ZS.default)("DraggableCore: Removing handlers"),(0,gg.removeEvent)(c.ownerDocument,My.move,this.handleDrag),(0,gg.removeEvent)(c.ownerDocument,My.stop,this.handleDragStop))}),Mg(this,"onMouseDown",t=>(My=R1.mouse,this.handleDragStart(t))),Mg(this,"onMouseUp",t=>(My=R1.mouse,this.handleDragStop(t))),Mg(this,"onTouchStart",t=>(My=R1.touch,this.handleDragStart(t))),Mg(this,"onTouchEnd",t=>(My=R1.touch,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,gg.addEvent)(t,R1.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:s}=t;(0,gg.removeEvent)(s,R1.mouse.move,this.handleDrag),(0,gg.removeEvent)(s,R1.touch.move,this.handleDrag),(0,gg.removeEvent)(s,R1.mouse.stop,this.handleDragStop),(0,gg.removeEvent)(s,R1.touch.stop,this.handleDragStop),(0,gg.removeEvent)(t,R1.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,gg.removeUserSelectStyles)(s)}}findDOMNode(){var t,s;return(t=this.props)!==null&&t!==void 0&&t.nodeRef?(s=this.props)===null||s===void 0||(s=s.nodeRef)===null||s===void 0?void 0:s.current:ePe.default.findDOMNode(this)}render(){return qR.cloneElement(qR.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};H3.default=W3;Mg(W3,"displayName","DraggableCore");Mg(W3,"propTypes",{allowAnyClick:dv.default.bool,children:dv.default.node.isRequired,disabled:dv.default.bool,enableUserSelectHack:dv.default.bool,offsetParent:function(n,t){if(n[t]&&n[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:dv.default.arrayOf(dv.default.number),handle:dv.default.string,cancel:dv.default.string,nodeRef:dv.default.object,onStart:dv.default.func,onDrag:dv.default.func,onStop:dv.default.func,onMouseDown:dv.default.func,scale:dv.default.number,className:YR.dontSetMe,style:YR.dontSetMe,transform:YR.dontSetMe});Mg(W3,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),n.default=void 0;var t=R(lt),s=E(yA),o=E(Gg),i=E(E7e),a=B0,r=Nb,c=Tb,f=E(H3),e=E(V3);function E(de){return de&&de.__esModule?de:{default:de}}function _(de){if(typeof WeakMap!="function")return null;var ye=new WeakMap,Fe=new WeakMap;return(_=function(Ge){return Ge?Fe:ye})(de)}function R(de,ye){if(!ye&&de&&de.__esModule)return de;if(de===null||typeof de!="object"&&typeof de!="function")return{default:de};var Fe=_(ye);if(Fe&&Fe.has(de))return Fe.get(de);var Ge={},tt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ht in de)if(ht!=="default"&&Object.prototype.hasOwnProperty.call(de,ht)){var yt=tt?Object.getOwnPropertyDescriptor(de,ht):null;yt&&(yt.get||yt.set)?Object.defineProperty(Ge,ht,yt):Ge[ht]=de[ht]}return Ge.default=de,Fe&&Fe.set(de,Ge),Ge}function D(){return D=Object.assign?Object.assign.bind():function(de){for(var ye=1;ye{if((0,e.default)("Draggable: onDragStart: %j",Ge),this.props.onStart(Fe,(0,r.createDraggableData)(this,Ge))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),J(this,"onDrag",(Fe,Ge)=>{if(!this.state.dragging)return!1;(0,e.default)("Draggable: onDrag: %j",Ge);const tt=(0,r.createDraggableData)(this,Ge),ht={x:tt.x,y:tt.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Ft,y:Zt}=ht;ht.x+=this.state.slackX,ht.y+=this.state.slackY;const[Nt,kt]=(0,r.getBoundPosition)(this,ht.x,ht.y);ht.x=Nt,ht.y=kt,ht.slackX=this.state.slackX+(Ft-ht.x),ht.slackY=this.state.slackY+(Zt-ht.y),tt.x=ht.x,tt.y=ht.y,tt.deltaX=ht.x-this.state.x,tt.deltaY=ht.y-this.state.y}if(this.props.onDrag(Fe,tt)===!1)return!1;this.setState(ht)}),J(this,"onDragStop",(Fe,Ge)=>{if(!this.state.dragging||this.props.onStop(Fe,(0,r.createDraggableData)(this,Ge))===!1)return!1;(0,e.default)("Draggable: onDragStop: %j",Ge);const ht={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:Ft,y:Zt}=this.props.position;ht.x=Ft,ht.y=Zt}this.setState(ht)}),this.state={dragging:!1,dragged:!1,x:ye.position?ye.position.x:ye.defaultPosition.x,y:ye.position?ye.position.y:ye.defaultPosition.y,prevPropsPosition:{...ye.position},slackX:0,slackY:0,isElementSVG:!1},ye.position&&!(ye.onDrag||ye.onStop)&&console.warn("A `position` was applied to this , 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 ye,Fe;return(ye=(Fe=this.props)===null||Fe===void 0||(Fe=Fe.nodeRef)===null||Fe===void 0?void 0:Fe.current)!==null&&ye!==void 0?ye:o.default.findDOMNode(this)}render(){const{axis:ye,bounds:Fe,children:Ge,defaultPosition:tt,defaultClassName:ht,defaultClassNameDragging:yt,defaultClassNameDragged:Ft,position:Zt,positionOffset:Nt,scale:kt,...fn}=this.props;let tn={},zn=null;const gr=!!!Zt||this.state.dragging,$n=Zt||tt,hr={x:(0,r.canDragX)(this)&&gr?this.state.x:$n.x,y:(0,r.canDragY)(this)&&gr?this.state.y:$n.y};this.state.isElementSVG?zn=(0,a.createSVGTransform)(hr,Nt):tn=(0,a.createCSSTransform)(hr,Nt);const Mn=(0,i.default)(Ge.props.className||"",ht,{[yt]:this.state.dragging,[Ft]:this.state.dragged});return t.createElement(f.default,D({},fn,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(Ge),{className:Mn,style:{...Ge.props.style,...tn},transform:zn}))}}n.default=ae,J(ae,"displayName","Draggable"),J(ae,"propTypes",{...f.default.propTypes,axis:s.default.oneOf(["both","x","y","none"]),bounds:s.default.oneOfType([s.default.shape({left:s.default.number,right:s.default.number,top:s.default.number,bottom:s.default.number}),s.default.string,s.default.oneOf([!1])]),defaultClassName:s.default.string,defaultClassNameDragging:s.default.string,defaultClassNameDragged:s.default.string,defaultPosition:s.default.shape({x:s.default.number,y:s.default.number}),positionOffset:s.default.shape({x:s.default.oneOfType([s.default.number,s.default.string]),y:s.default.oneOfType([s.default.number,s.default.string])}),position:s.default.shape({x:s.default.number,y:s.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),J(ae,"defaultProps",{...f.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(FJ);const{default:qJ,DraggableCore:sPe}=FJ;z3.exports=qJ;z3.exports.default=qJ;z3.exports.DraggableCore=sPe;var oPe=z3.exports,zD={};zD.__esModule=!0;zD.cloneElement=dPe;var iPe=aPe(lt);function aPe(n){return n&&n.__esModule?n:{default:n}}function Wz(n,t){var s=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),s.push.apply(s,o)}return s}function Gz(n){for(var t=1;t=0)&&(s[i]=n[i]);return s}function Kz(n,t){var s=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),s.push.apply(s,o)}return s}function XR(n){for(var t=1;tMath.abs(R*E)?a=i/E:i=a*E}var D=i,J=a,re=this.slack||[0,0],ie=re[0],ae=re[1];return i+=ie,a+=ae,c&&(i=Math.max(c[0],i),a=Math.max(c[1],a)),f&&(i=Math.min(f[0],i),a=Math.min(f[1],a)),this.slack=[ie+(D-i),ae+(J-a)],[i,a]},s.resizeHandler=function(i,a){var r=this;return function(c,f){var e=f.node,E=f.deltaX,_=f.deltaY;i==="onResizeStart"&&r.resetData();var R=(r.props.axis==="both"||r.props.axis==="x")&&a!=="n"&&a!=="s",D=(r.props.axis==="both"||r.props.axis==="y")&&a!=="e"&&a!=="w";if(!(!R&&!D)){var J=a[0],re=a[a.length-1],ie=e.getBoundingClientRect();if(r.lastHandleRect!=null){if(re==="w"){var ae=ie.left-r.lastHandleRect.left;E+=ae}if(J==="n"){var de=ie.top-r.lastHandleRect.top;_+=de}}r.lastHandleRect=ie,re==="w"&&(E=-E),J==="n"&&(_=-_);var ye=r.props.width+(R?E/r.props.transformScale:0),Fe=r.props.height+(D?_/r.props.transformScale:0),Ge=r.runConstraints(ye,Fe);ye=Ge[0],Fe=Ge[1];var tt=ye!==r.props.width||Fe!==r.props.height,ht=typeof r.props[i]=="function"?r.props[i]:null,yt=i==="onResize"&&!tt;ht&&!yt&&(c.persist==null||c.persist(),ht(c,{node:e,size:{width:ye,height:Fe},handle:a})),i==="onResizeStop"&&r.resetData()}}},s.renderResizeHandle=function(i,a){var r=this.props.handle;if(!r)return JS.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+i,ref:a});if(typeof r=="function")return r(i,a);var c=typeof r.type=="string",f=XR({ref:a},c?{}:{handleAxis:i});return JS.cloneElement(r,f)},s.render=function(){var i=this,a=this.props,r=a.children,c=a.className,f=a.draggableOpts;a.width,a.height,a.handle,a.handleSize,a.lockAspectRatio,a.axis,a.minConstraints,a.maxConstraints,a.onResize,a.onResizeStop,a.onResizeStart;var e=a.resizeHandles;a.transformScale;var E=yPe(a,vPe);return(0,mPe.cloneElement)(r,XR(XR({},E),{},{className:(c?c+" ":"")+"react-resizable",children:[].concat(r.props.children,e.map(function(_){var R,D=(R=i.handleRefs[_])!=null?R:i.handleRefs[_]=JS.createRef();return JS.createElement(pPe.DraggableCore,VP({},f,{nodeRef:D,key:"resizableHandle-"+_,onStop:i.resizeHandler("onResizeStop",_),onStart:i.resizeHandler("onResizeStart",_),onDrag:i.resizeHandler("onResize",_)}),i.renderResizeHandle(_,D))}))}))},t}(JS.Component);VA.default=HD;HD.propTypes=gPe.resizableProps;HD.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var G3={};G3.__esModule=!0;G3.default=void 0;var ZR=TPe(lt),SPe=XJ(yA),xPe=XJ(VA),APe=WA,_Pe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function XJ(n){return n&&n.__esModule?n:{default:n}}function ZJ(n){if(typeof WeakMap!="function")return null;var t=new WeakMap,s=new WeakMap;return(ZJ=function(i){return i?s:t})(n)}function TPe(n,t){if(!t&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var s=ZJ(t);if(s&&s.has(n))return s.get(n);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in n)if(a!=="default"&&Object.prototype.hasOwnProperty.call(n,a)){var r=i?Object.getOwnPropertyDescriptor(n,a):null;r&&(r.get||r.set)?Object.defineProperty(o,a,r):o[a]=n[a]}return o.default=n,s&&s.set(n,o),o}function GP(){return GP=Object.assign?Object.assign.bind():function(n){for(var t=1;t=0)&&(s[i]=n[i]);return s}function PPe(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,KP(n,t)}function KP(n,t){return KP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},KP(n,t)}var JJ=function(n){PPe(t,n);function t(){for(var o,i=arguments.length,a=new Array(i),r=0;rDe.createElement(De.Fragment,{key:E},e)),De.createElement($Pe,{width:a,height:0,onResize:s,onResizeStart:o,onResizeStop:i,draggableOpts:{enableUserSelectHack:!1},axis:"x"},De.createElement("th",Object.assign({},c),f))}}const MPe=DPe;var jPe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;const{components:s,columns:o,resizable:i}=n,a=jPe(n,["components","columns","resizable"]),r="children",c=_s(i,"onResize",os),f=_s(i,"onResizeStart",os),e=_s(i,"onResizeStop",os),E=Array.isArray(o)&&o.length?o:b4(n.children),_=g4(a1(E),r),R=g4(a1(E),r);typeof n.expandedRowRender=="function"&&!n.hideExpandedColumn&&!u2(_,ht=>ht.key===pl.DEFAULT_KEY_COLUMN_EXPAND)&&R.unshift({key:pl.DEFAULT_KEY_COLUMN_EXPAND,width:am.DEFAULT_WIDTH_COLUMN_EXPAND}),n.rowSelection&&!u2(_,ht=>ht.key===pl.DEFAULT_KEY_COLUMN_SELECTION)&&R.unshift({width:_s(n,"rowSelection.width",am.DEFAULT_WIDTH_COLUMN_SELECTION),key:pl.DEFAULT_KEY_COLUMN_SELECTION});const[D,J]=lt.useState(R);lt.useEffect(()=>{const ht=FIe(D,R);J(BP(D,ht))},[o,n.expandedRowRender,n.hideExpandedColumn,n.rowSelection]);const re=lt.useMemo(()=>LA({header:{cell:MPe}},s),[s]),ie=_s(i,"handlerClassName","resizing"),ae=ht=>(yt,Ft)=>{let{size:Zt}=Ft;const Nt=a1(D),kt=JT(Nt,ht,r);let fn=Object.assign(Object.assign({},kt),{width:Zt.width});const tn=c(fn)||{};fn=Object.assign(Object.assign({},fn),tn),Object.assign(kt,fn),J(Nt)},de=ht=>yt=>{const Ft=a1(D),Zt=JT(Ft,ht,r);let Nt=Object.assign(Object.assign({},Zt),{className:y7e(Zt.className,ie)});const kt=f(Nt)||{};Nt=Object.assign(Object.assign({},Nt),kt),Object.assign(Zt,Nt),J(Ft)},ye=ht=>yt=>{const Ft=a1(D),Zt=JT(Ft,ht,r);let Nt=Object.assign(Object.assign({},Zt),{className:C7e(Zt.className,ie)});const kt=e(Nt)||{};Nt=Object.assign(Object.assign({},Nt),kt),Object.assign(Zt,Nt),J(Ft)},Fe=function(ht,yt){let Ft=arguments.length>3?arguments[3]:void 0;return Object.assign(Object.assign({},ht),{onHeaderCell:Zt=>Object.assign(Object.assign({},Ft),{width:Zt.width,onResize:ae(Zt),onResizeStart:de(Zt),onResizeStop:ye(Zt)})})},Ge=function(){let ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(ht)&&ht.length?ht.map((Ft,Zt)=>{var Nt,kt;const fn=(kt=(Nt=Ft.onHeaderCell)===null||Nt===void 0?void 0:Nt.call(Ft,Ft,Zt,yt))!==null&&kt!==void 0?kt:{};Object.assign(Ft,Fe(Ft,Zt,yt,fn));const tn=Ft[r];return Array.isArray(tn)&&tn.length&&(Ft[r]=Ge(tn,yt+1)),Ft}):[]},tt=lt.useMemo(()=>Ge(D),[D]);return De.createElement(MD,Object.assign({},a,{columns:tt,components:re,ref:t}))},UPe=De.forwardRef(FPe);let T2=class extends De.PureComponent{constructor(t){super(t),this.getCurrentPageData=()=>this.tableRef.current&&this.tableRef.current.getCurrentPageData(),this.tableRef=De.createRef()}render(){var t;const s=this.props,o=(t=this.props.direction)!==null&&t!==void 0?t:this.context.direction;return s.resizable?De.createElement(UPe,Object.assign({},s,{ref:this.tableRef,direction:o})):De.createElement(MD,Object.assign({},s,{ref:this.tableRef,direction:o}))}};T2.Column=D3;T2.DEFAULT_KEY_COLUMN_SELECTION=pl.DEFAULT_KEY_COLUMN_SELECTION;T2.DEFAULT_KEY_COLUMN_EXPAND=pl.DEFAULT_KEY_COLUMN_EXPAND;T2.propTypes=Object.assign(Object.assign({},MD.propTypes),{resizable:W.oneOfType([W.bool,W.object])});T2.defaultProps={hideExpandedColumn:!0};T2.contextType=K1;const BPe=T2,Wc={TABS:`${mo}-tabs`,TABS_BAR:`${mo}-tabs-bar`,TABS_BAR_LINE:`${mo}-tabs-bar-line`,TABS_BAR_CARD:`${mo}-tabs-bar-card`,TABS_BAR_BUTTON:`${mo}-tabs-bar-button`,TABS_BAR_EXTRA:`${mo}-tabs-bar-extra`,TABS_TAB:`${mo}-tabs-tab`,TABS_TAB_ACTIVE:`${mo}-tabs-tab-active`,TABS_TAB_DISABLED:`${mo}-tabs-tab-disabled`,TABS_CONTENT:`${mo}-tabs-content`,TABS_CONTENT_ANIMATED:`${mo}-tabs-content-animated`,TABS_CONTENT_NO_ANIMATED:`${mo}-tabs-content-no-animated`,TABS_PANE:`${mo}-tabs-pane`,TABS_PANE_INACTIVE:`${mo}-tabs-pane-inactive`,TABS_PANE_ACTIVE:`${mo}-tabs-pane-active`,TABS_PANE_MOTION_OVERLAY:`${mo}-tabs-pane-motion-overlay`,TABS_PANE_ANIMATING:`${mo}-tabs-pane-animating`,TABS_PANE_ANIMATE_LEFT_SHOW:`${mo}-tabs-pane-animate-leftShow`,TABS_PANE_ANIMATE_RIGHT_SHOW:`${mo}-tabs-pane-animate-rightShow`,TABS_PANE_ANIMATE_TOP_SHOW:`${mo}-tabs-pane-animate-topShow`,TABS_PANE_ANIMATE_BOTTOM_SHOW:`${mo}-tabs-pane-animate-bottomShow`},ZE={TYPE_MAP:["line","card","button"],SIZE:["small","medium","large"],POSITION_MAP:["top","left"]};class zPe extends fc{constructor(t){super(Object.assign({},t)),this.destroy=os,this.handlePrevent=s=>{s.stopPropagation(),s.preventDefault()},this.handleKeyDown=(s,o,i)=>{const{preventScroll:a}=this.getProps(),r=[...s.target.parentNode.childNodes].filter(c=>_s(c,"attributes.data-tabkey.value","").includes("semiTab")&&_s(c,"attributes.aria-disabled.value","")!=="true");switch(s.key){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":this.determineOrientation(s,r);break;case"Backspace":case"Delete":this.handleDeleteKeyDown(s,r,o,i);break;case"Enter":case" ":this.handleTabClick(o,s),this.handlePrevent(s);break;case"Home":r[0].focus({preventScroll:a}),this.handlePrevent(s);break;case"End":r[r.length-1].focus({preventScroll:a}),this.handlePrevent(s);break}}}init(){this._adapter.collectPane()}_notifyChange(t){const{activeKey:s}=this.getStates();s!==t&&this._adapter.notifyChange(t)}handleTabClick(t,s){this._isInProps("activeKey")?this._notifyChange(t):(this._notifyChange(t),this.handleNewActiveKey(t)),this._adapter.notifyTabClick(t,s)}handleNewActiveKey(t){const{activeKey:s}=this.getStates();s!==t&&this._adapter.setNewActiveKey(t)}getDefaultActiveKey(){let t;const s=this.getProps();return"activeKey"in s?t=s.activeKey:"defaultActiveKey"in s?t=s.defaultActiveKey:t=this._adapter.getDefaultActiveKeyFromChildren(),t}handleTabListChange(){this._adapter.collectPane()}handleTabPanesChange(){this._adapter.collectPane(),this._adapter.collectActiveKey()}handleTabDelete(t){this._adapter.notifyTabDelete(t)}determineOrientation(t,s){const{tabPosition:o}=this.getProps();o==="left"?(t.key==="ArrowUp"||t.key==="ArrowDown")&&(this.switchTabOnArrowPress(t,s),this.handlePrevent(t)):(t.key==="ArrowLeft"||t.key==="ArrowRight")&&(this.switchTabOnArrowPress(t,s),this.handlePrevent(t))}handleDeleteKeyDown(t,s,o,i){const{preventScroll:a}=this.getProps();if(i){this.handleTabDelete(o);const r=s.indexOf(t.target);s.length!==1&&s[r+1>=s.length?r-1:r+1].focus({preventScroll:a})}}switchTabOnArrowPress(t,s){const{preventScroll:o}=this.getProps(),i=s.indexOf(t.target),a={ArrowLeft:-1,ArrowUp:-1,ArrowRight:1,ArrowDown:1};a[t.key]&&i!==void 0&&(s[i+a[t.key]]?s[i+a[t.key]].focus({preventScroll:o}):t.key==="ArrowLeft"||t.key==="ArrowUp"?s[s.length-1].focus({preventScroll:o}):(t.key==="ArrowRight"||t.key=="ArrowDown")&&s[0].focus({preventScroll:o}))}}const HPe=zPe;var VPe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{const{tab:s,size:o,type:i,icon:a,selected:r,closable:c,disabled:f,itemKey:e,deleteTabItem:E,tabPosition:_,handleKeyDown:R,onClick:D}=n,J=VPe(n,["tab","size","type","icon","selected","closable","disabled","itemKey","deleteTabItem","tabPosition","handleKeyDown","onClick"]),re=lt.useMemo(()=>i==="card"&&c?De.createElement(sw,{"aria-label":"Close",role:"button",className:`${Wc.TABS_TAB}-icon-close`,onClick:Ge=>E(e,Ge)}):null,[i,c,E,e]),ie=lt.useCallback(Ge=>De.createElement("span",null,Ge),[]),ae=lt.useCallback(Ge=>{R&&R(Ge,e,c)},[R,e,c]),de=lt.useCallback(Ge=>{!f&&D&&D(e,Ge)},[e,f,D]),ye=a?ie(a):null,Fe=Ar(Wc.TABS_TAB,`${Wc.TABS_TAB}-${i}`,`${Wc.TABS_TAB}-${_}`,`${Wc.TABS_TAB}-single`,{[Wc.TABS_TAB_ACTIVE]:r,[Wc.TABS_TAB_DISABLED]:f,[`${Wc.TABS_TAB}-small`]:o==="small",[`${Wc.TABS_TAB}-medium`]:o==="medium"});return De.createElement("div",Object.assign({role:"tab",id:`semiTab${e}`,"data-tabkey":`semiTab${e}`,"aria-controls":`semiTabPanel${e}`,"aria-disabled":f?"true":"false","aria-selected":r?"true":"false",tabIndex:r?0:-1,onKeyDown:ae,onClick:de,className:Fe},J,{ref:t}),ye,s,re)},QJ=lt.forwardRef(WPe);QJ.elementType="Tabs.TabItem";const eQ=QJ;var GPe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{if(this.props.onTabClick(s,o),this.props.collapsible){const i=this._getItemKey(s);document.querySelector(`[data-uuid="${this.state.uuid}"] .${Wc.TABS_TAB}[data-scrollkey="${i}"]`).scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}},this.handleKeyDown=(s,o,i)=>{this.props.handleKeyDown(s,o,i)},this.renderTabItem=s=>{const{size:o,type:i,deleteTabItem:a,handleKeyDown:r,tabPosition:c}=this.props,f=this._isActive(s.itemKey);return De.createElement(eQ,Object.assign({},by(s,["disabled","icon","itemKey","tab","closable"]),{key:this._getItemKey(s.itemKey),selected:f,size:o,type:i,tabPosition:c,handleKeyDown:r,deleteTabItem:a,onClick:this.handleItemClick}))},this.renderTabComponents=s=>s.map(o=>this.renderTabItem(o)),this.handleArrowClick=(s,o)=>{const i=o==="start"?s.pop():s.shift();if(!i)return;const a=this._getItemKey(i.itemKey);document.querySelector(`[data-uuid="${this.state.uuid}"] .${Wc.TABS_TAB}[data-scrollkey="${a}"]`).scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},this.renderCollapse=(s,o,i)=>{if(ib(s))return De.createElement(xl,{disabled:!0,icon:o,theme:"borderless"});const{dropdownClassName:a,dropdownStyle:r}=this.props,{rePosKey:c}=this.state,f=!s.length,e=De.createElement(dc.Menu,null,s.map(R=>{const{icon:D,tab:J,itemKey:re}=R,ie=D?this.renderIcon(R.icon):null;return De.createElement(dc.Item,{key:re,onClick:ae=>this.handleItemClick(re,ae),active:this._isActive(re)},ie,J)})),E=Ar({[`${Wc.TABS_BAR}-arrow-${i}`]:i,[`${Wc.TABS_BAR}-arrow`]:!0}),_=Ar(a,{[`${Wc.TABS_BAR}-dropdown`]:!0});return De.createElement(dc,{className:_,clickToHide:!0,clickTriggerToHide:!0,key:`${c}-${i}`,position:i==="start"?"bottomLeft":"bottomRight",render:f?null:e,showTick:!0,style:r,trigger:"hover",disableFocusListener:!0},De.createElement("div",{role:"presentation",className:E,onClick:R=>this.handleArrowClick(s,i)},De.createElement(xl,{disabled:f,icon:o,theme:"borderless"})))},this.renderOverflow=s=>s.map((o,i)=>{const a=i===0?De.createElement(C9,null):De.createElement(nS,null),r=i===0?"start":"end";return this.renderCollapse(o,a,r)}),this.renderCollapsedTab=()=>{const{list:s}=this.props,o=s.map(i=>{const{itemKey:a}=i;return Object.assign({key:this._getItemKey(a),active:this._isActive(a)},i)});return De.createElement(oJ,{items:o,overflowRenderer:this.renderOverflow,renderMode:"scroll",className:`${Wc.TABS_BAR}-overflow-list`,visibleItemRenderer:this.renderTabItem})},this._isActive=s=>s===this.props.activeKey,this._getItemKey=s=>`${s}-bar`,this.state={endInd:t.list.length,rePosKey:0,startInd:0,uuid:""}}componentDidMount(){this.setState({uuid:HT()})}renderIcon(t){return De.createElement("span",null,t)}renderExtra(){const{tabBarExtraContent:t,type:s,size:o}=this.props,i={float:"right"},a=t&&t.props?t.props.style:{},r=Ar(Wc.TABS_BAR_EXTRA,{[`${Wc.TABS_BAR}-${s}-extra`]:s,[`${Wc.TABS_BAR}-${s}-extra-${o}`]:o});if(t){const c=Object.assign(Object.assign({},i),a);return De.createElement("div",{className:r,style:c,"x-semi-prop":"tabBarExtraContent"},t)}return null}render(){const t=this.props,{type:s,style:o,className:i,list:a,tabPosition:r,collapsible:c}=t,f=GPe(t,["type","style","className","list","tabPosition","collapsible"]),e=Ar(i,{[Wc.TABS_BAR]:!0,[Wc.TABS_BAR_LINE]:s==="line",[Wc.TABS_BAR_CARD]:s==="card",[Wc.TABS_BAR_BUTTON]:s==="button",[`${Wc.TABS_BAR}-${r}`]:r,[`${Wc.TABS_BAR}-collapse`]:c}),E=this.renderExtra(),_=c?this.renderCollapsedTab():this.renderTabComponents(a);return De.createElement("div",Object.assign({role:"tablist","aria-orientation":r==="left"?"vertical":"horizontal",className:e,style:o},H1(f),{"data-uuid":this.state.uuid}),_,E)}}tQ.propTypes={activeKey:W.string,className:W.string,collapsible:W.bool,list:W.array,onTabClick:W.func,size:W.oneOf(ZE.SIZE),style:W.object,tabBarExtraContent:W.node,tabPosition:W.oneOf(ZE.POSITION_MAP),type:W.oneOf(ZE.TYPE_MAP),closable:W.bool,deleteTabItem:W.func};const Yz=tQ,KPe=De.createContext({}),nQ=KPe;var qPe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{if(s!==null&&t!==null&&Array.isArray(o)&&o.length){const a=o.findIndex(f=>f.itemKey===t),r=o.findIndex(f=>f.itemKey===s),c=o.findIndex(f=>f.itemKey===i);return a===r?c>a:r{const{itemKey:t}=this.props,{activeKey:s,lazyRender:o}=this.context,i=s===t;return this._active=this._active||i,o?this._active:!0}}render(){const{tabPaneMotion:t,tabPosition:s,prevActiveKey:o}=this.context,i=this.props,{className:a,style:r,children:c,itemKey:f,tabIndex:e}=i,E=qPe(i,["className","style","children","itemKey","tabIndex"]),_=this.context.activeKey===f,R=Ar(a,{[Wc.TABS_PANE_INACTIVE]:!_,[Wc.TABS_PANE_ACTIVE]:_,[Wc.TABS_PANE]:!0}),D=this.shouldRender(),J=(()=>{const ae=this.getDirection(this.context.activeKey,f,this.context.panes,o);return s==="top"?ae?Wc.TABS_PANE_ANIMATE_RIGHT_SHOW:Wc.TABS_PANE_ANIMATE_LEFT_SHOW:ae?Wc.TABS_PANE_ANIMATE_BOTTOM_SHOW:Wc.TABS_PANE_ANIMATE_TOP_SHOW})(),re=!this.context.panes.find(ae=>ae.itemKey===o),ie=t&&_&&!re&&!this.context.forceDisableMotion;return De.createElement("div",Object.assign({ref:this.ref,role:"tabpanel",id:`semiTabPanel${f}`,"aria-labelledby":`semiTab${f}`,className:R,style:r,"aria-hidden":_?"false":"true",tabIndex:e||0},H1(E),{"x-semi-prop":"children"}),De.createElement(BC,{motion:ie,animationState:_?"enter":"leave",startClassName:J},ae=>{let{animationClassName:de,animationEventsNeedBind:ye}=ae;return De.createElement("div",Object.assign({className:Ar(Wc.TABS_PANE_MOTION_OVERLAY,de),"x-semi-prop":"children"},ye),D?c:null)}))}}K3.isTabPane=!0;K3.contextType=nQ;K3.propTypes={className:W.string,style:W.object,children:W.node,disabled:W.bool,itemKey:W.string,tab:W.node,icon:W.node,closable:W.bool};const qP=K3;var YPe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{this.contentRef={current:s}},this.onTabClick=(s,o)=>{this.foundation.handleTabClick(s,o)},this.rePosChildren=(s,o)=>{const i=[],a=De.Children.toArray(s);return s.length&&(i.push(...a.filter(r=>r.props&&r.props.itemKey===o)),i.push(...a.filter(r=>r.props&&r.props.itemKey!==o))),i},this.getActiveItem=()=>{const{activeKey:s}=this.state,{children:o,tabList:i}=this.props;return i||!Array.isArray(o)?o:De.Children.toArray(o).filter(a=>lt.isValidElement(a)&&a.type&&a.type.isTabPane?a.props.itemKey===s:!0)},this.deleteTabItem=(s,o)=>{o.stopPropagation(),this.foundation.handleTabDelete(s)},this.foundation=new HPe(this.adapter),this.state={activeKey:this.foundation.getDefaultActiveKey(),panes:[],prevActiveKey:null,forceDisableMotion:!1},this.contentRef=lt.createRef(),this.contentHeight="auto"}get adapter(){return Object.assign(Object.assign({},super.adapter),{collectPane:()=>{const{tabList:t,children:s}=this.props;if(Array.isArray(t)&&t.length){this.setState({panes:t});return}const o=De.Children.map(s,i=>{if(i){const{tab:a,icon:r,disabled:c,itemKey:f,closable:e}=i.props;return{tab:a,icon:r,disabled:c,itemKey:f,closable:e}}});this.setState({panes:o})},collectActiveKey:()=>{let t=[];const{tabList:s,children:o,activeKey:i}=this.props;if(typeof i<"u")return;const{activeKey:a}=this.state;Array.isArray(s)&&s.length?t=s:t=De.Children.map(o,r=>{if(r){const{tab:c,icon:f,disabled:e,itemKey:E,closable:_}=r.props;return{tab:c,icon:f,disabled:e,itemKey:E,closable:_}}}),t.findIndex(r=>r.itemKey===a)===-1&&(t.length>0?this.setState({activeKey:t[0].itemKey}):this.setState({activeKey:""}))},notifyTabClick:(t,s)=>{this.props.onTabClick(t,s)},notifyChange:t=>{this.props.onChange(t)},setNewActiveKey:t=>{this.setState({activeKey:t})},getDefaultActiveKeyFromChildren:()=>{const{tabList:t,children:s}=this.props;let o="";return(t||De.Children.toArray(s).map(a=>lt.isValidElement(a)?a.props:null)).forEach(a=>{a&&!o&&!a.disabled&&(o=a.itemKey)}),o},notifyTabDelete:t=>{this.props.onTabClose&&this.props.onTabClose(t)}})}static getDerivedStateFromProps(t,s){const o={};return!yb(t.activeKey)&&t.activeKey!==s.activeKey&&(s.prevActiveKey=s.activeKey,o.activeKey=t.activeKey),o}componentDidUpdate(t,s){const o=De.Children.toArray(t.children).map(r=>by(lt.isValidElement(r)?r.props:null,Xz)),i=De.Children.toArray(this.props.children).map(r=>by(lt.isValidElement(r)?r.props:null,Xz)),a=this.props.tabList||t.tabList;if(Mp(this.props.tabList,t.tabList)||this.foundation.handleTabListChange(),s.activeKey!==this.state.activeKey&&s.activeKey!==this.state.prevActiveKey&&this.setState({prevActiveKey:s.activeKey}),t.activeKey!==this.props.activeKey){const r=(()=>{const c=new Set(o.map(f=>f.itemKey));return i.map(f=>f.itemKey).filter(f=>!c.has(f))})();this.setState({forceDisableMotion:r.includes(this.props.activeKey)})}!Mp(o,i)&&!a&&this.foundation.handleTabPanesChange()}render(){const t=this.props,{children:s,className:o,collapsible:i,contentStyle:a,keepDOM:r,lazyRender:c,renderTabBar:f,size:e,style:E,tabBarClassName:_,tabBarExtraContent:R,tabBarStyle:D,tabPaneMotion:J,tabPosition:re,type:ie}=t,ae=YPe(t,["children","className","collapsible","contentStyle","keepDOM","lazyRender","renderTabBar","size","style","tabBarClassName","tabBarExtraContent","tabBarStyle","tabPaneMotion","tabPosition","type"]),{panes:de,activeKey:ye}=this.state,Fe=Ar(o,{[Wc.TABS]:!0,[`${Wc.TABS}-${re}`]:re}),Ge=Ar({[Wc.TABS_CONTENT]:!0,[`${Wc.TABS_CONTENT}-${re}`]:re}),tt={activeKey:ye,className:_,collapsible:i,list:de,onTabClick:this.onTabClick,size:e,style:D,tabBarExtraContent:R,tabPosition:re,type:ie,deleteTabItem:this.deleteTabItem,handleKeyDown:this.foundation.handleKeyDown},ht=f?f(tt,Yz):De.createElement(Yz,Object.assign({},tt)),yt=r?s:this.getActiveItem();return De.createElement("div",Object.assign({className:Fe,style:E},this.getDataAttr(ae)),ht,De.createElement(nQ.Provider,{value:{activeKey:ye,lazyRender:c,panes:de,tabPaneMotion:J,tabPosition:re,prevActiveKey:this.state.prevActiveKey,forceDisableMotion:this.state.forceDisableMotion}},De.createElement("div",{ref:this.setContentRef,className:Ge,style:Object.assign({},a)},yt)))}}GA.TabPane=qP;GA.TabItem=eQ;GA.propTypes={activeKey:W.string,className:W.string,collapsible:W.bool,contentStyle:W.oneOfType([W.object]),defaultActiveKey:W.string,keepDOM:W.bool,lazyRender:W.bool,onChange:W.func,onTabClick:W.func,renderTabBar:W.func,size:W.oneOf(ZE.SIZE),style:W.object,tabBarClassName:W.string,tabBarExtraContent:W.node,tabBarStyle:W.object,tabList:W.array,tabPaneMotion:W.bool,tabPosition:W.oneOf(ZE.POSITION_MAP),type:W.oneOf(ZE.TYPE_MAP),onTabClose:W.func,preventScroll:W.bool};GA.defaultProps={children:[],collapsible:!1,keepDOM:!0,lazyRender:!1,onChange:()=>{},onTabClick:()=>{},size:"large",tabPaneMotion:!0,tabPosition:"top",type:"line",onTabClose:()=>{}};const rQ=GA;class VD extends fc{constructor(t){super(Object.assign(Object.assign({},VD.defaultAdapter),t)),this.handleMouseInSideChange=s=>{this._adapter.handleMouseInSideChange(s)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(t){return this._adapter.getState("list").map(o=>{let{id:i}=o;return i}).includes(t)}addToast(t){const s=this._adapter.getState("list");s.push(t),this._adapter.updateToast(s,[],[])}updateToast(t,s){let o=this._adapter.getState("list");o=o.map(a=>a.id===t?Object.assign(Object.assign({},a),s):a);const i=o.filter(a=>a.id===t);this._adapter.updateToast(o,[],i)}removeToast(t){let s=this._adapter.getState("list");const o=[];s=s.filter(i=>i.id===t?(o.push(i),!1):!0),this._adapter.updateToast(s,o,[])}destroyAll(){const t=this._adapter.getState("list");t.length>0&&this._adapter.updateToast([],t,[])}}const JR=`${mo}-toast`,iE={PREFIX:JR,WRAPPER:`${JR}-wrapper`,LIST:`${JR}-list`},QT={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},XPe={duration:3};class WD extends fc{constructor(t){super(Object.assign(Object.assign({},WD.defaultAdapter),t)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const t=this._adapter.getProp("duration");t&&Lm(t)&&(this._timer=setTimeout(()=>{this.close()},t*1e3))}close(t){t&&t.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const _1=iE.PREFIX;let q3=class extends Ml{constructor(t){super(t),this.toastEle=De.createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new WD(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:t=>{this.props.close(t)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(t){this.foundation.close(t)}renderIcon(){const{type:t,icon:s}=this.props,i={warning:De.createElement(xA,null),success:De.createElement(TA,null),info:De.createElement(n3,null),error:De.createElement(tS,null)}[t],a="large",r=Ar(`${_1}-icon`,`${_1}-icon-${t}`);return s?l1(s)?De.cloneElement(s,{size:a,className:`${_1}-icon`}):s:t&&i?De.cloneElement(i,{size:a,className:r}):null}render(){const{content:t,type:s,theme:o,showClose:i,textMaxWidth:a,className:r,style:c}=this.props,f=this.props.direction||this.context.direction,e=Ar(_1,r,{[`${_1}-${s}`]:!0,[`${_1}-${o}`]:o==="light",[`${_1}-rtl`]:f==="rtl"}),E={};E.maxWidth=a;const _="borderless",R="small",D=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,J=De.createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${s||"default"} type`,className:e,style:Object.assign(Object.assign({},c),{transform:`translate3d(0,0,${D*-10}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},De.createElement("div",{className:`${_1}-content`},this.renderIcon(),De.createElement("span",{className:`${_1}-content-text`,style:E,"x-semi-prop":"content"},t),i&&De.createElement("div",{className:`${_1}-close-button`},De.createElement(oS,{onClick:re=>this.close(re),type:"tertiary",icon:De.createElement(sw,{"x-semi-prop":"icon"}),theme:_,size:R}))));if(this.props.stack){const re=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return De.createElement("div",{className:`${_1}-zero-height-wrapper`,style:{height:re}},J)}else return J}};q3.contextType=K1;q3.propTypes={onClose:W.func,content:W.node,close:W.func,duration:W.number,theme:W.oneOf(QT.themes),type:W.oneOf(QT.types),textMaxWidth:W.oneOfType([W.string,W.number]),style:W.object,className:W.string,showClose:W.bool,stack:W.bool,stackExpanded:W.bool,icon:W.node,direction:W.oneOf(QT.directions)};q3.defaultProps={onClose:os,content:"",close:os,duration:XPe.duration,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"};const sQ=q3;var ZPe=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{var{afterClose:s}=n,o=ZPe(n,["afterClose"]);const[i,a]=lt.useState(!0),r=()=>{a(!1)};return De.useImperativeHandle(t,()=>({close:()=>{a(!1)}})),lt.useEffect(()=>{i||s(o.id)},[i]),i?De.createElement(sQ,Object.assign({},o,{close:r})):null},QPe=De.forwardRef(JPe),QS={motion:!0,zIndex:1010,duration:3};function e$e(){const[n,t]=De.useState([]);function s(o,i){return t(a=>[{element:o,config:i},...a]),a=>{t(r=>r.filter(c=>{let{config:f}=c;return f.id!==a}))}}return[n,s]}function t$e(){const[n,t]=e$e(),s=lt.useRef(new Map),o=a=>{const r=e4("semi_toast_"),c=Object.assign(Object.assign({},a),{id:r});let f;const e=De.createElement(QPe,Object.assign({},c,{key:r,afterClose:E=>f(E),ref:E=>{var _;s.current.set(r,{close:(_=E==null?void 0:E.close)!==null&&_!==void 0?_:os})}}));return f=t(e,Object.assign({},c)),r},i=a=>{var r;const{close:c}=(r=s.current.get(a))!==null&&r!==void 0?r:{};c==null||c()};return[{success:a=>o(Object.assign(Object.assign(Object.assign({},QS),a),{type:"success"})),info:a=>o(Object.assign(Object.assign(Object.assign({},QS),a),{type:"info"})),error:a=>o(Object.assign(Object.assign(Object.assign({},QS),a),{type:"error"})),warning:a=>o(Object.assign(Object.assign(Object.assign({},QS),a),{type:"warning"})),open:a=>o(Object.assign(Object.assign(Object.assign({},QS),a),{type:"default"})),close:a=>i(a)},De.createElement(De.Fragment,null,Array.isArray(n)&&n.length?De.createElement(De.Fragment,null,n.map(a=>a.element)):null)]}const n$e=()=>{var n;return n=class sh extends Ml{constructor(s){super(s),this.stack=!1,this.innerWrapperRef=De.createRef(),this.handleMouseEnter=o=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=o=>{var i;this.stack&&(!((i=this.foundation.getInputWrapperRect())===null||i===void 0)&&i.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new VD(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(s,o,i)=>{this.setState({list:s,removedItems:o,updatedItems:i})},handleMouseInSideChange:s=>{this.setState({mouseInSide:s})},getInputWrapperRect:()=>{var s;return(s=this.innerWrapperRef.current)===null||s===void 0?void 0:s.getBoundingClientRect()}})}static create(s){var o;const i=(o=s.id)!==null&&o!==void 0?o:e4("toast");if(sh.ref){const a=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(r=>{r in s&&(a.style[r]=typeof s[r]=="number"?`${s[r]}px`:s[r])}),!!s.stack!==sh.ref.stack&&(sh.ref.stack=!!s.stack),sh.ref.has(i)?sh.ref.update(i,Object.assign(Object.assign({},s),{id:i})):sh.ref.add(Object.assign(Object.assign({},s),{id:i}))}else{const a=document.createElement("div");this.wrapperId||(this.wrapperId=e4("toast-wrapper").slice(0,26)),a.className=iE.WRAPPER,a.id=this.wrapperId,a.style.zIndex=String(typeof s.zIndex=="number"?s.zIndex:sh.defaultOpts.zIndex),["top","left","bottom","right"].map(r=>{if(r in sh.defaultOpts||r in s){const c=s[r]?s[r]:sh.defaultOpts[r];a.style[r]=typeof c=="number"?`${c}px`:c}}),sh.defaultOpts.getPopupContainer?sh.defaultOpts.getPopupContainer().appendChild(a):document.body.appendChild(a),F1.render(De.createElement(sh,{ref:r=>sh.ref=r}),a,()=>{sh.ref.add(Object.assign(Object.assign({},s),{id:i})),sh.ref.stack=!!s.stack})}return i}static close(s){sh.ref&&sh.ref.remove(s)}static destroyAll(){if(sh.ref){sh.ref.destroyAll();const s=document.querySelector(`#${this.wrapperId}`);F1.unmountComponentAtNode(s),s&&s.parentNode.removeChild(s),sh.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(s){return typeof s=="string"&&(s={content:s}),this.create(Object.assign(Object.assign(Object.assign({},sh.defaultOpts),s),{type:"info"}))}static warning(s){return typeof s=="string"&&(s={content:s}),this.create(Object.assign(Object.assign(Object.assign({},sh.defaultOpts),s),{type:"warning"}))}static error(s){return typeof s=="string"&&(s={content:s}),this.create(Object.assign(Object.assign(Object.assign({},sh.defaultOpts),s),{type:"error"}))}static success(s){return typeof s=="string"&&(s={content:s}),this.create(Object.assign(Object.assign(Object.assign({},sh.defaultOpts),s),{type:"success"}))}static config(s){["top","left","bottom","right"].forEach(o=>{o in s&&(sh.defaultOpts[o]=s[o])}),typeof s.zIndex=="number"&&(sh.defaultOpts.zIndex=s.zIndex),typeof s.duration=="number"&&(sh.defaultOpts.duration=s.duration),typeof s.getPopupContainer=="function"&&(sh.defaultOpts.getPopupContainer=s.getPopupContainer)}has(s){return this.foundation.hasToast(s)}add(s){return this.foundation.addToast(s)}update(s,o){return this.foundation.updateToast(s,o)}remove(s){return this.foundation.removeToast(s)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:s}=this.state;const{removedItems:o,updatedItems:i}=this.state;s=Array.from(new Set([...s,...o]));const a=i.map(c=>{let{id:f}=c;return f}),r=c=>{var f;!((f=c==null?void 0:c.foundation)===null||f===void 0)&&f._id&&a.includes(c.foundation._id)&&c.foundation.restartCloseTimer()};return De.createElement(De.Fragment,null,De.createElement("div",{className:Ar({[`${iE.PREFIX}-innerWrapper`]:!0,[`${iE.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},s.map((c,f)=>{const e=o.find(E=>E.id===c.id)!==void 0;return De.createElement(BC,{key:c.id,motion:c.motion,animationState:e?"leave":"enter",startClassName:e?`${iE.PREFIX}-animation-hide`:`${iE.PREFIX}-animation-show`},E=>{let{animationClassName:_,animationEventsNeedBind:R,isAnimating:D}=E;return e&&!D?null:De.createElement(sQ,Object.assign({},c,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:s.length,index:f},className:Ar({[c.className]:!!c.className,[_]:!0})},R,{style:Object.assign({},c.style),close:J=>this.remove(J),ref:r}))})})))}},n.defaultOpts={motion:!0,zIndex:1010,content:""},n.propTypes={content:W.node,duration:W.number,onClose:W.func,icon:W.node,direction:W.oneOf(QT.directions),stack:W.bool},n.defaultProps={},n};class r$e{static create(t){const s=n$e();return s.useToast=t$e,t&&s.config(t),s}}const Eh=r$e.create(),Zz=`${mo}-upload`,Jz="picture",Qz="list",s$e=.95,oQ={PREFIX:Zz,LIST:`${Zz}-list`},eH="auto",tH="custom",id={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:Jz,FILE_LIST_DEFAULT:Qz,LIST_TYPE:[Jz,Qz],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:eH,TRIGGER_CUSTOM:tH,UPLOAD_TRIGGER:[eH,tH],VALIDATE_STATUS:t9,PROMPT_POSITION:["left","right","bottom"]},o$e={PROGRESS_COEFFICIENT:s$e};var YP=function(n,t,s,o){function i(a){return a instanceof s?a:new s(function(r){r(a)})}return new(s||(s=Promise))(function(a,r){function c(E){try{e(o.next(E))}catch(_){r(_)}}function f(E){try{e(o.throw(E))}catch(_){r(_)}}function e(E){E.done?a(E.value):i(E.value).then(c,f)}e((o=o.apply(n,t||[])).next())})};const IE=1024,QR=1048576;function XP(n){if(n=IE&&n=QR)return`${(n/QR).toFixed(1)}MB`}function i$e(n,t){return n.indexOf(t,n.length-t.length)!==-1}function a$e(n){return YP(this,void 0,void 0,function*(){return new Promise((t,s)=>{const o=n.createReader();let i=[];function a(){o.readEntries(r=>{const c=Array.prototype.slice.apply(r);i=i.concat(c),!c.length?t(i):a()},s)}a()})})}function l$e(n){return YP(this,void 0,void 0,function*(){const t=[],s=(o,i)=>YP(this,void 0,void 0,function*(){if(i=i||"",o.path=i,o.isFile)t.push(new Promise((a,r)=>{o.file(c=>{o.fullPath&&!c.webkitRelativePath&&(Object.defineProperties(c,{webkitRelativePath:{writable:!0}}),c.webkitRelativePath=o.fullPath.replace(/^\//,""),Object.defineProperties(c,{webkitRelativePath:{writable:!1}})),a(c)},r)}));else if(o.isDirectory){const a=yield a$e(o);for(let r=0;rs(a.webkitGetAsEntry()));return yield Promise.all(o),yield Promise.all(t)}catch(o){return console.warn("Captured error while loop directory."),console.error(o),[]}})}var u$e=function(n,t,s,o){function i(a){return a instanceof s?a:new s(function(r){r(a)})}return new(s||(s=Promise))(function(a,r){function c(E){try{e(o.next(E))}catch(_){r(_)}}function f(E){try{e(o.throw(E))}catch(_){r(_)}}function e(E){E.done?a(E.value):i(E.value).then(c,f)}e((o=o.apply(n,t||[])).next())})};const{FILE_STATUS_UPLOADING:nH,FILE_STATUS_SUCCESS:c$e,FILE_STATUS_UPLOAD_FAIL:d$e,FILE_STATUS_VALID_FAIL:e6,FILE_STATUS_WAIT_UPLOAD:rH,DRAG_AREA_DEFAULT:t6,DRAG_AREA_LEGAL:f$e,TRIGGER_AUTO:J_}=id;class h$e extends fc{constructor(t){super(Object.assign({},t))}init(){const{disabled:t,addOnPasting:s}=this.getProps();s&&!t&&this.bindPastingHandler()}destroy(){const{disabled:t,addOnPasting:s}=this.getProps();this.releaseMemory(),s&&!t&&this.unbindPastingHandler()}getError(t){let{action:s,xhr:o,message:i,fileName:a}=t;const r=o?o.status:0,c=i||`cannot post ${a} to ${s}, xhr status: ${r}'`,f=new Error(c);return f.status=r,f.method="post",f.url=s,f}getBody(t){if(!t)return;const s=t.responseText||t.response;if(!s)return s;try{return JSON.parse(s)}catch{return s}}checkFileSize(t){const{size:s}=t,{maxSize:o,minSize:i}=this.getProps();let a=!1;return(s>o*IE||s{const E=this.checkFileFormat(a,e);return E||s.push(e),E}),s.length!==0&&this._adapter.notifyAcceptInvalid(s),c.length===0))return;c=c.map(e=>(i&&(e=i(e)),e.uid||(e.uid=HT()),this.checkFileSize(e)&&(e._sizeInvalid=!0,e.status=e6,this._adapter.notifySizeError(e,r)),e));const f=r.length+c.length;if(typeof o<"u"&&f>o){if(this._adapter.notifyExceed(c),o===1){c=c.slice(-1),this._adapter.notifyFileSelect(c),this._adapter.resetInput(),this.replaceFileList(c);return}const e=o-r.length;c=c.slice(0,e)}this._adapter.notifyFileSelect(c),this._adapter.resetInput(),this.addFilesToList(c)}handleReplaceChange(t){if(t.length===0)return;const{transformFile:s,uploadTrigger:o,accept:i}=this.getProps(),{replaceIdx:a,fileList:r}=this.getStates();let c=Array.from(t).pop();if(typeof i<"u"&&!this.checkFileFormat(i,c)){this._adapter.notifyAcceptInvalid([c]);return}s&&(c=s(c)),c.uid||(c.uid=HT()),this.checkFileSize(c)&&(c._sizeInvalid=!0,c.status=e6,this._adapter.notifySizeError(c,r)),this._adapter.notifyFileSelect([c]);const f=this.buildFileItem(c,o),e=[...r];e.splice(a,1,f),this._adapter.notifyChange({currentFile:f,fileList:e}),this._adapter.updateFileList(e,()=>{this._adapter.resetReplaceInput(),f._sizeInvalid||this.upload(f)})}buildFileItem(t,s){const{_sizeInvalid:o,status:i}=t;try{delete t._sizeInvalid,delete t.status}catch{}const a={status:i||(s===J_?nH:rH),name:t.name,size:XP(t.size),uid:t.uid,percent:0,fileInstance:t,url:this._createURL(t)};return o&&(a._sizeInvalid=!0),this.isImage(t)&&(a.preview=!0),a}replaceFileList(t){const{uploadTrigger:s}=this.getProps(),o=t.map(i=>this.buildFileItem(i,s));this._adapter.notifyChange({fileList:o,currentFile:o[0]}),this._adapter.updateFileList(o,()=>{s===J_&&this.startUpload(o)})}addFilesToList(t){const s=this.getState("fileList").slice(),{uploadTrigger:o}=this.getProps(),i=t.map(a=>this.buildFileItem(a,o));i.forEach(a=>{const r=s.findIndex(c=>c.uid===a.uid);r!==-1?s[r]=a:(s.push(a),this._adapter.notifyChange({fileList:s,currentFile:a}))}),this._adapter.updateFileList(s,()=>{o===J_&&this.startUpload(i)})}insertFileToList(t,s){const{limit:o,transformFile:i,accept:a,uploadTrigger:r}=this.getProps(),{fileList:c}=this.getStates(),f=[];let e=Array.from(t);if(typeof a<"u"&&(e=e.filter(D=>{const J=this.checkFileFormat(a,D);return J||f.push(D),J}),f.length!==0&&this._adapter.notifyAcceptInvalid(f),e.length===0))return;e=e.map(D=>(D.uid||(D.uid=HT()),this.checkFileSize(D)&&(D._sizeInvalid=!0,D.status=e6,this._adapter.notifySizeError(D,c)),i&&(D=i(D)),D));const E=c.length+e.length;if(typeof o<"u"&&E>o){if(o===1){e=e.slice(-1),this._adapter.notifyFileSelect(e),this._adapter.resetInput(),this.replaceFileList(e);return}const D=o-c.length;e=e.slice(0,D),this._adapter.notifyExceed(e)}const _=e.map(D=>this.buildFileItem(D,r)),R=c.slice();typeof s<"u"?R.splice(s,0,..._):R.push(..._),this._adapter.notifyFileSelect(e),this._adapter.notifyChange({fileList:R,currentFile:null}),this._adapter.updateFileList(R,()=>{r===J_&&this.startUpload(_)})}manualUpload(){const t=this.getState("fileList").filter(s=>s.status===rH);this.startUpload(t)}startUpload(t){t.forEach(s=>{s._sizeInvalid||this.upload(s)})}upload(t){const{beforeUpload:s}=this.getProps();if(typeof s>"u"){this.post(t);return}if(typeof s=="function"){const{fileList:o}=this.getStates(),i=this._adapter.notifyBeforeUpload({file:t,fileList:o});switch(!0){case i===!0:{this.post(t);break}case i===!1:{const a={shouldUpload:!1,status:id.FILE_STATUS_VALID_FAIL};this.handleBeforeUploadResultInObject(a,t);break}case(i&&$P(i)):{Promise.resolve(i).then(a=>{let r={shouldUpload:!0};Object.prototype.toString.call(a).slice(8,-1)==="Object"&&(r=Object.assign(Object.assign({},r),a)),this.handleBeforeUploadResultInObject(r,t)},a=>{let r={shouldUpload:!1,status:id.FILE_STATUS_VALID_FAIL};Object.prototype.toString.call(a).slice(8,-1)==="Object"&&(r=Object.assign(Object.assign({},r),a)),this.handleBeforeUploadResultInObject(r,t)});break}case typeof i=="object":this.handleBeforeUploadResultInObject(i,t);break}}}handleBeforeUploadResultInObject(t,s){const{shouldUpload:o,status:i,autoRemove:a,validateMessage:r,fileInstance:c}=t;let f=this.getState("fileList").slice();if(a)f=f.filter(e=>e.uid!==s.uid);else{const e=this._getFileIndex(s,f);if(e<0)return;i&&(f[e].status=i),r&&(f[e].validateMessage=r),c&&(c.uid=s.uid,f[e].fileInstance=c,f[e].size=XP(c.size),f[e].name=c.name,f[e].url=this._createURL(c)),f[e].shouldUpload=o}this._adapter.updateFileList(f),this._adapter.notifyChange({fileList:f,currentFile:s}),o&&this.post(s)}post(t){const{fileInstance:s}=t,o=this.getProps();if(typeof XMLHttpRequest>"u")return;const i=new XMLHttpRequest,a=new FormData,{action:r}=o;let{data:c}=o;c&&(typeof c=="function"&&(c=c(s)),Object.keys(c).forEach(E=>{a.append(E,c[E])}));const f=o.name||o.fileName||s.name;if(o.customRequest)return o.customRequest({fileName:f,data:c,file:t,fileInstance:s,onProgress:E=>this.handleProgress({e:E,fileInstance:s}),onError:(E,_)=>this.handleError({e:_,xhr:E,fileInstance:s}),onSuccess:(E,_)=>this.handleSuccess({response:E,fileInstance:s,e:_,isCustomRequest:!0}),withCredentials:o.withCredentials,action:o.action});a.append(f,s),i.open("post",r,!0),o.withCredentials&&"withCredentials"in i&&(i.withCredentials=!0),i.upload&&(i.upload.onprogress=E=>this.handleProgress({e:E,fileInstance:s})),i.onload=E=>this.handleOnLoad({e:E,xhr:i,fileInstance:s}),i.onerror=E=>this.handleError({e:E,xhr:i,fileInstance:s});let e=o.headers||{};typeof e=="function"&&(e=e(s));for(const E in e)Object.prototype.hasOwnProperty.call(e,E)&&e[E]!==null&&i.setRequestHeader(E,e[E]);i.send(a)}handleProgress(t){let{e:s,fileInstance:o}=t;const{fileList:i}=this.getStates(),a=i.slice();let r=0;s.total>0&&(r=Number((s.loaded/s.total*100*o$e.PROGRESS_COEFFICIENT).toFixed(0))||0);const c=this._getFileIndex(o,a);c<0||(a[c].percent=r,a[c].status=nH,this._adapter.notifyProgress(r,o,a),this._adapter.updateFileList(a),this._adapter.notifyChange({fileList:a,currentFile:a[c]}))}handleOnLoad(t){let{e:s,xhr:o,fileInstance:i}=t;const{fileList:a}=this.getStates(),r=this._getFileIndex(i,a);r<0||(o.status<200||o.status>=300?this.handleError({e:s,xhr:o,fileInstance:i}):this.handleSuccess({e:s,xhr:o,fileInstance:i,index:r}))}handleSuccess(t){let{e:s,fileInstance:o,isCustomRequest:i=!1,xhr:a,response:r}=t;const{fileList:c}=this.getStates();let f=null;const e=this._getFileIndex(o,c);if(e<0)return;i?f=r:f=this.getBody(a);const E=c.slice(),{afterUpload:_}=this.getProps();if(E[e].status=c$e,E[e].percent=100,this._adapter.notifyProgress(100,o,E),E[e].response=f,s&&(E[e].event=s),_&&typeof _=="function"){const{autoRemove:R,status:D,validateMessage:J,name:re}=this._adapter.notifyAfterUpload({response:f,file:E[e],fileList:E})||{};D&&(E[e].status=D),J&&(E[e].validateMessage=J),re&&(E[e].name=re),R&&E.splice(e,1)}this._adapter.notifySuccess(f,o,E),this._adapter.notifyChange({fileList:E,currentFile:E[e]}),this._adapter.updateFileList(E)}_getFileIndex(t,s){return s.findIndex(o=>o.uid===t.uid)}handleRemove(t){const{disabled:s}=this.getProps();if(s)return;const{fileList:o}=this.getStates();Promise.resolve(this._adapter.notifyBeforeRemove(t,o)).then(i=>{if(i===!1)return;const a=o.slice(),r=this._getFileIndex(t,o);r<0||(a.splice(r,1),this._adapter.notifyRemove(t.fileInstance,a,t),this._adapter.updateFileList(a),this._adapter.notifyChange({fileList:a,currentFile:t}))})}handleError(t){let{e:s,xhr:o,fileInstance:i}=t;const{fileList:a}=this.getStates(),r=this._getFileIndex(i,a);if(r<0)return;const{action:c}=this.getProps(),f=a.slice(),e=this.getError({action:c,xhr:o,fileName:i.name});f[r].status=d$e,f[r].response=e,f[r].event=s,this._adapter.notifyError(e,i,f,o),this._adapter.updateFileList(f),this._adapter.notifyChange({currentFile:f[r],fileList:f})}handleClear(){const{disabled:t}=this.getProps(),{fileList:s}=this.getStates();t||Promise.resolve(this._adapter.notifyBeforeClear(s)).then(o=>{o!==!1&&(this._adapter.updateFileList([]),this._adapter.notifyClear(),this._adapter.notifyChange({fileList:[]}))}).catch(o=>{})}_createURL(t){const s=URL.createObjectURL(t),{localUrls:o}=this.getStates(),i=o.slice();return i.push(s),this._adapter.updateLocalUrls(i),s}releaseMemory(){const{localUrls:t}=this.getStates();t.forEach(s=>{this._releaseBlob(s)})}_releaseBlob(t){try{URL.revokeObjectURL(t)}catch(s){console.log(s)}}isImage(t){return/(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(t.type)}isMultiple(){return!!this.getProp("multiple")}handleDragEnter(t){t.preventDefault(),t.stopPropagation(),this._dragEnterTarget=t.currentTarget;const{disabled:s}=this.getProps();s||this._adapter.updateDragAreaStatus(f$e)}handleDirectoryDrop(t){return u$e(this,void 0,void 0,function*(){const s=this.getState("fileList").slice(),o=[].slice.call(t.dataTransfer.items),i=yield l$e(o);this.handleChange(i),this._adapter.updateDragAreaStatus(t6),this._adapter.notifyDrop(t,i,s)})}handleDrop(t){t.preventDefault(),t.stopPropagation();const{disabled:s,directory:o}=this.getProps(),i=this.getState("fileList").slice();if(!s){if(o){this.handleDirectoryDrop(t);return}const a=Array.from(t.dataTransfer.files);this.handleChange(a),this._adapter.updateDragAreaStatus(t6),this._adapter.notifyDrop(t,a,i)}}handleDragOver(t){t.preventDefault(),t.stopPropagation()}handleDragLeave(t){t.preventDefault(),t.stopPropagation(),this._dragEnterTarget===t.target&&this._adapter.updateDragAreaStatus(t6)}checkFileFormat(t,s){const o=t.split(",").map(r=>r.trim()).filter(r=>r),i=s.type||"",a=i.replace(/\/.*$/,"");return o.some(r=>{if(r.charAt(0)==="."){const c=s.name||"",f=r.split(".").pop().toLowerCase();return i$e(c.toLowerCase(),f)}if(/\/\*$/.test(r)){const c=r.replace(/\/.*$/,"");return a===c}return/^[^\/]+\/[^\/]+$/.test(r)?i===r:!1})}retry(t){const{onRetry:s}=this.getProps();s&&typeof s=="function"&&s(t),this.post(t)}handlePreviewClick(t){this._adapter.notifyPreviewClick(t)}readFileFromClipboard(t){for(const s of t)for(const o of s.types)o.startsWith("image")&&s.getType(o).then(i=>i.arrayBuffer()).then(i=>{const a=o.split("/")[1],r=new File([i],`upload.${a}`,{type:o});this.handleChange([r])})}handlePasting(t){if((this._adapter.isMac()?t.metaKey:t.ctrlKey)&&t.code==="KeyV"&&t.target===document.body){const i="clipboard-read";navigator.permissions.query({name:i}).then(a=>{console.log(a),a.state==="granted"||a.state==="prompt"?navigator.clipboard.read().then(r=>{this.readFileFromClipboard(r)}):this._adapter.notifyPastingError(a)}).catch(a=>{this._adapter.notifyPastingError(a)})}}bindPastingHandler(){this._adapter.registerPastingHandler(t=>this.handlePasting(t))}unbindPastingHandler(){this._adapter.unRegisterPastingHandler()}}const p$e=h$e;class m$e extends fc{constructor(t){super(Object.assign({},t))}handleImageError(t){this._adapter.updateFallbackPreview(!0)}}const g$e=m$e,ap=oQ.PREFIX,v$e=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return De.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),De.createElement("circle",{cx:"7.99992",cy:"7.99992",r:"6.66667",fill:"white"}),De.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.00008C15.3332 12.0502 12.0499 15.3334 7.99984 15.3334C3.94975 15.3334 0.666504 12.0502 0.666504 8.00008C0.666504 3.94999 3.94975 0.666748 7.99984 0.666748C12.0499 0.666748 15.3332 3.94999 15.3332 8.00008ZM8.99984 11.6667C8.99984 11.1145 8.55212 10.6667 7.99984 10.6667C7.44755 10.6667 6.99984 11.1145 6.99984 11.6667C6.99984 12.219 7.44755 12.6667 7.99984 12.6667C8.55212 12.6667 8.99984 12.219 8.99984 11.6667ZM7.99984 3.33341C7.27573 3.33341 6.7003 3.94171 6.74046 4.66469L6.94437 8.33495C6.97549 8.89513 7.4388 9.33341 7.99984 9.33341C8.56087 9.33341 9.02419 8.89513 9.05531 8.33495L9.25921 4.66469C9.29938 3.94171 8.72394 3.33341 7.99984 3.33341Z",fill:"#F93920"}))},b$e=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return De.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),De.createElement("circle",{cx:"14",cy:"14",r:"14",fill:"#16161A",fillOpacity:"0.6"}),De.createElement("path",{d:"M9 10.25V18.25L10.25 13.25H17.875V11.75C17.875 11.4739 17.6511 11.25 17.375 11.25H14L12.75 9.75H9.5C9.22386 9.75 9 9.97386 9 10.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),De.createElement("path",{d:"M18 18.25L19 13.25H10.2031L9 18.25H18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},y$e=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return De.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),De.createElement("path",{d:"M6 17V7.58824C6 7.26336 6.26863 7 6.6 7H10.5L12 8.76471H16.05C16.3814 8.76471 16.65 9.02806 16.65 9.35294V11.1176H7.5L6 17ZM6 17L7.44375 11.1176H18L16.8 17L6 17Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};class GD extends Ml{constructor(t){super(t),this.state={fallbackPreview:!1},this.foundation=new g$e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateFallbackPreview:t=>this.setState({fallbackPreview:t})})}transSize(t){return typeof t=="number"?XP(t):t}renderValidateMessage(){const{status:t,validateMessage:s}=this.props;let o=null;switch(!0){case(typeof s=="string"&&t===id.FILE_STATUS_VALIDATING):o=De.createElement(De.Fragment,null,De.createElement(V1,{size:"small",wrapperClassName:`${ap}-file-card-icon-loading`}),s);break;case typeof s=="string":o=De.createElement(De.Fragment,null,De.createElement(tS,{className:`${ap}-file-card-icon-error`}),s);break;case XCe(s):o=s;break}return o}renderPicValidateMsg(){const{status:t,validateMessage:s}=this.props;let o=null;switch(!0){case(s&&t===id.FILE_STATUS_VALIDATING):o=De.createElement(V1,{size:"small",wrapperClassName:`${ap}-picture-file-card-icon-loading`});break;case(s&&(t===id.FILE_STATUS_VALID_FAIL||t===id.FILE_STATUS_UPLOAD_FAIL)):o=De.createElement("div",{className:`${ap}-picture-file-card-icon-error`},De.createElement(v$e,null));break}return o?De.createElement(Ip,{content:s,trigger:"hover",position:"bottom"},o):null}renderPic(t){const{fallbackPreview:s}=this.state,{url:o,percent:i,status:a,disabled:r,style:c,onPreviewClick:f,showPicInfo:e,renderPicInfo:E,renderPicPreviewIcon:_,renderThumbnail:R,name:D,index:J,picHeight:re,picWidth:ie}=this.props,ae=a===id.FILE_STATUS_UPLOADING&&i!==100,de=a===id.FILE_STATUS_UPLOAD_FAIL&&this.props.showRetry,ye=a===id.FILE_STATUS_SUCCESS&&this.props.showReplace,Fe=a===id.FILE_STATUS_SUCCESS&&!this.props.showReplace,Ge=Ar({[`${ap}-picture-file-card`]:!0,[`${ap}-picture-file-card-preview-fallback`]:s,[`${ap}-picture-file-card-disabled`]:r,[`${ap}-picture-file-card-show-pointer`]:typeof f<"u",[`${ap}-picture-file-card-error`]:a===id.FILE_STATUS_UPLOAD_FAIL,[`${ap}-picture-file-card-uploading`]:ae}),tt=De.createElement("div",{role:"button",tabIndex:0,className:`${ap}-picture-file-card-retry`,onClick:zn=>this.onRetry(zn)},De.createElement(qLe,{className:`${ap}-picture-file-card-icon-retry`})),ht=De.createElement(Ip,{trigger:"hover",position:"top",content:t.replace,showArrow:!1,spacing:4},De.createElement("div",{role:"button",tabIndex:0,className:`${ap}-picture-file-card-replace`,onClick:zn=>this.onReplace(zn)},De.createElement(b$e,{className:`${ap}-picture-file-card-icon-replace`}))),yt=De.createElement("div",{className:`${ap}-picture-file-card-preview`},typeof _=="function"?_(this.props):null),Ft=De.createElement("div",{role:"button",tabIndex:0,className:`${ap}-picture-file-card-close`,onClick:zn=>this.onRemove(zn)},De.createElement(_A,{className:`${ap}-picture-file-card-icon-close`})),Zt=typeof E=="function"?E(this.props):De.createElement("div",{className:`${ap}-picture-file-card-pic-info`},J+1);let Nt={},kt=c?Object.assign({},c):{};re&&(kt.height=re,Nt.height=re),ie&&(kt.width=ie,Nt.width=ie);const tn=typeof R=="function"?R(this.props):s?De.createElement(EB,{size:"large"}):De.createElement("img",{src:o,alt:D,onError:zn=>this.foundation.handleImageError(zn),style:Nt});return De.createElement("div",{role:"listitem",className:Ge,style:kt,onClick:f},tn,ae?De.createElement(Sz,{percent:i,type:"circle",size:"small",orbitStroke:"#FFF","aria-label":"uploading file progress"}):null,de?tt:null,ye&&ht,Fe&&yt,e&&Zt,!r&&Ft,this.renderPicValidateMsg())}renderFile(t){const{name:s,size:o,percent:i,url:a,showRetry:r,showReplace:c,preview:f,previewFile:e,status:E,style:_,onPreviewClick:R,renderFileOperation:D}=this.props,{fallbackPreview:J}=this.state,re=Ar({[`${ap}-file-card`]:!0,[`${ap}-file-card-fail`]:E===id.FILE_STATUS_VALID_FAIL||E===id.FILE_STATUS_UPLOAD_FAIL,[`${ap}-file-card-show-pointer`]:typeof R<"u"}),ie=Ar({[`${ap}-file-card-preview`]:!0,[`${ap}-file-card-preview-placeholder`]:!f||e||J}),ae=`${ap}-file-card-info`,de=`${ap}-file-card-close`,ye=`${ap}-file-card-replace`,Fe=!(i===100||typeof i>"u")&&E===id.FILE_STATUS_UPLOADING,Ge=E===id.FILE_STATUS_UPLOAD_FAIL&&r,tt=E===id.FILE_STATUS_SUCCESS&&c,ht=this.transSize(o);let yt=f&&!J?De.createElement("img",{src:a,alt:s,onError:Zt=>this.foundation.handleImageError(Zt)}):De.createElement(EB,{size:"large"});e&&(yt=e(this.props));const Ft=typeof D=="function"?D(this.props):De.createElement(xl,{onClick:Zt=>this.onRemove(Zt),type:"tertiary",icon:De.createElement(sw,null),theme:"borderless",size:"small",className:de});return De.createElement("div",{role:"listitem",className:re,style:_,onClick:R},De.createElement("div",{className:ie},yt),De.createElement("div",{className:`${ae}-main`},De.createElement("div",{className:`${ae}-main-text`},De.createElement("span",{className:`${ae}-name`},s),De.createElement("span",null,De.createElement("span",{className:`${ae}-size`},ht),tt&&De.createElement(Ip,{trigger:"hover",position:"top",showArrow:!1,content:t.replace},De.createElement(xl,{onClick:Zt=>this.onReplace(Zt),type:"tertiary",theme:"borderless",size:"small",icon:De.createElement(y$e,null),className:ye})))),Fe?De.createElement(Sz,{percent:i,style:{width:"100%"},"aria-label":"uploading file progress"}):null,De.createElement("div",{className:`${ae}-main-control`},De.createElement("span",{className:`${ae}-validate-message`},this.renderValidateMessage()),Ge?De.createElement("span",{role:"button",tabIndex:0,className:`${ae}-retry`,onClick:Zt=>this.onRetry(Zt)},t.retry):null)),Ft)}onRemove(t){t.stopPropagation(),this.props.onRemove()}onReplace(t){t.stopPropagation(),this.props.onReplace()}onRetry(t){t.stopPropagation(),this.props.onRetry()}render(){const{listType:t}=this.props;return t===id.FILE_LIST_PIC?De.createElement(dm,{componentName:"Upload"},s=>this.renderPic(s)):t===id.FILE_LIST_DEFAULT?De.createElement(dm,{componentName:"Upload"},s=>this.renderFile(s)):null}}GD.propTypes={className:W.string,disabled:W.bool,listType:W.string,name:W.string,onPreviewClick:W.func,onRemove:W.func,onReplace:W.func,onRetry:W.func,percent:W.number,preview:W.bool,previewFile:W.func,picWidth:W.oneOfType([W.number,W.string]),picHeight:W.oneOfType([W.number,W.string]),showReplace:W.bool,showRetry:W.bool,size:W.oneOfType([W.number,W.string]),status:W.string,style:W.object,url:W.string,validateMessage:W.node,index:W.number};GD.defaultProps={listType:id.FILE_LIST_DEFAULT,name:"",onRemove:()=>{},onRetry:()=>{},preview:!1,size:""};const iQ=GD;var C$e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);i{const{inputRef:s,props:o}=this,{onOpenFileDialog:i}=o;this.props.disabled||!s||!s.current||(s.current.click(),i&&i())},this.onChange=s=>{const{files:o}=s.target;this.foundation.handleChange(o)},this.replace=s=>{this.setState({replaceIdx:s},()=>{this.replaceInputRef.current.click()})},this.onReplaceChange=s=>{const{files:o}=s.target;this.foundation.handleReplaceChange(o)},this.clear=()=>{this.foundation.handleClear()},this.remove=s=>{this.foundation.handleRemove(s)},this.insert=(s,o)=>this.foundation.insertFileToList(s,o),this.upload=()=>{this.foundation.manualUpload()},this.openFileDialog=()=>{this.onClick()},this.renderFile=(s,o,i)=>{const{name:a,status:r,validateMessage:c,_sizeInvalid:f,uid:e}=s,{previewFile:E,listType:_,itemStyle:R,showPicInfo:D,renderPicInfo:J,renderPicPreviewIcon:re,renderFileOperation:ie,renderFileItem:ae,renderThumbnail:de,disabled:ye,onPreviewClick:Fe,picWidth:Ge,picHeight:tt}=this.props,ht=()=>this.remove(s),yt=()=>{this.foundation.retry(s)},Ft=()=>{this.replace(o)},Zt=Object.assign(Object.assign(Object.assign({},by(this.props,["showRetry","showReplace",""])),s),{previewFile:E,listType:_,onRemove:ht,onRetry:yt,index:o,key:e||`${a}${o}`,style:R,disabled:ye,showPicInfo:D,renderPicInfo:J,renderPicPreviewIcon:re,renderFileOperation:ie,renderThumbnail:de,onReplace:Ft,onPreviewClick:typeof Fe<"u"?()=>this.foundation.handlePreviewClick(s):void 0,picWidth:Ge,picHeight:tt});return r===id.FILE_STATUS_UPLOAD_FAIL&&!c&&(Zt.validateMessage=i.fail),f&&!c&&(Zt.validateMessage=i.illegalSize),typeof ae>"u"?De.createElement(iQ,Object.assign({},Zt)):ae(Zt)},this.renderFileList=()=>{const{listType:s}=this.props;return s===id.FILE_LIST_PIC?this.renderFileListPic():s===id.FILE_LIST_DEFAULT?this.renderFileListDefault():null},this.renderFileListPic=()=>{const{showUploadList:s,limit:o,disabled:i,children:a,draggable:r,hotSpotLocation:c,picHeight:f,picWidth:e}=this.props,{fileList:E,dragAreaStatus:_}=this.state,R=this.props.fileList||E,D=o?o>R.length:!0,J=`${C0}-drag-area`,re=Ar(`${C0}-add`,{[`${C0}-picture-add`]:!0,[`${C0}-picture-add-disabled`]:i}),ie=Ar(`${C0}-file-list`,{[`${C0}-picture-file-list`]:!0}),ae=Ar({[`${J}-legal`]:_===id.DRAG_AREA_LEGAL,[`${J}-illegal`]:_===id.DRAG_AREA_ILLEGAL}),de=`${C0}-file-list-main`,ye={role:"button",className:re,onClick:this.onClick,style:{height:f,width:e}},Fe={className:ie},Ge={onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter};r&&Object.assign(ye,Ge,{className:Ar(re,ae)});const tt=De.createElement("div",Object.assign({},ye,{"x-semi-prop":"children"}),a);return!s||!R.length?D?tt:null:De.createElement(dm,{componentName:"Upload"},ht=>De.createElement("div",Object.assign({},Fe),De.createElement("div",{className:de,role:"list","aria-label":"picture list"},D&&c==="start"?tt:null,R.map((yt,Ft)=>this.renderFile(yt,Ft,ht)),D&&c==="end"?tt:null)))},this.renderFileListDefault=()=>{const{showUploadList:s,limit:o,disabled:i}=this.props,{fileList:a}=this.state,r=this.props.fileList||a,c=Ar(`${C0}-file-list`),f=`${C0}-file-list-title`,e=`${C0}-file-list-main`,E=o!==1&&r.length,_=this.props.showClear&&!i,R={className:c};return!s||!r.length?null:De.createElement(dm,{componentName:"Upload"},D=>De.createElement("div",Object.assign({},R),E?De.createElement("div",{className:f},De.createElement("span",{className:`${f}-choosen`},D.selectedFiles),_?De.createElement("span",{role:"button",tabIndex:0,onClick:this.clear,className:`${f}-clear`},D.clear):null):null,De.createElement("div",{className:e,role:"list","aria-label":"file list"},r.map((J,re)=>this.renderFile(J,re,D)))))},this.onDrop=s=>{this.foundation.handleDrop(s)},this.onDragOver=s=>{this.foundation.handleDragOver(s)},this.onDragLeave=s=>{this.foundation.handleDragLeave(s)},this.onDragEnter=s=>{this.foundation.handleDragEnter(s)},this.renderAddContent=()=>{const{draggable:s,children:o,listType:i,disabled:a}=this.props,r=Ar(`${C0}-add`);return i===id.FILE_LIST_PIC?null:s?this.renderDragArea():De.createElement("div",{role:"button",tabIndex:0,"aria-disabled":a,className:r,onClick:this.onClick},o)},this.renderDragArea=()=>{const{dragAreaStatus:s}=this.state,{children:o,dragIcon:i,dragMainText:a,dragSubText:r,disabled:c}=this.props,f=`${C0}-drag-area`,e=Ar(f,{[`${f}-legal`]:s===id.DRAG_AREA_LEGAL,[`${f}-illegal`]:s===id.DRAG_AREA_ILLEGAL,[`${f}-custom`]:o});return De.createElement(dm,{componentName:"Upload"},E=>De.createElement("div",{role:"button",tabIndex:0,"aria-disabled":c,className:e,onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter,onClick:this.onClick},o||De.createElement(De.Fragment,null,De.createElement("div",{className:`${f}-icon`,"x-semi-prop":"dragIcon"},i||De.createElement(LSe,{size:"extra-large"})),De.createElement("div",{className:`${f}-text`},De.createElement("div",{className:`${f}-main-text`,"x-semi-prop":"dragMainText"},a||E.mainText),De.createElement("div",{className:`${f}-sub-text`,"x-semi-prop":"dragSubText"},r),De.createElement("div",{className:`${f}-tips`},s===id.DRAG_AREA_LEGAL&&De.createElement("span",{className:`${f}-tips-legal`},E.legalTips),s===id.DRAG_AREA_ILLEGAL&&De.createElement("span",{className:`${f}-tips-illegal`},E.illegalTips))))))},this.state={fileList:t.defaultFileList||[],replaceIdx:-1,inputKey:Math.random(),replaceInputKey:Math.random(),dragAreaStatus:"default",localUrls:[]},this.foundation=new p$e(this.adapter),this.inputRef=De.createRef(),this.replaceInputRef=De.createRef()}static getDerivedStateFromProps(t){const{fileList:s}=t;return"fileList"in t?{fileList:s||[]}:null}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyFileSelect:t=>this.props.onFileChange(t),notifyError:(t,s,o,i)=>this.props.onError(t,s,o,i),notifySuccess:(t,s,o)=>this.props.onSuccess(t,s,o),notifyProgress:(t,s,o)=>this.props.onProgress(t,s,o),notifyRemove:(t,s,o)=>this.props.onRemove(t,s,o),notifySizeError:(t,s)=>this.props.onSizeError(t,s),notifyExceed:t=>this.props.onExceed(t),updateFileList:(t,s)=>{typeof s=="function"?this.setState({fileList:t},s):this.setState({fileList:t})},notifyBeforeUpload:t=>{let{file:s,fileList:o}=t;return this.props.beforeUpload({file:s,fileList:o})},notifyAfterUpload:t=>{let{response:s,file:o,fileList:i}=t;return this.props.afterUpload({response:s,file:o,fileList:i})},resetInput:()=>{this.setState(t=>({inputKey:Math.random()}))},resetReplaceInput:()=>{this.setState(t=>({replaceInputKey:Math.random()}))},isMac:()=>navigator.platform.toUpperCase().indexOf("MAC")>=0,registerPastingHandler:t=>{document.body.addEventListener("keydown",t),this.pastingCb=t},unRegisterPastingHandler:()=>{this.pastingCb&&document.body.removeEventListener("keydown",this.pastingCb)},notifyPastingError:t=>this.props.onPastingError(t),updateDragAreaStatus:t=>this.setState({dragAreaStatus:t}),notifyChange:t=>{let{currentFile:s,fileList:o}=t;return this.props.onChange({currentFile:s,fileList:o})},updateLocalUrls:t=>this.setState({localUrls:t}),notifyClear:()=>this.props.onClear(),notifyPreviewClick:t=>this.props.onPreviewClick(t),notifyDrop:(t,s,o)=>this.props.onDrop(t,s,o),notifyAcceptInvalid:t=>this.props.onAcceptInvalid(t),notifyBeforeRemove:(t,s)=>this.props.beforeRemove(t,s),notifyBeforeClear:t=>this.props.beforeClear(t)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const t=this.props,{style:s,className:o,multiple:i,accept:a,disabled:r,children:c,capture:f,listType:e,prompt:E,promptPosition:_,draggable:R,validateMessage:D,validateStatus:J,directory:re}=t,ie=C$e(t,["style","className","multiple","accept","disabled","children","capture","listType","prompt","promptPosition","draggable","validateMessage","validateStatus","directory"]),ae=Ar(C0,{[`${C0}-picture`]:e===id.FILE_LIST_PIC,[`${C0}-disabled`]:r,[`${C0}-default`]:J==="default",[`${C0}-error`]:J==="error",[`${C0}-warning`]:J==="warning",[`${C0}-success`]:J==="success"},o),de=Ar(`${C0}-hidden-input`),ye=Ar(`${C0}-hidden-input-replace`),Fe=Ar(`${C0}-prompt`),Ge=Ar(`${C0}-validate-message`),tt=re?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return De.createElement("div",Object.assign({className:ae,style:s,"x-prompt-pos":_},this.getDataAttr(ie)),De.createElement("input",Object.assign({key:this.state.inputKey,capture:f,multiple:i,accept:a,onChange:this.onChange,type:"file",autoComplete:"off",tabIndex:-1,className:de,ref:this.inputRef},tt)),De.createElement("input",{key:this.state.replaceInputKey,multiple:!1,accept:a,onChange:this.onReplaceChange,type:"file",autoComplete:"off",tabIndex:-1,className:ye,ref:this.replaceInputRef}),this.renderAddContent(),E?De.createElement("div",{className:Fe,"x-semi-prop":"prompt"},E):null,D?De.createElement("div",{className:Ge,"x-semi-prop":"validateMessage"},D):null,this.renderFileList())}}Y3.propTypes={accept:W.string,action:W.string.isRequired,addOnPasting:W.bool,afterUpload:W.func,beforeClear:W.func,beforeRemove:W.func,beforeUpload:W.func,children:W.node,className:W.string,customRequest:W.func,data:W.oneOfType([W.object,W.func]),defaultFileList:W.array,directory:W.bool,disabled:W.bool,dragIcon:W.node,dragMainText:W.node,dragSubText:W.node,draggable:W.bool,fileList:W.array,fileName:W.string,headers:W.oneOfType([W.object,W.func]),hotSpotLocation:W.oneOf(["start","end"]),itemStyle:W.object,limit:W.number,listType:W.oneOf(id.LIST_TYPE),maxSize:W.number,minSize:W.number,multiple:W.bool,name:W.string,onAcceptInvalid:W.func,onChange:W.func,onClear:W.func,onDrop:W.func,onError:W.func,onExceed:W.func,onFileChange:W.func,onOpenFileDialog:W.func,onPreviewClick:W.func,onProgress:W.func,onRemove:W.func,onRetry:W.func,onSizeError:W.func,onSuccess:W.func,onPastingError:W.func,previewFile:W.func,prompt:W.node,promptPosition:W.oneOf(id.PROMPT_POSITION),picWidth:W.oneOfType([W.number,W.string]),picHeight:W.oneOfType([W.number,W.string]),renderFileItem:W.func,renderPicPreviewIcon:W.func,renderFileOperation:W.func,renderPicInfo:W.func,renderThumbnail:W.func,showClear:W.bool,showPicInfo:W.bool,showReplace:W.bool,showRetry:W.bool,showUploadList:W.bool,style:W.object,timeout:W.number,transformFile:W.func,uploadTrigger:W.oneOf(id.UPLOAD_TRIGGER),validateMessage:W.node,validateStatus:W.oneOf(id.VALIDATE_STATUS),withCredentials:W.bool};Y3.defaultProps={defaultFileList:[],disabled:!1,listType:"list",hotSpotLocation:"end",multiple:!1,onAcceptInvalid:os,onChange:os,beforeRemove:()=>!0,beforeClear:()=>!0,onClear:os,onDrop:os,onError:os,onExceed:os,onFileChange:os,onOpenFileDialog:os,onProgress:os,onRemove:os,onRetry:os,onSizeError:os,onSuccess:os,onPastingError:os,promptPosition:"right",showClear:!0,showPicInfo:!1,showReplace:!1,showRetry:!0,showUploadList:!0,uploadTrigger:"auto",withCredentials:!1};Y3.FileCard=iQ;const KD=Y3;class qD extends lt.Component{constructor(t){super(t),this.state={}}render(){const{children:t,locale:s}=this.props;return De.createElement(TX.Provider,{value:s},t)}}qD.propTypes={locale:W.object,children:W.node};qD.defaultProps={locale:AP};const KA={PREFIX:`${mo}-image`},w$e={DEFAULT_Z_INDEX:1070},YD=lt.createContext({}),n6=`${KA.PREFIX}-preview-header`,E$e=lt.forwardRef((n,t)=>{let{onClose:s,titleStyle:o,className:i,renderHeader:a,closable:r}=n;return De.createElement(YD.Consumer,null,c=>{let{currentIndex:f,titles:e}=c,E;return e&&typeof f=="number"&&(E=e[f]),De.createElement("section",{ref:t,className:Ar(n6,i)},De.createElement("section",{className:`${n6}-title`,style:o},a?a(E):E),r&&De.createElement("section",{className:`${n6}-close`,onMouseUp:s},De.createElement(sw,null)))})}),L$e=E$e;class S$e extends fc{constructor(){super(...arguments),this.changeSliderValue=t=>{const{zoom:s,step:o,min:i,max:a}=this.getProps();let r=t==="plus"?s+o:s-o;r>a?r=a:r{const{onZoomIn:s,onZoomOut:o,zoom:i}=this.getProps();t>i?s(Number((t/100).toFixed(2))):o(Number((t/100).toFixed(2)))},this.handleRatioClick=()=>{const{ratio:t,onAdjustRatio:s}=this.getProps();s(t==="adaptation"?"realSize":"adaptation")},this.handleRotate=t=>{const{onRotate:s}=this.getProps();s&&s(t)}}}const T1=`${KA.PREFIX}-preview-footer`;class XD extends Ml{get adapter(){return Object.assign({},super.adapter)}constructor(t){super(t),this.changeSliderValue=s=>{this.foundation.changeSliderValue(s)},this.handleMinusClick=()=>{this.changeSliderValue("minus")},this.handlePlusClick=()=>{this.changeSliderValue("plus")},this.handleRotateLeft=()=>{this.foundation.handleRotate("left")},this.handleRotateRight=()=>{this.foundation.handleRotate("right")},this.handleSlideChange=T5(s=>{this.foundation.handleValueChange(s)},50),this.handleRatioClick=()=>{this.foundation.handleRatioClick()},this.customRenderViewMenu=()=>{const{min:s,max:o,step:i,curPage:a,totalNum:r,ratio:c,zoom:f,disabledPrev:e,disabledNext:E,disableDownload:_,onNext:R,onPrev:D,onDownload:J,renderPreviewMenu:re}=this.props,ie={min:s,max:o,step:i,curPage:a,totalNum:r,ratio:c,zoom:f,disabledPrev:e,disabledNext:E,disableDownload:_,onNext:R,onPrev:D,onDownload:J,onRotateLeft:this.handleRotateLeft,onRotateRight:this.handleRotateRight,disabledZoomIn:f===o,disabledZoomOut:f===s,onRatioClick:this.handleRatioClick,onZoomIn:this.handlePlusClick,onZoomOut:this.handleMinusClick,menuItems:this.getMenu()};return re(ie)},this.getFinalIconElement=(s,o,i)=>{const{showTooltip:a,zIndex:r}=this.props;return a?De.createElement(Ip,{content:o,key:`tooltip-${i}`,zIndex:r+1},s):s},this.getLocalTextByKey=s=>De.createElement(dm,{componentName:"Image"},o=>o[s]),this.getIconChevronLeft=()=>{const{disabledPrev:s,onPrev:o,prevTip:i}=this.props,a=De.createElement(C9,{key:"chevron-left",size:"large",className:s?`${T1}-disabled`:"",onClick:s?void 0:o}),r=i??this.getLocalTextByKey("prevTip");return this.getFinalIconElement(a,r,"chevron-left")},this.getIconChevronRight=()=>{const{disabledNext:s,onNext:o,nextTip:i}=this.props,a=De.createElement(nS,{key:"chevron-right",size:"large",className:s?`${T1}-disabled`:"",onClick:s?void 0:o}),r=i??this.getLocalTextByKey("nextTip");return this.getFinalIconElement(a,r,"chevron-right")},this.getIconMinus=()=>{const{zoomOutTip:s,zoom:o,min:i}=this.props,a=o===i,r=De.createElement(PX,{key:"minus",size:"large",onClick:a?void 0:this.handleMinusClick,className:a?`${T1}-disabled`:""}),c=s??this.getLocalTextByKey("zoomOutTip");return this.getFinalIconElement(r,c,"minus")},this.getIconPlus=()=>{const{zoomInTip:s,zoom:o,max:i}=this.props,a=o===i,r=De.createElement(L2,{key:"plus",size:"large",onClick:a?void 0:this.handlePlusClick,className:a?`${T1}-disabled`:""}),c=s??this.getLocalTextByKey("zoomInTip");return this.getFinalIconElement(r,c,"plus")},this.getIconRatio=()=>{const{ratio:s,originTip:o,adaptiveTip:i}=this.props,a={key:"ratio",size:"large",className:Ar(`${T1}-gap`),onClick:this.handleRatioClick},r=s==="adaptation"?De.createElement(zLe,Object.assign({},a)):De.createElement(NSe,Object.assign({},a));let c;return s==="adaptation"?c=o??this.getLocalTextByKey("originTip"):c=i??this.getLocalTextByKey("adaptiveTip"),this.getFinalIconElement(r,c,"ratio")},this.getIconRotate=()=>{const{rotateTip:s}=this.props,o=De.createElement(ZLe,{key:"rotate",size:"large",onClick:this.handleRotateLeft}),i=s??this.getLocalTextByKey("rotateTip");return this.getFinalIconElement(o,i,"rotate")},this.getIconDownload=()=>{const{downloadTip:s,onDownload:o,disableDownload:i}=this.props,a=De.createElement(YEe,{key:"download",size:"large",onClick:i?void 0:o,className:Ar(`${T1}-gap`,{[`${T1}-disabled`]:i})}),r=s??this.getLocalTextByKey("downloadTip");return this.getFinalIconElement(a,r,"download")},this.getNumberInfo=()=>{const{curPage:s,totalNum:o}=this.props;return De.createElement("div",{className:`${T1}-page`,key:"info"},s,"/",o)},this.getSlider=()=>{const{zoom:s,min:o,max:i,step:a,showTooltip:r}=this.props;return De.createElement(YE,{key:"slider",value:s,min:o,max:i,step:a,tipFormatter:c=>`${c}%`,tooltipVisible:r?void 0:!1,onChange:this.handleSlideChange})},this.getMenu=()=>[this.getIconChevronLeft(),this.getNumberInfo(),this.getIconChevronRight(),this.getIconMinus(),this.getSlider(),this.getIconPlus(),this.getIconRatio(),this.getIconRotate(),this.getIconDownload()],this.getFooterMenu=()=>{const s=this.getMenu();return s.splice(3,0,De.createElement(uC,{layout:"vertical",key:"divider-first"})),s.splice(8,0,De.createElement(uC,{layout:"vertical",key:"divider-second"})),s},this.foundation=new S$e(this.adapter)}render(){const{className:t,renderPreviewMenu:s,forwardRef:o}=this.props,i=Ar(T1,`${T1}-wrapper`,t,{[`${T1}-content`]:!s});return De.createElement("section",{className:i,ref:o},s?this.customRenderViewMenu():this.getFooterMenu())}}XD.propTypes={curPage:W.number,totalNum:W.number,disabledPrev:W.bool,disabledNext:W.bool,disableDownload:W.bool,className:W.string,zoom:W.number,ratio:W.string,prevTip:W.string,nextTip:W.string,zoomInTip:W.string,zoomOutTip:W.string,rotateTip:W.string,downloadTip:W.string,adaptiveTip:W.string,originTip:W.string,showTooltip:W.bool,onZoomIn:W.func,onZoomOut:W.func,onPrev:W.func,onNext:W.func,onAdjustRatio:W.func,onRotateLeft:W.func,onDownload:W.func};XD.defaultProps={min:10,max:500,step:10,showTooltip:!1,disableDownload:!1};const sH={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0,toJSON:()=>({})};class x$e extends fc{constructor(t){var s;super(Object.assign({},t)),s=this,this.startMouseOffset={x:0,y:0},this.originImageWidth=null,this.originImageHeight=null,this._isImageVertical=()=>this.getProp("rotation")%180!==0,this._getImageBounds=()=>{const o=this._adapter.getImage();return o?o.getBoundingClientRect():sH},this._getContainerBounds=()=>{const o=this._adapter.getContainer();return o?o.getBoundingClientRect():sH},this._getOffset=o=>{const{left:i,top:a}=this._getImageBounds();return{x:o.clientX-i,y:o.clientY-a}},this.setLoading=o=>{this._adapter.setLoading(o)},this.handleWindowResize=()=>{this.originImageWidth&&this.originImageHeight&&this.handleResizeImage()},this.handleLoad=o=>{if(o.target){const{naturalWidth:r,naturalHeight:c}=o.target;this.originImageHeight=c,this.originImageWidth=r,this.setState({loading:!1}),this.handleResizeImage(!1)}const{src:i,onLoad:a}=this.getProps();a&&a(i)},this.handleError=o=>{const{onError:i,src:a}=this.getProps();this.setState({loading:!1}),i&&i(a)},this.handleResizeImage=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const i=!s._isImageVertical(),{currZoom:a}=s.getStates(),r=i?s.originImageWidth:s.originImageHeight,c=i?s.originImageHeight:s.originImageWidth,{onZoom:f,setRatio:e,ratio:E}=s.getProps();if(s._adapter.getContainer()){const{width:R,height:D}=s._getContainerBounds(),J=R-80,re=D-80;let ie=1;(r>J||c>re)&&(ie=Number(Math.min(J/r,re/c).toFixed(2))),a===ie?s.calculatePreviewImage(ie,null):f(ie,o)}},this.handleRatioChange=()=>{if(this.originImageWidth&&this.originImageHeight){const{currZoom:o}=this.getStates(),{ratio:i,onZoom:a}=this.getProps();let r;if(i==="adaptation"){const c=!this._isImageVertical(),f=c?this.originImageWidth:this.originImageHeight,e=c?this.originImageHeight:this.originImageWidth,{width:E,height:_}=this._getContainerBounds(),R=E-80,D=_-80;r=Number(Math.min(R/f,D/e).toFixed(2))}else r=1;o!==r&&a(r)}},this.handleRightClickImage=o=>{const{disableDownload:i}=this.getProps();return i?(o.preventDefault(),o.stopPropagation(),!1):!0},this.calcCanDragDirection=()=>{const{width:o,height:i}=this.getStates();this.getProps();const{width:a,height:r}=this._getContainerBounds();let c=o>a,f=i>r;return this._isImageVertical()&&(c=i>a,f=o>r),{canDragVertical:f,canDragHorizontal:c}},this.calculatePreviewImage=(o,i)=>{const a=this._adapter.getImage(),{canDragVertical:r,canDragHorizontal:c}=this.calcCanDragDirection(),f=r||c,{width:e,height:E}=this._getContainerBounds(),_=Math.floor(this.originImageWidth*o),R=Math.floor(this.originImageHeight*o);let D;const J=!this._isImageVertical();let re=0,ie=0;J?(D={x:.5*(e-_),y:.5*(E-R)},ie=D.x,re=D.y):(D={x:.5*(e-R),y:.5*(E-_)},ie=D.x-(_-R)/2,re=D.y+(_-R)/2),this.setState({width:_,height:R,offset:D,left:ie,top:re,currZoom:o}),a&&this._adapter.setImageCursor(f)},this.calcExtremeBounds=()=>{const{width:o,height:i}=this.getStates(),{width:a,height:r}=this._getContainerBounds();let c=a-o,f=r-i;return this._isImageVertical()&&(c=a-i,f=r-o),{left:c,top:f}},this.handleMoveImage=o=>{const{offset:i,width:a,height:r}=this.getStates(),{canDragVertical:c,canDragHorizontal:f}=this.calcCanDragDirection();if(o.buttons===1&&(c||f)){const{clientX:E,clientY:_}=o,{left:R,top:D}=this._getContainerBounds(),{left:J,top:re}=this.calcExtremeBounds();let ie=f?E-R-this.startMouseOffset.x:i.x,ae=c?_-D-this.startMouseOffset.y:i.y;f&&(ie=ie>0?0:ie0?0:ae{this.startMouseOffset=this._getOffset(o)}}}const A$e=KA.PREFIX,r6=`${A$e}-preview-image`;class ZD extends Ml{get adapter(){return Object.assign(Object.assign({},super.adapter),{getContainer:()=>this.containerRef.current,getImage:()=>this.imageRef.current,setLoading:t=>{this.setState({loading:t})},setImageCursor:t=>{this.imageRef.current.style.cursor=t?"grab":"default"}})}constructor(t){super(t),this.onWindowResize=()=>{this.foundation.handleWindowResize()},this.handleRightClickImage=s=>{this.foundation.handleRightClickImage(s)},this.handleLoad=s=>{this.foundation.handleLoad(s)},this.handleError=s=>{this.foundation.handleError(s)},this.handleMoveImage=s=>{this.foundation.handleMoveImage(s)},this.onImageMouseDown=s=>{this.foundation.handleImageMouseDown(s)},this.state={width:0,height:0,loading:!0,offset:{x:0,y:0},currZoom:0,top:0,left:0},this.containerRef=De.createRef(),this.imageRef=De.createRef(),this.foundation=new x$e(this.adapter)}componentDidMount(){window.addEventListener("resize",this.onWindowResize)}componentWillUnmount(){window.removeEventListener("resize",this.onWindowResize)}componentDidUpdate(t,s){const o="zoom"in this.props&&this.props.zoom!==this.state.currZoom,i=this.props.src&&this.props.src!==t.src;i&&this.foundation.setLoading(!0),o&&this.foundation.calculatePreviewImage(this.props.zoom,null),!o&&!i&&t&&("ratio"in this.props&&this.props.ratio!==t.ratio&&this.foundation.handleRatioChange(),"rotation"in this.props&&this.props.rotation!==t.rotation&&this.onWindowResize())}render(){const{src:t,rotation:s,crossOrigin:o}=this.props,{loading:i,width:a,height:r,top:c,left:f}=this.state,e={position:"absolute",visibility:i?"hidden":"visible",transform:`rotate(${-s}deg)`,top:c,left:f,width:a,height:r};return De.createElement("div",{className:`${r6}`,ref:this.containerRef},De.createElement("img",{ref:this.imageRef,src:t,alt:"previewImag",className:`${r6}-img`,key:t,onMouseMove:this.handleMoveImage,onMouseDown:this.onImageMouseDown,onContextMenu:this.handleRightClickImage,onDragStart:E=>E.preventDefault(),onLoad:this.handleLoad,onError:this.handleError,style:e,crossOrigin:o}),i&&De.createElement(V1,{size:"large",wrapperClassName:`${r6}-spin`}))}}ZD.propTypes={src:W.string,rotation:W.number,style:W.object,zoom:W.number,ratio:W.string,disableDownload:W.bool,clickZoom:W.number,setRatio:W.func,onZoom:W.func,onLoad:W.func,onError:W.func};ZD.defaultProps={zoom:void 0};const _$e=(n,t)=>{const s=n==null?void 0:n.composedPath();return s==null?void 0:s.slice(0,s.length-4).some(i=>i.className&&typeof i.className=="string"?t.some(a=>i.className.includes(a)):!1)},T$e=(n,t)=>{const s=new Image;s.src=n,s.crossOrigin="anonymous",s.onload=o=>{const i=document.createElement("a");i.download=t,i.style.display="none",i.download=t,i.href=n;const a=document.createElement("canvas");a.width=s.width,a.height=s.height,a.getContext("2d").drawImage(s,0,0,s.width,s.height),i.href=a.toDataURL("image/jpeg"),document.body.appendChild(i),i.click(),document.body.removeChild(i)}},N$e=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=[];const o=n.length,i=t.length,a=o<=i?o:i;return new Array(a).fill(0).forEach((r,c)=>{s.push(t[c]),s.push(n[c])}),o>i?s=s.concat(n.slice(i,o)):o{const i=t-s,a=t+s,r=n.length;let c=[],f=[];s>=Math.floor(r/2)?o?(c=n.concat(n).slice(i+r<0?0:i+r,t+r),f=n.concat(n).slice(t+1,a+1<2*r?a+1:2*r)):(c=n.slice(0,t),f=n.slice(t+1,r)):o?(c=n.concat(n).slice(i+r,t+r),f=n.concat(n).slice(t+1,a+1)):i>=0&&a{const{viewerVisible:o}=this.getStates();o&&(this.setState({viewerVisible:!1}),this.clearTimer())},this.handleMouseMove=o=>{this._persistEvent(o),this.mouseMoveHandler(o)},this.mouseMoveHandler=T5(o=>{const{viewerVisible:i}=this.getStates();this._adapter.isValidTarget(o)?(i||this.setState({viewerVisible:!0}),this.updateTimer()):this.clearTimer()},50),this.updateTimer=()=>{const{viewerVisibleDelay:o}=this.getProps();this.clearTimer(),this._timer=setTimeout(this.handleViewVisibleChange,o)},this.clearTimer=()=>{this._timer&&(clearTimeout(this._timer),this._timer=null)},this.handleWheel=o=>{this.onWheel(o),ig(o)},this.onWheel=o=>{const{zoomStep:i,maxZoom:a,minZoom:r}=this.getProps(),{zoom:c}=this.getStates();let f;o.deltaY<0?c+i<=a&&(f=Number((c+i).toFixed(2))):o.deltaY>0&&c-i>=r&&(f=Number((c-i).toFixed(2))),Hm(f)||this.handleZoomImage(f)},this.handleMouseUp=o=>{const{maskClosable:i}=this.getProps();let a=!_$e(o,I$e);const{clientX:r,clientY:c}=o,{x:f,y:e}=this._startMouseDown;(Math.abs(r-f)>5||Math.abs(e-c)>5)&&(a=!1),a&&i&&this._adapter.notifyVisibleChange(!1)},this.handleMouseDown=o=>{const{clientX:i,clientY:a}=o;this._startMouseDown={x:i,y:a}},this.handleKeyDown=o=>{const{closeOnEsc:i}=this.getProps();if(i&&o.keyCode===lm.ESC){o.stopPropagation(),this._adapter.notifyVisibleChange(!1),this._adapter.notifyClose();return}},this.handleSwitchImage=o=>{const i=o==="prev"?-1:1,{imgSrc:a,currentIndex:r}=this.getStates(),c=a.length,f=(r+i+c)%c;"currentIndex"in this.getProps()?this._adapter.getIsInGroup()&&this._adapter.getContext("setCurrentIndex")(f):this.setState({currentIndex:f}),this._adapter.notifyChange(f,o),this.setState({direction:o,rotation:0})},this.handleDownload=()=>{const{currentIndex:o,imgSrc:i}=this.getStates(),a=this._adapter.getSetDownloadFunc(),r=i[o],c=a?a(r):r.slice(r.lastIndexOf("/")+1).split("?")[0];T$e(r,c),this._adapter.notifyDownload(r,o)},this.handlePreviewClose=o=>{this._adapter.notifyVisibleChange(!1),this._adapter.notifyClose(),ig(o)},this.handleAdjustRatio=o=>{this.setState({ratio:o}),this._adapter.notifyRatioChange(o)},this.handleRotateImage=o=>{const{rotation:i}=this.getStates(),a=i+(o==="left"?90:-90);this.setState({rotation:a}),this._adapter.notifyRotateChange(a)},this.handleZoomImage=function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const{zoom:a}=s.getStates();a!==o&&(i&&s._adapter.notifyZoom(o,o>a),s.setState({zoom:o}))},this.preloadGapImage=()=>{const{preLoad:o,preLoadGap:i,infinite:a,currentIndex:r}=this.getProps(),{imgSrc:c}=this.getStates();if(!o||typeof i!="number"||i<1)return;const f=O$e(c,r,i,a),e=new Image;let E=0;function _(R){E++,E{this.setLoadSuccessStatus(e.src),_()},e.onerror=_,e.src=f[0]},this.preloadSingleImage=()=>{const{preLoad:o,preLoadGap:i,infinite:a}=this.getProps(),{imgSrc:r,currentIndex:c,direction:f,imgLoadStatus:e}=this.getStates();if(!o||typeof i!="number"||i<1)return;let E=c+(f==="prev"?-1:1)*i;if(E<0||E>=r.length)if(a)E=(E+r.length)%r.length;else return;if(!e[E]){const _=new Image;_.onload=R=>{this.setLoadSuccessStatus(r[E])},_.src=r[E]}},this.setLoadSuccessStatus=o=>{const{imgLoadStatus:i}=this.getStates(),a=Object.assign({},i);a[o]=!0,this.setState({imgLoadStatus:a})},this.onImageLoad=o=>{const{preloadAfterVisibleChange:i}=this.getStates();this.setLoadSuccessStatus(o),i?(this.preloadGapImage(),this.setState({preloadAfterVisibleChange:!1})):this.preloadSingleImage()}}beforeShow(){this._adapter.registerKeyDownListener(),this._adapter.disabledBodyScroll(),this.updateTimer()}afterHide(){this._adapter.unregisterKeyDownListener(),this._adapter.enabledBodyScroll(),this.clearTimer()}}const oH=KA.PREFIX;class X3 extends Ml{get adapter(){return Object.assign(Object.assign({},super.adapter),{getIsInGroup:()=>this.isInGroup(),disabledBodyScroll:()=>{const{getPopupContainer:t}=this.props;this.bodyOverflow=document.body.style.overflow||"",!t&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:t}=this.props;!t&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyChange:(t,s)=>{const{onChange:o,onPrev:i,onNext:a}=this.props;xu(o)&&o(t),s==="prev"?i&&i(t):a&&a(t)},notifyZoom:(t,s)=>{const{onZoomIn:o,onZoomOut:i}=this.props;s?xu(o)&&o(t):xu(i)&&i(t)},notifyClose:()=>{const{onClose:t}=this.props;xu(t)&&t()},notifyVisibleChange:t=>{const{onVisibleChange:s}=this.props;xu(s)&&s(t)},notifyRatioChange:t=>{const{onRatioChange:s}=this.props;xu(s)&&s(t)},notifyRotateChange:t=>{const{onRotateLeft:s}=this.props;xu(s)&&s(t)},notifyDownload:(t,s)=>{const{onDownload:o}=this.props;xu(o)&&o(t,s)},registerKeyDownListener:()=>{window&&window.addEventListener("keydown",this.handleKeyDown)},unregisterKeyDownListener:()=>{window&&window.removeEventListener("keydown",this.handleKeyDown)},getSetDownloadFunc:()=>{var t,s;return(s=(t=this.context)===null||t===void 0?void 0:t.setDownloadName)!==null&&s!==void 0?s:this.props.setDownloadName},isValidTarget:t=>{const s=this.headerRef&&this.headerRef.current,o=this.footerRef&&this.footerRef.current,i=this.leftIconRef&&this.leftIconRef.current,a=this.rightIconRef&&this.rightIconRef.current,r=t.target;return!(s&&s.contains(r)||o&&o.contains(r)||i&&i.contains(r)||a&&a.contains(r))}})}constructor(t){var s;super(t),s=this,this.viewVisibleChange=()=>{this.foundation.handleViewVisibleChange()},this.handleSwitchImage=o=>{this.foundation.handleSwitchImage(o)},this.handleDownload=()=>{this.foundation.handleDownload()},this.handlePreviewClose=o=>{this.foundation.handlePreviewClose(o)},this.handleAdjustRatio=o=>{this.foundation.handleAdjustRatio(o)},this.handleRotateImage=o=>{this.foundation.handleRotateImage(o)},this.handleZoomImage=function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;s.foundation.handleZoomImage(o,i)},this.handleMouseUp=o=>{this.foundation.handleMouseUp(o.nativeEvent)},this.handleMouseMove=o=>{this.foundation.handleMouseMove(o)},this.handleKeyDown=o=>{this.foundation.handleKeyDown(o)},this.onImageError=()=>{this.foundation.preloadSingleImage()},this.onImageLoad=o=>{this.foundation.onImageLoad(o)},this.handleMouseDown=o=>{this.foundation.handleMouseDown(o)},this.handleWheel=o=>{this.foundation.handleWheel(o)},this.registryImageWrapRef=o=>{this.imageWrapRef&&this.imageWrapRef.removeEventListener("wheel",this.handleWheel),o&&o.addEventListener("wheel",this.handleWheel,{passive:!1}),this.imageWrapRef=o},this.state={imgSrc:[],imgLoadStatus:new Map,zoom:.1,currentIndex:0,ratio:"adaptation",rotation:0,viewerVisible:!0,visible:!1,preloadAfterVisibleChange:!0,direction:""},this.foundation=new R$e(this.adapter),this.bodyOverflow="",this.originBodyWidth="100%",this.scrollBarWidth=0,this.imageWrapRef=null,this.headerRef=De.createRef(),this.footerRef=De.createRef(),this.leftIconRef=De.createRef(),this.rightIconRef=De.createRef()}static getDerivedStateFromProps(t,s){const o={};let i=[];return t.visible&&(i=Array.isArray(t.src)?t.src:[t.src]),Mp(i,s.imgSrc)||(o.imgSrc=i),t.visible!==s.visible&&(o.visible=t.visible,t.visible&&(o.preloadAfterVisibleChange=!0,o.viewerVisible=!0,o.rotation=0,o.ratio="adaptation")),"currentIndex"in t&&t.currentIndex!==s.currentIndex&&(o.currentIndex=t.currentIndex,o.ratio="adaptation"),o}componentDidMount(){this.scrollBarWidth=v9(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(t,s){t.src!==this.props.src&&this.foundation.updateTimer(),!t.visible&&this.props.visible&&this.foundation.beforeShow(),t.visible&&!this.props.visible&&this.foundation.afterHide()}componentWillUnmount(){this.foundation.clearTimer()}isInGroup(){return!!(this.context&&this.context.isGroup)}render(){const{getPopupContainer:t,closable:s,zIndex:o,visible:i,className:a,style:r,infinite:c,zoomStep:f,crossOrigin:e,prevTip:E,nextTip:_,zoomInTip:R,zoomOutTip:D,rotateTip:J,downloadTip:re,adaptiveTip:ie,originTip:ae,showTooltip:de,disableDownload:ye,renderPreviewMenu:Fe,renderHeader:Ge}=this.props,{currentIndex:tt,imgSrc:ht,zoom:yt,ratio:Ft,rotation:Zt,viewerVisible:Nt}=this.state;let kt={zIndex:o};t&&(kt={zIndex:o,position:"static"});const fn=`${oH}-preview`,tn=Ar(fn,{[`${oH}-hide`]:!i,[`${fn}-popup`]:t},a),zn=Nt?"":`${fn}-hide`,qn=ht.length,gr=qn!==1&&(c||tt!==0),$n=qn!==1&&(c||tt!==qn-1);return i&&De.createElement(QO,{getPopupContainer:t,style:kt},De.createElement("div",{className:tn,style:r,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,ref:this.registryImageWrapRef,onMouseMove:this.handleMouseMove},De.createElement(L$e,{ref:this.headerRef,className:Ar(zn),onClose:this.handlePreviewClose,renderHeader:Ge,closable:s}),De.createElement(ZD,{src:ht[tt],onZoom:this.handleZoomImage,disableDownload:ye,setRatio:this.handleAdjustRatio,zoom:yt,ratio:Ft,rotation:Zt,crossOrigin:e,onError:this.onImageError,onLoad:this.onImageLoad}),gr&&De.createElement("div",{ref:this.leftIconRef,className:Ar(`${fn}-icon`,`${fn}-prev`,zn),onClick:()=>this.handleSwitchImage("prev")},De.createElement(hEe,{size:"large"})),$n&&De.createElement("div",{ref:this.rightIconRef,className:Ar(`${fn}-icon`,`${fn}-next`,zn),onClick:()=>this.handleSwitchImage("next")},De.createElement(gEe,{size:"large"})),De.createElement(XD,{forwardRef:this.footerRef,className:zn,totalNum:qn,curPage:tt+1,disabledPrev:!gr,disabledNext:!$n,zoom:yt*100,step:f*100,showTooltip:de,ratio:Ft,prevTip:E,nextTip:_,zIndex:o,zoomInTip:R,zoomOutTip:D,rotateTip:J,downloadTip:re,disableDownload:ye,adaptiveTip:ie,originTip:ae,onPrev:()=>this.handleSwitchImage("prev"),onNext:()=>this.handleSwitchImage("next"),onZoomIn:this.handleZoomImage,onZoomOut:this.handleZoomImage,onDownload:this.handleDownload,onRotate:this.handleRotateImage,onAdjustRatio:this.handleAdjustRatio,renderPreviewMenu:Fe})))}}X3.contextType=YD;X3.propTypes={style:W.object,className:W.string,visible:W.bool,src:W.oneOfType([W.string,W.array]),currentIndex:W.number,defaultCurrentIndex:W.number,defaultVisible:W.bool,maskClosable:W.bool,closable:W.bool,zoomStep:W.number,infinite:W.bool,showTooltip:W.bool,closeOnEsc:W.bool,prevTip:W.string,nextTip:W.string,zoomInTip:W.string,zoomOutTip:W.string,downloadTip:W.string,adaptiveTip:W.string,originTip:W.string,lazyLoad:W.bool,preLoad:W.bool,preLoadGap:W.number,disableDownload:W.bool,viewerVisibleDelay:W.number,zIndex:W.number,maxZoom:W.number,minZoom:W.number,renderHeader:W.func,renderPreviewMenu:W.func,getPopupContainer:W.func,onVisibleChange:W.func,onChange:W.func,onClose:W.func,onZoomIn:W.func,onZoomOut:W.func,onPrev:W.func,onNext:W.func,onDownload:W.func,onRatioChange:W.func,onRotateLeft:W.func};X3.defaultProps={showTooltip:!1,zoomStep:.1,infinite:!1,closeOnEsc:!0,lazyLoad:!1,preLoad:!0,preLoadGap:2,zIndex:w$e.DEFAULT_Z_INDEX,maskClosable:!0,viewerVisibleDelay:1e4,maxZoom:5,minZoom:.1};class P$e extends fc{constructor(t){super(Object.assign({},t)),this.handleClick=s=>{const{imageID:o,preview:i}=this.getProps();if(i)if(this._adapter.getIsInGroup()){const{setCurrentIndex:a,handleVisibleChange:r}=this._adapter.getContexts();a(o),r(!0)}else this.handlePreviewVisibleChange(!0)},this.handleLoaded=s=>{const{onLoad:o}=this.getProps();o&&o(s),this.setState({loadStatus:"success"})},this.handleError=s=>{const{onError:o}=this.getProps();o&&o(s),this.setState({loadStatus:"error"})},this.handlePreviewVisibleChange=s=>{const{preview:o}=this.getProps();if(Bg(o)){const{onVisibleChange:i}=o;i&&i(s),"visible"in o||this.setState({previewVisible:s})}else this.setState({previewVisible:s})}}}var $$e=function(n,t){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(n);ithis.isInGroup()})}constructor(t){super(t),this.handleClick=s=>{this.foundation.handleClick(s)},this.handleLoaded=s=>{this.foundation.handleLoaded(s)},this.handleError=s=>{this.foundation.handleError(s)},this.handlePreviewVisibleChange=s=>{this.foundation.handlePreviewVisibleChange(s)},this.renderDefaultLoading=()=>{const{width:s,height:o}=this.props;return De.createElement(WT.Image,{style:{width:s,height:o}})},this.renderDefaultError=()=>{const s=`${N1}-status`;return De.createElement("div",{className:s},De.createElement(ASe,{size:"extra-large"}))},this.renderLoad=()=>{const s=`${N1}-status`,{placeholder:o}=this.props;return o?De.createElement("div",{className:s},o):this.renderDefaultLoading()},this.renderError=()=>{const{fallback:s}=this.props,o=`${N1}-status`,i=typeof s=="string"?De.createElement("img",{style:{width:"100%",height:"100%"},src:s,alt:"fallback"}):s;return s?De.createElement("div",{className:o},i):this.renderDefaultError()},this.renderExtra=()=>{const{loadStatus:s}=this.state;return De.createElement("div",{className:`${N1}-overlay`},s==="error"&&this.renderError(),s==="loading"&&this.renderLoad())},this.getLocalTextByKey=s=>De.createElement(dm,{componentName:"Image"},o=>o[s]),this.renderMask=()=>De.createElement("div",{className:`${N1}-mask`},De.createElement("div",{className:`${N1}-mask-info`},De.createElement(IX,{size:"extra-large"}),De.createElement("span",{className:`${N1}-mask-info-text`},this.getLocalTextByKey("preview")))),this.state={src:"",loadStatus:"loading",previewVisible:!1},this.foundation=new P$e(this.adapter),this.imgRef=De.createRef()}static getDerivedStateFromProps(t,s){const o={};if(t.src!==s.src&&(o.src=t.src,o.loadStatus="loading"),Bg(t.preview)){const{visible:i}=t.preview;B9(i)&&(o.previewVisible=i)}return o}isInGroup(){return!!(this.context&&this.context.isGroup)}isLazyLoad(){return this.context?this.context.lazyLoad:!1}render(){var t;const{src:s,loadStatus:o,previewVisible:i}=this.state,a=this.props,{src:r,width:c,height:f,alt:e,style:E,className:_,crossOrigin:R,preview:D,fallback:J,placeholder:re,imageID:ie,setDownloadName:ae}=a,de=$$e(a,["src","width","height","alt","style","className","crossOrigin","preview","fallback","placeholder","imageID","setDownloadName"]),ye=Object.assign({width:c,height:f},E),Fe=Ar(N1,_),Ge=o==="success"&&D&&!this.isInGroup(),tt=D&&o==="success",ht=Bg(D)&&(t=D.src)!==null&&t!==void 0?t:s,yt=Bg(D)&&Ge?Object.assign(Object.assign({},Gm(D,["className","style","previewCls","previewStyle"])),{className:D==null?void 0:D.previewCls,style:D==null?void 0:D.previewStyle}):{};return De.createElement("div",{style:ye,className:Fe,onClick:this.handleClick},De.createElement("img",Object.assign({ref:this.imgRef},de,{src:this.isInGroup()&&this.isLazyLoad()?void 0:s,"data-src":s,alt:e,className:Ar(`${N1}-img`,{[`${N1}-img-preview`]:tt,[`${N1}-img-error`]:o==="error"}),width:c,height:f,crossOrigin:R,onError:this.handleError,onLoad:this.handleLoaded})),o!=="success"&&this.renderExtra(),Ge&&De.createElement(X3,Object.assign({},yt,{src:ht,visible:i,onVisibleChange:this.handlePreviewVisibleChange,crossOrigin:Hm(R)?yt==null?void 0:yt.crossOrigin:R,setDownloadName:ae})))}};qA.isSemiImage=!0;qA.contextType=YD;qA.propTypes={style:W.object,className:W.string,src:W.string,width:W.oneOfType([W.string,W.number]),height:W.oneOfType([W.string,W.number]),alt:W.string,placeholder:W.node,fallback:W.oneOfType([W.string,W.node]),preview:W.oneOfType([W.bool,W.object]),onLoad:W.func,onError:W.func,onClick:W.func,crossOrigin:W.string,imageID:W.number};qA.defaultProps={preview:!0};var k$e="@vercel/analytics",D$e="1.2.2",M$e=()=>{window.va||(window.va=function(...t){(window.vaq=window.vaq||[]).push(t)})};function aQ(){return typeof window<"u"}function lQ(){try{const n="production"}catch{}return"production"}function j$e(n="auto"){if(n==="auto"){window.vam=lQ();return}window.vam=n}function F$e(){return(aQ()?window.vam:lQ())||"production"}function s6(){return F$e()==="development"}var U$e="https://va.vercel-scripts.com/v1/script.debug.js",B$e="/reference/drawdb/_vercel/insights/script.js";function z$e(n={debug:!0}){var t;if(!aQ())return;j$e(n.mode),M$e(),n.beforeSend&&((t=window.va)==null||t.call(window,"beforeSend",n.beforeSend));const s=n.scriptSrc||(s6()?U$e:B$e);if(document.head.querySelector(`script[src*="${s}"]`))return;const o=document.createElement("script");o.src=s,o.defer=!0,o.dataset.sdkn=k$e+(n.framework?`/${n.framework}`:""),o.dataset.sdkv=D$e,n.disableAutoTrack&&(o.dataset.disableAutoTrack="1"),n.endpoint&&(o.dataset.endpoint=n.endpoint),n.dsn&&(o.dataset.dsn=n.dsn),o.onerror=()=>{const i=s6()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${s}. ${i}`)},s6()&&n.debug===!1&&(o.dataset.debug="false"),document.head.appendChild(o)}function H$e({route:n,path:t}){var s;(s=window.va)==null||s.call(window,"pageview",{route:n,path:t})}function V$e(n){return lt.useEffect(()=>{z$e({framework:n.framework||"react",...n.route!==void 0&&{disableAutoTrack:!0},...n})},[]),lt.useEffect(()=>{n.route&&n.path&&H$e({route:n.route,path:n.path})},[n.route,n.path]),null}/** + * @remix-run/router v1.14.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function U5(){return U5=Object.assign?Object.assign.bind():function(n){for(var t=1;t"u")throw new Error(t)}function JD(n,t){if(!n){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function G$e(){return Math.random().toString(36).substr(2,8)}function aH(n,t){return{usr:n.state,key:n.key,idx:t}}function ZP(n,t,s,o){return s===void 0&&(s=null),U5({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof t=="string"?gS(t):t,{state:s,key:t&&t.key||o||G$e()})}function w4(n){let{pathname:t="/",search:s="",hash:o=""}=n;return s&&s!=="?"&&(t+=s.charAt(0)==="?"?s:"?"+s),o&&o!=="#"&&(t+=o.charAt(0)==="#"?o:"#"+o),t}function gS(n){let t={};if(n){let s=n.indexOf("#");s>=0&&(t.hash=n.substr(s),n=n.substr(0,s));let o=n.indexOf("?");o>=0&&(t.search=n.substr(o),n=n.substr(0,o)),n&&(t.pathname=n)}return t}function K$e(n,t,s,o){o===void 0&&(o={});let{window:i=document.defaultView,v5Compat:a=!1}=o,r=i.history,c=hC.Pop,f=null,e=E();e==null&&(e=0,r.replaceState(U5({},r.state,{idx:e}),""));function E(){return(r.state||{idx:null}).idx}function _(){c=hC.Pop;let ie=E(),ae=ie==null?null:ie-e;e=ie,f&&f({action:c,location:re.location,delta:ae})}function R(ie,ae){c=hC.Push;let de=ZP(re.location,ie,ae);s&&s(de,ie),e=E()+1;let ye=aH(de,e),Fe=re.createHref(de);try{r.pushState(ye,"",Fe)}catch(Ge){if(Ge instanceof DOMException&&Ge.name==="DataCloneError")throw Ge;i.location.assign(Fe)}a&&f&&f({action:c,location:re.location,delta:1})}function D(ie,ae){c=hC.Replace;let de=ZP(re.location,ie,ae);s&&s(de,ie),e=E();let ye=aH(de,e),Fe=re.createHref(de);r.replaceState(ye,"",Fe),a&&f&&f({action:c,location:re.location,delta:0})}function J(ie){let ae=i.location.origin!=="null"?i.location.origin:i.location.href,de=typeof ie=="string"?ie:w4(ie);return fm(ae,"No window.location.(origin|href) available to create URL for href: "+de),new URL(de,ae)}let re={get action(){return c},get location(){return n(i,r)},listen(ie){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(iH,_),f=ie,()=>{i.removeEventListener(iH,_),f=null}},createHref(ie){return t(i,ie)},createURL:J,encodeLocation(ie){let ae=J(ie);return{pathname:ae.pathname,search:ae.search,hash:ae.hash}},push:R,replace:D,go(ie){return r.go(ie)}};return re}var lH;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(lH||(lH={}));function q$e(n,t,s){s===void 0&&(s="/");let o=typeof t=="string"?gS(t):t,i=QD(o.pathname||"/",s);if(i==null)return null;let a=uQ(n);Y$e(a);let r=null;for(let c=0;r==null&&c{let f={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:r,route:a};f.relativePath.startsWith("/")&&(fm(f.relativePath.startsWith(o),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(o.length));let e=IC([o,f.relativePath]),E=s.concat(f);a.children&&a.children.length>0&&(fm(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+e+'".')),uQ(a.children,t,E,e)),!(a.path==null&&!a.index)&&t.push({path:e,score:nke(e,a.index),routesMeta:E})};return n.forEach((a,r)=>{var c;if(a.path===""||!((c=a.path)!=null&&c.includes("?")))i(a,r);else for(let f of cQ(a.path))i(a,r,f)}),t}function cQ(n){let t=n.split("/");if(t.length===0)return[];let[s,...o]=t,i=s.endsWith("?"),a=s.replace(/\?$/,"");if(o.length===0)return i?[a,""]:[a];let r=cQ(o.join("/")),c=[];return c.push(...r.map(f=>f===""?a:[a,f].join("/"))),i&&c.push(...r),c.map(f=>n.startsWith("/")&&f===""?"/":f)}function Y$e(n){n.sort((t,s)=>t.score!==s.score?s.score-t.score:rke(t.routesMeta.map(o=>o.childrenIndex),s.routesMeta.map(o=>o.childrenIndex)))}const X$e=/^:\w+$/,Z$e=3,J$e=2,Q$e=1,eke=10,tke=-2,uH=n=>n==="*";function nke(n,t){let s=n.split("/"),o=s.length;return s.some(uH)&&(o+=tke),t&&(o+=J$e),s.filter(i=>!uH(i)).reduce((i,a)=>i+(X$e.test(a)?Z$e:a===""?Q$e:eke),o)}function rke(n,t){return n.length===t.length&&n.slice(0,-1).every((o,i)=>o===t[i])?n[n.length-1]-t[t.length-1]:0}function ske(n,t){let{routesMeta:s}=n,o={},i="/",a=[];for(let r=0;r{let{paramName:R,isOptional:D}=E;if(R==="*"){let re=c[_]||"";r=a.slice(0,a.length-re.length).replace(/(.)\/+$/,"$1")}const J=c[_];return D&&!J?e[R]=void 0:e[R]=lke(J||"",R),e},{}),pathname:a,pathnameBase:r,pattern:n}}function ike(n,t,s){t===void 0&&(t=!1),s===void 0&&(s=!0),JD(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let o=[],i="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(r,c,f)=>(o.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(o.push({paramName:"*"}),i+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?i+="\\/*$":n!==""&&n!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),o]}function ake(n){try{return decodeURI(n)}catch(t){return JD(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),n}}function lke(n,t){try{return decodeURIComponent(n)}catch(s){return JD(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+s+").")),n}}function QD(n,t){if(t==="/")return n;if(!n.toLowerCase().startsWith(t.toLowerCase()))return null;let s=t.endsWith("/")?t.length-1:t.length,o=n.charAt(s);return o&&o!=="/"?null:n.slice(s)||"/"}function uke(n,t){t===void 0&&(t="/");let{pathname:s,search:o="",hash:i=""}=typeof n=="string"?gS(n):n;return{pathname:s?s.startsWith("/")?s:cke(s,t):t,search:hke(o),hash:pke(i)}}function cke(n,t){let s=t.replace(/\/+$/,"").split("/");return n.split("/").forEach(i=>{i===".."?s.length>1&&s.pop():i!=="."&&s.push(i)}),s.length>1?s.join("/"):"/"}function o6(n,t,s,o){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+s+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function dke(n){return n.filter((t,s)=>s===0||t.route.path&&t.route.path.length>0)}function dQ(n,t){let s=dke(n);return t?s.map((o,i)=>i===n.length-1?o.pathname:o.pathnameBase):s.map(o=>o.pathnameBase)}function fQ(n,t,s,o){o===void 0&&(o=!1);let i;typeof n=="string"?i=gS(n):(i=U5({},n),fm(!i.pathname||!i.pathname.includes("?"),o6("?","pathname","search",i)),fm(!i.pathname||!i.pathname.includes("#"),o6("#","pathname","hash",i)),fm(!i.search||!i.search.includes("#"),o6("#","search","hash",i)));let a=n===""||i.pathname==="",r=a?"/":i.pathname,c;if(r==null)c=s;else if(o){let _=t.length===0?[]:t[t.length-1].replace(/^\//,"").split("/");if(r.startsWith("..")){let R=r.split("/");for(;R[0]==="..";)R.shift(),_.pop();i.pathname=R.join("/")}c="/"+_.join("/")}else{let _=t.length-1;if(r.startsWith("..")){let R=r.split("/");for(;R[0]==="..";)R.shift(),_-=1;i.pathname=R.join("/")}c=_>=0?t[_]:"/"}let f=uke(i,c),e=r&&r!=="/"&&r.endsWith("/"),E=(a||r===".")&&s.endsWith("/");return!f.pathname.endsWith("/")&&(e||E)&&(f.pathname+="/"),f}const IC=n=>n.join("/").replace(/\/\/+/g,"/"),fke=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),hke=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,pke=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function mke(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const hQ=["post","put","patch","delete"];new Set(hQ);const gke=["get",...hQ];new Set(gke);/** + * React Router v6.21.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function B5(){return B5=Object.assign?Object.assign.bind():function(n){for(var t=1;t{c.current=!0}),lt.useCallback(function(e,E){if(E===void 0&&(E={}),!c.current)return;if(typeof e=="number"){o.go(e);return}let _=fQ(e,JSON.parse(r),a,E.relative==="path");n==null&&t!=="/"&&(_.pathname=_.pathname==="/"?t:IC([t,_.pathname])),(E.replace?o.replace:o.push)(_,E.state,E)},[t,o,r,a,n])}function vQ(n,t){let{relative:s}=t===void 0?{}:t,{future:o}=lt.useContext(N2),{matches:i}=lt.useContext(O2),{pathname:a}=XA(),r=JSON.stringify(dQ(i,o.v7_relativeSplatPath));return lt.useMemo(()=>fQ(n,JSON.parse(r),a,s==="path"),[n,r,a,s])}function Cke(n,t){return wke(n,t)}function wke(n,t,s,o){YA()||fm(!1);let{navigator:i}=lt.useContext(N2),{matches:a}=lt.useContext(O2),r=a[a.length-1],c=r?r.params:{};r&&r.pathname;let f=r?r.pathnameBase:"/";r&&r.route;let e=XA(),E;if(t){var _;let ie=typeof t=="string"?gS(t):t;f==="/"||(_=ie.pathname)!=null&&_.startsWith(f)||fm(!1),E=ie}else E=e;let R=E.pathname||"/",D=f==="/"?R:R.slice(f.length)||"/",J=q$e(n,{pathname:D}),re=Ake(J&&J.map(ie=>Object.assign({},ie,{params:Object.assign({},c,ie.params),pathname:IC([f,i.encodeLocation?i.encodeLocation(ie.pathname).pathname:ie.pathname]),pathnameBase:ie.pathnameBase==="/"?f:IC([f,i.encodeLocation?i.encodeLocation(ie.pathnameBase).pathname:ie.pathnameBase])})),a,s,o);return t&&re?lt.createElement(Z3.Provider,{value:{location:B5({pathname:"/",search:"",hash:"",state:null,key:"default"},E),navigationType:hC.Pop}},re):re}function Eke(){let n=Oke(),t=mke(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return lt.createElement(lt.Fragment,null,lt.createElement("h2",null,"Unexpected Application Error!"),lt.createElement("h3",{style:{fontStyle:"italic"}},t),s?lt.createElement("pre",{style:i},s):null,a)}const Lke=lt.createElement(Eke,null);class Ske extends lt.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,s){return s.location!==t.location||s.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:s.error,location:s.location,revalidation:t.revalidation||s.revalidation}}componentDidCatch(t,s){console.error("React Router caught the following error during render",t,s)}render(){return this.state.error!==void 0?lt.createElement(O2.Provider,{value:this.props.routeContext},lt.createElement(pQ.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function xke(n){let{routeContext:t,match:s,children:o}=n,i=lt.useContext(eM);return i&&i.static&&i.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=s.route.id),lt.createElement(O2.Provider,{value:t},o)}function Ake(n,t,s,o){var i;if(t===void 0&&(t=[]),s===void 0&&(s=null),o===void 0&&(o=null),n==null){var a;if((a=s)!=null&&a.errors)n=s.matches;else return null}let r=n,c=(i=s)==null?void 0:i.errors;if(c!=null){let E=r.findIndex(_=>_.route.id&&(c==null?void 0:c[_.route.id]));E>=0||fm(!1),r=r.slice(0,Math.min(r.length,E+1))}let f=!1,e=-1;if(s&&o&&o.v7_partialHydration)for(let E=0;E=0?r=r.slice(0,e+1):r=[r[0]];break}}return r.reduceRight((E,_,R)=>{let D,J=!1,re=null,ie=null;s&&(D=c&&_.route.id?c[_.route.id]:void 0,re=_.route.errorElement||Lke,f&&(e<0&&R===0?(Rke("route-fallback",!1),J=!0,ie=null):e===R&&(J=!0,ie=_.route.hydrateFallbackElement||null)));let ae=t.concat(r.slice(0,R+1)),de=()=>{let ye;return D?ye=re:J?ye=ie:_.route.Component?ye=lt.createElement(_.route.Component,null):_.route.element?ye=_.route.element:ye=E,lt.createElement(xke,{match:_,routeContext:{outlet:E,matches:ae,isDataRoute:s!=null},children:ye})};return s&&(_.route.ErrorBoundary||_.route.errorElement||R===0)?lt.createElement(Ske,{location:s.location,revalidation:s.revalidation,component:re,error:D,children:de(),routeContext:{outlet:null,matches:ae,isDataRoute:!0}}):de()},null)}var bQ=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(bQ||{}),E4=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(E4||{});function _ke(n){let t=lt.useContext(eM);return t||fm(!1),t}function Tke(n){let t=lt.useContext(vke);return t||fm(!1),t}function Nke(n){let t=lt.useContext(O2);return t||fm(!1),t}function yQ(n){let t=Nke(),s=t.matches[t.matches.length-1];return s.route.id||fm(!1),s.route.id}function Oke(){var n;let t=lt.useContext(pQ),s=Tke(E4.UseRouteError),o=yQ(E4.UseRouteError);return t!==void 0?t:(n=s.errors)==null?void 0:n[o]}function Ike(){let{router:n}=_ke(bQ.UseNavigateStable),t=yQ(E4.UseNavigateStable),s=lt.useRef(!1);return mQ(()=>{s.current=!0}),lt.useCallback(function(i,a){a===void 0&&(a={}),s.current&&(typeof i=="number"?n.navigate(i):n.navigate(i,B5({fromRouteId:t},a)))},[n,t])}const cH={};function Rke(n,t,s){!t&&!cH[n]&&(cH[n]=!0)}function Hy(n){fm(!1)}function Pke(n){let{basename:t="/",children:s=null,location:o,navigationType:i=hC.Pop,navigator:a,static:r=!1,future:c}=n;YA()&&fm(!1);let f=t.replace(/^\/*/,"/"),e=lt.useMemo(()=>({basename:f,navigator:a,static:r,future:B5({v7_relativeSplatPath:!1},c)}),[f,c,a,r]);typeof o=="string"&&(o=gS(o));let{pathname:E="/",search:_="",hash:R="",state:D=null,key:J="default"}=o,re=lt.useMemo(()=>{let ie=QD(E,f);return ie==null?null:{location:{pathname:ie,search:_,hash:R,state:D,key:J},navigationType:i}},[f,E,_,R,D,J,i]);return re==null?null:lt.createElement(N2.Provider,{value:e},lt.createElement(Z3.Provider,{children:s,value:re}))}function $ke(n){let{children:t,location:s}=n;return Cke(JP(t),s)}new Promise(()=>{});function JP(n,t){t===void 0&&(t=[]);let s=[];return lt.Children.forEach(n,(o,i)=>{if(!lt.isValidElement(o))return;let a=[...t,i];if(o.type===lt.Fragment){s.push.apply(s,JP(o.props.children,a));return}o.type!==Hy&&fm(!1),!o.props.index||!o.props.children||fm(!1);let r={id:o.props.id||a.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(r.children=JP(o.props.children,a)),s.push(r)}),s}/** + * React Router DOM v6.21.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function QP(){return QP=Object.assign?Object.assign.bind():function(n){for(var t=1;t=0)&&(s[i]=n[i]);return s}function Dke(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Mke(n,t){return n.button===0&&(!t||t==="_self")&&!Dke(n)}const jke=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Fke="startTransition",dH=Wie[Fke];function Uke(n){let{basename:t,children:s,future:o,window:i}=n,a=lt.useRef();a.current==null&&(a.current=W$e({window:i,v5Compat:!0}));let r=a.current,[c,f]=lt.useState({action:r.action,location:r.location}),{v7_startTransition:e}=o||{},E=lt.useCallback(_=>{e&&dH?dH(()=>f(_)):f(_)},[f,e]);return lt.useLayoutEffect(()=>r.listen(E),[r,E]),lt.createElement(Pke,{basename:t,children:s,location:c.location,navigationType:c.action,navigator:r,future:o})}const Bke=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zke=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sg=lt.forwardRef(function(t,s){let{onClick:o,relative:i,reloadDocument:a,replace:r,state:c,target:f,to:e,preventScrollReset:E,unstable_viewTransition:_}=t,R=kke(t,jke),{basename:D}=lt.useContext(N2),J,re=!1;if(typeof e=="string"&&zke.test(e)&&(J=e,Bke))try{let ye=new URL(window.location.href),Fe=e.startsWith("//")?new URL(ye.protocol+e):new URL(e),Ge=QD(Fe.pathname,D);Fe.origin===ye.origin&&Ge!=null?e=Ge+Fe.search+Fe.hash:re=!0}catch{}let ie=bke(e,{relative:i}),ae=Hke(e,{replace:r,state:c,target:f,preventScrollReset:E,relative:i,unstable_viewTransition:_});function de(ye){o&&o(ye),ye.defaultPrevented||ae(ye)}return lt.createElement("a",QP({},R,{href:J||ie,onClick:re||a?o:de,ref:s,target:f}))});var fH;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(fH||(fH={}));var hH;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(hH||(hH={}));function Hke(n,t){let{target:s,replace:o,state:i,preventScrollReset:a,relative:r,unstable_viewTransition:c}=t===void 0?{}:t,f=gQ(),e=XA(),E=vQ(n,{relative:r});return lt.useCallback(_=>{if(Mke(_,s)){_.preventDefault();let R=o!==void 0?o:w4(e)===w4(E);f(n,{replace:R,state:i,preventScrollReset:a,relative:r,unstable_viewTransition:c})}},[e,f,E,o,i,s,n,a,r,c])}const CQ=lt.createContext(null);function Vke({children:n}){const[t,s]=lt.useState({header:!0,sidebar:!0,issues:!0,toolbar:!0,fullscreen:!1});return Ee.jsx(CQ.Provider,{value:{layout:t,setLayout:s},children:n})}const wQ=lt.createContext(null);function Wke({children:n}){const[t,s]=lt.useState({zoom:1,pan:{x:0,y:0}});return Ee.jsx(wQ.Provider,{value:{transform:t,setTransform:s},children:n})}const vS=["INT","SMALLINT","BIGINT","DECIMAL","NUMERIC","FLOAT","DOUBLE","REAL","CHAR","VARCHAR","TEXT","DATE","TIME","TIMESTAMP","DATETIME","BOOLEAN","BINARY","VARBINARY","BLOB","JSON","UUID","ENUM","SET"],Q_=["#f03c3c","#ff4f81","#bc49c4","#a751e8","#7c4af0","#6360f7","#7d9dff","#32c9b0","#3cde7d","#89e667","#ffe159","#ff9159"],EQ=["#ffdfd9","#fcf7ac","#cffcb1","#c7d2ff","#e7c7ff"],TL="#175e7a",Gke="#fcf7ac",L4=50,Kke=200,pC=36,Cb={ONE_TO_ONE:"One to one",ONE_TO_MANY:"One to many",MANY_TO_ONE:"Many to one"},S4={NONE:"No action",RESTRICT:"Restrict",CASCADE:"Cascade",SET_NULL:"Set null",SET_DEFAULT:"Set default"},jm={TABLES:"1",RELATIONSHIPS:"2",AREAS:"3",NOTES:"4",TYPES:"5"},Is={NONE:0,TABLE:1,AREA:2,NOTE:3,RELATIONSHIP:4,TYPE:5},Oi={ADD:0,MOVE:1,DELETE:2,EDIT:3,PAN:4},Rp={NONE:0,SAVING:1,SAVED:2,LOADING:3,ERROR:4},Ni={NONE:0,IMG:1,CODE:2,IMPORT:3,RENAME:4,OPEN:5,SAVEAS:6,NEW:7,IMPORT_SRC:8},tg={NONE:0,WARNING:1,ERROR:2,OK:3},Yb={NONE:0,TODO:1,TIMELINE:2};function Ly(){return lt.useContext(wQ)}const LQ=lt.createContext(null);function qke({children:n}){const[t,s]=lt.useState([]),[o,i]=lt.useState([]);return Ee.jsx(LQ.Provider,{value:{undoStack:t,redoStack:o,setUndoStack:s,setRedoStack:i},children:n})}function mm(){return lt.useContext(LQ)}const SQ=lt.createContext(null);function Yke({children:n}){const[t,s]=lt.useState({element:Is.NONE,id:-1,openDialogue:!1,openCollapse:!1,currentTab:jm.TABLES,open:!1,openFromToolbar:!1});return Ee.jsx(SQ.Provider,{value:{selectedElement:t,setSelectedElement:s},children:n})}function q1(){return lt.useContext(SQ)}const xQ=lt.createContext(null);function Xke({children:n}){const[t,s]=lt.useState([]),[o,i]=lt.useState([]),{transform:a}=Ly(),{setUndoStack:r,setRedoStack:c}=mm(),{selectedElement:f,setSelectedElement:e}=q1(),E=(ae=!0,de)=>{s(de?ye=>{const Fe=ye.slice();return Fe.splice(de.id,0,de),Fe.map((Ge,tt)=>({...Ge,id:tt}))}:ye=>[...ye,{id:ye.length,name:`table_${ye.length}`,x:-a.pan.x,y:-a.pan.y,fields:[{name:"id",type:"INT",default:"",check:"",primary:!0,unique:!0,notNull:!0,increment:!0,comment:"",id:0}],comment:"",indices:[],color:TL}]),ae&&(r(ye=>[...ye,{action:Oi.ADD,element:Is.TABLE,message:"Add new table"}]),c([]))},_=(ae,de=!0)=>{de&&(r(ye=>[...ye,{action:Oi.DELETE,element:Is.TABLE,data:t[ae],message:"Delete table"}]),c([])),i(ye=>ye.filter(Fe=>!(Fe.startTableId===ae||Fe.endTableId===ae)).map((Fe,Ge)=>{const tt={...Fe};return Fe.startTableId>ae&&(tt.startTableId=Fe.startTableId-1),Fe.endTableId>ae&&(tt.endTableId=Fe.endTableId-1),{...tt,id:Ge}})),s(ye=>ye.filter(Fe=>Fe.id!==ae).map((Fe,Ge)=>({...Fe,id:Ge}))),ae===f.id&&e(ye=>({...ye,element:Is.NONE,id:-1,open:!1}))},R=(ae,de)=>{s(ye=>ye.map(Fe=>Fe.id===ae?{...Fe,...de}:Fe))},D=(ae,de,ye)=>{s(Fe=>Fe.map((Ge,tt)=>ae===tt?{...Ge,fields:Ge.fields.map((ht,yt)=>de===yt?{...ht,...ye}:ht)}:Ge))},J=(ae,de)=>{r(ye=>[...ye,{action:Oi.EDIT,element:Is.TABLE,component:"field_delete",tid:de,data:ae,message:"Delete field"}]),c([]),i(ye=>ye.filter(Fe=>!(Fe.startTableId===de&&Fe.startFieldId===ae.id||Fe.endTableId===de&&Fe.endFieldId===ae.id)).map((Fe,Ge)=>({...Fe,id:Ge}))),i(ye=>ye.map(Fe=>Fe.startTableId===de&&Fe.startFieldId>ae.id?{...Fe,startFieldId:Fe.startFieldId-1}:Fe.endTableId===de&&Fe.endFieldId>ae.id?{...Fe,endFieldId:Fe.endFieldId-1}:Fe)),R(de,{fields:t[de].fields.filter(ye=>ye.id!==ae.id).map((ye,Fe)=>({...ye,id:Fe}))})},re=(ae,de=!0)=>{i(de?ye=>(r(Fe=>[...Fe,{action:Oi.ADD,element:Is.RELATIONSHIP,data:ae,message:"Add new relationship"}]),c([]),[...ye,ae]):ye=>{const Fe=ye.slice();return Fe.splice(ae.id,0,ae),Fe.map((Ge,tt)=>({...Ge,id:tt}))})},ie=(ae,de=!0)=>{de&&(r(ye=>[...ye,{action:Oi.DELETE,element:Is.RELATIONSHIP,data:o[ae],message:"Delete relationship"}]),c([])),i(ye=>ye.filter(Fe=>Fe.id!==ae).map((Fe,Ge)=>({...Fe,id:Ge})))};return Ee.jsx(xQ.Provider,{value:{tables:t,setTables:s,addTable:E,updateTable:R,updateField:D,deleteField:J,deleteTable:_,relationships:o,setRelationships:i,addRelationship:re,deleteRelationship:ie},children:n})}const AQ=lt.createContext(null);function Zke({children:n}){const[t,s]=lt.useState([]),{transform:o}=Ly(),{selectedElement:i,setSelectedElement:a}=q1(),{setUndoStack:r,setRedoStack:c}=mm(),f=(_=!0,R)=>{s(R?D=>{const J=D.slice();return J.splice(R.id,0,R),J.map((re,ie)=>({...re,id:ie}))}:D=>[...D,{id:D.length,name:`area_${D.length}`,x:-o.pan.x,y:-o.pan.y,width:200,height:200,color:TL}]),_&&(r(D=>[...D,{action:Oi.ADD,element:Is.AREA,message:"Add new subject area"}]),c([]))},e=(_,R=!0)=>{R&&(r(D=>[...D,{action:Oi.DELETE,element:Is.AREA,data:t[_],message:"Delete subject area"}]),c([])),s(D=>D.filter(J=>J.id!==_).map((J,re)=>({...J,id:re}))),_===i.id&&a(D=>({...D,element:Is.NONE,id:-1,open:!1}))},E=(_,R)=>{s(D=>D.map(J=>J.id===_?{...J,...R}:J))};return Ee.jsx(AQ.Provider,{value:{areas:t,setAreas:s,updateArea:E,addArea:f,deleteArea:e},children:n})}const _Q=lt.createContext(null);function Jke({children:n}){const[t,s]=lt.useState([]),{transform:o}=Ly(),{setUndoStack:i,setRedoStack:a}=mm(),{selectedElement:r,setSelectedElement:c}=q1(),f=(_=!0,R)=>{s(R?D=>{const J=D.slice();return J.splice(R.id,0,R),J.map((re,ie)=>({...re,id:ie}))}:D=>[...D,{id:D.length,x:-o.pan.x,y:-o.pan.y,title:`note_${D.length}`,content:"",color:Gke,height:88}]),_&&(i(D=>[...D,{action:Oi.ADD,element:Is.NOTE,message:"Add new note"}]),a([]))},e=(_,R=!0)=>{R&&(i(D=>[...D,{action:Oi.DELETE,element:Is.NOTE,data:t[_],message:"Delete note"}]),a([])),s(D=>D.filter(J=>J.id!==_).map((J,re)=>({...J,id:re}))),_===r.id&&c(D=>({...D,element:Is.NONE,id:-1,open:!1}))},E=(_,R)=>{s(D=>D.map(J=>J.id===_?{...J,...R}:J))};return Ee.jsx(_Q.Provider,{value:{notes:t,setNotes:s,updateNote:E,addNote:f,deleteNote:e},children:n})}const TQ=lt.createContext(null);function Qke({children:n}){const[t,s]=lt.useState([]),{setUndoStack:o,setRedoStack:i}=mm(),a=(f=!0,e)=>{s(e?E=>{const _=E.slice();return _.splice(e.id,0,e),_}:E=>[...E,{name:`type_${E.length}`,fields:[],comment:""}]),f&&(o(E=>[...E,{action:Oi.ADD,element:Is.TYPE,message:"Add new type"}]),i([]))},r=(f,e=!0)=>{e&&(o(E=>[...E,{action:Oi.DELETE,element:Is.TYPE,id:f,data:t[f],message:"Delete type"}]),i([])),s(E=>E.filter((_,R)=>R!==f))},c=(f,e)=>{s(E=>E.map((_,R)=>R===f?{..._,...e}:_))};return Ee.jsx(TQ.Provider,{value:{types:t,setTypes:s,addType:a,updateType:c,deleteType:r},children:n})}const NQ=lt.createContext(null);function e8e({children:n}){const[t,s]=lt.useState([]),o=(i,a)=>s(r=>r.map((c,f)=>i===f?{...c,...a}:c));return Ee.jsx(NQ.Provider,{value:{tasks:t,setTasks:s,updateTask:o},children:n})}const OQ=lt.createContext(null);function t8e({children:n}){const[t,s]=lt.useState(Rp.NONE);return Ee.jsx(OQ.Provider,{value:{saveState:t,setSaveState:s},children:n})}const n8e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAABACAYAAABFqxrgAAAACXBIWXMAAAOWAAADlgE172qiAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAADIxJREFUeJztW3tYVWXW/629OXC4cw4oVxFR0VDRMlEbFcySGjO1MvMyk1byOU442jSGY980kxV+MuYF02zSpzSbzMpLWZaa1wEURURUUEBBQETgHO6Hc9nr++PAAYaLcDZxvucbf89z/tjvWWft9f72+6613rXXIQBwjZzt5ehAG5hpGBPs8f8eXC+wcKleIcVUHPxcQ+on57oJTEfB/KCtTetxMF+AUvmo6Bw8fAPAU2xtj01A5AuT0VMgYKStbbEtaKTAgIetzbApGB4CCGRrO2wKIkGwtQ3/F3CfBNwnAcB9EgAAdj1xE4WdCF9PNfx7qcnXSw0XRyUcFAo4Ks3JaXWtDkaTCZqqGtwp0+BWSSkXl2vBzD1h3i9DQrCfNx59OIyGD+xHIwYGIzjAh8Qu+mC9wYgrN25x2rUcXMjK5SPn0rmsovKXMBfkFTUvG+AguYrUbi54ccokmj5hDA3q69/tYdckSUi5cp33HD3Ne35OZL3B0E2a6aZsEpQO9lg+7xlh/pRJ5KR06CbDOkZxmQbvf75P2nnoOMvfMjJJ6OfrjR1vLRMGBvrZJOE6mnKRX3kvQaqr18vQQjetjg7OjkqbEgAAk0YNpw3LFsqOcFYreDZyLNmSgEY8PWE0De4bIMsOq0lQu7nKuW+3wstdni1Wk3Ao6TwbDEZZN+8OFN0tQ0pmtizvaDUJmfmFiN38qdRTCU1bqKnT4eV3E6R6vbxwKcup7PrxBL/w5hrpdqlGlhHWIO3aDZ685C+mC9dzAUAE2OqygNUhMtjPG7lFdwCYc4W5kyMoenqU0Ne3tzV2dBoXsnI44cvv+FByKkvmVSi2EGBmEEmd1ygjT1jz6nxh7a590h2NtkkdER4c2I9+/cjDFDlyGB4ICiBRFDvQcm/U6uqRnn2Tj5xN4+8Tz3Ej8WawABABgNLeHjp9s3yBSOrc4UMGCTv/+poQ0MsTL7wZ34KI5lA62CMsuC8NDgqAfy9PCvD2go+nCm7OTrC3s4PSXkEAUKOrZ4PRCE1lNYrLNCi8W875xSVIz83DtbxCNkltPFgiArMAANMmjEZ8zALEf7YX2789jGbyDAKD0QEZMkl4YsxDVF5RhRVbdkh7TyR3QwrbORARARCYGSGBfvhxw9twcVQCANKu3cCKzZ/iXGZ28x90sCropug0IGwJrCi2PhM5lgYE+JKj0gFTx4XT1HHhVFOnQ25RMYwmkxVTuzcEIvxqeChVVNcKOr0ezo5KfBUXCz8vtUXGx1OFOVERcLBXIDkjE5LEAEANnzaIIG23FVUGBwXQB39aJFz9YrP4UezvhVmTxlGf3p6y9YqCgBED+9GK3z4nJG2PF+v1BqGiugYAsHLB8xgU6N/qNwIRls56Ggfffwt9vHs1DlN70cPqekLKlWv8xJiHWil1dlRiRuRYmhE5lgDgVkkpMm8WcFZeIXIKb3NJeQVKNFpoq2vYaDShuk4HQSC4OTvB3dmJVK4uCPLzRrC/Dw3u649RoSHUuNRXbNmBlKvXLfdate0L1Onq8erMpyBQ6/l5qz1QU1fXNNCOb7DaJ9grFPhh3VtC2ICgHjk/7DuRjIVxmwCYJ1eqrbQ4wDFDB2H9soXo7+9jkTdJEmb+eTVOpV0xD7TrF2T4BJMkYf/JZH4k7AHy81L/okRkF9zGvL++D73BCJWrC37a+DfMemw8UrNyUaLRoqCkDDsPHYPRJCE8NASiIGD1jq+w+8hpswLz5NtzjFqrSQCAer0B3xxLZEEQ6KHB/btcQusMaup0eG7FahSVlkMgwqd/WYrhA4PRW+2BOVERcFI6IPlSFvQGIxLTr+JQcipEQcA723eb585gCB0lTzJI6O/vA01VNYwmE06mXeYDJ8+wKAg0IMCXHBQKGdNuiaXr/oGTaZcBALEvPoc5kyMs34mCgNFDBuHJsQ8h7Xouisu0uKupwE9nL0BqXPmEe2SPMkj48/yZwqXsm1xdpwMAlFdW4/DZNP74wGHOyM1Dda0OHm4u5O7s1FXVFvxj/09I2PMdAOCxUSMQH7MA1IYD7KVyx5zJEVC5uuDEhYwmAnAvAgCAtFZHBx9PFb54Z7kw+7/jpdtlTQeomjod9p88w/tPnmEAULm6YGhwIIUE+sNb7UG+Xip4uLqgsR4pCgIMBiOqautQWVOLwrvlXFByF5dv3EJ6trny1ae3FzYvX9RmBGiEnSiirl7flC1yQ7bYCcgquQ8JDqTjW+LElVt2SN8cT2KpDeerqarGqYtX+NTFK2bTOg0WAYKdKOLDNxZD5erSofT5zBys+ezrpoF7boMmyPZkajcXbHljsXBy62px9uQJ5NwQ02VCQENe88ZvnkX4kJAOhbXVNVj4XgIMRkum2oVTZDe+hhsU6I+Nr0ULmV9sFrevXCLMnjyBgqw5VpMlxcUjwx5AzPNPdSjOzFiy9iPcKiltHJLQpRUnYzucychqM2NUOthj6vhwmjo+nADgdqkGWXkFnJlXgJzCYr5TrkGpthKl2ipmMPQGA0wmhquzI+wVCrqeXygYTCZ4urtha+xi3Cvsbt17CD8knTdfdMEPNIfVJHy070eeFjGGRwzs12Gi5Oulgq+XiiJHDgPQfuXHaDJh6h9XwWAygYiQ8Mdo+HiqOrQhNSsHq7bvbhrogh9oDqu3g95oxHMr4qRzV693y/l5056DluNv9PQoPB4+okP58spqvPzuRuiNRphXf1eqSS1hNQkCESqqazEjNk5a98/9st4NXs7NR/xn3wAAQgL98OaC5zuUl5ixOH4LCkrKGkZIAqwvZlhNQviQEAIAXb0e7326Rxr/X7GmbQd+4sqa2i7p0RuNWBz/IfRGI+xEEZteXwSlfcf9pGt37cXRlIvmCwbPfPRX1k2iAVaTEDPzKRoSHGjZ47lFdxC7eYc0bG6M6aV3Nko7fzjGebdL7qlnzc6vceVGPgDgtdnT8GBIcIfyp9KuYO3n+yzX0yNG8yvTJss6wFntGF2dHLH7neXCK+8lSMkZWZalWKurx7enz/K3p88yALi7OCE0qA+FBPrDx1NFvVXuULm6wMVJiZyiO0j48jsCgGH9g7D0hWkd3rOotBwL4zZZssI5URHS+394WUjPvinLL8nKGL3VHti3ZqWw7cBhXr/7gHRXU9FKpqK6FkkZWZyUkQW0jt8iAIiigE2vR0Nh135lul5vwIJVG9DYqPG7Z57kt6PndkueI1uJKAiInh5FqZ+sE+NjFgjhoSHU1iGnDViETCYJy9ZvQ3vbh5mxdP3HSM3KAQC8NPVxvB09t9tqGFavhH8vgysd7DF/yiSaP2US3SopxYnUDE5Mv8pnMrI4vymbawI3yw3ZHPMn/n4l1i55CTMix7YQ3fDlt/jq538BACIeHIp3F82z1uw2YTUJXx9L5HHDQ9t8Gn16e2HeE5E074lIAoCq2jpcv1XE2QW3UaqtRHGZhg+cOovCu2Xw81JjblQk1u7ai6raOkSv/gBHUi7i70tegqODPX5IOo+4T/YAAIL9ffDxyhjY/dsLne//dU6WT7C6nnApJw+D+wZ0qj/JQaGAr5eahgQH0qjQgTRxZBjt+vEElVZUIrRfID740yKMGToYx1MvoaZOh8s38nEwMQW+niq8+vetqDcY4OrkiK/iYhHQ26uF7vOZOfzaxu1tv6DpFGSU3JkZC+M2SbsPn7LqKRQ31CB8vcyp8fgRoTj2wbuYaE6vcS2/CPNXrUdVbR1EQcC2lTEY3DeghY6fz6XzsyviJLlNXLIco0mS8OrardKLf1sn3Wpr37cDiRmNSVXzOkEvlTtenzMDoUF9zK6igd63o+di4sgwi1xRaTl+9z+bpVlvrpFqGipbctAtfYzfJ53nI+fSTU+PG0ULnnqMGrPJ9lBZU2spgbm7OIGZcfhsGhL2fIdkcygFADgpHfCHWVMRPT0KRpMJSZeyeMf3P/PBxBRuVjuQjW7rY2wOH7UHJj4cRhNGDKFhA4LQ39+Hmjuz/OK7GDl/GQBg4sgw3C4tR2ZegeV7T3c3zJ8yCaOHhvCNwjtIvHSVj6de4orqrqXknUM39DF2BvZ2dugf4EM+ahV6q9zBAL48errVVnRSOqCXyo0NepN0R6NtFYZ/GfQQCa3vCwK38EcMIu6xZuaWxtzskQbvVmCwxe0RmfsHbNj7ZBsSAFiKILabuwX3/++A+yQAAISO+3n+A8AsCQDa7rr6TwFBK4Ckc7a2w5YgQooAB+VyMF+wtTE2gcSp0OnfIABwnzJHpTDQRiIKY3DP/H3FhiBQPUt80WhQLNEe/0T7v5vnMV9N9djHAAAAAElFTkSuQmCC";function r8e(n,t){if(n.match(/^[a-z]+:\/\//i))return n;if(n.match(/^\/\//))return window.location.protocol+n;if(n.match(/^[a-z]+:/i))return n;const s=document.implementation.createHTMLDocument(),o=s.createElement("base"),i=s.createElement("a");return s.head.appendChild(o),s.body.appendChild(i),t&&(o.href=t),i.href=n,i.href}const s8e=(()=>{let n=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(n+=1,`u${t()}${n}`)})();function oy(n){const t=[];for(let s=0,o=n.length;sAv||n.height>Av)&&(n.width>Av&&n.height>Av?n.width>n.height?(n.height*=Av/n.width,n.width=Av):(n.width*=Av/n.height,n.height=Av):n.width>Av?(n.height*=Av/n.width,n.width=Av):(n.width*=Av/n.height,n.height=Av))}function A4(n){return new Promise((t,s)=>{const o=new Image;o.decode=()=>t(o),o.onload=()=>t(o),o.onerror=s,o.crossOrigin="anonymous",o.decoding="async",o.src=n})}async function u8e(n){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(n)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function c8e(n,t,s){const o="http://www.w3.org/2000/svg",i=document.createElementNS(o,"svg"),a=document.createElementNS(o,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${s}`),i.setAttribute("viewBox",`0 0 ${t} ${s}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(n),u8e(i)}const vv=(n,t)=>{if(n instanceof t)return!0;const s=Object.getPrototypeOf(n);return s===null?!1:s.constructor.name===t.name||vv(s,t)};function d8e(n){const t=n.getPropertyValue("content");return`${n.cssText} content: '${t.replace(/'|"/g,"")}';`}function f8e(n){return oy(n).map(t=>{const s=n.getPropertyValue(t),o=n.getPropertyPriority(t);return`${t}: ${s}${o?" !important":""};`}).join(" ")}function h8e(n,t,s){const o=`.${n}:${t}`,i=s.cssText?d8e(s):f8e(s);return document.createTextNode(`${o}{${i}}`)}function pH(n,t,s){const o=window.getComputedStyle(n,s),i=o.getPropertyValue("content");if(i===""||i==="none")return;const a=s8e();try{t.className=`${t.className} ${a}`}catch{return}const r=document.createElement("style");r.appendChild(h8e(a,s,o)),t.appendChild(r)}function p8e(n,t){pH(n,t,":before"),pH(n,t,":after")}const mH="application/font-woff",gH="image/jpeg",m8e={woff:mH,woff2:mH,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:gH,jpeg:gH,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function g8e(n){const t=/\.([^./]*?)$/g.exec(n);return t?t[1]:""}function tM(n){const t=g8e(n).toLowerCase();return m8e[t]||""}function v8e(n){return n.split(/,/)[1]}function e$(n){return n.search(/^(data:)/)!==-1}function RQ(n,t){return`data:${t};base64,${n}`}async function PQ(n,t,s){const o=await fetch(n,t);if(o.status===404)throw new Error(`Resource "${o.url}" not found`);const i=await o.blob();return new Promise((a,r)=>{const c=new FileReader;c.onerror=r,c.onloadend=()=>{try{a(s({res:o,result:c.result}))}catch(f){r(f)}},c.readAsDataURL(i)})}const i6={};function b8e(n,t,s){let o=n.replace(/\?.*/,"");return s&&(o=n),/ttf|otf|eot|woff2?/i.test(o)&&(o=o.replace(/.*\//,"")),t?`[${t}]${o}`:o}async function nM(n,t,s){const o=b8e(n,t,s.includeQueryParams);if(i6[o]!=null)return i6[o];s.cacheBust&&(n+=(/\?/.test(n)?"&":"?")+new Date().getTime());let i;try{const a=await PQ(n,s.fetchRequestInit,({res:r,result:c})=>(t||(t=r.headers.get("Content-Type")||""),v8e(c)));i=RQ(a,t)}catch(a){i=s.imagePlaceholder||"";let r=`Failed to fetch resource: ${n}`;a&&(r=typeof a=="string"?a:a.message),r&&console.warn(r)}return i6[o]=i,i}async function y8e(n){const t=n.toDataURL();return t==="data:,"?n.cloneNode(!1):A4(t)}async function C8e(n,t){if(n.currentSrc){const a=document.createElement("canvas"),r=a.getContext("2d");a.width=n.clientWidth,a.height=n.clientHeight,r==null||r.drawImage(n,0,0,a.width,a.height);const c=a.toDataURL();return A4(c)}const s=n.poster,o=tM(s),i=await nM(s,o,t);return A4(i)}async function w8e(n){var t;try{if(!((t=n==null?void 0:n.contentDocument)===null||t===void 0)&&t.body)return await J3(n.contentDocument.body,{},!0)}catch{}return n.cloneNode(!1)}async function E8e(n,t){return vv(n,HTMLCanvasElement)?y8e(n):vv(n,HTMLVideoElement)?C8e(n,t):vv(n,HTMLIFrameElement)?w8e(n):n.cloneNode(!1)}const L8e=n=>n.tagName!=null&&n.tagName.toUpperCase()==="SLOT";async function S8e(n,t,s){var o,i;let a=[];return L8e(n)&&n.assignedNodes?a=oy(n.assignedNodes()):vv(n,HTMLIFrameElement)&&(!((o=n.contentDocument)===null||o===void 0)&&o.body)?a=oy(n.contentDocument.body.childNodes):a=oy(((i=n.shadowRoot)!==null&&i!==void 0?i:n).childNodes),a.length===0||vv(n,HTMLVideoElement)||await a.reduce((r,c)=>r.then(()=>J3(c,s)).then(f=>{f&&t.appendChild(f)}),Promise.resolve()),t}function x8e(n,t){const s=t.style;if(!s)return;const o=window.getComputedStyle(n);o.cssText?(s.cssText=o.cssText,s.transformOrigin=o.transformOrigin):oy(o).forEach(i=>{let a=o.getPropertyValue(i);i==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),vv(n,HTMLIFrameElement)&&i==="display"&&a==="inline"&&(a="block"),i==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),s.setProperty(i,a,o.getPropertyPriority(i))})}function A8e(n,t){vv(n,HTMLTextAreaElement)&&(t.innerHTML=n.value),vv(n,HTMLInputElement)&&t.setAttribute("value",n.value)}function _8e(n,t){if(vv(n,HTMLSelectElement)){const s=t,o=Array.from(s.children).find(i=>n.value===i.getAttribute("value"));o&&o.setAttribute("selected","")}}function T8e(n,t){return vv(t,Element)&&(x8e(n,t),p8e(n,t),A8e(n,t),_8e(n,t)),t}async function N8e(n,t){const s=n.querySelectorAll?n.querySelectorAll("use"):[];if(s.length===0)return n;const o={};for(let a=0;aE8e(o,t)).then(o=>S8e(n,o,t)).then(o=>T8e(n,o)).then(o=>N8e(o,t))}const $Q=/url\((['"]?)([^'"]+?)\1\)/g,O8e=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,I8e=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function R8e(n){const t=n.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function P8e(n){const t=[];return n.replace($Q,(s,o,i)=>(t.push(i),s)),t.filter(s=>!e$(s))}async function $8e(n,t,s,o,i){try{const a=s?r8e(t,s):t,r=tM(t);let c;if(i){const f=await i(a);c=RQ(f,r)}else c=await nM(a,r,o);return n.replace(R8e(t),`$1${c}$3`)}catch{}return n}function k8e(n,{preferredFontFormat:t}){return t?n.replace(I8e,s=>{for(;;){const[o,,i]=O8e.exec(s)||[];if(!i)return"";if(i===t)return`src: ${o};`}}):n}function kQ(n){return n.search($Q)!==-1}async function DQ(n,t,s){if(!kQ(n))return n;const o=k8e(n,s);return P8e(o).reduce((a,r)=>a.then(c=>$8e(c,r,t,s)),Promise.resolve(o))}async function eT(n,t,s){var o;const i=(o=t.style)===null||o===void 0?void 0:o.getPropertyValue(n);if(i){const a=await DQ(i,null,s);return t.style.setProperty(n,a,t.style.getPropertyPriority(n)),!0}return!1}async function D8e(n,t){await eT("background",n,t)||await eT("background-image",n,t),await eT("mask",n,t)||await eT("mask-image",n,t)}async function M8e(n,t){const s=vv(n,HTMLImageElement);if(!(s&&!e$(n.src))&&!(vv(n,SVGImageElement)&&!e$(n.href.baseVal)))return;const o=s?n.src:n.href.baseVal,i=await nM(o,tM(o),t);await new Promise((a,r)=>{n.onload=a,n.onerror=r;const c=n;c.decode&&(c.decode=a),c.loading==="lazy"&&(c.loading="eager"),s?(n.srcset="",n.src=i):n.href.baseVal=i})}async function j8e(n,t){const o=oy(n.childNodes).map(i=>MQ(i,t));await Promise.all(o).then(()=>n)}async function MQ(n,t){vv(n,Element)&&(await D8e(n,t),await M8e(n,t),await j8e(n,t))}function F8e(n,t){const{style:s}=n;t.backgroundColor&&(s.backgroundColor=t.backgroundColor),t.width&&(s.width=`${t.width}px`),t.height&&(s.height=`${t.height}px`);const o=t.style;return o!=null&&Object.keys(o).forEach(i=>{s[i]=o[i]}),n}const vH={};async function bH(n){let t=vH[n];if(t!=null)return t;const o=await(await fetch(n)).text();return t={url:n,cssText:o},vH[n]=t,t}async function yH(n,t){let s=n.cssText;const o=/url\(["']?([^"')]+)["']?\)/g,a=(s.match(/url\([^)]+\)/g)||[]).map(async r=>{let c=r.replace(o,"$1");return c.startsWith("https://")||(c=new URL(c,n.url).href),PQ(c,t.fetchRequestInit,({result:f})=>(s=s.replace(r,`url(${f})`),[r,f]))});return Promise.all(a).then(()=>s)}function CH(n){if(n==null)return[];const t=[],s=/(\/\*[\s\S]*?\*\/)/gi;let o=n.replace(s,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const f=i.exec(o);if(f===null)break;t.push(f[0])}o=o.replace(i,"");const a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,r="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",c=new RegExp(r,"gi");for(;;){let f=a.exec(o);if(f===null){if(f=c.exec(o),f===null)break;a.lastIndex=c.lastIndex}else c.lastIndex=a.lastIndex;t.push(f[0])}return t}async function U8e(n,t){const s=[],o=[];return n.forEach(i=>{if("cssRules"in i)try{oy(i.cssRules||[]).forEach((a,r)=>{if(a.type===CSSRule.IMPORT_RULE){let c=r+1;const f=a.href,e=bH(f).then(E=>yH(E,t)).then(E=>CH(E).forEach(_=>{try{i.insertRule(_,_.startsWith("@import")?c+=1:i.cssRules.length)}catch(R){console.error("Error inserting rule from remote css",{rule:_,error:R})}})).catch(E=>{console.error("Error loading remote css",E.toString())});o.push(e)}})}catch(a){const r=n.find(c=>c.href==null)||document.styleSheets[0];i.href!=null&&o.push(bH(i.href).then(c=>yH(c,t)).then(c=>CH(c).forEach(f=>{r.insertRule(f,i.cssRules.length)})).catch(c=>{console.error("Error loading remote stylesheet",c)})),console.error("Error inlining remote css file",a)}}),Promise.all(o).then(()=>(n.forEach(i=>{if("cssRules"in i)try{oy(i.cssRules||[]).forEach(a=>{s.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${i.href}`,a)}}),s))}function B8e(n){return n.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>kQ(t.style.getPropertyValue("src")))}async function z8e(n,t){if(n.ownerDocument==null)throw new Error("Provided element is not within a Document");const s=oy(n.ownerDocument.styleSheets),o=await U8e(s,t);return B8e(o)}async function H8e(n,t){const s=await z8e(n,t);return(await Promise.all(s.map(i=>{const a=i.parentStyleSheet?i.parentStyleSheet.href:null;return DQ(i.cssText,a,t)}))).join(` +`)}async function V8e(n,t){const s=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await H8e(n,t);if(s){const o=document.createElement("style"),i=document.createTextNode(s);o.appendChild(i),n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o)}}async function jQ(n,t={}){const{width:s,height:o}=IQ(n,t),i=await J3(n,t,!0);return await V8e(i,t),await MQ(i,t),F8e(i,t),await c8e(i,s,o)}async function FQ(n,t={}){const{width:s,height:o}=IQ(n,t),i=await jQ(n,t),a=await A4(i),r=document.createElement("canvas"),c=r.getContext("2d"),f=t.pixelRatio||a8e(),e=t.canvasWidth||s,E=t.canvasHeight||o;return r.width=e*f,r.height=E*f,t.skipAutoScale||l8e(r),r.style.width=`${e}`,r.style.height=`${E}`,t.backgroundColor&&(c.fillStyle=t.backgroundColor,c.fillRect(0,0,r.width,r.height)),c.drawImage(a,0,0,r.width,r.height),r}async function wH(n,t={}){return(await FQ(n,t)).toDataURL()}async function EH(n,t={}){return(await FQ(n,t)).toDataURL("image/jpeg",t.quality||1)}var UQ={exports:{}};(function(n,t){(function(s,o){o()})(Z0,function(){function s(e,E){return typeof E>"u"?E={autoBom:!1}:typeof E!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),E={autoBom:!E}),E.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function o(e,E,_){var R=new XMLHttpRequest;R.open("GET",e),R.responseType="blob",R.onload=function(){f(R.response,E,_)},R.onerror=function(){console.error("could not download file")},R.send()}function i(e){var E=new XMLHttpRequest;E.open("HEAD",e,!1);try{E.send()}catch{}return 200<=E.status&&299>=E.status}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var E=document.createEvent("MouseEvents");E.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(E)}}var r=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Z0=="object"&&Z0.global===Z0?Z0:void 0,c=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),f=r.saveAs||(typeof window!="object"||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!c?function(e,E,_){var R=r.URL||r.webkitURL,D=document.createElement("a");E=E||e.name||"download",D.download=E,D.rel="noopener",typeof e=="string"?(D.href=e,D.origin===location.origin?a(D):i(D.href)?o(e,E,_):a(D,D.target="_blank")):(D.href=R.createObjectURL(e),setTimeout(function(){R.revokeObjectURL(D.href)},4e4),setTimeout(function(){a(D)},0))}:"msSaveOrOpenBlob"in navigator?function(e,E,_){if(E=E||e.name||"download",typeof e!="string")navigator.msSaveOrOpenBlob(s(e,_),E);else if(i(e))o(e,E,_);else{var R=document.createElement("a");R.href=e,R.target="_blank",setTimeout(function(){a(R)})}}:function(e,E,_,R){if(R=R||open("","_blank"),R&&(R.document.title=R.document.body.innerText="downloading..."),typeof e=="string")return o(e,E,_);var D=e.type==="application/octet-stream",J=/constructor/i.test(r.HTMLElement)||r.safari,re=/CriOS\/[\d]+/.test(navigator.userAgent);if((re||D&&J||c)&&typeof FileReader<"u"){var ie=new FileReader;ie.onloadend=function(){var ye=ie.result;ye=re?ye:ye.replace(/^data:[^;]*;/,"data:attachment/file;"),R?R.location.href=ye:location=ye,R=null},ie.readAsDataURL(e)}else{var ae=r.URL||r.webkitURL,de=ae.createObjectURL(e);R?R.location=de:location.href=de,R=null,setTimeout(function(){ae.revokeObjectURL(de)},4e4)}});r.saveAs=f.saveAs=f,n.exports=f})})(UQ);var t$=UQ.exports;function W8e(n){if(!vS.includes(n.type))return'{ "type" : "object", additionalProperties : true }';switch(n.type){case"INT":case"SMALLINT":case"BIGINT":case"DECIMAL":case"NUMERIC":case"REAL":case"FLOAT":return'{ "type" : "number" }';case"BOOLEAN":return'{ "type" : "boolean" }';case"JSON":return'{ "type" : "object", "additionalProperties" : true }';case"ENUM":return`{ + "type" : "string", + "enum" : [${n.values.map(t=>`"${t}"`).join(", ")}] + }`;case"SET":return`{ + "type": "array", + "items": { + "type": "string", + "enum": [${n.values.map(t=>`"${t}"`).join(", ")}] + } + }`;default:return'{ "type" : "string"}'}}function BQ(n){return`{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + ${n.fields.map(t=>`"${t.name}" : ${W8e(t)}`).join(`, + `)} + }, + "additionalProperties": false + }`}function Vw(n,t="mysql",s=!1){if(t==="mysql")return n.type==="UUID"?"VARCHAR(36)":Ww(n.type)?`${n.type}(${n.size})`:NL(n.type)?`${n.type}${n.size?`(${n.size})`:""}`:n.type==="SET"||n.type==="ENUM"?`${n.type}(${n.values.map(o=>`"${o}"`).join(", ")})`:vS.includes(n.type)?n.type:"JSON";if(t==="postgres")return n.type==="SMALLINT"&&n.increment?"smallserial":n.type==="INT"&&n.increment?"serial":n.type==="BIGINT"&&n.increment?"bigserial":n.type==="ENUM"?`${n.name}_t`:n.type==="SET"?`${n.name}_t[]`:n.type==="TIMESTAMP"?"TIMESTAMPTZ":n.type==="DATETIME"?"timestamp":Ww(n.type)?`${n.type==="BINARY"?"bit":n.type==="VARBINARY"?"bit varying":n.type.toLowerCase()}(${n.size})`:NL(n.type)&&n.size!==""?`${n.type}${n.size}`:n.type.toLowerCase();if(t==="mssql"){let o=n.type;switch(n.type){case"ENUM":return s?"NVARCHAR(255)":`NVARCHAR(255) CHECK([${n.name}] in (${n.values.map(i=>`'${i}'`).join(", ")}))`;case"VARCHAR":o="NVARCHAR";break;case"UUID":o="UNIQUEIDENTIFIER";break;case"DOUBLE":o="FLOAT";break;case"BOOLEAN":return"BIT";case"SET":return"NVARCHAR(255)";case"BLOB":return"VARBINARY(MAX)";case"JSON":return"NVARCHAR(MAX)";case"TEXT":return"TEXT";default:o=n.type;break}return Ww(n.type)?`${o}(${n.size})`:o}}function ZA(n){return["CHAR","VARCHAR","BINARY","VARBINARY","ENUM","DATE","TIME","TIMESTAMP","DATETIME"].includes(n)}function G8e(n){return`${n.tables.map(t=>`${t.comment===""?"":`/* ${t.comment} */ +`}CREATE TABLE \`${t.name}\` ( +${t.fields.map(s=>`${s.comment===""?"":` -- ${s.comment} +`} \`${s.name}\` ${Vw(s)}${s.notNull?" NOT NULL":""}${s.increment?" AUTO_INCREMENT":""}${s.unique?" UNIQUE":""}${s.default!==""?` DEFAULT ${ZA(s.type)&&s.default.toLowerCase()!=="null"?`"${s.default}"`:`${s.default}`}`:""}${s.check===""||!I2(s.type)?vS.includes(s.type)?"":` CHECK( + JSON_SCHEMA_VALID("${BQ(n.types.find(o=>o.name===s.type.toLowerCase()))}", \`${s.name}\`))`:` CHECK(${s.check})`}`).join(`, +`)}${t.fields.filter(s=>s.primary).length>0?`, + PRIMARY KEY(${t.fields.filter(s=>s.primary).map(s=>`\`${s.name}\``).join(", ")})`:""} +); +${t.indices.length>0?` +${t.indices.map(s=>` +CREATE ${s.unique?"UNIQUE ":""}INDEX \`${s.name}\` +ON \`${t.name}\` (${s.fields.map(o=>`\`${o}\``).join(", ")});`)}`:""}`).join(` +`)} +${n.references.map(t=>`ALTER TABLE \`${n.tables[t.startTableId].name}\` +ADD FOREIGN KEY(\`${n.tables[t.startTableId].fields[t.startFieldId].name}\`) REFERENCES \`${n.tables[t.endTableId].name}\`(\`${n.tables[t.endTableId].fields[t.endFieldId].name}\`) +ON UPDATE ${t.updateConstraint.toUpperCase()} ON DELETE ${t.deleteConstraint.toUpperCase()};`).join(` +`)}`}function K8e(n){return`${n.types.map(t=>{const s=t.fields.filter(o=>o.type==="ENUM"||o.type==="SET").map(o=>`CREATE TYPE "${o.name}_t" AS ENUM (${o.values.map(i=>`'${i}'`).join(", ")}); +`);return s.length>0?s.join("")+`${t.comment===""?"":`/** +${t.comment} +*/ +`}CREATE TYPE ${t.name} AS ( +${t.fields.map(o=>` ${o.name} ${Vw(o,"postgres")}`).join(` +`)} +);`:`${t.comment===""?"":`/** +${t.comment} +*/ +`}CREATE TYPE ${t.name} AS ( +${t.fields.map(o=>` ${o.name} ${Vw(o,"postgres")}`).join(` +`)} +);`})} +${n.tables.map(t=>`${t.comment===""?"":`/** +${t.comment} +*/ +`}${t.fields.filter(s=>s.type==="ENUM"||s.type==="SET").length>0?`${t.fields.filter(s=>s.type==="ENUM"||s.type==="SET").map(s=>`CREATE TYPE "${s.name}_t" AS ENUM (${s.values.map(o=>`'${o}'`).join(", ")}); + +`)}`:""}CREATE TABLE "${t.name}" ( +${t.fields.map(s=>`${s.comment===""?"":` -- ${s.comment} +`} "${s.name}" ${Vw(s,"postgres")}${s.notNull?" NOT NULL":""}${s.default!==""?` DEFAULT ${ZA(s.type)&&s.default.toLowerCase()!=="null"?`'${s.default}'`:`${s.default}`}`:""}${s.check===""||!I2(s.type)?"":` CHECK(${s.check})`}`).join(`, +`)}${t.fields.filter(s=>s.primary).length>0?`, + PRIMARY KEY(${t.fields.filter(s=>s.primary).map(s=>`"${s.name}"`).join(", ")})`:""} +); +${t.indices.length>0?`${t.indices.map(s=>` +CREATE ${s.unique?"UNIQUE ":""}INDEX "${s.name}" +ON "${t.name}" (${s.fields.map(o=>`"${o}"`).join(", ")});`)}`:""}`).join(` +`)} +${n.references.map(t=>`ALTER TABLE "${n.tables[t.startTableId].name}" +ADD FOREIGN KEY("${n.tables[t.startTableId].fields[t.startFieldId].name}") REFERENCES "${n.tables[t.endTableId].name}"("${n.tables[t.endTableId].fields[t.endFieldId].name}") +ON UPDATE ${t.updateConstraint.toUpperCase()} ON DELETE ${t.deleteConstraint.toUpperCase()};`).join(` +`)}`}function q8e(n){switch(n.type){case"INT":case"SMALLINT":case"BIGINT":case"BOOLEAN":return"INTEGER";case"DECIMAL":case"NUMERIC":case"FLOAT":case"DOUBLE":case"REAL":return"REAL";case"CHAR":case"VARCHAR":case"UUID":case"TEXT":case"DATE":case"TIME":case"TIMESTAMP":case"DATETIME":case"BINARY":case"VARBINARY":return"TEXT";case"ENUM":return`TEXT CHECK("${n.name}" in (${n.values.map(t=>`'${t}'`).join(", ")}))`;default:return"BLOB"}}function Y8e(n,t){let s="";return t.references.forEach(o=>{s===""&&o.startTableId===n.id&&(s=`FOREIGN KEY ("${n.fields[o.startFieldId].name}") REFERENCES "${t.tables[o.endTableId].name}"("${t.tables[o.endTableId].fields[o.endFieldId].name}") + ON UPDATE ${o.updateConstraint.toUpperCase()} ON DELETE ${o.deleteConstraint.toUpperCase()}`)}),s}function X8e(n){return n.tables.map(t=>{const s=Y8e(t,n);return`${t.comment===""?"":`/* ${t.comment} */ +`}CREATE TABLE IF NOT EXISTS "${t.name}" ( +${t.fields.map(o=>`${o.comment===""?"":` -- ${o.comment} +`} "${o.name}" ${q8e(o)}${o.notNull?" NOT NULL":""}${o.unique?" UNIQUE":""}${o.default!==""?` DEFAULT ${ZA(o.type)&&o.default.toLowerCase()!=="null"?`'${o.default}'`:`${o.default}`}`:""}${o.check===""||!I2(o.type)?"":` CHECK(${o.check})`}`).join(`, +`)}${t.fields.filter(o=>o.primary).length>0?`, + PRIMARY KEY(${t.fields.filter(o=>o.primary).map(o=>`"${o.name}"`).join(", ")})${s!==""?`, +`:""}`:""} ${s} +); +${t.indices.length>0?`${t.indices.map(o=>` +CREATE ${o.unique?"UNIQUE ":""}INDEX IF NOT EXISTS "${o.name}" +ON "${t.name}" (${o.fields.map(i=>`"${i}"`).join(", ")});`).join(` +`)}`:""}`}).join(` +`)}function Z8e(n){return`${n.tables.map(t=>`${t.comment===""?"":`/* ${t.comment} */ +`}CREATE OR REPLACE TABLE \`${t.name}\` ( +${t.fields.map(s=>`${s.comment===""?"":` -- ${s.comment} +`} \`${s.name}\` ${Vw(s)}${s.notNull?" NOT NULL":""}${s.increment?" AUTO_INCREMENT":""}${s.unique?" UNIQUE":""}${s.default!==""?` DEFAULT ${ZA(s.type)&&s.default.toLowerCase()!=="null"?`"${s.default}"`:`${s.default}`}`:""}${s.check===""||!I2(s.type)?vS.includes(s.type)?"":` CHECK( + JSON_SCHEMA_VALID('${BQ(n.types.find(o=>o.name===s.type.toLowerCase()))}', \`${s.name}\`))`:` CHECK(${s.check})`}`).join(`, +`)}${t.fields.filter(s=>s.primary).length>0?`, + PRIMARY KEY(${t.fields.filter(s=>s.primary).map(s=>`\`${s.name}\``).join(", ")})`:""} +);${t.indices.length>0?` +${t.indices.map(s=>` +CREATE ${s.unique?"UNIQUE ":""}INDEX \`${s.name}\` +ON \`${t.name}\` (${s.fields.map(o=>`\`${o}\``).join(", ")});`)}`:""}`).join(` +`)} +${n.references.map(t=>`ALTER TABLE \`${n.tables[t.startTableId].name}\` +ADD FOREIGN KEY(\`${n.tables[t.startTableId].fields[t.startFieldId].name}\`) REFERENCES \`${n.tables[t.endTableId].name}\`(\`${n.tables[t.endTableId].fields[t.endFieldId].name}\`) +ON UPDATE ${t.updateConstraint.toUpperCase()} ON DELETE ${t.deleteConstraint.toUpperCase()};`).join(` +`)}`}function J8e(n){return`${n.types.map(t=>`${t.comment===""?"":`/** +${t.comment} +*/ +`}CREATE TYPE [${t.name}] FROM ${t.fields.length<0?"":`${Vw(t.fields[0],"mssql",!0)}`}; +GO +`).join(` +`)} +${n.tables.map(t=>`${t.comment===""?"":`/** +${t.comment} +*/ +`}CREATE TABLE [${t.name}] ( +${t.fields.map(s=>`${s.comment===""?"":` -- ${s.comment} +`} [${s.name}] ${Vw(s,"mssql")}${s.notNull?" NOT NULL":""}${s.increment?" IDENTITY":""}${s.unique?" UNIQUE":""}${s.default!==""?` DEFAULT ${ZA(s.type)&&s.default.toLowerCase()!=="null"?`'${s.default}'`:`${s.default}`}`:""}${s.check===""||!I2(s.type)?"":` CHECK(${s.check})`}`).join(`, +`)}${t.fields.filter(s=>s.primary).length>0?`, + PRIMARY KEY(${t.fields.filter(s=>s.primary).map(s=>`[${s.name}]`).join(", ")})`:""} +); +GO +${t.indices.length>0?`${t.indices.map(s=>` +CREATE ${s.unique?"UNIQUE ":""}INDEX [${s.name}] +ON [${t.name}] (${s.fields.map(o=>`[${o}]`).join(", ")}); +GO +`)}`:""}`).join(` +`)} +${n.references.map(t=>`ALTER TABLE [${n.tables[t.startTableId].name}] +ADD FOREIGN KEY([${n.tables[t.startTableId].fields[t.startFieldId].name}]) REFERENCES [${n.tables[t.endTableId].name}]([${n.tables[t.endTableId].fields[t.endFieldId].name}]) +ON UPDATE ${t.updateConstraint.toUpperCase()} ON DELETE ${t.deleteConstraint.toUpperCase()}; +GO`).join(` +`)}`}function Ww(n){return["CHAR","VARCHAR","BINARY","VARBINARY","TEXT"].includes(n)}function NL(n){return["DOUBLE","NUMERIC","DECIMAL","FLOAT"].includes(n)}function I2(n){return["INT","SMALLINT","BIGINT","CHAR","VARCHAR","FLOAT","DECIMAL","DOUBLE","NUMERIC","REAL"].includes(n)}function zQ(n){switch(n){case"CHAR":case"BINARY":return 1;case"VARCHAR":case"VARBINARY":return 255;case"TEXT":return 65535;default:return""}}const Q8e="modulepreload",e9e=function(n){return"/"+n},LH={},n$=function(t,s,o){let i=Promise.resolve();if(s&&s.length>0){const a=document.getElementsByTagName("link");i=Promise.all(s.map(r=>{if(r=e9e(r),r in LH)return;LH[r]=!0;const c=r.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!o)for(let _=a.length-1;_>=0;_--){const R=a[_];if(R.href===r&&(!c||R.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${f}`))return;const E=document.createElement("link");if(E.rel=c?"stylesheet":Q8e,c||(E.as="script",E.crossOrigin=""),E.href=r,document.head.appendChild(E),c)return new Promise((_,R)=>{E.addEventListener("load",_),E.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${r}`)))})}))}return i.then(()=>t()).catch(a=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=a,window.dispatchEvent(r),!r.defaultPrevented)throw a})};var Xg=Uint8Array,Zg=Uint16Array,z5=Uint32Array,Q3=new Xg([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),eI=new Xg([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),r$=new Xg([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),HQ=function(n,t){for(var s=new Zg(31),o=0;o<31;++o)s[o]=t+=1<>>1|($p&21845)<<1;jy=(jy&52428)>>>2|(jy&13107)<<2,jy=(jy&61680)>>>4|(jy&3855)<<4,o$[$p]=((jy&65280)>>>8|(jy&255)<<8)>>>1}var wb=function(n,t,s){for(var o=n.length,i=0,a=new Zg(t);i>>f]=e}else for(c=new Zg(o),i=0;i>>15-n[i];return c},HC=new Xg(288);for(var $p=0;$p<144;++$p)HC[$p]=8;for(var $p=144;$p<256;++$p)HC[$p]=9;for(var $p=256;$p<280;++$p)HC[$p]=7;for(var $p=280;$p<288;++$p)HC[$p]=8;var H5=new Xg(32);for(var $p=0;$p<32;++$p)H5[$p]=5;var n9e=wb(HC,9,0),r9e=wb(HC,9,1),s9e=wb(H5,5,0),o9e=wb(H5,5,1),a6=function(n){for(var t=n[0],s=1;st&&(t=n[s]);return t},O1=function(n,t,s){var o=t/8>>0;return(n[o]|n[o+1]<<8)>>>(t&7)&s},l6=function(n,t){var s=t/8>>0;return(n[s]|n[s+1]<<8|n[s+2]<<16)>>>(t&7)},rM=function(n){return(n/8>>0)+(n&7&&1)},KQ=function(n,t,s){(t==null||t<0)&&(t=0),(s==null||s>n.length)&&(s=n.length);var o=new(n instanceof Zg?Zg:n instanceof z5?z5:Xg)(s-t);return o.set(n.subarray(t,s)),o},i9e=function(n,t,s){var o=n.length,i=!t||s,a=!s||s.i;s||(s={}),t||(t=new Xg(o*3));var r=function(ir){var br=t.length;if(ir>br){var Rr=new Xg(Math.max(br*2,ir));Rr.set(t),t=Rr}},c=s.f||0,f=s.p||0,e=s.b||0,E=s.l,_=s.d,R=s.m,D=s.n,J=o*8;do{if(!E){s.f=c=O1(n,f,1);var re=O1(n,f+1,3);if(f+=3,re)if(re==1)E=r9e,_=o9e,R=9,D=5;else if(re==2){var ye=O1(n,f,31)+257,Fe=O1(n,f+10,15)+4,Ge=ye+O1(n,f+5,31)+1;f+=14;for(var tt=new Xg(Ge),ht=new Xg(19),yt=0;ytJ)break;for(var Nt=wb(ht,Ft,1),yt=0;yt>>4;if(ie<16)tt[yt++]=ie;else{var fn=0,tn=0;for(ie==16?(tn=3+O1(n,f,3),f+=2,fn=tt[yt-1]):ie==17?(tn=3+O1(n,f,7),f+=3):ie==18&&(tn=11+O1(n,f,127),f+=7);tn--;)tt[yt++]=fn}}var zn=tt.subarray(0,ye),qn=tt.subarray(ye);R=a6(zn),D=a6(qn),E=wb(zn,R,1),_=wb(qn,D,1)}else throw"invalid block type";else{var ie=rM(f)+4,ae=n[ie-4]|n[ie-3]<<8,de=ie+ae;if(de>o){if(a)throw"unexpected EOF";break}i&&r(e+ae),t.set(n.subarray(ie,de),e),s.b=e+=ae,s.p=f=de*8;continue}if(f>J)throw"unexpected EOF"}i&&r(e+131072);for(var gr=(1<>>4;if(f+=fn&15,f>J)throw"unexpected EOF";if(!fn)throw"invalid length/literal";if(Mn<256)t[e++]=Mn;else if(Mn==256){E=null;break}else{var dr=Mn-254;if(Mn>264){var yt=Mn-257,Rt=Q3[yt];dr=O1(n,f,(1<>>4;if(!mn)throw"invalid distance";f+=mn&15;var qn=t9e[Pn];if(Pn>3){var Rt=eI[Pn];qn+=l6(n,f)&(1<J)throw"unexpected EOF";i&&r(e+131072);for(var Yn=e+dr;e>0;n[o]|=s,n[o+1]|=s>>>8},ex=function(n,t,s){s<<=t&7;var o=t/8>>0;n[o]|=s,n[o+1]|=s>>>8,n[o+2]|=s>>>16},u6=function(n,t){for(var s=[],o=0;oR&&(R=a[o].s);var D=new Zg(R+1),J=i$(s[E-1],D,0);if(J>t){var o=0,re=0,ie=J-t,ae=1<t)re+=ae-(1<>>=ie;re>0;){var ye=a[o].s;D[ye]=0&&re;--o){var Fe=a[o].s;D[Fe]==t&&(--D[Fe],++re)}J=t}return[new Xg(D),J]},i$=function(n,t,s){return n.s==-1?Math.max(i$(n.l,t,s+1),i$(n.r,t,s+1)):t[n.s]=s},xH=function(n){for(var t=n.length;t&&!n[--t];);for(var s=new Zg(++t),o=0,i=n[0],a=1,r=function(f){s[o++]=f},c=1;c<=t;++c)if(n[c]==i&&c!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)r(32754);a>2&&(r(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(r(i),--a;a>6;a-=6)r(8304);a>2&&(r(a-3<<5|8208),a=0)}for(;a--;)r(i);a=1,i=n[c]}return[s.subarray(0,o),t]},tx=function(n,t){for(var s=0,o=0;o>>8,n[i+2]=n[i]^255,n[i+3]=n[i+1]^255;for(var a=0;a4&&!Zt[r$[kt-1]];--kt);var fn=e+5<<3,tn=tx(i,HC)+tx(a,H5)+r,zn=tx(i,R)+tx(a,re)+r+14+3*kt+tx(ht,Zt)+(2*ht[16]+3*ht[17]+7*ht[18]);if(fn<=tn&&fn<=zn)return eN(t,E,n.subarray(f,f+e));var qn,gr,$n,hr;if(Fb(t,E,1+(zn15&&(Fb(t,E,mn[yt]>>>5&127),E+=mn[yt]>>>12)}}else qn=n9e,gr=HC,$n=s9e,hr=H5;for(var yt=0;yt255){var Pn=o[yt]>>>18&31;ex(t,E,qn[Pn+257]),E+=gr[Pn+257],Pn>7&&(Fb(t,E,o[yt]>>>23&31),E+=Q3[Pn]);var Yn=o[yt]&31;ex(t,E,$n[Yn]),E+=hr[Yn],Yn>3&&(ex(t,E,o[yt]>>>5&8191),E+=eI[Yn])}else ex(t,E,qn[o[yt]]),E+=gr[o[yt]];return ex(t,E,qn[256]),E+gr[256]},a9e=new z5([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),l9e=new Xg(0),u9e=function(n,t,s,o,i,a){var r=n.length,c=new Xg(o+r+5*(1+Math.floor(r/7e3))+i),f=c.subarray(o,c.length-i),e=0;if(!t||r<8)for(var E=0;E<=r;E+=65535){var _=E+65535;_>>13,J=R&8191,re=(1<7e3||Zt>24576)&&qn>423){e=AH(n,f,0,Ge,tt,ht,Ft,Zt,kt,E-kt,e),Zt=yt=Ft=0,kt=E;for(var gr=0;gr<286;++gr)tt[gr]=0;for(var gr=0;gr<30;++gr)ht[gr]=0}var $n=2,hr=0,Mn=J,dr=tn-zn&32767;if(qn>2&&fn==Fe(E-dr))for(var Rt=Math.min(D,qn)-1,mn=Math.min(32767,E),Pn=Math.min(258,qn);dr<=mn&&--Mn&&tn!=zn;){if(n[E+$n]==n[E+$n-dr]){for(var Yn=0;Yn$n){if($n=Yn,hr=dr,Yn>Rt)break;for(var ir=Math.min(dr,Yn-2),br=0,gr=0;grbr&&(br=Hr,zn=Rr)}}}tn=zn,zn=ie[tn],dr+=tn-zn+32768&32767}if(hr){Ge[Zt++]=268435456|s$[$n]<<18|SH[hr];var Er=s$[$n]&31,is=SH[hr]&31;Ft+=Q3[Er]+eI[is],++tt[257+Er],++ht[is],Nt=E+$n,++yt}else Ge[Zt++]=n[E],++tt[n[E]]}}e=AH(n,f,a,Ge,tt,ht,Ft,Zt,kt,E-kt,e),a||(e=eN(f,e,l9e))}return KQ(c,0,o+rM(e)+i)},c9e=function(){var n=1,t=0;return{p:function(s){for(var o=n,i=t,a=s.length,r=0;r!=a;){for(var c=Math.min(r+5552,a);r>>8<<16|(t&255)<<8|t>>>8)+((n&255)<<23)*2}}},d9e=function(n,t,s,o,i){return u9e(n,t.level==null?6:t.level,t.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):12+t.mem,s,o,!i)},f9e=function(n,t,s){for(;s;++t)n[t]=s,s>>>=8},h9e=function(n,t){var s=t.level,o=s==0?0:s<6?1:s==9?3:2;n[0]=120,n[1]=o<<6|(o?32-2*o:1)},p9e=function(n){if((n[0]&15)!=8||n[0]>>>4>7||(n[0]<<8|n[1])%31)throw"invalid zlib data";if(n[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function a$(n,t){t===void 0&&(t={});var s=c9e();s.p(n);var o=d9e(n,t,2,4);return h9e(o,t),f9e(o,o.length-4,s.d()),o}function m9e(n,t){return i9e((p9e(n),n.subarray(2,-4)),t)}var Sl=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function c6(){Sl.console&&typeof Sl.console.log=="function"&&Sl.console.log.apply(Sl.console,arguments)}var Hh={log:c6,warn:function(n){Sl.console&&(typeof Sl.console.warn=="function"?Sl.console.warn.apply(Sl.console,arguments):c6.call(null,arguments))},error:function(n){Sl.console&&(typeof Sl.console.error=="function"?Sl.console.error.apply(Sl.console,arguments):c6(n))}};function d6(n,t,s){var o=new XMLHttpRequest;o.open("GET",n),o.responseType="blob",o.onload=function(){Aw(o.response,t,s)},o.onerror=function(){Hh.error("could not download file")},o.send()}function _H(n){var t=new XMLHttpRequest;t.open("HEAD",n,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function tT(n){try{n.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(t)}}var Ux,l$,Aw=Sl.saveAs||((typeof window>"u"?"undefined":Gf(window))!=="object"||window!==Sl?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(n,t,s){var o=Sl.URL||Sl.webkitURL,i=document.createElement("a");t=t||n.name||"download",i.download=t,i.rel="noopener",typeof n=="string"?(i.href=n,i.origin!==location.origin?_H(i.href)?d6(n,t,s):tT(i,i.target="_blank"):tT(i)):(i.href=o.createObjectURL(n),setTimeout(function(){o.revokeObjectURL(i.href)},4e4),setTimeout(function(){tT(i)},0))}:"msSaveOrOpenBlob"in navigator?function(n,t,s){if(t=t||n.name||"download",typeof n=="string")if(_H(n))d6(n,t,s);else{var o=document.createElement("a");o.href=n,o.target="_blank",setTimeout(function(){tT(o)})}else navigator.msSaveOrOpenBlob(function(i,a){return a===void 0?a={autoBom:!1}:Gf(a)!=="object"&&(Hh.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(n,s),t)}:function(n,t,s,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),typeof n=="string")return d6(n,t,s);var i=n.type==="application/octet-stream",a=/constructor/i.test(Sl.HTMLElement)||Sl.safari,r=/CriOS\/[\d]+/.test(navigator.userAgent);if((r||i&&a)&&(typeof FileReader>"u"?"undefined":Gf(FileReader))==="object"){var c=new FileReader;c.onloadend=function(){var E=c.result;E=r?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=E:location=E,o=null},c.readAsDataURL(n)}else{var f=Sl.URL||Sl.webkitURL,e=f.createObjectURL(n);o?o.location=e:location.href=e,o=null,setTimeout(function(){f.revokeObjectURL(e)},4e4)}});/** + * A class to parse color values + * @author Stoyan Stefanov + * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} + * @license Use it if you like it + */function qQ(n){var t;n=n||"",this.ok=!1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n={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",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",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:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",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",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[n=(n=n.replace(/ /g,"")).toLowerCase()]||n;for(var s=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(c){return[parseInt(c[1]),parseInt(c[2]),parseInt(c[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(c){return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(c){return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]}}],o=0;o255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var c=this.r.toString(16),f=this.g.toString(16),e=this.b.toString(16);return c.length==1&&(c="0"+c),f.length==1&&(f="0"+f),e.length==1&&(e="0"+e),"#"+c+f+e}}/** + * @license + * Joseph Myers does not specify a particular license for his work. + * + * Author: Joseph Myers + * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js + * + * Modified by: Owen Leong + */function f6(n,t){var s=n[0],o=n[1],i=n[2],a=n[3];s=vg(s,o,i,a,t[0],7,-680876936),a=vg(a,s,o,i,t[1],12,-389564586),i=vg(i,a,s,o,t[2],17,606105819),o=vg(o,i,a,s,t[3],22,-1044525330),s=vg(s,o,i,a,t[4],7,-176418897),a=vg(a,s,o,i,t[5],12,1200080426),i=vg(i,a,s,o,t[6],17,-1473231341),o=vg(o,i,a,s,t[7],22,-45705983),s=vg(s,o,i,a,t[8],7,1770035416),a=vg(a,s,o,i,t[9],12,-1958414417),i=vg(i,a,s,o,t[10],17,-42063),o=vg(o,i,a,s,t[11],22,-1990404162),s=vg(s,o,i,a,t[12],7,1804603682),a=vg(a,s,o,i,t[13],12,-40341101),i=vg(i,a,s,o,t[14],17,-1502002290),s=bg(s,o=vg(o,i,a,s,t[15],22,1236535329),i,a,t[1],5,-165796510),a=bg(a,s,o,i,t[6],9,-1069501632),i=bg(i,a,s,o,t[11],14,643717713),o=bg(o,i,a,s,t[0],20,-373897302),s=bg(s,o,i,a,t[5],5,-701558691),a=bg(a,s,o,i,t[10],9,38016083),i=bg(i,a,s,o,t[15],14,-660478335),o=bg(o,i,a,s,t[4],20,-405537848),s=bg(s,o,i,a,t[9],5,568446438),a=bg(a,s,o,i,t[14],9,-1019803690),i=bg(i,a,s,o,t[3],14,-187363961),o=bg(o,i,a,s,t[8],20,1163531501),s=bg(s,o,i,a,t[13],5,-1444681467),a=bg(a,s,o,i,t[2],9,-51403784),i=bg(i,a,s,o,t[7],14,1735328473),s=yg(s,o=bg(o,i,a,s,t[12],20,-1926607734),i,a,t[5],4,-378558),a=yg(a,s,o,i,t[8],11,-2022574463),i=yg(i,a,s,o,t[11],16,1839030562),o=yg(o,i,a,s,t[14],23,-35309556),s=yg(s,o,i,a,t[1],4,-1530992060),a=yg(a,s,o,i,t[4],11,1272893353),i=yg(i,a,s,o,t[7],16,-155497632),o=yg(o,i,a,s,t[10],23,-1094730640),s=yg(s,o,i,a,t[13],4,681279174),a=yg(a,s,o,i,t[0],11,-358537222),i=yg(i,a,s,o,t[3],16,-722521979),o=yg(o,i,a,s,t[6],23,76029189),s=yg(s,o,i,a,t[9],4,-640364487),a=yg(a,s,o,i,t[12],11,-421815835),i=yg(i,a,s,o,t[15],16,530742520),s=Cg(s,o=yg(o,i,a,s,t[2],23,-995338651),i,a,t[0],6,-198630844),a=Cg(a,s,o,i,t[7],10,1126891415),i=Cg(i,a,s,o,t[14],15,-1416354905),o=Cg(o,i,a,s,t[5],21,-57434055),s=Cg(s,o,i,a,t[12],6,1700485571),a=Cg(a,s,o,i,t[3],10,-1894986606),i=Cg(i,a,s,o,t[10],15,-1051523),o=Cg(o,i,a,s,t[1],21,-2054922799),s=Cg(s,o,i,a,t[8],6,1873313359),a=Cg(a,s,o,i,t[15],10,-30611744),i=Cg(i,a,s,o,t[6],15,-1560198380),o=Cg(o,i,a,s,t[13],21,1309151649),s=Cg(s,o,i,a,t[4],6,-145523070),a=Cg(a,s,o,i,t[11],10,-1120210379),i=Cg(i,a,s,o,t[2],15,718787259),o=Cg(o,i,a,s,t[9],21,-343485551),n[0]=mC(s,n[0]),n[1]=mC(o,n[1]),n[2]=mC(i,n[2]),n[3]=mC(a,n[3])}function tI(n,t,s,o,i,a){return t=mC(mC(t,n),mC(o,a)),mC(t<>>32-i,s)}function vg(n,t,s,o,i,a,r){return tI(t&s|~t&o,n,t,i,a,r)}function bg(n,t,s,o,i,a,r){return tI(t&o|s&~o,n,t,i,a,r)}function yg(n,t,s,o,i,a,r){return tI(t^s^o,n,t,i,a,r)}function Cg(n,t,s,o,i,a,r){return tI(s^(t|~o),n,t,i,a,r)}function YQ(n){var t,s=n.length,o=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=n.length;t+=64)f6(o,g9e(n.substring(t-64,t)));n=n.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(f6(o,i),t=0;t<16;t++)i[t]=0;return i[14]=8*s,f6(o,i),o}function g9e(n){var t,s=[];for(t=0;t<64;t+=4)s[t>>2]=n.charCodeAt(t)+(n.charCodeAt(t+1)<<8)+(n.charCodeAt(t+2)<<16)+(n.charCodeAt(t+3)<<24);return s}Ux=Sl.atob.bind(Sl),l$=Sl.btoa.bind(Sl);var TH="0123456789abcdef".split("");function v9e(n){for(var t="",s=0;s<4;s++)t+=TH[n>>8*s+4&15]+TH[n>>8*s&15];return t}function b9e(n){return String.fromCharCode((255&n)>>0,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function u$(n){return YQ(n).map(b9e).join("")}var y9e=function(n){for(var t=0;t>16)+(t>>16)+(s>>16)<<16|65535&s}return n+t&4294967295}/** + * @license + * FPDF is released under a permissive license: there is no usage restriction. + * You may embed it freely in your application (commercial or not), with or + * without modifications. + * + * Reference: http://www.fpdf.org/en/script/script37.php + */function c$(n,t){var s,o,i,a;if(n!==s){for(var r=(i=n,a=1+(256/n.length>>0),new Array(a+1).join(i)),c=[],f=0;f<256;f++)c[f]=f;var e=0;for(f=0;f<256;f++){var E=c[f];e=(e+E+r.charCodeAt(f))%256,c[f]=c[e],c[e]=E}s=n,o=c}else c=o;var _=t.length,R=0,D=0,J="";for(f=0;f<_;f++)D=(D+(E=c[R=(R+1)%256]))%256,c[R]=c[D],c[D]=E,r=c[(c[R]+c[D])%256],J+=String.fromCharCode(t.charCodeAt(f)^r);return J}/** + * @license + * Licensed under the MIT License. + * http://opensource.org/licenses/mit-license + * Author: Owen Leong (@owenl131) + * Date: 15 Oct 2020 + * References: + * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt + * https://github.com/foliojs/pdfkit/blob/master/lib/security.js + * http://www.fpdf.org/en/script/script37.php + */var NH={print:4,modify:8,copy:16,"annot-forms":32};function aE(n,t,s,o){this.v=1,this.r=2;var i=192;n.forEach(function(c){if(NH.perm!==void 0)throw new Error("Invalid permission: "+c);i+=NH[c]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(t+this.padding).substr(0,32),r=(s+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,r),this.P=-(1+(255^i)),this.encryptionKey=u$(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(o)).substr(0,5),this.U=c$(this.encryptionKey,this.padding)}function lE(n){if(/[^\u0000-\u00ff]/.test(n))throw new Error("Invalid PDF Name Object: "+n+", Only accept ASCII characters.");for(var t="",s=n.length,o=0;o126?t+="#"+("0"+i.toString(16)).slice(-2):t+=n[o]}return t}function OH(n){if(Gf(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(s,o,i){if(i=i||!1,typeof s!="string"||typeof o!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(s)||(t[s]={});var a=Math.random().toString(35);return t[s][a]=[o,!!i],a},this.unsubscribe=function(s){for(var o in t)if(t[o][s])return delete t[o][s],Object.keys(t[o]).length===0&&delete t[o],!0;return!1},this.publish=function(s){if(t.hasOwnProperty(s)){var o=Array.prototype.slice.call(arguments,1),i=[];for(var a in t[s]){var r=t[s][a];try{r[0].apply(n,o)}catch(c){Sl.console&&Hh.error("jsPDF PubSub Error",c.message,c)}r[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function _4(n){if(!(this instanceof _4))return new _4(n);var t="opacity,stroke-opacity".split(",");for(var s in n)n.hasOwnProperty(s)&&t.indexOf(s)>=0&&(this[s]=n[s]);this.id="",this.objectNumber=-1}function XQ(n,t){this.gState=n,this.matrix=t,this.id="",this.objectNumber=-1}function Ow(n,t,s,o,i){if(!(this instanceof Ow))return new Ow(n,t,s,o,i);this.type=n==="axial"?2:3,this.coords=t,this.colors=s,XQ.call(this,o,i)}function RE(n,t,s,o,i){if(!(this instanceof RE))return new RE(n,t,s,o,i);this.boundingBox=n,this.xStep=t,this.yStep=s,this.stream="",this.cloneIndex=0,XQ.call(this,o,i)}function Ll(n){var t,s=typeof arguments[0]=="string"?arguments[0]:"p",o=arguments[1],i=arguments[2],a=arguments[3],r=[],c=1,f=16,e="S",E=null;Gf(n=n||{})==="object"&&(s=n.orientation,o=n.unit||o,i=n.format||i,a=n.compress||n.compressPdf||a,(E=n.encryption||null)!==null&&(E.userPassword=E.userPassword||"",E.ownerPassword=E.ownerPassword||"",E.userPermissions=E.userPermissions||[]),c=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(t=n.precision),n.floatPrecision!==void 0&&(f=n.floatPrecision),e=n.defaultPathOperation||"S"),r=n.filters||(a===!0?["FlateEncode"]:r),o=o||"mm",s=(""+(s||"P")).toLowerCase();var _=n.putOnlyUsedFonts||!1,R={},D={internal:{},__private__:{}};D.__private__.PubSub=OH;var J="1.3",re=D.__private__.getPdfVersion=function(){return J};D.__private__.setPdfVersion=function(nt){J=nt};var ie={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};D.__private__.getPageFormats=function(){return ie};var ae=D.__private__.getPageFormat=function(nt){return ie[nt]};i=i||"a4";var de={COMPAT:"compat",ADVANCED:"advanced"},ye=de.COMPAT;function Fe(){this.saveGraphicsState(),Zn(new Wo(sr,0,0,-sr,0,Zf()*sr).toString()+" cm"),this.setFontSize(this.getFontSize()/sr),e="n",ye=de.ADVANCED}function Ge(){this.restoreGraphicsState(),e="S",ye=de.COMPAT}var tt=D.__private__.combineFontStyleAndFontWeight=function(nt,on){if(nt=="bold"&&on=="normal"||nt=="bold"&&on==400||nt=="normal"&&on=="italic"||nt=="bold"&&on=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return on&&(nt=on==400||on==="normal"?nt==="italic"?"italic":"normal":on!=700&&on!=="bold"||nt!=="normal"?(on==700?"bold":on)+""+nt:"bold"),nt};D.advancedAPI=function(nt){var on=ye===de.COMPAT;return on&&Fe.call(this),typeof nt!="function"||(nt(this),on&&Ge.call(this)),this},D.compatAPI=function(nt){var on=ye===de.ADVANCED;return on&&Ge.call(this),typeof nt!="function"||(nt(this),on&&Fe.call(this)),this},D.isAdvancedAPI=function(){return ye===de.ADVANCED};var ht,yt=function(nt){if(ye!==de.ADVANCED)throw new Error(nt+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Ft=D.roundToPrecision=D.__private__.roundToPrecision=function(nt,on){var ur=t||on;if(isNaN(nt)||isNaN(ur))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return nt.toFixed(ur).replace(/0+$/,"")};ht=D.hpf=D.__private__.hpf=typeof f=="number"?function(nt){if(isNaN(nt))throw new Error("Invalid argument passed to jsPDF.hpf");return Ft(nt,f)}:f==="smart"?function(nt){if(isNaN(nt))throw new Error("Invalid argument passed to jsPDF.hpf");return Ft(nt,nt>-1&&nt<1?16:5)}:function(nt){if(isNaN(nt))throw new Error("Invalid argument passed to jsPDF.hpf");return Ft(nt,16)};var Zt=D.f2=D.__private__.f2=function(nt){if(isNaN(nt))throw new Error("Invalid argument passed to jsPDF.f2");return Ft(nt,2)},Nt=D.__private__.f3=function(nt){if(isNaN(nt))throw new Error("Invalid argument passed to jsPDF.f3");return Ft(nt,3)},kt=D.scale=D.__private__.scale=function(nt){if(isNaN(nt))throw new Error("Invalid argument passed to jsPDF.scale");return ye===de.COMPAT?nt*sr:ye===de.ADVANCED?nt:void 0},fn=function(nt){return ye===de.COMPAT?Zf()-nt:ye===de.ADVANCED?nt:void 0},tn=function(nt){return kt(fn(nt))};D.__private__.setPrecision=D.setPrecision=function(nt){typeof parseInt(nt,10)=="number"&&(t=parseInt(nt,10))};var zn,qn="00000000000000000000000000000000",gr=D.__private__.getFileId=function(){return qn},$n=D.__private__.setFileId=function(nt){return qn=nt!==void 0&&/^[a-fA-F0-9]{32}$/.test(nt)?nt.toUpperCase():qn.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),E!==null&&(Dr=new aE(E.userPermissions,E.userPassword,E.ownerPassword,qn)),qn};D.setFileId=function(nt){return $n(nt),this},D.getFileId=function(){return gr()};var hr=D.__private__.convertDateToPDFDate=function(nt){var on=nt.getTimezoneOffset(),ur=on<0?"+":"-",Lr=Math.floor(Math.abs(on/60)),Vr=Math.abs(on%60),ps=[ur,Pn(Lr),"'",Pn(Vr),"'"].join("");return["D:",nt.getFullYear(),Pn(nt.getMonth()+1),Pn(nt.getDate()),Pn(nt.getHours()),Pn(nt.getMinutes()),Pn(nt.getSeconds()),ps].join("")},Mn=D.__private__.convertPDFDateToDate=function(nt){var on=parseInt(nt.substr(2,4),10),ur=parseInt(nt.substr(6,2),10)-1,Lr=parseInt(nt.substr(8,2),10),Vr=parseInt(nt.substr(10,2),10),ps=parseInt(nt.substr(12,2),10),Bs=parseInt(nt.substr(14,2),10);return new Date(on,ur,Lr,Vr,ps,Bs,0)},dr=D.__private__.setCreationDate=function(nt){var on;if(nt===void 0&&(nt=new Date),nt instanceof Date)on=hr(nt);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(nt))throw new Error("Invalid argument passed to jsPDF.setCreationDate");on=nt}return zn=on},Rt=D.__private__.getCreationDate=function(nt){var on=zn;return nt==="jsDate"&&(on=Mn(zn)),on};D.setCreationDate=function(nt){return dr(nt),this},D.getCreationDate=function(nt){return Rt(nt)};var mn,Pn=D.__private__.padd2=function(nt){return("0"+parseInt(nt)).slice(-2)},Yn=D.__private__.padd2Hex=function(nt){return("00"+(nt=nt.toString())).substr(nt.length)},ir=0,br=[],Rr=[],Mr=0,Hr=[],Er=[],is=!1,Cs=Rr,hs=function(){ir=0,Mr=0,Rr=[],br=[],Hr=[],Cl=Fa(),Ic=Fa()};D.__private__.setCustomOutputDestination=function(nt){is=!0,Cs=nt};var zr=function(nt){is||(Cs=nt)};D.__private__.resetCustomOutputDestination=function(){is=!1,Cs=Rr};var Zn=D.__private__.out=function(nt){return nt=nt.toString(),Mr+=nt.length+1,Cs.push(nt),Cs},Ks=D.__private__.write=function(nt){return Zn(arguments.length===1?nt.toString():Array.prototype.join.call(arguments," "))},Zs=D.__private__.getArrayBuffer=function(nt){for(var on=nt.length,ur=new ArrayBuffer(on),Lr=new Uint8Array(ur);on--;)Lr[on]=nt.charCodeAt(on);return ur},bs=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];D.__private__.getStandardFonts=function(){return bs};var As=n.fontSize||16;D.__private__.setFontSize=D.setFontSize=function(nt){return As=ye===de.ADVANCED?nt/sr:nt,this};var ds,Ms=D.__private__.getFontSize=D.getFontSize=function(){return ye===de.COMPAT?As:As*sr},no=n.R2L||!1;D.__private__.setR2L=D.setR2L=function(nt){return no=nt,this},D.__private__.getR2L=D.getR2L=function(){return no};var Ls,Ro=D.__private__.setZoomMode=function(nt){var on=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(nt))ds=nt;else if(isNaN(nt)){if(on.indexOf(nt)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+nt+'" is not recognized.');ds=nt}else ds=parseInt(nt,10)};D.__private__.getZoomMode=function(){return ds};var Yt,yn=D.__private__.setPageMode=function(nt){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(nt)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+nt+'" is not recognized.');Ls=nt};D.__private__.getPageMode=function(){return Ls};var ar=D.__private__.setLayoutMode=function(nt){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(nt)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+nt+'" is not recognized.');Yt=nt};D.__private__.getLayoutMode=function(){return Yt},D.__private__.setDisplayMode=D.setDisplayMode=function(nt,on,ur){return Ro(nt),ar(on),yn(ur),this};var fr={title:"",subject:"",author:"",keywords:"",creator:""};D.__private__.getDocumentProperty=function(nt){if(Object.keys(fr).indexOf(nt)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return fr[nt]},D.__private__.getDocumentProperties=function(){return fr},D.__private__.setDocumentProperties=D.setProperties=D.setDocumentProperties=function(nt){for(var on in fr)fr.hasOwnProperty(on)&&nt[on]&&(fr[on]=nt[on]);return this},D.__private__.setDocumentProperty=function(nt,on){if(Object.keys(fr).indexOf(nt)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return fr[nt]=on};var cr,sr,Nn,er,ns,io={},ao={},_o=[],Ao={},na={},ni={},di={},xi=null,ii=0,pn=[],Sr=new OH(D),Ws=n.hotfixes||[],zo={},Oa={},Ia=[],Wo=function nt(on,ur,Lr,Vr,ps,Bs){if(!(this instanceof nt))return new nt(on,ur,Lr,Vr,ps,Bs);isNaN(on)&&(on=1),isNaN(ur)&&(ur=0),isNaN(Lr)&&(Lr=0),isNaN(Vr)&&(Vr=1),isNaN(ps)&&(ps=0),isNaN(Bs)&&(Bs=0),this._matrix=[on,ur,Lr,Vr,ps,Bs]};Object.defineProperty(Wo.prototype,"sx",{get:function(){return this._matrix[0]},set:function(nt){this._matrix[0]=nt}}),Object.defineProperty(Wo.prototype,"shy",{get:function(){return this._matrix[1]},set:function(nt){this._matrix[1]=nt}}),Object.defineProperty(Wo.prototype,"shx",{get:function(){return this._matrix[2]},set:function(nt){this._matrix[2]=nt}}),Object.defineProperty(Wo.prototype,"sy",{get:function(){return this._matrix[3]},set:function(nt){this._matrix[3]=nt}}),Object.defineProperty(Wo.prototype,"tx",{get:function(){return this._matrix[4]},set:function(nt){this._matrix[4]=nt}}),Object.defineProperty(Wo.prototype,"ty",{get:function(){return this._matrix[5]},set:function(nt){this._matrix[5]=nt}}),Object.defineProperty(Wo.prototype,"a",{get:function(){return this._matrix[0]},set:function(nt){this._matrix[0]=nt}}),Object.defineProperty(Wo.prototype,"b",{get:function(){return this._matrix[1]},set:function(nt){this._matrix[1]=nt}}),Object.defineProperty(Wo.prototype,"c",{get:function(){return this._matrix[2]},set:function(nt){this._matrix[2]=nt}}),Object.defineProperty(Wo.prototype,"d",{get:function(){return this._matrix[3]},set:function(nt){this._matrix[3]=nt}}),Object.defineProperty(Wo.prototype,"e",{get:function(){return this._matrix[4]},set:function(nt){this._matrix[4]=nt}}),Object.defineProperty(Wo.prototype,"f",{get:function(){return this._matrix[5]},set:function(nt){this._matrix[5]=nt}}),Object.defineProperty(Wo.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Wo.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Wo.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Wo.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Wo.prototype.join=function(nt){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(ht).join(nt)},Wo.prototype.multiply=function(nt){var on=nt.sx*this.sx+nt.shy*this.shx,ur=nt.sx*this.shy+nt.shy*this.sy,Lr=nt.shx*this.sx+nt.sy*this.shx,Vr=nt.shx*this.shy+nt.sy*this.sy,ps=nt.tx*this.sx+nt.ty*this.shx+this.tx,Bs=nt.tx*this.shy+nt.ty*this.sy+this.ty;return new Wo(on,ur,Lr,Vr,ps,Bs)},Wo.prototype.decompose=function(){var nt=this.sx,on=this.shy,ur=this.shx,Lr=this.sy,Vr=this.tx,ps=this.ty,Bs=Math.sqrt(nt*nt+on*on),No=(nt/=Bs)*ur+(on/=Bs)*Lr;ur-=nt*No,Lr-=on*No;var si=Math.sqrt(ur*ur+Lr*Lr);return No/=si,nt*(Lr/=si)>16&255,Lr=si>>8&255,Vr=255&si}if(Lr===void 0||ps===void 0&&ur===Lr&&Lr===Vr)if(typeof ur=="string")on=ur+" "+Bs[0];else switch(nt.precision){case 2:on=Zt(ur/255)+" "+Bs[0];break;case 3:default:on=Nt(ur/255)+" "+Bs[0]}else if(ps===void 0||Gf(ps)==="object"){if(ps&&!isNaN(ps.a)&&ps.a===0)return on=["1.","1.","1.",Bs[1]].join(" ");if(typeof ur=="string")on=[ur,Lr,Vr,Bs[1]].join(" ");else switch(nt.precision){case 2:on=[Zt(ur/255),Zt(Lr/255),Zt(Vr/255),Bs[1]].join(" ");break;default:case 3:on=[Nt(ur/255),Nt(Lr/255),Nt(Vr/255),Bs[1]].join(" ")}}else if(typeof ur=="string")on=[ur,Lr,Vr,ps,Bs[2]].join(" ");else switch(nt.precision){case 2:on=[Zt(ur),Zt(Lr),Zt(Vr),Zt(ps),Bs[2]].join(" ");break;case 3:default:on=[Nt(ur),Nt(Lr),Nt(Vr),Nt(ps),Bs[2]].join(" ")}return on},ia=D.__private__.getFilters=function(){return r},ju=D.__private__.putStream=function(nt){var on=(nt=nt||{}).data||"",ur=nt.filters||ia(),Lr=nt.alreadyAppliedFilters||[],Vr=nt.addLength1||!1,ps=on.length,Bs=nt.objectId,No=function(Sc){return Sc};if(E!==null&&Bs===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");E!==null&&(No=Dr.encryptor(Bs,0));var si={};ur===!0&&(ur=["FlateEncode"]);var ji=nt.additionalKeyValues||[],ra=(si=Ll.API.processDataByFilters!==void 0?Ll.API.processDataByFilters(on,ur):{data:on,reverseChain:[]}).reverseChain+(Array.isArray(Lr)?Lr.join(" "):Lr.toString());if(si.data.length!==0&&(ji.push({key:"Length",value:si.data.length}),Vr===!0&&ji.push({key:"Length1",value:ps})),ra.length!=0)if(ra.split("/").length-1==1)ji.push({key:"Filter",value:ra});else{ji.push({key:"Filter",value:"["+ra+"]"});for(var Hi=0;Hi>"),si.data.length!==0&&(Zn("stream"),Zn(No(si.data)),Zn("endstream"))},Xu=D.__private__.putPage=function(nt){var on=nt.number,ur=nt.data,Lr=nt.objId,Vr=nt.contentsObjId;ol(Lr,!0),Zn("<>"),Zn("endobj");var ps=ur.join(` +`);return ye===de.ADVANCED&&(ps+=` +Q`),ol(Vr,!0),ju({data:ps,filters:ia(),objectId:Vr}),Zn("endobj"),Lr},ad=D.__private__.putPages=function(){var nt,on,ur=[];for(nt=1;nt<=ii;nt++)pn[nt].objId=Fa(),pn[nt].contentsObjId=Fa();for(nt=1;nt<=ii;nt++)ur.push(Xu({number:nt,data:Er[nt],objId:pn[nt].objId,contentsObjId:pn[nt].contentsObjId,mediaBox:pn[nt].mediaBox,cropBox:pn[nt].cropBox,bleedBox:pn[nt].bleedBox,trimBox:pn[nt].trimBox,artBox:pn[nt].artBox,userUnit:pn[nt].userUnit,rootDictionaryObjId:Cl,resourceDictionaryObjId:Ic}));ol(Cl,!0),Zn("<>"),Zn("endobj"),Sr.publish("postPutPages")},jl=function(nt){Sr.publish("putFont",{font:nt,out:Zn,newObject:Al,putStream:ju}),nt.isAlreadyPutted!==!0&&(nt.objectNumber=Al(),Zn("<<"),Zn("/Type /Font"),Zn("/BaseFont /"+lE(nt.postScriptName)),Zn("/Subtype /Type1"),typeof nt.encoding=="string"&&Zn("/Encoding /"+nt.encoding),Zn("/FirstChar 32"),Zn("/LastChar 255"),Zn(">>"),Zn("endobj"))},Rc=function(){for(var nt in io)io.hasOwnProperty(nt)&&(_===!1||_===!0&&R.hasOwnProperty(nt))&&jl(io[nt])},ld=function(nt){nt.objectNumber=Al();var on=[];on.push({key:"Type",value:"/XObject"}),on.push({key:"Subtype",value:"/Form"}),on.push({key:"BBox",value:"["+[ht(nt.x),ht(nt.y),ht(nt.x+nt.width),ht(nt.y+nt.height)].join(" ")+"]"}),on.push({key:"Matrix",value:"["+nt.matrix.toString()+"]"});var ur=nt.pages[1].join(` +`);ju({data:ur,additionalKeyValues:on,objectId:nt.objectNumber}),Zn("endobj")},zd=function(){for(var nt in zo)zo.hasOwnProperty(nt)&&ld(zo[nt])},ud=function(nt,on){var ur,Lr=[],Vr=1/(on-1);for(ur=0;ur<1;ur+=Vr)Lr.push(ur);if(Lr.push(1),nt[0].offset!=0){var ps={offset:0,color:nt[0].color};nt.unshift(ps)}if(nt[nt.length-1].offset!=1){var Bs={offset:1,color:nt[nt.length-1].color};nt.push(Bs)}for(var No="",si=0,ji=0;jint[si+1].offset;)si++;var ra=nt[si].offset,Hi=(ur-ra)/(nt[si+1].offset-ra),Tl=nt[si].color,_a=nt[si+1].color;No+=Yn(Math.round((1-Hi)*Tl[0]+Hi*_a[0]).toString(16))+Yn(Math.round((1-Hi)*Tl[1]+Hi*_a[1]).toString(16))+Yn(Math.round((1-Hi)*Tl[2]+Hi*_a[2]).toString(16))}return No.trim()},cd=function(nt,on){on||(on=21);var ur=Al(),Lr=ud(nt.colors,on),Vr=[];Vr.push({key:"FunctionType",value:"0"}),Vr.push({key:"Domain",value:"[0.0 1.0]"}),Vr.push({key:"Size",value:"["+on+"]"}),Vr.push({key:"BitsPerSample",value:"8"}),Vr.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Vr.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ju({data:Lr,additionalKeyValues:Vr,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ur}),Zn("endobj"),nt.objectNumber=Al(),Zn("<< /ShadingType "+nt.type),Zn("/ColorSpace /DeviceRGB");var ps="/Coords ["+ht(parseFloat(nt.coords[0]))+" "+ht(parseFloat(nt.coords[1]))+" ";nt.type===2?ps+=ht(parseFloat(nt.coords[2]))+" "+ht(parseFloat(nt.coords[3])):ps+=ht(parseFloat(nt.coords[2]))+" "+ht(parseFloat(nt.coords[3]))+" "+ht(parseFloat(nt.coords[4]))+" "+ht(parseFloat(nt.coords[5])),Zn(ps+="]"),nt.matrix&&Zn("/Matrix ["+nt.matrix.toString()+"]"),Zn("/Function "+ur+" 0 R"),Zn("/Extend [true true]"),Zn(">>"),Zn("endobj")},ih=function(nt,on){var ur=Fa(),Lr=Al();on.push({resourcesOid:ur,objectOid:Lr}),nt.objectNumber=Lr;var Vr=[];Vr.push({key:"Type",value:"/Pattern"}),Vr.push({key:"PatternType",value:"1"}),Vr.push({key:"PaintType",value:"1"}),Vr.push({key:"TilingType",value:"1"}),Vr.push({key:"BBox",value:"["+nt.boundingBox.map(ht).join(" ")+"]"}),Vr.push({key:"XStep",value:ht(nt.xStep)}),Vr.push({key:"YStep",value:ht(nt.yStep)}),Vr.push({key:"Resources",value:ur+" 0 R"}),nt.matrix&&Vr.push({key:"Matrix",value:"["+nt.matrix.toString()+"]"}),ju({data:nt.stream,additionalKeyValues:Vr,objectId:nt.objectNumber}),Zn("endobj")},Hd=function(nt){var on;for(on in Ao)Ao.hasOwnProperty(on)&&(Ao[on]instanceof Ow?cd(Ao[on]):Ao[on]instanceof RE&&ih(Ao[on],nt))},Ad=function(nt){for(var on in nt.objectNumber=Al(),Zn("<<"),nt)switch(on){case"opacity":Zn("/ca "+Zt(nt[on]));break;case"stroke-opacity":Zn("/CA "+Zt(nt[on]))}Zn(">>"),Zn("endobj")},ah=function(){var nt;for(nt in ni)ni.hasOwnProperty(nt)&&Ad(ni[nt])},Vd=function(){for(var nt in Zn("/XObject <<"),zo)zo.hasOwnProperty(nt)&&zo[nt].objectNumber>=0&&Zn("/"+nt+" "+zo[nt].objectNumber+" 0 R");Sr.publish("putXobjectDict"),Zn(">>")},dd=function(){Dr.oid=Al(),Zn("<<"),Zn("/Filter /Standard"),Zn("/V "+Dr.v),Zn("/R "+Dr.r),Zn("/U <"+Dr.toHexString(Dr.U)+">"),Zn("/O <"+Dr.toHexString(Dr.O)+">"),Zn("/P "+Dr.P),Zn(">>"),Zn("endobj")},zs=function(){for(var nt in Zn("/Font <<"),io)io.hasOwnProperty(nt)&&(_===!1||_===!0&&R.hasOwnProperty(nt))&&Zn("/"+nt+" "+io[nt].objectNumber+" 0 R");Zn(">>")},Wd=function(){if(Object.keys(Ao).length>0){for(var nt in Zn("/Shading <<"),Ao)Ao.hasOwnProperty(nt)&&Ao[nt]instanceof Ow&&Ao[nt].objectNumber>=0&&Zn("/"+nt+" "+Ao[nt].objectNumber+" 0 R");Sr.publish("putShadingPatternDict"),Zn(">>")}},vu=function(nt){if(Object.keys(Ao).length>0){for(var on in Zn("/Pattern <<"),Ao)Ao.hasOwnProperty(on)&&Ao[on]instanceof D.TilingPattern&&Ao[on].objectNumber>=0&&Ao[on].objectNumber>")}},lh=function(){if(Object.keys(ni).length>0){var nt;for(nt in Zn("/ExtGState <<"),ni)ni.hasOwnProperty(nt)&&ni[nt].objectNumber>=0&&Zn("/"+nt+" "+ni[nt].objectNumber+" 0 R");Sr.publish("putGStateDict"),Zn(">>")}},Fl=function(nt){ol(nt.resourcesOid,!0),Zn("<<"),Zn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),zs(),Wd(),vu(nt.objectOid),lh(),Vd(),Zn(">>"),Zn("endobj")},Gd=function(){var nt=[];Rc(),ah(),zd(),Hd(nt),Sr.publish("putResources"),nt.forEach(Fl),Fl({resourcesOid:Ic,objectOid:Number.MAX_SAFE_INTEGER}),Sr.publish("postPutResources")},Kd=function(){Sr.publish("putAdditionalObjects");for(var nt=0;nt>8&&(si=!0);nt=No.join("")}for(ur=nt.length;si===void 0&&ur!==0;)nt.charCodeAt(ur-1)>>8&&(si=!0),ur--;if(!si)return nt;for(No=on.noBOM?[]:[254,255],ur=0,Lr=nt.length;ur>8)>>8)throw new Error("Character at position "+ur+" of string '"+nt+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");No.push(ra),No.push(ji-(ra<<8))}return String.fromCharCode.apply(void 0,No)},Zl=D.__private__.pdfEscape=D.pdfEscape=function(nt,on){return _d(nt,on).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},cf=D.__private__.beginPage=function(nt){Er[++ii]=[],pn[ii]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(nt[0]),topRightY:Number(nt[1])}},_f(ii),zr(Er[mn])},Pc=function(nt,on){var ur,Lr,Vr;switch(s=on||s,typeof nt=="string"&&(ur=ae(nt.toLowerCase()),Array.isArray(ur)&&(Lr=ur[0],Vr=ur[1])),Array.isArray(nt)&&(Lr=nt[0]*sr,Vr=nt[1]*sr),isNaN(Lr)&&(Lr=i[0],Vr=i[1]),(Lr>14400||Vr>14400)&&(Hh.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Lr=Math.min(14400,Lr),Vr=Math.min(14400,Vr)),i=[Lr,Vr],s.substr(0,1)){case"l":Vr>Lr&&(i=[Vr,Lr]);break;case"p":Lr>Vr&&(i=[Vr,Lr])}cf(i),hd(Ul),Zn(Yd),xh!==0&&Zn(xh+" J"),Xf!==0&&Zn(Xf+" j"),Sr.publish("addPage",{pageNumber:ii})},fd=function(nt){nt>0&&nt<=ii&&(Er.splice(nt,1),pn.splice(nt,1),ii--,mn>ii&&(mn=ii),this.setPage(mn))},_f=function(nt){nt>0&&nt<=ii&&(mn=nt)},Kf=D.__private__.getNumberOfPages=D.getNumberOfPages=function(){return Er.length-1},Sh=function(nt,on,ur){var Lr,Vr=void 0;return ur=ur||{},nt=nt!==void 0?nt:io[cr].fontName,on=on!==void 0?on:io[cr].fontStyle,Lr=nt.toLowerCase(),ao[Lr]!==void 0&&ao[Lr][on]!==void 0?Vr=ao[Lr][on]:ao[nt]!==void 0&&ao[nt][on]!==void 0?Vr=ao[nt][on]:ur.disableWarning===!1&&Hh.warn("Unable to look up font label for font '"+nt+"', '"+on+"'. Refer to getFontList() for available fonts."),Vr||ur.noFallback||(Vr=ao.times[on])==null&&(Vr=ao.times.normal),Vr},Lc=D.__private__.putInfo=function(){var nt=Al(),on=function(Lr){return Lr};for(var ur in E!==null&&(on=Dr.encryptor(nt,0)),Zn("<<"),Zn("/Producer ("+Zl(on("jsPDF "+Ll.version))+")"),fr)fr.hasOwnProperty(ur)&&fr[ur]&&Zn("/"+ur.substr(0,1).toUpperCase()+ur.substr(1)+" ("+Zl(on(fr[ur]))+")");Zn("/CreationDate ("+Zl(on(zn))+")"),Zn(">>"),Zn("endobj")},Yc=D.__private__.putCatalog=function(nt){var on=(nt=nt||{}).rootDictionaryObjId||Cl;switch(Al(),Zn("<<"),Zn("/Type /Catalog"),Zn("/Pages "+on+" 0 R"),ds||(ds="fullwidth"),ds){case"fullwidth":Zn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Zn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Zn("/OpenAction [3 0 R /Fit]");break;case"original":Zn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ur=""+ds;ur.substr(ur.length-1)==="%"&&(ds=parseInt(ds)/100),typeof ds=="number"&&Zn("/OpenAction [3 0 R /XYZ null null "+Zt(ds)+"]")}switch(Yt||(Yt="continuous"),Yt){case"continuous":Zn("/PageLayout /OneColumn");break;case"single":Zn("/PageLayout /SinglePage");break;case"two":case"twoleft":Zn("/PageLayout /TwoColumnLeft");break;case"tworight":Zn("/PageLayout /TwoColumnRight")}Ls&&Zn("/PageMode /"+Ls),Sr.publish("putCatalog"),Zn(">>"),Zn("endobj")},et=D.__private__.putTrailer=function(){Zn("trailer"),Zn("<<"),Zn("/Size "+(ir+1)),Zn("/Root "+ir+" 0 R"),Zn("/Info "+(ir-1)+" 0 R"),E!==null&&Zn("/Encrypt "+Dr.oid+" 0 R"),Zn("/ID [ <"+qn+"> <"+qn+"> ]"),Zn(">>")},Ut=D.__private__.putHeader=function(){Zn("%PDF-"+J),Zn("%ºß¬à")},Qt=D.__private__.putXRef=function(){var nt="0000000000";Zn("xref"),Zn("0 "+(ir+1)),Zn("0000000000 65535 f ");for(var on=1;on<=ir;on++)typeof br[on]=="function"?Zn((nt+br[on]()).slice(-10)+" 00000 n "):br[on]!==void 0?Zn((nt+br[on]).slice(-10)+" 00000 n "):Zn("0000000000 00000 n ")},Wt=D.__private__.buildDocument=function(){hs(),zr(Rr),Sr.publish("buildDocument"),Ut(),ad(),Kd(),Gd(),E!==null&&dd(),Lc(),Yc();var nt=Mr;return Qt(),et(),Zn("startxref"),Zn(""+nt),Zn("%%EOF"),zr(Er[mn]),Rr.join(` +`)},Gn=D.__private__.getBlob=function(nt){return new Blob([Zs(nt)],{type:"application/pdf"})},nr=D.output=D.__private__.output=hc(function(nt,on){switch(typeof(on=on||{})=="string"?on={filename:on}:on.filename=on.filename||"generated.pdf",nt){case void 0:return Wt();case"save":D.save(on.filename);break;case"arraybuffer":return Zs(Wt());case"blob":return Gn(Wt());case"bloburi":case"bloburl":if(Sl.URL!==void 0&&typeof Sl.URL.createObjectURL=="function")return Sl.URL&&Sl.URL.createObjectURL(Gn(Wt()))||void 0;Hh.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ur="",Lr=Wt();try{ur=l$(Lr)}catch{ur=l$(unescape(encodeURIComponent(Lr)))}return"data:application/pdf;filename="+on.filename+";base64,"+ur;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Sl)==="[object Window]"){var Vr="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ps=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';on.pdfObjectUrl&&(Vr=on.pdfObjectUrl,ps="");var Bs=' + + + + +
+ + + + Index: reference/drawdb/robots.txt =================================================================== diff -u --- reference/drawdb/robots.txt (revision 0) +++ reference/drawdb/robots.txt (revision d513faf80143509bee70f80b4a37796aefcba22e) @@ -0,0 +1,8 @@ +# https://www.robotstxt.org/robotstxt.html +User-agent: * +Allow: / +Allow: /editor +Allow: /shortcuts +Allow: /templates +Disallow: /bug-report +Disallow: /survey \ No newline at end of file