@tachybase/module-web 0.23.40 → 0.23.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client/index.js
CHANGED
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
Copyright (c) 2018 Jed Watson.
|
|
123
123
|
Licensed under the MIT License (MIT), see
|
|
124
124
|
http://jedwatson.github.io/classnames
|
|
125
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(s=r(s,o(l)))}return s}function o(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var l in s)t.call(s,l)&&s[l]&&(a=r(a,l));return a}function r(s,a){return a?s?s+" "+a:s+a:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ms);var $c=Ms.exports;const K=xt($c);function Y(e,t){const n=Object.assign({},t.props);e.className&&(n.className=K(t.props.className,e.className)),e.style&&(n.style=Object.assign(Object.assign({},n.style),e.style)),e.tabIndex!==void 0&&(n.tabIndex=e.tabIndex);for(const o in e)e.hasOwnProperty(o)&&(o.startsWith("data-")||o.startsWith("aria-"))&&(n[o]=e[o]);return i.cloneElement(t,n)}function oe(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(o=>{n[o]!==void 0&&(t[o]=n[o])})}),t}function Uo(e,...t){for(let n=t.length-1;n>=0;n-=1)if(t[n]!==void 0)return t[n];return e}const Fs=10;function _c(e,t){return e>t&&e>Fs?"horizontal":t>e&&t>Fs?"vertical":""}function Pc(){const e=i.useRef(0),t=i.useRef(0),n=i.useRef(0),o=i.useRef(0),r=i.useRef(0),s=i.useRef(0),a=i.useRef(""),l=()=>a.current==="vertical",c=()=>a.current==="horizontal",u=()=>{n.current=0,o.current=0,r.current=0,s.current=0,a.current=""};return{move:g=>{const v=g.touches[0];n.current=v.clientX<0?0:v.clientX-e.current,o.current=v.clientY-t.current,r.current=Math.abs(n.current),s.current=Math.abs(o.current),a.current||(a.current=_c(r.current,s.current))},start:g=>{u(),e.current=g.touches[0].clientX,t.current=g.touches[0].clientY},reset:u,startX:e,startY:t,deltaX:n,deltaY:o,offsetX:r,offsetY:s,direction:a,isVertical:l,isHorizontal:c}}const Mc=Tt?window:void 0,Fc=["scroll","auto","overlay"];function Nc(e){return e.nodeType===1}function Oc(e,t=Mc){let n=e;for(;n&&n!==t&&Nc(n);){if(n===document.body)return t;const{overflowY:o}=window.getComputedStyle(n);if(Fc.includes(o)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return t}let On=!1;if(Tt)try{const e={};Object.defineProperty(e,"passive",{get(){On=!0}}),window.addEventListener("test-passive",null,e)}catch(e){}let en=0;const Ns="adm-overflow-hidden";function Tc(e){let t=e==null?void 0:e.parentElement;for(;t;){if(t.clientHeight<t.scrollHeight)return t;t=t.parentElement}return null}function Os(e,t){const n=Pc(),o=a=>{n.move(a);const l=n.deltaY.current>0?"10":"01",c=Oc(a.target,e.current);if(!c)return;if(t==="strict"){const p=Tc(a.target);if(p===document.body||p===document.documentElement){a.preventDefault();return}}const{scrollHeight:u,offsetHeight:d,scrollTop:m}=c,{height:g}=c.getBoundingClientRect();let v="11";m===0?v=d>=u?"00":"01":u<=Math.round(g+m)&&(v="10"),v!=="11"&&n.isVertical()&&!(parseInt(v,2)&parseInt(l,2))&&a.cancelable&&On&&a.preventDefault()},r=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",o,On?{passive:!1}:!1),en||document.body.classList.add(Ns),en++},s=()=>{en&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",o),en--,en||document.body.classList.remove(Ns))};i.useEffect(()=>{if(t)return r(),()=>{s()}},[t])}let Yo=nn();const Q=e=>tn(e,Yo);let Go=nn();Q.write=e=>tn(e,Go);let Tn=nn();Q.onStart=e=>tn(e,Tn);let qo=nn();Q.onFrame=e=>tn(e,qo);let Xo=nn();Q.onFinish=e=>tn(e,Xo);let Dt=[];Q.setTimeout=(e,t)=>{let n=Q.now()+t,o=()=>{let s=Dt.findIndex(a=>a.cancel==o);~s&&Dt.splice(s,1),ft-=~s?1:0},r={time:n,handler:e,cancel:o};return Dt.splice(Ts(n),0,r),ft+=1,Ds(),r};let Ts=e=>~(~Dt.findIndex(t=>t.time>e)||~Dt.length);Q.cancel=e=>{Tn.delete(e),qo.delete(e),Xo.delete(e),Yo.delete(e),Go.delete(e)},Q.sync=e=>{Jo=!0,Q.batchedUpdates(e),Jo=!1},Q.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...r){t=r,Q.onStart(n)}return o.handler=e,o.cancel=()=>{Tn.delete(n),t=null},o};let Qo=typeof window!="undefined"?window.requestAnimationFrame:()=>{};Q.use=e=>Qo=e,Q.now=typeof performance!="undefined"?()=>performance.now():Date.now,Q.batchedUpdates=e=>e(),Q.catch=console.error,Q.frameLoop="always",Q.advance=()=>{Q.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ls()};let dt=-1,ft=0,Jo=!1;function tn(e,t){Jo?(t.delete(e),e(0)):(t.add(e),Ds())}function Ds(){dt<0&&(dt=0,Q.frameLoop!=="demand"&&Qo(As))}function Dc(){dt=-1}function As(){~dt&&(Qo(As),Q.batchedUpdates(Ls))}function Ls(){let e=dt;dt=Q.now();let t=Ts(dt);if(t&&(Bs(Dt.splice(0,t),n=>n.handler()),ft-=t),!ft){Dc();return}Tn.flush(),Yo.flush(e?Math.min(64,dt-e):16.667),qo.flush(),Go.flush(),Xo.flush()}function nn(){let e=new Set,t=e;return{add(n){ft+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return ft-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,ft-=t.size,Bs(t,o=>o(n)&&e.add(o)),ft+=e.size,t=e)}}}function Bs(e,t){e.forEach(n=>{try{t(n)}catch(o){Q.catch(o)}})}function Ro(){}const Ac=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),A={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function rt(e,t){if(A.arr(e)){if(!A.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const se=(e,t)=>e.forEach(t);function Xe(e,t,n){if(A.arr(e)){for(let o=0;o<e.length;o++)t.call(n,e[o],`${o}`);return}for(const o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}const Te=e=>A.und(e)?[]:A.arr(e)?e:[e];function on(e,t){if(e.size){const n=Array.from(e);e.clear(),se(n,t)}}const rn=(e,...t)=>on(e,n=>n(...t)),er=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let tr,zs,mt=null,Vs=!1,nr=Ro;var Qe=Object.freeze({__proto__:null,get createStringInterpolator(){return tr},get to(){return zs},get colors(){return mt},get skipAnimation(){return Vs},get willAdvance(){return nr},assign:e=>{e.to&&(zs=e.to),e.now&&(Q.now=e.now),e.colors!==void 0&&(mt=e.colors),e.skipAnimation!=null&&(Vs=e.skipAnimation),e.createStringInterpolator&&(tr=e.createStringInterpolator),e.requestAnimationFrame&&Q.use(e.requestAnimationFrame),e.batchedUpdates&&(Q.batchedUpdates=e.batchedUpdates),e.willAdvance&&(nr=e.willAdvance),e.frameLoop&&(Q.frameLoop=e.frameLoop)}});const sn=new Set;let Le=[],or=[],Dn=0;const An={get idle(){return!sn.size&&!Le.length},start(e){Dn>e.priority?(sn.add(e),Q.onStart(Lc)):(Zs(e),Q(rr))},advance:rr,sort(e){if(Dn)Q.onFrame(()=>An.sort(e));else{const t=Le.indexOf(e);~t&&(Le.splice(t,1),js(e))}},clear(){Le=[],sn.clear()}};function Lc(){sn.forEach(Zs),sn.clear(),Q(rr)}function Zs(e){Le.includes(e)||js(e)}function js(e){Le.splice(Bc(Le,t=>t.priority>e.priority),0,e)}function rr(e){const t=or;for(let n=0;n<Le.length;n++){const o=Le[n];Dn=o.priority,o.idle||(nr(o),o.advance(e),o.idle||t.push(o))}return Dn=0,or=Le,or.length=0,Le=t,Le.length>0}function Bc(e,t){const n=e.findIndex(t);return n<0?e.length:n}const zc=(e,t,n)=>Math.min(Math.max(n,e),t),Vc={transparent:0,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,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,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,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},He="[-+]?\\d*\\.?\\d+",Ln=He+"%";function Bn(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Zc=new RegExp("rgb"+Bn(He,He,He)),jc=new RegExp("rgba"+Bn(He,He,He,He)),Kc=new RegExp("hsl"+Bn(He,Ln,Ln)),Wc=new RegExp("hsla"+Bn(He,Ln,Ln,He)),Hc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Uc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Yc=/^#([0-9a-fA-F]{6})$/,Gc=/^#([0-9a-fA-F]{8})$/;function qc(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Yc.exec(e))?parseInt(t[1]+"ff",16)>>>0:mt&&mt[e]!==void 0?mt[e]:(t=Zc.exec(e))?(At(t[1])<<24|At(t[2])<<16|At(t[3])<<8|255)>>>0:(t=jc.exec(e))?(At(t[1])<<24|At(t[2])<<16|At(t[3])<<8|Hs(t[4]))>>>0:(t=Hc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Gc.exec(e))?parseInt(t[1],16)>>>0:(t=Uc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Kc.exec(e))?(Ks(Ws(t[1]),zn(t[2]),zn(t[3]))|255)>>>0:(t=Wc.exec(e))?(Ks(Ws(t[1]),zn(t[2]),zn(t[3]))|Hs(t[4]))>>>0:null}function sr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ks(e,t,n){const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,s=sr(r,o,e+1/3),a=sr(r,o,e),l=sr(r,o,e-1/3);return Math.round(s*255)<<24|Math.round(a*255)<<16|Math.round(l*255)<<8}function At(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ws(e){return(parseFloat(e)%360+360)%360/360}function Hs(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function zn(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Us(e){let t=qc(e);if(t===null)return e;t=t||0;let n=(t&4278190080)>>>24,o=(t&16711680)>>>16,r=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${o}, ${r}, ${s})`}const an=(e,t,n)=>{if(A.fun(e))return e;if(A.arr(e))return an({range:e,output:t,extrapolate:n});if(A.str(e.output[0]))return tr(e);const o=e,r=o.output,s=o.range||[0,1],a=o.extrapolateLeft||o.extrapolate||"extend",l=o.extrapolateRight||o.extrapolate||"extend",c=o.easing||(u=>u);return u=>{const d=Qc(u,s);return Xc(u,s[d],s[d+1],r[d],r[d+1],c,a,l,o.map)}};function Xc(e,t,n,o,r,s,a,l,c){let u=c?c(e):e;if(u<t){if(a==="identity")return u;a==="clamp"&&(u=t)}if(u>n){if(l==="identity")return u;l==="clamp"&&(u=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=s(u),o===-1/0?u=-u:r===1/0?u=u+o:u=u*(r-o)+o,u)}function Qc(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}const Jc=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const o=n*e,r=t==="end"?Math.floor(o):Math.ceil(o);return zc(0,1,r/e)},Vn=1.70158,Zn=Vn*1.525,Ys=Vn+1,Gs=2*Math.PI/3,qs=2*Math.PI/4.5,jn=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Rc={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Ys*e*e*e-Vn*e*e,easeOutBack:e=>1+Ys*Math.pow(e-1,3)+Vn*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Zn+1)*2*e-Zn)/2:(Math.pow(2*e-2,2)*((Zn+1)*(e*2-2)+Zn)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Gs),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Gs)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*qs))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*qs)/2+1,easeInBounce:e=>1-jn(1-e),easeOutBounce:jn,easeInOutBounce:e=>e<.5?(1-jn(1-2*e))/2:(1+jn(2*e-1))/2,steps:Jc};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ir.apply(this,arguments)}const Lt=Symbol.for("FluidValue.get"),St=Symbol.for("FluidValue.observers"),Be=e=>!!(e&&e[Lt]),Me=e=>e&&e[Lt]?e[Lt]():e,Xs=e=>e[St]||null;function eu(e,t){e.eventObserved?e.eventObserved(t):e(t)}function ln(e,t){let n=e[St];n&&n.forEach(o=>{eu(o,t)})}class Qs{constructor(t){if(this[Lt]=void 0,this[St]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");tu(this,t)}}const tu=(e,t)=>Js(e,Lt,t);function Bt(e,t){if(e[Lt]){let n=e[St];n||Js(e,St,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function cn(e,t){let n=e[St];if(n&&n.has(t)){const o=n.size-1;o?n.delete(t):e[St]=null,e.observerRemoved&&e.observerRemoved(o,t)}}const Js=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Kn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,nu=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Rs=new RegExp(`(${Kn.source})(%|[a-z]+)`,"i"),ou=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Wn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,ei=e=>{const[t,n]=ru(e);if(!t||er())return e;const o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(n&&n.startsWith("--")){const r=window.getComputedStyle(document.documentElement).getPropertyValue(n);return r||e}else{if(n&&Wn.test(n))return ei(n);if(n)return n}return e},ru=e=>{const t=Wn.exec(e);if(!t)return[,];const[,n,o]=t;return[n,o]};let ar;const su=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,ti=e=>{ar||(ar=mt?new RegExp(`(${Object.keys(mt).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>Me(s).replace(Wn,ei).replace(nu,Us).replace(ar,Us)),n=t.map(s=>s.match(Kn).map(Number)),r=n[0].map((s,a)=>n.map(l=>{if(!(a in l))throw Error('The arity of each "output" value must be equal');return l[a]})).map(s=>an(ir({},e,{output:s})));return s=>{var a;const l=!Rs.test(t[0])&&((a=t.find(u=>Rs.test(u)))==null?void 0:a.replace(Kn,""));let c=0;return t[0].replace(Kn,()=>`${r[c++](s)}${l||""}`).replace(ou,su)}},lr="react-spring: ",ni=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${lr}once requires a function parameter`);return(...o)=>{n||(t(...o),n=!0)}},iu=ni(console.warn);function au(){iu(`${lr}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const lu=ni(console.warn);function cu(){lu(`${lr}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Hn(e){return A.str(e)&&(e[0]=="#"||/\d/.test(e)||!er()&&Wn.test(e)||e in(mt||{}))}const cr=er()?i.useEffect:i.useLayoutEffect,uu=()=>{const e=i.useRef(!1);return cr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function oi(){const e=i.useState()[1],t=uu();return()=>{t.current&&e(Math.random())}}function du(e,t){const[n]=i.useState(()=>({inputs:t,result:e()})),o=i.useRef(),r=o.current;let s=r;return s?t&&s.inputs&&fu(t,s.inputs)||(s={inputs:t,result:e()}):s=n,i.useEffect(()=>{o.current=s,r==n&&(n.inputs=n.result=void 0)},[s]),s.result}function fu(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const ri=e=>i.useEffect(e,mu),mu=[];function si(e){const t=i.useRef();return i.useEffect(()=>{t.current=e}),t.current}const un=Symbol.for("Animated:node"),hu=e=>!!e&&e[un]===e,Je=e=>e&&e[un],ur=(e,t)=>Ac(e,un,t),Un=e=>e&&e[un]&&e[un].getPayload();class ii{constructor(){this.payload=void 0,ur(this,this)}getPayload(){return this.payload||[]}}class zt extends ii{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,A.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new zt(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return A.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,A.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}}class Vt extends zt{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=an({output:[t,t]})}static create(t){return new Vt(t)}getValue(){let t=this._string;return t==null?this._string=this._toString(this._value):t}setValue(t){if(A.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=an({output:[this.getValue(),t]})),this._value=0,super.reset()}}const Yn={dependencies:null};class Gn extends ii{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const n={};return Xe(this.source,(o,r)=>{hu(o)?n[r]=o.getValue(t):Be(o)?n[r]=Me(o):t||(n[r]=o)}),n}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&se(this.payload,t=>t.reset())}_makePayload(t){if(t){const n=new Set;return Xe(t,this._addToPayload,n),Array.from(n)}}_addToPayload(t){Yn.dependencies&&Be(t)&&Yn.dependencies.add(t);const n=Un(t);n&&se(n,o=>this.add(o))}}class dr extends Gn{constructor(t){super(t)}static create(t){return new dr(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((o,r)=>o.setValue(t[r])).some(Boolean):(super.setValue(t.map(pu)),!0)}}function pu(e){return(Hn(e)?Vt:zt).create(e)}function fr(e){const t=Je(e);return t?t.constructor:A.arr(e)?dr:Hn(e)?Vt:zt}function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qn.apply(this,arguments)}const ai=(e,t)=>{const n=!A.fun(e)||e.prototype&&e.prototype.isReactComponent;return i.forwardRef((o,r)=>{const s=i.useRef(null),a=n&&i.useCallback(p=>{s.current=bu(r,p)},[r]),[l,c]=vu(o,t),u=oi(),d=()=>{const p=s.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,l.getValue(!0)):!1)===!1&&u()},m=new gu(d,c),g=i.useRef();cr(()=>(g.current=m,se(c,p=>Bt(p,m)),()=>{g.current&&(se(g.current.deps,p=>cn(p,g.current)),Q.cancel(g.current.update))})),i.useEffect(d,[]),ri(()=>()=>{const p=g.current;se(p.deps,y=>cn(y,p))});const v=t.getComponentProps(l.getValue());return X.createElement(e,qn({},v,{ref:a}))})};class gu{constructor(t,n){this.update=t,this.deps=n}eventObserved(t){t.type=="change"&&Q.write(this.update)}}function vu(e,t){const n=new Set;return Yn.dependencies=n,e.style&&(e=qn({},e,{style:t.createAnimatedStyle(e.style)})),e=new Gn(e),Yn.dependencies=null,[e,n]}function bu(e,t){return e&&(A.fun(e)?e(t):e.current=t),t}const li=Symbol.for("AnimatedComponent"),yu=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=r=>new Gn(r),getComponentProps:o=r=>r}={})=>{const r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},s=a=>{const l=ci(a)||"Anonymous";return A.str(a)?a=s[a]||(s[a]=ai(a,r)):a=a[li]||(a[li]=ai(a,r)),a.displayName=`Animated(${l})`,a};return Xe(e,(a,l)=>{A.arr(e)&&(l=ci(a)),s[l]=s(a)}),{animated:s}},ci=e=>A.str(e)?e:e&&A.str(e.displayName)?e.displayName:A.fun(e)&&e.name||null;function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},xe.apply(this,arguments)}function wt(e,...t){return A.fun(e)?e(...t):e}const dn=(e,t)=>e===!0||!!(t&&e&&(A.fun(e)?e(t):Te(e).includes(t))),ui=(e,t)=>A.obj(e)?t&&e[t]:e,di=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Cu=e=>e,mr=(e,t=Cu)=>{let n=xu;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const o={};for(const r of n){const s=t(e[r],r);A.und(s)||(o[r]=s)}return o},xu=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Su={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function wu(e){const t={};let n=0;if(Xe(e,(o,r)=>{Su[r]||(t[r]=o,n++)}),n)return t}function fi(e){const t=wu(e);if(t){const n={to:t};return Xe(e,(o,r)=>r in t||(n[r]=o)),n}return xe({},e)}function fn(e){return e=Me(e),A.arr(e)?e.map(fn):Hn(e)?Qe.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function ku(e){for(const t in e)return!0;return!1}function hr(e){return A.fun(e)||A.arr(e)&&A.obj(e[0])}function Eu(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Iu(e,t){if(t&&e.ref!==t){var n;(n=e.ref)==null||n.delete(e),t.add(e),e.ref=t}}const pr=xe({},{default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}}.default,{mass:1,damping:1,easing:Rc.linear,clamp:!1});class $u{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,pr)}}function _u(e,t,n){n&&(n=xe({},n),mi(n,t),t=xe({},n,t)),mi(e,t),Object.assign(e,t);for(const a in pr)e[a]==null&&(e[a]=pr[a]);let{mass:o,frequency:r,damping:s}=e;return A.und(r)||(r<.01&&(r=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*s*o/r),e}function mi(e,t){if(!A.und(t.decay))e.duration=void 0;else{const n=!A.und(t.tension)||!A.und(t.friction);(n||!A.und(t.frequency)||!A.und(t.damping)||!A.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}const hi=[];class Pu{constructor(){this.changed=!1,this.values=hi,this.toValues=null,this.fromValues=hi,this.to=void 0,this.from=void 0,this.config=new $u,this.immediate=!1}}function pi(e,{key:t,props:n,defaultProps:o,state:r,actions:s}){return new Promise((a,l)=>{var c;let u,d,m=dn((c=n.cancel)!=null?c:o==null?void 0:o.cancel,t);if(m)p();else{A.und(n.pause)||(r.paused=dn(n.pause,t));let y=o==null?void 0:o.pause;y!==!0&&(y=r.paused||dn(y,t)),u=wt(n.delay||0,t),y?(r.resumeQueue.add(v),s.pause()):(s.resume(),v())}function g(){r.resumeQueue.add(v),r.timeouts.delete(d),d.cancel(),u=d.time-Q.now()}function v(){u>0&&!Qe.skipAnimation?(r.delayed=!0,d=Q.setTimeout(p,u),r.pauseQueue.add(g),r.timeouts.add(d)):p()}function p(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(g),r.timeouts.delete(d),e<=(r.cancelId||0)&&(m=!0);try{s.start(xe({},n,{callId:e,cancel:m}),a)}catch(y){l(y)}}})}const gr=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Zt(e.get()):t.every(n=>n.noop)?gi(e.get()):Ue(e.get(),t.every(n=>n.finished)),gi=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ue=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Zt=e=>({value:e,cancelled:!0,finished:!1});function vi(e,t,n,o){const{callId:r,parentId:s,onRest:a}=t,{asyncTo:l,promise:c}=n;return!s&&e===l&&!t.reset?c:n.promise=me(this,null,function*(){n.asyncId=r,n.asyncTo=e;const u=mr(t,(b,C)=>C==="onRest"?void 0:b);let d,m;const g=new Promise((b,C)=>(d=b,m=C)),v=b=>{const C=r<=(n.cancelId||0)&&Zt(o)||r!==n.asyncId&&Ue(o,!1);if(C)throw b.result=C,m(b),b},p=(b,C)=>{const w=new bi,x=new yi;return me(this,null,function*(){if(Qe.skipAnimation)throw mn(n),x.result=Ue(o,!1),m(x),x;v(w);const S=A.obj(b)?xe({},b):xe({},C,{to:b});S.parentId=r,Xe(u,(I,M)=>{A.und(S[M])&&(S[M]=I)});const k=yield o.start(S);return v(w),n.paused&&(yield new Promise(I=>{n.resumeQueue.add(I)})),k})};let y;if(Qe.skipAnimation)return mn(n),Ue(o,!1);try{let b;A.arr(e)?b=(C=>me(this,null,function*(){for(const w of C)yield p(w)}))(e):b=Promise.resolve(e(p,o.stop.bind(o))),yield Promise.all([b.then(d),g]),y=Ue(o.get(),!0,!1)}catch(b){if(b instanceof bi)y=b.result;else if(b instanceof yi)y=b.result;else throw b}finally{r==n.asyncId&&(n.asyncId=s,n.asyncTo=s?l:void 0,n.promise=s?c:void 0)}return A.fun(a)&&Q.batchedUpdates(()=>{a(y,o,o.item)}),y})}function mn(e,t){on(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class bi extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class yi extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const vr=e=>e instanceof br;let Mu=1;class br extends Qs{constructor(...t){super(...t),this.id=Mu++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=Je(this);return t&&t.getValue()}to(...t){return Qe.to(this,t)}interpolate(...t){return au(),Qe.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,n=!1){ln(this,{type:"change",parent:this,value:t,idle:n})}_onPriorityChange(t){this.idle||An.sort(this),ln(this,{type:"priority",parent:this,priority:t})}}const kt=Symbol.for("SpringPhase"),Ci=1,yr=2,Cr=4,xr=e=>(e[kt]&Ci)>0,ht=e=>(e[kt]&yr)>0,hn=e=>(e[kt]&Cr)>0,xi=(e,t)=>t?e[kt]|=yr|Ci:e[kt]&=~yr,Si=(e,t)=>t?e[kt]|=Cr:e[kt]&=~Cr;class Fu extends br{constructor(t,n){if(super(),this.key=void 0,this.animation=new Pu,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!A.und(t)||!A.und(n)){const o=A.obj(t)?xe({},t):xe({},n,{from:t});A.und(o.default)&&(o.default=!0),this.start(o)}}get idle(){return!(ht(this)||this._state.asyncTo)||hn(this)}get goal(){return Me(this.animation.to)}get velocity(){const t=Je(this);return t instanceof zt?t.lastVelocity||0:t.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return xr(this)}get isAnimating(){return ht(this)}get isPaused(){return hn(this)}get isDelayed(){return this._state.delayed}advance(t){let n=!0,o=!1;const r=this.animation;let{config:s,toValues:a}=r;const l=Un(r.to);!l&&Be(r.to)&&(a=Te(Me(r.to))),r.values.forEach((d,m)=>{if(d.done)return;const g=d.constructor==Vt?1:l?l[m].lastPosition:a[m];let v=r.immediate,p=g;if(!v){if(p=d.lastPosition,s.tension<=0){d.done=!0;return}let y=d.elapsedTime+=t;const b=r.fromValues[m],C=d.v0!=null?d.v0:d.v0=A.arr(s.velocity)?s.velocity[m]:s.velocity;let w;const x=s.precision||(b==g?.005:Math.min(1,Math.abs(g-b)*.001));if(A.und(s.duration))if(s.decay){const S=s.decay===!0?.998:s.decay,k=Math.exp(-(1-S)*y);p=b+C/(1-S)*(1-k),v=Math.abs(d.lastPosition-p)<=x,w=C*k}else{w=d.lastVelocity==null?C:d.lastVelocity;const S=s.restVelocity||x/10,k=s.clamp?0:s.bounce,I=!A.und(k),M=b==g?d.v0>0:b<g;let O,L=!1;const F=1,N=Math.ceil(t/F);for(let W=0;W<N&&(O=Math.abs(w)>S,!(!O&&(v=Math.abs(g-p)<=x,v)));++W){I&&(L=p==g||p>g==M,L&&(w=-w*k,p=g));const z=-s.tension*1e-6*(p-g),_=-s.friction*.001*w,P=(z+_)/s.mass;w=w+P*F,p=p+w*F}}else{let S=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,d.durationProgress>0&&(d.elapsedTime=s.duration*d.durationProgress,y=d.elapsedTime+=t)),S=(s.progress||0)+y/this._memoizedDuration,S=S>1?1:S<0?0:S,d.durationProgress=S),p=b+s.easing(S)*(g-b),w=(p-d.lastPosition)/t,v=S==1}d.lastVelocity=w,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),v=!0)}l&&!l[m].done&&(v=!1),v?d.done=!0:n=!1,d.setValue(p,s.round)&&(o=!0)});const c=Je(this),u=c.getValue();if(n){const d=Me(r.to);(u!==d||o)&&!s.decay?(c.setValue(d),this._onChange(d)):o&&s.decay&&this._onChange(u),this._stop()}else o&&this._onChange(u)}set(t){return Q.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ht(this)){const{to:t,config:n}=this.animation;Q.batchedUpdates(()=>{this._onStart(),n.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,n){let o;return A.und(t)?(o=this.queue||[],this.queue=[]):o=[A.obj(t)?t:xe({},n,{to:t})],Promise.all(o.map(r=>this._update(r))).then(r=>gr(this,r))}stop(t){const{to:n}=this.animation;return this._focus(this.get()),mn(this._state,t&&this._lastCallId),Q.batchedUpdates(()=>this._stop(n,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){const n=this.key||"";let{to:o,from:r}=t;o=A.obj(o)?o[n]:o,(o==null||hr(o))&&(o=void 0),r=A.obj(r)?r[n]:r,r==null&&(r=void 0);const s={to:o,from:r};return xr(this)||(t.reverse&&([o,r]=[r,o]),r=Me(r),A.und(r)?Je(this)||this._set(o):this._set(r)),s}_update(t,n){let o=xe({},t);const{key:r,defaultProps:s}=this;o.default&&Object.assign(s,mr(o,(c,u)=>/^on/.test(u)?ui(c,r):c)),Ei(this,o,"onProps"),vn(this,"onProps",o,this);const a=this._prepareNode(o);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const l=this._state;return pi(++this._lastCallId,{key:r,props:o,defaultProps:s,state:l,actions:{pause:()=>{hn(this)||(Si(this,!0),rn(l.pauseQueue),vn(this,"onPause",Ue(this,pn(this,this.animation.to)),this))},resume:()=>{hn(this)&&(Si(this,!1),ht(this)&&this._resume(),rn(l.resumeQueue),vn(this,"onResume",Ue(this,pn(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(c=>{if(o.loop&&c.finished&&!(n&&c.noop)){const u=wi(o);if(u)return this._update(u,!0)}return c})}_merge(t,n,o){if(n.cancel)return this.stop(!0),o(Zt(this));const r=!A.und(t.to),s=!A.und(t.from);if(r||s)if(n.callId>this._lastToId)this._lastToId=n.callId;else return o(Zt(this));const{key:a,defaultProps:l,animation:c}=this,{to:u,from:d}=c;let{to:m=u,from:g=d}=t;s&&!r&&(!n.default||A.und(m))&&(m=g),n.reverse&&([m,g]=[g,m]);const v=!rt(g,d);v&&(c.from=g),g=Me(g);const p=!rt(m,u);p&&this._focus(m);const y=hr(n.to),{config:b}=c,{decay:C,velocity:w}=b;(r||s)&&(b.velocity=0),n.config&&!y&&_u(b,wt(n.config,a),n.config!==l.config?wt(l.config,a):void 0);let x=Je(this);if(!x||A.und(m))return o(Ue(this,!0));const S=A.und(n.reset)?s&&!n.default:!A.und(g)&&dn(n.reset,a),k=S?g:this.get(),I=fn(m),M=A.num(I)||A.arr(I)||Hn(I),O=!y&&(!M||dn(l.immediate||n.immediate,a));if(p){const W=fr(m);if(W!==x.constructor)if(O)x=this._set(I);else throw Error(`Cannot animate between ${x.constructor.name} and ${W.name}, as the "to" prop suggests`)}const L=x.constructor;let F=Be(m),N=!1;if(!F){const W=S||!xr(this)&&v;(p||W)&&(N=rt(fn(k),I),F=!N),(!rt(c.immediate,O)&&!O||!rt(b.decay,C)||!rt(b.velocity,w))&&(F=!0)}if(N&&ht(this)&&(c.changed&&!S?F=!0:F||this._stop(u)),!y&&((F||Be(u))&&(c.values=x.getPayload(),c.toValues=Be(m)?null:L==Vt?[1]:Te(I)),c.immediate!=O&&(c.immediate=O,!O&&!S&&this._set(u)),F)){const{onRest:W}=c;se(Ou,_=>Ei(this,n,_));const z=Ue(this,pn(this,u));rn(this._pendingCalls,z),this._pendingCalls.add(o),c.changed&&Q.batchedUpdates(()=>{c.changed=!S,W==null||W(z,this),S?wt(l.onRest,z):c.onStart==null||c.onStart(z,this)})}S&&this._set(k),y?o(vi(n.to,n,this._state,this)):F?this._start():ht(this)&&!p?this._pendingCalls.add(o):o(gi(k))}_focus(t){const n=this.animation;t!==n.to&&(Xs(this)&&this._detach(),n.to=t,Xs(this)&&this._attach())}_attach(){let t=0;const{to:n}=this.animation;Be(n)&&(Bt(n,this),vr(n)&&(t=n.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;Be(t)&&cn(t,this)}_set(t,n=!0){const o=Me(t);if(!A.und(o)){const r=Je(this);if(!r||!rt(o,r.getValue())){const s=fr(o);!r||r.constructor!=s?ur(this,s.create(o)):r.setValue(o),r&&Q.batchedUpdates(()=>{this._onChange(o,n)})}}return Je(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,vn(this,"onStart",Ue(this,pn(this,t.to)),this))}_onChange(t,n){n||(this._onStart(),wt(this.animation.onChange,t,this)),wt(this.defaultProps.onChange,t,this),super._onChange(t,n)}_start(){const t=this.animation;Je(this).reset(Me(t.to)),t.immediate||(t.fromValues=t.values.map(n=>n.lastPosition)),ht(this)||(xi(this,!0),hn(this)||this._resume())}_resume(){Qe.skipAnimation?this.finish():An.start(this)}_stop(t,n){if(ht(this)){xi(this,!1);const o=this.animation;se(o.values,s=>{s.done=!0}),o.toValues&&(o.onChange=o.onPause=o.onResume=void 0),ln(this,{type:"idle",parent:this});const r=n?Zt(this.get()):Ue(this.get(),pn(this,t!=null?t:o.to));rn(this._pendingCalls,r),o.changed&&(o.changed=!1,vn(this,"onRest",r,this))}}}function pn(e,t){const n=fn(t),o=fn(e.get());return rt(o,n)}function wi(e,t=e.loop,n=e.to){let o=wt(t);if(o){const r=o!==!0&&fi(o),s=(r||e).reverse,a=!r||r.reset;return gn(xe({},e,{loop:t,default:!1,pause:void 0,to:!s||hr(n)?n:void 0,from:a?e.from:void 0,reset:a},r))}}function gn(e){const{to:t,from:n}=e=fi(e),o=new Set;return A.obj(t)&&ki(t,o),A.obj(n)&&ki(n,o),e.keys=o.size?Array.from(o):null,e}function Nu(e){const t=gn(e);return A.und(t.default)&&(t.default=mr(t)),t}function ki(e,t){Xe(e,(n,o)=>n!=null&&t.add(o))}const Ou=["onStart","onRest","onChange","onPause","onResume"];function Ei(e,t,n){e.animation[n]=t[n]!==di(t,n)?ui(t[n],e.key):void 0}function vn(e,t,...n){var o,r,s,a;(o=(r=e.animation)[t])==null||o.call(r,...n),(s=(a=e.defaultProps)[t])==null||s.call(a,...n)}const Tu=["onStart","onChange","onRest"];let Du=1,Au=class{constructor(t,n){this.id=Du++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),t&&this.start(xe({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each((n,o)=>t[o]=n.get()),t}set(t){for(const n in t){const o=t[n];A.und(o)||this.springs[n].set(o)}}update(t){return t&&this.queue.push(gn(t)),this}start(t){let{queue:n}=this;return t?n=Te(t).map(gn):this.queue=[],this._flush?this._flush(this,n):(Fi(this,n),Sr(this,n))}stop(t,n){if(t!==!!t&&(n=t),n){const o=this.springs;se(Te(n),r=>o[r].stop(!!t))}else mn(this._state,this._lastAsyncId),this.each(o=>o.stop(!!t));return this}pause(t){if(A.und(t))this.start({pause:!0});else{const n=this.springs;se(Te(t),o=>n[o].pause())}return this}resume(t){if(A.und(t))this.start({pause:!1});else{const n=this.springs;se(Te(t),o=>n[o].resume())}return this}each(t){Xe(this.springs,t)}_onFrame(){const{onStart:t,onChange:n,onRest:o}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,on(t,([c,u])=>{u.value=this.get(),c(u,this,this._item)}));const a=!r&&this._started,l=s||a&&o.size?this.get():null;s&&n.size&&on(n,([c,u])=>{u.value=l,c(u,this,this._item)}),a&&(this._started=!1,on(o,([c,u])=>{u.value=l,c(u,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;Q.onFrame(this._onFrame)}};function Sr(e,t){return Promise.all(t.map(n=>Ii(e,n))).then(n=>gr(e,n))}function Ii(e,t,n){return me(this,null,function*(){const{keys:o,to:r,from:s,loop:a,onRest:l,onResolve:c}=t,u=A.obj(t.default)&&t.default;a&&(t.loop=!1),r===!1&&(t.to=null),s===!1&&(t.from=null);const d=A.arr(r)||A.fun(r)?r:void 0;d?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):se(Tu,y=>{const b=t[y];if(A.fun(b)){const C=e._events[y];t[y]=({finished:w,cancelled:x})=>{const S=C.get(b);S?(w||(S.finished=!1),x&&(S.cancelled=!0)):C.set(b,{value:null,finished:w||!1,cancelled:x||!1})},u&&(u[y]=t[y])}});const m=e._state;t.pause===!m.paused?(m.paused=t.pause,rn(t.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(t.pause=!0);const g=(o||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),v=t.cancel===!0||di(t,"cancel")===!0;(d||v&&m.asyncId)&&g.push(pi(++e._lastAsyncId,{props:t,state:m,actions:{pause:Ro,resume:Ro,start(y,b){v?(mn(m,e._lastAsyncId),b(Zt(e))):(y.onRest=l,b(vi(d,y,m,e)))}}})),m.paused&&(yield new Promise(y=>{m.resumeQueue.add(y)}));const p=gr(e,yield Promise.all(g));if(a&&p.finished&&!(n&&p.noop)){const y=wi(t,a,r);if(y)return Fi(e,[y]),Ii(e,y,!0)}return c&&Q.batchedUpdates(()=>c(p,e,e.item)),p})}function $i(e,t){const n=xe({},e.springs);return t&&se(Te(t),o=>{A.und(o.keys)&&(o=gn(o)),A.obj(o.to)||(o=xe({},o,{to:void 0})),Mi(n,o,r=>Pi(r))}),_i(e,n),n}function _i(e,t){Xe(t,(n,o)=>{e.springs[o]||(e.springs[o]=n,Bt(n,e))})}function Pi(e,t){const n=new Fu;return n.key=e,t&&Bt(n,t),n}function Mi(e,t,n){t.keys&&se(t.keys,o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)})}function Fi(e,t){se(t,n=>{Mi(e.springs,n,o=>Pi(o,e))})}function Lu(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}const Bu=["children"],Xn=e=>{let{children:t}=e,n=Lu(e,Bu);const o=i.useContext(Qn),r=n.pause||!!o.pause,s=n.immediate||!!o.immediate;n=du(()=>({pause:r,immediate:s}),[r,s]);const{Provider:a}=Qn;return X.createElement(a,{value:n},t)},Qn=zu(Xn,{});Xn.Provider=Qn.Provider,Xn.Consumer=Qn.Consumer;function zu(e,t){return Object.assign(e,X.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}const Vu=()=>{const e=[],t=function(r){cu();const s=[];return se(e,(a,l)=>{if(A.und(r))s.push(a.start());else{const c=n(r,a,l);c&&s.push(a.start(c))}}),s};t.current=e,t.add=function(o){e.includes(o)||e.push(o)},t.delete=function(o){const r=e.indexOf(o);~r&&e.splice(r,1)},t.pause=function(){return se(e,o=>o.pause(...arguments)),this},t.resume=function(){return se(e,o=>o.resume(...arguments)),this},t.set=function(o){se(e,r=>r.set(o))},t.start=function(o){const r=[];return se(e,(s,a)=>{if(A.und(o))r.push(s.start());else{const l=this._getProps(o,s,a);l&&r.push(s.start(l))}}),r},t.stop=function(){return se(e,o=>o.stop(...arguments)),this},t.update=function(o){return se(e,(r,s)=>r.update(this._getProps(o,r,s))),this};const n=function(r,s,a){return A.fun(r)?r(a,s):r};return t._getProps=n,t};function Zu(e,t,n){const o=A.fun(t)&&t;o&&!n&&(n=[]);const r=i.useMemo(()=>o||arguments.length==3?Vu():void 0,[]),s=i.useRef(0),a=oi(),l=i.useMemo(()=>({ctrls:[],queue:[],flush(C,w){const x=$i(C,w);return s.current>0&&!l.queue.length&&!Object.keys(x).some(k=>!C.springs[k])?Sr(C,w):new Promise(k=>{_i(C,x),l.queue.push(()=>{k(Sr(C,w))}),a()})}}),[]),c=i.useRef([...l.ctrls]),u=[],d=si(e)||0;i.useMemo(()=>{se(c.current.slice(e,d),C=>{Eu(C,r),C.stop(!0)}),c.current.length=e,m(d,e)},[e]),i.useMemo(()=>{m(0,Math.min(d,e))},n);function m(C,w){for(let x=C;x<w;x++){const S=c.current[x]||(c.current[x]=new Au(null,l.flush)),k=o?o(x,S):t[x];k&&(u[x]=Nu(k))}}const g=c.current.map((C,w)=>$i(C,u[w])),v=i.useContext(Xn),p=si(v),y=v!==p&&ku(v);cr(()=>{s.current++,l.ctrls=c.current;const{queue:C}=l;C.length&&(l.queue=[],se(C,w=>w())),se(c.current,(w,x)=>{r==null||r.add(w),y&&w.start({default:v});const S=u[x];S&&(Iu(w,S.ref),w.ref?w.queue.push(S):w.start(S))})}),ri(()=>()=>{se(l.ctrls,C=>C.stop(!0))});const b=g.map(C=>xe({},C));return r?[b,r]:b}function ze(e,t){const n=A.fun(e),[[o],r]=Zu(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[o,r]:o}let Ni;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(Ni||(Ni={}));class ju extends br{constructor(t,n){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=an(...n);const o=this._get(),r=fr(o);ur(this,r.create(o))}advance(t){const n=this._get(),o=this.get();rt(n,o)||(Je(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&Oi(this._active)&&wr(this)}_get(){const t=A.arr(this.source)?this.source.map(Me):Te(Me(this.source));return this.calc(...t)}_start(){this.idle&&!Oi(this._active)&&(this.idle=!1,se(Un(this),t=>{t.done=!1}),Qe.skipAnimation?(Q.batchedUpdates(()=>this.advance()),wr(this)):An.start(this))}_attach(){let t=1;se(Te(this.source),n=>{Be(n)&&Bt(n,this),vr(n)&&(n.idle||this._active.add(n),t=Math.max(t,n.priority+1))}),this.priority=t,this._start()}_detach(){se(Te(this.source),t=>{Be(t)&&cn(t,this)}),this._active.clear(),wr(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=Te(this.source).reduce((n,o)=>Math.max(n,(vr(o)?o.priority:0)+1),0))}}function Ku(e){return e.idle!==!1}function Oi(e){return!e.size||Array.from(e).every(Ku)}function wr(e){e.idle||(e.idle=!0,se(Un(e),t=>{t.done=!0}),ln(e,{type:"idle",parent:e}))}Qe.assign({createStringInterpolator:ti,to:(e,t)=>new ju(e,t)});function kr(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}const Wu=["style","children","scrollTop","scrollLeft","viewBox"],Ti=/^--/;function Hu(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Ti.test(e)&&!(bn.hasOwnProperty(e)&&bn[e])?t+"px":(""+t).trim()}const Di={};function Uu(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",o=t,{style:r,children:s,scrollTop:a,scrollLeft:l,viewBox:c}=o,u=kr(o,Wu),d=Object.values(u),m=Object.keys(u).map(g=>n||e.hasAttribute(g)?g:Di[g]||(Di[g]=g.replace(/([A-Z])/g,v=>"-"+v.toLowerCase())));s!==void 0&&(e.textContent=s);for(let g in r)if(r.hasOwnProperty(g)){const v=Hu(g,r[g]);Ti.test(g)?e.style.setProperty(g,v):e.style[g]=v}m.forEach((g,v)=>{e.setAttribute(g,d[v])}),a!==void 0&&(e.scrollTop=a),l!==void 0&&(e.scrollLeft=l),c!==void 0&&e.setAttribute("viewBox",c)}let bn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,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};const Yu=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Gu=["Webkit","Ms","Moz","O"];bn=Object.keys(bn).reduce((e,t)=>(Gu.forEach(n=>e[Yu(n,t)]=e[t]),e),bn);const qu=["x","y","z"],Xu=/^(matrix|translate|scale|rotate|skew)/,Qu=/^(translate)/,Ju=/^(rotate|skew)/,Er=(e,t)=>A.num(e)&&e!==0?e+t:e,Jn=(e,t)=>A.arr(e)?e.every(n=>Jn(n,t)):A.num(e)?e===t:parseFloat(e)===t;class Ru extends Gn{constructor(t){let{x:n,y:o,z:r}=t,s=kr(t,qu);const a=[],l=[];(n||o||r)&&(a.push([n||0,o||0,r||0]),l.push(c=>[`translate3d(${c.map(u=>Er(u,"px")).join(",")})`,Jn(c,0)])),Xe(s,(c,u)=>{if(u==="transform")a.push([c||""]),l.push(d=>[d,d===""]);else if(Xu.test(u)){if(delete s[u],A.und(c))return;const d=Qu.test(u)?"px":Ju.test(u)?"deg":"";a.push(Te(c)),l.push(u==="rotate3d"?([m,g,v,p])=>[`rotate3d(${m},${g},${v},${Er(p,d)})`,Jn(p,0)]:m=>[`${u}(${m.map(g=>Er(g,d)).join(",")})`,Jn(m,u.startsWith("scale")?1:0)])}}),a.length&&(s.transform=new ed(a,l)),super(s)}}class ed extends Qs{constructor(t,n){super(),this._value=null,this.inputs=t,this.transforms=n}get(){return this._value||(this._value=this._get())}_get(){let t="",n=!0;return se(this.inputs,(o,r)=>{const s=Me(o[0]),[a,l]=this.transforms[r](A.arr(s)?s:o.map(Me));t+=" "+a,n=n&&l}),n?"none":t}observerAdded(t){t==1&&se(this.inputs,n=>se(n,o=>Be(o)&&Bt(o,this)))}observerRemoved(t){t==0&&se(this.inputs,n=>se(n,o=>Be(o)&&cn(o,this)))}eventObserved(t){t.type=="change"&&(this._value=null),ln(this,t)}}const td=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],nd=["scrollTop","scrollLeft"];Qe.assign({batchedUpdates:Ot.unstable_batchedUpdates,createStringInterpolator:ti,colors:Vc});const ke=yu(td,{applyAnimatedValues:Uu,createAnimatedStyle:e=>new Ru(e),getComponentProps:e=>kr(e,nd)}).animated;function od(e){return(typeof e=="function"?e():e)||document.body}function Rn(e,t){if(Tt&&e){const n=od(e);return Ot.createPortal(t,n)}return t}function rd(e){const t=i.useRef(e);return e&&(t.current=!0),!!t.current}const eo=e=>sd(e.active,e.forceRender,e.destroyOnClose)?e.children:null;function sd(e,t,n){const o=rd(e);return t||e?!0:o?!n:!1}const id={click:"onClick",touchstart:"onTouchStart"};function Ai(e,t){const n=Object.assign({},t.props);for(const o of e){const r=id[o];n[r]=function(s){var a,l;s.stopPropagation(),(l=(a=t.props)[r])===null||l===void 0||l.call(a,s)}}return i.cloneElement(t,n)}const Ir="adm-mask",ad={default:.55,thin:.35,thick:.75},ld={black:"0, 0, 0",white:"255, 255, 255"},cd={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},to=e=>{const t=oe(cd,e),{locale:n}=Pe(),o=i.useRef(null);Os(o,t.visible&&t.disableBodyScroll);const r=i.useMemo(()=>{var d;const m=(d=ad[t.opacity])!==null&&d!==void 0?d:t.opacity,g=ld[t.color];return g?`rgba(${g}, ${m})`:t.color},[t.color,t.opacity]),[s,a]=i.useState(t.visible),l=te.useUnmountedRef(),{opacity:c}=ze({opacity:t.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{a(!0)},onRest:()=>{var d,m;l.current||(a(t.visible),t.visible?(d=t.afterShow)===null||d===void 0||d.call(t):(m=t.afterClose)===null||m===void 0||m.call(t))}}),u=Ai(t.stopPropagation,Y(t,i.createElement(ke.div,{className:Ir,ref:o,"aria-hidden":!0,style:Object.assign(Object.assign({},t.style),{background:r,opacity:c,display:s?void 0:"none"}),onClick:d=>{var m;d.target===d.currentTarget&&((m=t.onMaskClick)===null||m===void 0||m.call(t,d))}},t.onMaskClick&&i.createElement("div",{className:`${Ir}-aria-button`,role:"button","aria-label":n.Mask.name,onClick:t.onMaskClick}),i.createElement("div",{className:`${Ir}-content`},t.children))));return i.createElement(eo,{active:s,forceRender:t.forceRender,destroyOnClose:t.destroyOnClose},Rn(t.getContainer,u))};function ud(e){return X.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"AddOutline-AddOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"AddOutline-add"},X.createElement("rect",{id:"AddOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.createElement("path",{d:"M25.1,6.5 C25.3209139,6.5 25.5,6.6790861 25.5,6.9 L25.5,22.5 L41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L25.5,25.5 L25.5,41.1 C25.5,41.3209139 25.3209139,41.5 25.1,41.5 L22.9,41.5 C22.6790861,41.5 22.5,41.3209139 22.5,41.1 L22.5,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L22.5,22.5 L22.5,6.9 C22.5,6.6790861 22.6790861,6.5 22.9,6.5 L25.1,6.5 Z",id:"AddOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function Li(e){return X.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"CheckOutline-CheckOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CheckOutline-编组"},X.createElement("rect",{id:"CheckOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.createElement("path",{d:"M44.309608,12.6841286 L21.2180499,35.5661955 L21.2180499,35.5661955 C20.6343343,36.1446015 19.6879443,36.1446015 19.1042286,35.5661955 C19.0538201,35.5162456 19.0077648,35.4636155 18.9660627,35.4087682 C18.9113105,35.368106 18.8584669,35.3226694 18.808302,35.2729607 L3.6903839,20.2920499 C3.53346476,20.1365529 3.53231192,19.8832895 3.68780898,19.7263704 C3.7629255,19.6505669 3.86521855,19.6079227 3.97193622,19.6079227 L7.06238923,19.6079227 C7.16784214,19.6079227 7.26902895,19.6495648 7.34393561,19.7237896 L20.160443,32.4236157 L20.160443,32.4236157 L40.656066,12.115858 C40.7309719,12.0416387 40.8321549,12 40.9376034,12 L44.0280571,12 C44.248971,12 44.4280571,12.1790861 44.4280571,12.4 C44.4280571,12.5067183 44.3854124,12.609012 44.309608,12.6841286 Z",id:"CheckOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function dd(e){return X.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"CloseCircleFill-CloseCircleFill",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CloseCircleFill-编组"},X.createElement("rect",{id:"CloseCircleFill-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.createElement("path",{d:"M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M18.6753876,16 L15.5637812,16 C15.4576916,16 15.3559474,16.0421451 15.2809323,16.1171635 C15.124726,16.2733766 15.1247316,16.5266426 15.2809447,16.6828489 L15.2809447,16.6828489 L22.299066,23.7006641 L14.6828159,31.3171619 C14.6078042,31.3921761 14.5656632,31.4939157 14.5656632,31.6 C14.5656632,31.8209139 14.7447493,32 14.9656632,32 L14.9656632,32 L18.0753284,32 C18.1814068,32 18.2831412,31.9578638 18.3581544,31.8828594 L18.3581544,31.8828594 L24.420066,25.8216641 L30.4818451,31.8828564 C30.5568585,31.9578626 30.6585942,32 30.7646741,32 L30.7646741,32 L33.8763476,32 C33.9824309,32 34.0841695,31.9578599 34.1591835,31.8828496 C34.315397,31.7266436 34.3154031,31.4733776 34.1591972,31.3171641 L34.1591972,31.3171641 L26.542066,23.6996641 L33.5591874,16.6828489 C33.6342057,16.6078338 33.6763508,16.5060896 33.6763508,16.4 C33.6763508,16.1790861 33.4972647,16 33.2763508,16 L33.2763508,16 L30.1637654,16 C30.0576705,16 29.9559218,16.0421493 29.8809058,16.1171741 L29.8809058,16.1171741 L24.420066,21.5786641 L18.9582218,16.1171488 C18.883208,16.0421394 18.7814701,16 18.6753876,16 L18.6753876,16 Z",id:"CloseCircleFill-形状结合",fill:"currentColor",fillRule:"nonzero"}))))}function no(e){return X.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"CloseOutline-CloseOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CloseOutline-编组"},X.createElement("rect",{id:"CloseOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.createElement("path",{d:"M10.6085104,8.11754663 L24.1768397,21.8195031 L24.1768397,21.8195031 L37.7443031,8.1175556 C37.8194278,8.04168616 37.9217669,7.999 38.0285372,7.999 L41.1040268,7.999 C41.3249407,7.999 41.5040268,8.1780861 41.5040268,8.399 C41.5040268,8.50440471 41.4624226,8.60554929 41.3882578,8.68044752 L26.2773302,23.9408235 L26.2773302,23.9408235 L41.5021975,39.3175645 C41.65763,39.4745475 41.6563731,39.7278104 41.4993901,39.8832429 C41.4244929,39.9574004 41.3233534,39.999 41.2179546,39.999 L38.1434012,39.999 C38.0366291,39.999 37.9342885,39.9563124 37.8591634,39.8804408 L24.1768397,26.0621438 L24.1768397,26.0621438 L10.4936501,39.8804497 C10.4185257,39.9563159 10.3161889,39.999 10.2094212,39.999 L7.13584526,39.999 C6.91493136,39.999 6.73584526,39.8199139 6.73584526,39.599 C6.73584526,39.4936017 6.77744443,39.3924627 6.85160121,39.3175656 L22.0763492,23.9408235 L22.0763492,23.9408235 L6.96554081,8.68044639 C6.81010226,8.52346929 6.81134951,8.27020637 6.9683266,8.11476782 C7.04322474,8.04060377 7.14436883,7.999 7.24977299,7.999 L10.3242852,7.999 C10.4310511,7.999 10.5333863,8.04168267 10.6085104,8.11754663 Z",id:"CloseOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function fd(e){return X.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"DownOutline-DownOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",null,X.createElement("rect",{id:"DownOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.createElement("path",{d:"M5.11219264,16.3947957 L22.6612572,34.5767382 L22.6612572,34.5767382 C23.2125856,35.1304785 24.0863155,35.1630514 24.6755735,34.6744571 L24.7825775,34.5767382 L42.8834676,16.3956061 C42.9580998,16.320643 43,16.2191697 43,16.1133896 L43,12.9866673 C43,12.7657534 42.8209139,12.5866673 42.6,12.5866673 C42.4936115,12.5866673 42.391606,12.6290496 42.316542,12.7044413 L23.7816937,31.3201933 L23.7816937,31.3201933 L5.6866816,12.7237117 C5.53262122,12.5653818 5.27937888,12.5619207 5.121049,12.7159811 C5.04365775,12.7912854 5,12.8946805 5,13.0026627 L5,16.1170064 C5,16.2206403 5.04022164,16.3202292 5.11219264,16.3947957 Z",id:"DownOutline-down",fill:"currentColor",fillRule:"nonzero"}))))}function md(e){return X.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"LeftOutline-LeftOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"LeftOutline-编组"},X.createElement("rect",{id:"LeftOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.createElement("path",{d:"M31.7053818,5.11219264 L13.5234393,22.6612572 L13.5234393,22.6612572 C12.969699,23.2125856 12.9371261,24.0863155 13.4257204,24.6755735 L13.5234393,24.7825775 L31.7045714,42.8834676 C31.7795345,42.9580998 31.8810078,43 31.9867879,43 L35.1135102,43 C35.3344241,43 35.5135102,42.8209139 35.5135102,42.6 C35.5135102,42.4936115 35.4711279,42.391606 35.3957362,42.316542 L16.7799842,23.7816937 L16.7799842,23.7816937 L35.3764658,5.6866816 C35.5347957,5.53262122 35.5382568,5.27937888 35.3841964,5.121049 C35.3088921,5.04365775 35.205497,5 35.0975148,5 L31.9831711,5 C31.8795372,5 31.7799483,5.04022164 31.7053818,5.11219264 Z",id:"LeftOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function hd(e){return X.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"RightOutline-RightOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"RightOutline-RightOutlined"},X.createElement("rect",{id:"RightOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.createElement("path",{d:"M17.3947957,5.11219264 L35.5767382,22.6612572 L35.5767382,22.6612572 C36.1304785,23.2125856 36.1630514,24.0863155 35.6744571,24.6755735 L35.5767382,24.7825775 L17.3956061,42.8834676 C17.320643,42.9580998 17.2191697,43 17.1133896,43 L13.9866673,43 C13.7657534,43 13.5866673,42.8209139 13.5866673,42.6 C13.5866673,42.4936115 13.6290496,42.391606 13.7044413,42.316542 L32.3201933,23.7816937 L32.3201933,23.7816937 L13.7237117,5.6866816 C13.5653818,5.53262122 13.5619207,5.27937888 13.7159811,5.121049 C13.7912854,5.04365775 13.8946805,5 14.0026627,5 L17.1170064,5 C17.2206403,5 17.3202292,5.04022164 17.3947957,5.11219264 Z",id:"RightOutline-right",fill:"currentColor",fillRule:"nonzero"}))))}function pd(e){return X.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"SearchOutline-SearchOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"SearchOutline-编组"},X.createElement("rect",{id:"SearchOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.createElement("path",{d:"M10.2434135,10.1505371 C17.2346315,3.28315429 28.5696354,3.28315429 35.5608534,10.1505371 C42.3159331,16.7859644 42.5440954,27.4048667 36.2453405,34.3093889 L43.7095294,41.6422249 C43.8671196,41.7970419 43.8693677,42.0502979 43.7145508,42.2078881 C43.7128864,42.2095822 43.7112069,42.2112616 43.7095126,42.2129259 L42.1705322,43.7246464 C42.014915,43.8775072 41.7655181,43.8775006 41.6099089,43.7246316 L34.0775268,36.3248916 L34.0775268,36.3248916 C27.0485579,41.8551751 16.7593545,41.4200547 10.2434135,35.0195303 C3.25219551,28.1521474 3.25219551,17.0179199 10.2434135,10.1505371 Z M12.3532001,12.2229532 C6.52718516,17.9457722 6.52718516,27.2242951 12.3532001,32.9471142 C18.1792151,38.6699332 27.6250517,38.6699332 33.4510667,32.9471142 C39.2770817,27.2242951 39.2770817,17.9457722 33.4510667,12.2229532 C27.6250517,6.50013419 18.1792151,6.50013419 12.3532001,12.2229532 Z",id:"SearchOutline-形状",fill:"currentColor",fillRule:"nonzero"}))))}const gd={closeOnMaskClick:!1,closeIcon:i.createElement(no,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:()=>document.body,mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1};function vd(e){const[t,n]=i.useState(e);return te.useIsomorphicLayoutEffect(()=>{n(e)},[e]),t}function bd(e,t,n){return Math.max(t,Math.min(e,n))}const ve={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Bi(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function zi(e,t,n,o=.15){return o===0?bd(e,t,n):e<t?-Bi(t-e,n-t,o)+t:e>n?+Bi(e-n,n-t,o)+n:e}function yd(e,[t,n],[o,r]){const[[s,a],[l,c]]=e;return[zi(t,s,a,o),zi(n,l,c,r)]}function Cd(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xd(e){var t=Cd(e,"string");return typeof t=="symbol"?t:String(t)}function Ee(e,t,n){return t=xd(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vi(Object(n),!0).forEach(function(o){Ee(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}const Zi={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function ji(e){return e?e[0].toUpperCase()+e.slice(1):""}const Sd=["enter","leave"];function wd(e=!1,t){return e&&!Sd.includes(t)}function kd(e,t="",n=!1){const o=Zi[e],r=o&&o[t]||t;return"on"+ji(e)+ji(r)+(wd(n,r)?"Capture":"")}const Ed=["gotpointercapture","lostpointercapture"];function Id(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const o=Ed.includes(t)?"capturecapture":"capture",r=!!~t.indexOf(o);return r&&(t=t.replace("capture","")),{device:t,capture:r,passive:n}}function $d(e,t=""){const n=Zi[e],o=n&&n[t]||t;return e+o}function oo(e){return"touches"in e}function Ki(e){return oo(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function _d(e){return Array.from(e.touches).filter(t=>{var n,o;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(o=n.contains)===null||o===void 0?void 0:o.call(n,t.target))})}function Pd(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Wi(e){return oo(e)?Pd(e)[0]:e}function $r(e,t){try{const n=t.clientX-e.clientX,o=t.clientY-e.clientY,r=(t.clientX+e.clientX)/2,s=(t.clientY+e.clientY)/2,a=Math.hypot(n,o);return{angle:-(Math.atan2(n,o)*180)/Math.PI,distance:a,origin:[r,s]}}catch(n){}return null}function Md(e){return _d(e).map(t=>t.identifier)}function Hi(e,t){const[n,o]=Array.from(e.touches).filter(r=>t.includes(r.identifier));return $r(n,o)}function _r(e){const t=Wi(e);return oo(e)?t.identifier:t.pointerId}function Ui(e){const t=Wi(e);return[t.clientX,t.clientY]}const Yi=40,Gi=800;function qi(e){let{deltaX:t,deltaY:n,deltaMode:o}=e;return o===1?(t*=Yi,n*=Yi):o===2&&(t*=Gi,n*=Gi),[t,n]}function Fd(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s}=e;Object.assign(t,{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s})}return t}function ro(e,...t){return typeof e=="function"?e(...t):e}function Nd(){}function Od(...e){return e.length===0?Nd:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Xi(e,t){return Object.assign({},t,e||{})}const Td=32;class Qi{constructor(t,n,o){this.ctrl=t,this.args=n,this.key=o,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:o,args:r}=this;n[o]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=r,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,o=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=o.from?ro(o.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:o,shared:r}=this;n.args=this.args;let s=0;if(t&&(n.event=t,o.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,Fd(t)),r.down=r.pressed=r.buttons%2===1||r.touches>0,s=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const I=n._delta.map(Math.abs);ve.addTo(n._distance,I)}this.axisIntent&&this.axisIntent(t);const[a,l]=n._movement,[c,u]=o.threshold,{_step:d,values:m}=n;if(o.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(a)>=c&&m[0]),d[1]===!1&&(d[1]=Math.abs(l)>=u&&m[1])):(d[0]===!1&&(d[0]=Math.abs(a)>=c&&Math.sign(a)*c),d[1]===!1&&(d[1]=Math.abs(l)>=u&&Math.sign(l)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const g=[0,0];if(o.hasCustomTransform){const[I,M]=m;g[0]=d[0]!==!1?I-d[0]:0,g[1]=d[1]!==!1?M-d[1]:0}else g[0]=d[0]!==!1?a-d[0]:0,g[1]=d[1]!==!1?l-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(g);const v=n.offset,p=n._active&&!n._blocked||n.active;p&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=r[this.ingKey]=n._active,t&&(n.first&&("bounds"in o&&(n._bounds=ro(o.bounds,n)),this.setup&&this.setup()),n.movement=g,this.computeOffset()));const[y,b]=n.offset,[[C,w],[x,S]]=n._bounds;n.overflow=[y<C?-1:y>w?1:0,b<x?-1:b>S?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const k=n._active?o.rubberband||[0,0]:[0,0];if(n.offset=yd(n._bounds,n.offset,k),n.delta=ve.sub(n.offset,v),this.computeMovement(),p&&(!n.last||s>Td)){n.delta=ve.sub(n.offset,v);const I=n.delta.map(Math.abs);ve.addTo(n.distance,I),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&s>0&&(n.velocity=[I[0]/s,I[1]/s],n.timeDelta=s)}}emit(){const t=this.state,n=this.shared,o=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!o.triggerAllEvents)return;const r=this.handler(pe(pe(pe({},n),t),{},{[this.aliasKey]:t.values}));r!==void 0&&(t.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Dd([e,t],n){const o=Math.abs(e),r=Math.abs(t);if(o>r&&o>n)return"x";if(r>o&&r>n)return"y"}class Ji extends Qi{constructor(...t){super(...t),Ee(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=ve.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=ve.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,o=this.config;if(!n.axis&&t){const r=typeof o.axisThreshold=="object"?o.axisThreshold[Ki(t)]:o.axisThreshold;n.axis=Dd(n._movement,r)}n._blocked=(o.lockDirection||!!o.axis)&&!n.axis||!!o.axis&&o.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const Ad=e=>e,Ri=.15,ea={enabled(e=!0){return e},eventOptions(e,t,n){return pe(pe({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[Ri,Ri];case!1:return[0,0];default:return ve.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return ve.toVector(e)},transform(e,t,n){const o=e||n.shared.transform;return this.hasCustomTransform=!!o,o||Ad},threshold(e){return ve.toVector(e,0)}},Ld=0,jt=pe(pe({},ea),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=Ld){return e},bounds(e={}){if(typeof e=="function")return s=>jt.bounds(e(s));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:o=-1/0,bottom:r=1/0}=e;return[[t,n],[o,r]]}}),ta={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class Bd extends Ji{constructor(...t){super(...t),Ee(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),o=t.currentTarget.getBoundingClientRect(),r={left:n.left-o.left+t.offset[0],right:n.right-o.right+t.offset[0],top:n.top-o.top+t.offset[1],bottom:n.bottom-o.bottom+t.offset[1]};t._bounds=jt.bounds(r)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,o=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const r=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(r&&r.size>1&&o._pointerActive)&&(this.start(t),this.setupPointer(t),o._pointerId=_r(t),o._pointerActive=!0,this.computeValues(Ui(t)),this.computeInitial(),n.preventScrollAxis&&Ki(t)!=="mouse"?(o._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,o=this.config;if(!n._pointerActive)return;const r=_r(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;const s=Ui(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=ve.sub(s,n._values),this.computeValues(s)),ve.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(o.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===o.preventScrollAxis||o.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch(l){}const n=this.state,o=this.config;if(!n._active||!n._pointerActive)return;const r=_r(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[s,a]=n._distance;if(n.tap=s<=o.tapsThreshold&&a<=o.tapsThreshold,n.tap&&o.filterTaps)n._force=!0;else{const[l,c]=n._delta,[u,d]=n._movement,[m,g]=o.swipe.velocity,[v,p]=o.swipe.distance,y=o.swipe.duration;if(n.elapsedTime<y){const b=Math.abs(l/n.timeDelta),C=Math.abs(c/n.timeDelta);b>m&&Math.abs(u)>v&&(n.swipe[0]=Math.sign(l)),C>g&&Math.abs(d)>p&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,o=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,o,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,o,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,o,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,zd(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=ta[t.key];if(n){const o=this.state,r=t.shiftKey?10:t.altKey?.1:1;this.start(t),o._delta=n(this.config.keyboardDisplacement,r),o._keyboardActive=!0,ve.addTo(o._movement,o._delta),this.compute(t),this.emit()}}keyUp(t){t.key in ta&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function zd(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const yn=typeof window!="undefined"&&window.document&&window.document.createElement;function na(){return yn&&"ontouchstart"in window}function Vd(){return na()||yn&&window.navigator.maxTouchPoints>1}function Zd(){return yn&&"onpointerdown"in window}function jd(){return yn&&"exitPointerLock"in window.document}function Kd(){try{return"constructor"in GestureEvent}catch(e){return!1}}const Ve={isBrowser:yn,gesture:Kd(),touch:na(),touchscreen:Vd(),pointer:Zd(),pointerLock:jd()},Wd=250,Hd=180,Ud=.5,Yd=50,Gd=250,qd=10,oa={mouse:0,touch:0,pen:8},Xd=pe(pe({},jt),{},{device(e,t,{pointer:{touch:n=!1,lock:o=!1,mouse:r=!1}={}}){return this.pointerLock=o&&Ve.pointerLock,Ve.touch&&n?"touch":this.pointerLock?"mouse":Ve.pointer&&!r?"pointer":Ve.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?Wd:void 0,!(!Ve.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:o=1,keys:r=!0}={}}){return this.pointerButtons=o,this.keys=r,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:o=3,axis:r=void 0}){const s=ve.toVector(e,n?o:r?1:0);return this.filterTaps=n,this.tapsThreshold=o,s},swipe({velocity:e=Ud,distance:t=Yd,duration:n=Gd}={}){return{velocity:this.transform(ve.toVector(e)),distance:this.transform(ve.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return Hd;case!1:return 0;default:return e}},axisThreshold(e){return e?pe(pe({},oa),e):oa},keyboardDisplacement(e=qd){return e}});function ra(e){const[t,n]=e.overflow,[o,r]=e._delta,[s,a]=e._direction;(t<0&&o>0&&s<0||t>0&&o<0&&s>0)&&(e._movement[0]=e._movementBound[0]),(n<0&&r>0&&a<0||n>0&&r<0&&a>0)&&(e._movement[1]=e._movementBound[1])}const Qd=30,Jd=100;class Rd extends Qi{constructor(...t){super(...t),Ee(this,"ingKey","pinching"),Ee(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const t=this.state;t._touchIds=[],t.canceled=!1,t.cancel=this.cancel.bind(this),t.turns=0}computeOffset(){const{type:t,movement:n,lastOffset:o}=this.state;t==="wheel"?this.state.offset=ve.add(n,o):this.state.offset=[(1+n[0])*o[0],n[1]+o[1]]}computeMovement(){const{offset:t,lastOffset:n}=this.state;this.state.movement=[t[0]/n[0],t[1]-n[1]]}axisIntent(){const t=this.state,[n,o]=t._movement;if(!t.axis){const r=Math.abs(n)*Qd-Math.abs(o);r<0?t.axis="angle":r>0&&(t.axis="scale")}}restrictToAxis(t){this.config.lockDirection&&(this.state.axis==="scale"?t[1]=0:this.state.axis==="angle"&&(t[0]=0))}cancel(){const t=this.state;t.canceled||setTimeout(()=>{t.canceled=!0,t._active=!1,this.compute(),this.emit()},0)}touchStart(t){this.ctrl.setEventIds(t);const n=this.state,o=this.ctrl.touchIds;if(n._active&&n._touchIds.every(s=>o.has(s))||o.size<2)return;this.start(t),n._touchIds=Array.from(o).slice(0,2);const r=Hi(t,n._touchIds);r&&this.pinchStart(t,r)}pointerStart(t){if(t.buttons!=null&&t.buttons%2!==1)return;this.ctrl.setEventIds(t),t.target.setPointerCapture(t.pointerId);const n=this.state,o=n._pointerEvents,r=this.ctrl.pointerIds;if(n._active&&Array.from(o.keys()).every(a=>r.has(a))||(o.size<2&&o.set(t.pointerId,t),n._pointerEvents.size<2))return;this.start(t);const s=$r(...Array.from(o.values()));s&&this.pinchStart(t,s)}pinchStart(t,n){const o=this.state;o.origin=n.origin,this.computeValues([n.distance,n.angle]),this.computeInitial(),this.compute(t),this.emit()}touchMove(t){if(!this.state._active)return;const n=Hi(t,this.state._touchIds);n&&this.pinchMove(t,n)}pointerMove(t){const n=this.state._pointerEvents;if(n.has(t.pointerId)&&n.set(t.pointerId,t),!this.state._active)return;const o=$r(...Array.from(n.values()));o&&this.pinchMove(t,o)}pinchMove(t,n){const o=this.state,r=o._values[1],s=n.angle-r;let a=0;Math.abs(s)>270&&(a+=Math.sign(s)),this.computeValues([n.distance,n.angle-360*a]),o.origin=n.origin,o.turns=a,o._movement=[o._values[0]/o._initial[0]-1,o._values[1]-o._initial[1]],this.compute(t),this.emit()}touchEnd(t){this.ctrl.setEventIds(t),this.state._active&&this.state._touchIds.some(n=>!this.ctrl.touchIds.has(n))&&(this.state._active=!1,this.compute(t),this.emit())}pointerEnd(t){const n=this.state;this.ctrl.setEventIds(t);try{t.target.releasePointerCapture(t.pointerId)}catch(o){}n._pointerEvents.has(t.pointerId)&&n._pointerEvents.delete(t.pointerId),n._active&&n._pointerEvents.size<2&&(n._active=!1,this.compute(t),this.emit())}gestureStart(t){t.cancelable&&t.preventDefault();const n=this.state;n._active||(this.start(t),this.computeValues([t.scale,t.rotation]),n.origin=[t.clientX,t.clientY],this.compute(t),this.emit())}gestureMove(t){if(t.cancelable&&t.preventDefault(),!this.state._active)return;const n=this.state;this.computeValues([t.scale,t.rotation]),n.origin=[t.clientX,t.clientY];const o=n._movement;n._movement=[t.scale-1,t.rotation],n._delta=ve.sub(n._movement,o),this.compute(t),this.emit()}gestureEnd(t){this.state._active&&(this.state._active=!1,this.compute(t),this.emit())}wheel(t){const n=this.config.modifierKey;n&&(Array.isArray(n)?!n.find(o=>t[o]):!t[n])||(this.state._active?this.wheelChange(t):this.wheelStart(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(t){this.start(t),this.wheelChange(t)}wheelChange(t){"uv"in t||t.cancelable&&t.preventDefault();const o=this.state;o._delta=[-qi(t)[1]/Jd*o.offset[0],0],ve.addTo(o._movement,o._delta),ra(o),this.state.origin=[t.clientX,t.clientY],this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){const n=this.config.device;n&&(t(n,"start",this[n+"Start"].bind(this)),t(n,"change",this[n+"Move"].bind(this)),t(n,"end",this[n+"End"].bind(this)),t(n,"cancel",this[n+"End"].bind(this)),t("lostPointerCapture","",this[n+"End"].bind(this))),this.config.pinchOnWheel&&t("wheel","",this.wheel.bind(this),{passive:!1})}}const e1=pe(pe({},ea),{},{device(e,t,{shared:n,pointer:{touch:o=!1}={}}){if(n.target&&!Ve.touch&&Ve.gesture)return"gesture";if(Ve.touch&&o)return"touch";if(Ve.touchscreen){if(Ve.pointer)return"pointer";if(Ve.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:o={}}){const r=a=>{const l=Xi(ro(n,a),{min:-1/0,max:1/0});return[l.min,l.max]},s=a=>{const l=Xi(ro(o,a),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof n!="function"&&typeof o!="function"?[r(),s()]:a=>[r(a),s(a)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",ve.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});pe(pe({},jt),{},{mouseOnly:(e=!0)=>e});class t1 extends Ji{constructor(...t){super(...t),Ee(this,"ingKey","wheeling")}wheel(t){this.state._active||this.start(t),this.wheelChange(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(t){const n=this.state;n._delta=qi(t),ve.addTo(n._movement,n._delta),ra(n),this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){t("wheel","",this.wheel.bind(this))}}const n1=jt;pe(pe({},jt),{},{mouseOnly:(e=!0)=>e});const Pr=new Map,Mr=new Map;function Fr(e){Pr.set(e.key,e.engine),Mr.set(e.key,e.resolver)}const sa={key:"drag",engine:Bd,resolver:Xd},o1={key:"pinch",engine:Rd,resolver:e1},r1={key:"wheel",engine:t1,resolver:n1};function s1(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function i1(e,t){if(e==null)return{};var n=s1(e,t),o,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}const a1={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=Ve.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},l1=["target","eventOptions","window","enabled","transform"];function so(e={},t){const n={};for(const[o,r]of Object.entries(t))switch(typeof r){case"function":n[o]=r.call(n,e[o],o,e);break;case"object":n[o]=so(e[o],r);break;case"boolean":r&&(n[o]=e[o]);break}return n}function c1(e,t,n={}){const o=e,{target:r,eventOptions:s,window:a,enabled:l,transform:c}=o,u=i1(o,l1);if(n.shared=so({target:r,eventOptions:s,window:a,enabled:l,transform:c},a1),t){const d=Mr.get(t);n[t]=so(pe({shared:n.shared},u),d)}else for(const d in u){const m=Mr.get(d);m&&(n[d]=so(pe({shared:n.shared},u[d]),m))}return n}class ia{constructor(t,n){Ee(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,o,r,s){const a=this._listeners,l=$d(n,o),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=pe(pe({},c),s);t.addEventListener(l,r,u);const d=()=>{t.removeEventListener(l,r,u),a.delete(d)};return a.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class u1{constructor(){Ee(this,"_timeouts",new Map)}add(t,n,o=140,...r){this.remove(t),this._timeouts.set(t,window.setTimeout(n,o,...r))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class d1{constructor(t){Ee(this,"gestures",new Set),Ee(this,"_targetEventStore",new ia(this)),Ee(this,"gestureEventStores",{}),Ee(this,"gestureTimeoutStores",{}),Ee(this,"handlers",{}),Ee(this,"config",{}),Ee(this,"pointerIds",new Set),Ee(this,"touchIds",new Set),Ee(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),f1(this,t)}setEventIds(t){if(oo(t))return this.touchIds=new Set(Md(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=c1(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,o={};let r;if(!(n.target&&(r=n.target(),!r))){if(n.enabled){for(const a of this.gestures){const l=this.config[a],c=aa(o,l.eventOptions,!!r);if(l.enabled){const u=Pr.get(a);new u(this,t,a).bind(c)}}const s=aa(o,n.eventOptions,!!r);for(const a in this.nativeHandlers)s(a,"",l=>this.nativeHandlers[a](pe(pe({},this.state.shared),{},{event:l,args:t})),void 0,!0)}for(const s in o)o[s]=Od(...o[s]);if(!r)return o;for(const s in o){const{device:a,capture:l,passive:c}=Id(s);this._targetEventStore.add(r,a,"",o[s],{capture:l,passive:c})}}}}function Kt(e,t){e.gestures.add(t),e.gestureEventStores[t]=new ia(e,t),e.gestureTimeoutStores[t]=new u1}function f1(e,t){t.drag&&Kt(e,"drag"),t.wheel&&Kt(e,"wheel"),t.scroll&&Kt(e,"scroll"),t.move&&Kt(e,"move"),t.pinch&&Kt(e,"pinch"),t.hover&&Kt(e,"hover")}const aa=(e,t,n)=>(o,r,s,a={},l=!1)=>{var c,u;const d=(c=a.capture)!==null&&c!==void 0?c:t.capture,m=(u=a.passive)!==null&&u!==void 0?u:t.passive;let g=l?o:kd(o,r,d);n&&m&&(g+="Passive"),e[g]=e[g]||[],e[g].push(s)},m1=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function h1(e){const t={},n={},o=new Set;for(let r in e)m1.test(r)?(o.add(RegExp.lastMatch),n[r]=e[r]):t[r]=e[r];return[n,t,o]}function Wt(e,t,n,o,r,s){if(!e.has(n)||!Pr.has(o))return;const a=n+"Start",l=n+"End",c=u=>{let d;return u.first&&a in t&&t[a](u),n in t&&(d=t[n](u)),u.last&&l in t&&t[l](u),d};r[o]=c,s[o]=s[o]||{}}function p1(e,t){const[n,o,r]=h1(e),s={};return Wt(r,n,"onDrag","drag",s,t),Wt(r,n,"onWheel","wheel",s,t),Wt(r,n,"onScroll","scroll",s,t),Wt(r,n,"onPinch","pinch",s,t),Wt(r,n,"onMove","move",s,t),Wt(r,n,"onHover","hover",s,t),{handlers:s,config:t,nativeHandlers:o}}function Nr(e,t={},n,o){const r=i.useMemo(()=>new d1(e),[]);if(r.applyHandlers(e,o),r.applyConfig(t,n),i.useEffect(r.effect.bind(r)),i.useEffect(()=>r.clean.bind(r),[]),t.target===void 0)return r.bind.bind(r)}function io(e,t){return Fr(sa),Nr({drag:e},t||{},"drag")}function g1(e,t){return Fr(r1),Nr({wheel:e},t||{},"wheel")}function v1(e){return e.forEach(Fr),function(n,o){const{handlers:r,nativeHandlers:s,config:a}=p1(n,o||{});return Nr(r,a,void 0,s)}}const ao="adm-popup",b1=Object.assign(Object.assign({},gd),{closeOnSwipe:!1,position:"bottom"}),Ht=e=>{const{locale:t,popup:n={}}=Pe(),o=oe(b1,n,e),r=K(`${ao}-body`,o.bodyClassName,`${ao}-body-position-${o.position}`),[s,a]=i.useState(o.visible),l=i.useRef(null);Os(l,o.disableBodyScroll&&s?"strict":!1),te.useIsomorphicLayoutEffect(()=>{o.visible&&a(!0)},[o.visible]);const c=te.useUnmountedRef(),{percent:u}=ze({percent:o.visible?0:100,config:{precision:.1,mass:.4,tension:300,friction:30},onRest:()=>{var v,p;c.current||(a(o.visible),o.visible?(v=o.afterShow)===null||v===void 0||v.call(o):(p=o.afterClose)===null||p===void 0||p.call(o))}}),d=io(({swipe:[,v]})=>{var p;o.closeOnSwipe&&(v===1&&o.position==="bottom"||v===-1&&o.position==="top")&&((p=o.onClose)===null||p===void 0||p.call(o))},{axis:"y",enabled:["top","bottom"].includes(o.position)}),m=vd(s&&o.visible),g=Ai(o.stopPropagation,Y(o,i.createElement("div",Object.assign({className:ao,onClick:o.onClick,style:{display:s?void 0:"none",touchAction:["top","bottom"].includes(o.position)?"none":"auto"}},d()),o.mask&&i.createElement(to,{visible:m,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose,onMaskClick:v=>{var p,y;(p=o.onMaskClick)===null||p===void 0||p.call(o,v),o.closeOnMaskClick&&((y=o.onClose)===null||y===void 0||y.call(o))},className:o.maskClassName,style:o.maskStyle,disableBodyScroll:!1,stopPropagation:o.stopPropagation}),i.createElement(ke.div,{className:r,style:Object.assign(Object.assign({},o.bodyStyle),{pointerEvents:u.to(v=>v===0?"unset":"none"),transform:u.to(v=>o.position==="bottom"?`translate(0, ${v}%)`:o.position==="top"?`translate(0, -${v}%)`:o.position==="left"?`translate(-${v}%, 0)`:o.position==="right"?`translate(${v}%, 0)`:"none")}),ref:l},o.showCloseButton&&i.createElement("a",{className:K(`${ao}-close-icon`,"adm-plain-anchor"),onClick:()=>{var v;(v=o.onClose)===null||v===void 0||v.call(o)},role:"button","aria-label":t.common.close},o.closeIcon),o.children))));return i.createElement(eo,{active:s,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose},Rn(o.getContainer,g))},la="adm-safe-area",Cn=e=>Y(e,i.createElement("div",{className:K(la,`${la}-position-${e.position}`)})),lo=Object.assign({},nc),{version:y1,render:C1,unmountComponentAtNode:x1}=lo;let co;try{Number((y1||"").split(".")[0])>=18&&lo.createRoot&&(co=lo.createRoot)}catch(e){}function ca(e){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:t}=lo;t&&typeof t=="object"&&(t.usingClientEntryPoint=e)}const uo="__antd_mobile_root__";function S1(e,t){C1(e,t)}function w1(e,t){ca(!0);const n=t[uo]||co(t);ca(!1),n.render(e),t[uo]=n}function k1(e,t){if(co){w1(e,t);return}S1(e,t)}function E1(e){return x1(e)}function I1(e){return yt(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var t;(t=e[uo])===null||t===void 0||t.unmount(),delete e[uo]})})}function $1(e){return co?I1(e):E1(e)}function Or(e){const t=document.createElement("div");document.body.appendChild(t);function n(){$1(t)&&t.parentNode&&t.parentNode.removeChild(t)}return k1(e,t),n}function xn(e){const t=i.forwardRef((r,s)=>{const[a,l]=i.useState(!1),c=i.useRef(!1),[u,d]=i.useState(e),m=i.useRef(0);i.useEffect(()=>{c.current?v():l(!0)},[]);function g(){var p,y;c.current=!0,l(!1),(y=(p=u.props).onClose)===null||y===void 0||y.call(p)}function v(){var p,y;o(),(y=(p=u.props).afterClose)===null||y===void 0||y.call(p)}return i.useImperativeHandle(s,()=>({close:g,replace:p=>{var y,b;m.current++,(b=(y=u.props).afterClose)===null||b===void 0||b.call(y),d(p)}})),i.cloneElement(u,Object.assign(Object.assign({},u.props),{key:m.current,visible:a,onClose:g,afterClose:v}))}),n=i.createRef(),o=Or(i.createElement(t,{ref:n}));return{close:()=>yt(this,void 0,void 0,function*(){var r,s,a;n.current?(a=n.current)===null||a===void 0||a.close():(o(),(s=(r=e.props).afterClose)===null||s===void 0||s.call(r))}),replace:r=>{var s;(s=n.current)===null||s===void 0||s.replace(r)},isRendered:()=>!!n.current}}const _e="adm-action-sheet",_1={visible:!1,actions:[],cancelText:"",closeOnAction:!1,closeOnMaskClick:!0,safeArea:!0,destroyOnClose:!1,forceRender:!1},ua=e=>{const t=oe(_1,e),{styles:n}=t;return i.createElement(Ht,{visible:t.visible,onMaskClick:()=>{var o,r;(o=t.onMaskClick)===null||o===void 0||o.call(t),t.closeOnMaskClick&&((r=t.onClose)===null||r===void 0||r.call(t))},afterClose:t.afterClose,className:K(`${_e}-popup`,t.popupClassName),style:t.popupStyle,getContainer:t.getContainer,destroyOnClose:t.destroyOnClose,forceRender:t.forceRender,bodyStyle:n==null?void 0:n.body,maskStyle:n==null?void 0:n.mask},Y(t,i.createElement("div",{className:_e},t.extra&&i.createElement("div",{className:`${_e}-extra`},t.extra),i.createElement("div",{className:`${_e}-button-list`},t.actions.map((o,r)=>i.createElement("div",{key:o.key,className:`${_e}-button-item-wrapper`},i.createElement("a",{className:K("adm-plain-anchor",`${_e}-button-item`,{[`${_e}-button-item-danger`]:o.danger,[`${_e}-button-item-disabled`]:o.disabled,[`${_e}-button-item-bold`]:o.bold}),onClick:()=>{var s,a,l;(s=o.onClick)===null||s===void 0||s.call(o),(a=t.onAction)===null||a===void 0||a.call(t,o,r),t.closeOnAction&&((l=t.onClose)===null||l===void 0||l.call(t))},role:"option","aria-disabled":o.disabled},i.createElement("div",{className:`${_e}-button-item-name`},o.text),o.description&&i.createElement("div",{className:`${_e}-button-item-description`},o.description))))),t.cancelText&&i.createElement("div",{className:`${_e}-cancel`,role:"option","aria-label":t.cancelText},i.createElement("div",{className:`${_e}-button-item-wrapper`},i.createElement("a",{className:K("adm-plain-anchor",`${_e}-button-item`),onClick:t.onClose},i.createElement("div",{className:`${_e}-button-item-name`},t.cancelText)))),t.safeArea&&i.createElement(Cn,{position:"bottom"}))))};function P1(e){return xn(i.createElement(ua,Object.assign({},e)))}const M1=we(ua,{show:P1}),da="adm-auto-center",F1=e=>Y(e,i.createElement("div",{className:da},i.createElement("div",{className:`${da}-content`},e.children)));var Tr={},N1=Ct&&Ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tr,"__esModule",{value:!0});var Dr=Tr.staged=void 0;const O1=N1(i);function fa(e){return typeof e=="function"?O1.default.createElement(T1,{stage:e}):e}function T1(e){const t=e.stage();return fa(t)}function D1(e){return function(n,o){const r=e(n,o);return fa(r)}}Dr=Tr.staged=D1;function Et(e){return typeof e=="number"?`${e}px`:e}const A1=e=>{const t=i.useRef(null),[n]=te.useInViewport(t);return i.useEffect(()=>{n&&e.onActive()},[n]),i.createElement("div",{ref:t})},Ar=te.createUpdateEffect(te.useIsomorphicLayoutEffect),L1=()=>i.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M41.396 6.234c1.923 0 3.487 1.574 3.487 3.505v29.14c0 1.937-1.568 3.51-3.491 3.51H6.604c-1.923 0-3.487-1.573-3.487-3.51V9.745c0-1.936 1.564-3.51 3.487-3.51Zm0 2.847H6.604c-.355 0-.654.3-.654.658V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.405 2.405 0 0 1 1.933.752l4.182 4.525 7.58-11.005a2.374 2.374 0 0 1 1.96-1.01c.79 0 1.532.38 1.966 1.01L42.05 34.89V9.74a.664.664 0 0 0-.654-.658Zm-28.305 2.763a3.119 3.119 0 0 1 3.117 3.117 3.119 3.119 0 0 1-3.117 3.117 3.122 3.122 0 0 1-3.117-3.117 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),B1=()=>i.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M19.233 6.233 17.42 9.08l-10.817.001a.665.665 0 0 0-.647.562l-.007.096V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.415 2.415 0 0 1 1.807.625l.126.127 4.182 4.525 2.267-3.292 5.461 7.841-4.065 7.375H6.604c-1.86 0-3.382-1.47-3.482-3.317l-.005-.192V9.744c0-1.872 1.461-3.405 3.296-3.505l.19-.005h12.63Zm22.163 0c1.86 0 3.382 1.472 3.482 3.314l.005.192v29.14a3.507 3.507 0 0 1-3.3 3.505l-.191.006H27.789l3.63-6.587.06-.119a1.87 1.87 0 0 0-.163-1.853l-6.928-9.949 3.047-4.422a2.374 2.374 0 0 1 1.96-1.01 2.4 2.4 0 0 1 1.86.87l.106.14L42.05 34.89V9.74a.664.664 0 0 0-.654-.658H21.855l1.812-2.848h17.73Zm-28.305 5.611c.794 0 1.52.298 2.07.788l-.843 1.325-.067.114a1.87 1.87 0 0 0 .11 1.959l.848 1.217c-.556.515-1.3.83-2.118.83a3.122 3.122 0 0 1-3.117-3.116 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),fo="adm-image",z1={fit:"fill",placeholder:i.createElement("div",{className:`${fo}-tip`},i.createElement(L1,null)),fallback:i.createElement("div",{className:`${fo}-tip`},i.createElement(B1,null)),lazy:!1,draggable:!1},ma=Dr(e=>{const t=oe(z1,e),[n,o]=i.useState(!1),[r,s]=i.useState(!1),a=i.useRef(null),l=i.useRef(null);let c=t.src,u=t.srcSet;const[d,m]=i.useState(!t.lazy);c=d?t.src:void 0,u=d?t.srcSet:void 0,Ar(()=>{o(!1),s(!1)},[c]),i.useEffect(()=>{var p;!((p=l.current)===null||p===void 0)&&p.complete&&o(!0)},[]);function g(){if(r)return i.createElement(i.Fragment,null,t.fallback);const p=i.createElement("img",{ref:l,id:t.id,className:`${fo}-img`,src:c,alt:t.alt,onClick:t.onClick,onLoad:y=>{var b;o(!0),(b=t.onLoad)===null||b===void 0||b.call(t,y)},onError:y=>{var b;s(!0),(b=t.onError)===null||b===void 0||b.call(t,y)},style:{objectFit:t.fit,display:n?"block":"none"},crossOrigin:t.crossOrigin,decoding:t.decoding,loading:t.loading,referrerPolicy:t.referrerPolicy,sizes:t.sizes,srcSet:u,useMap:t.useMap,draggable:t.draggable});return i.createElement(i.Fragment,null,!n&&t.placeholder,p)}const v={};return t.width&&(v["--width"]=Et(t.width),v.width=Et(t.width)),t.height&&(v["--height"]=Et(t.height),v.height=Et(t.height)),Y(t,i.createElement("div",{ref:a,className:fo,style:v,onClick:t.onContainerClick},t.lazy&&!d&&i.createElement(A1,{onActive:()=>{m(!0)}}),g()))}),Ut="adm-badge",ha=i.createElement(i.Fragment,null),pa=we(e=>{const{content:t,color:n,children:o}=e,r=t===ha,s=K(Ut,{[`${Ut}-fixed`]:!!o,[`${Ut}-dot`]:r,[`${Ut}-bordered`]:e.bordered}),a=t||t===0?Y(e,i.createElement("div",{className:s,style:{"--color":n}},!r&&i.createElement("div",{className:`${Ut}-content`},t))):null;return o?i.createElement("div",{className:K(`${Ut}-wrapper`,e.wrapperClassName),style:e.wrapperStyle},o,a):a},{dot:ha}),V1="adm-dot-loading",Z1={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},j1={color:"default"},K1=i.memo(e=>{var t;const n=oe(j1,e);return Y(n,i.createElement("div",{style:{color:(t=Z1[n.color])!==null&&t!==void 0?t:n.color},className:K("adm-loading",V1)},i.createElement("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"}},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-100.000000, -71.000000)"},i.createElement("g",{transform:"translate(95.000000, 71.000000)"},i.createElement("g",{transform:"translate(5.000000, 0.000000)"},[0,1,2].map(o=>i.createElement("rect",{key:o,fill:"currentColor",x:20+o*26,y:"16",width:"8",height:"8",rx:"2"},i.createElement("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${o*.2}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1"}))))))))))});function W1(e){return!!e&&typeof e=="object"&&typeof e.then=="function"}function H1(){return Tt?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}const Ze="adm-button",U1={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:i.createElement(K1,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},st=i.forwardRef((e,t)=>{const n=oe(U1,e),[o,r]=i.useState(!1),s=i.useRef(null),a=n.loading==="auto"?o:n.loading,l=n.disabled||a;i.useImperativeHandle(t,()=>({get nativeElement(){return s.current}}));const c=u=>yt(void 0,void 0,void 0,function*(){if(!n.onClick)return;const d=n.onClick(u);if(W1(d))try{r(!0),yield d,r(!1)}catch(m){throw r(!1),m}});return Y(n,i.createElement("button",{ref:s,type:n.type,onClick:c,className:K(Ze,{[`${Ze}-${n.color}`]:n.color,[`${Ze}-block`]:n.block,[`${Ze}-disabled`]:l,[`${Ze}-fill-outline`]:n.fill==="outline",[`${Ze}-fill-none`]:n.fill==="none",[`${Ze}-mini`]:n.size==="mini",[`${Ze}-small`]:n.size==="small",[`${Ze}-large`]:n.size==="large",[`${Ze}-loading`]:a},`${Ze}-shape-${n.shape}`),disabled:l,onMouseDown:n.onMouseDown,onMouseUp:n.onMouseUp,onTouchStart:n.onTouchStart,onTouchEnd:n.onTouchEnd},a?i.createElement("div",{className:`${Ze}-loading-wrapper`},n.loadingIcon,n.loadingText):i.createElement("span",null,n.children)))});var ga={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ct,function(){var n=1e3,o=6e4,r=36e5,s="millisecond",a="second",l="minute",c="hour",u="day",d="week",m="month",g="quarter",v="year",p="date",y="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var P=["th","st","nd","rd"],E=_%100;return"["+_+(P[(E-20)%10]||P[E]||P[0])+"]"}},x=function(_,P,E){var D=String(_);return!D||D.length>=P?_:""+Array(P+1-D.length).join(E)+_},S={s:x,z:function(_){var P=-_.utcOffset(),E=Math.abs(P),D=Math.floor(E/60),T=E%60;return(P<=0?"+":"-")+x(D,2,"0")+":"+x(T,2,"0")},m:function _(P,E){if(P.date()<E.date())return-_(E,P);var D=12*(E.year()-P.year())+(E.month()-P.month()),T=P.clone().add(D,m),V=E-T<0,j=P.clone().add(D+(V?-1:1),m);return+(-(D+(E-T)/(V?T-j:j-T))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:m,y:v,w:d,d:u,D:p,h:c,m:l,s:a,ms:s,Q:g}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},k="en",I={};I[k]=w;var M="$isDayjsObject",O=function(_){return _ instanceof W||!(!_||!_[M])},L=function _(P,E,D){var T;if(!P)return k;if(typeof P=="string"){var V=P.toLowerCase();I[V]&&(T=V),E&&(I[V]=E,T=V);var j=P.split("-");if(!T&&j.length>1)return _(j[0])}else{var H=P.name;I[H]=P,T=H}return!D&&T&&(k=T),T||!D&&k},F=function(_,P){if(O(_))return _.clone();var E=typeof P=="object"?P:{};return E.date=_,E.args=arguments,new W(E)},N=S;N.l=L,N.i=O,N.w=function(_,P){return F(_,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var W=function(){function _(E){this.$L=L(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[M]=!0}var P=_.prototype;return P.parse=function(E){this.$d=function(D){var T=D.date,V=D.utc;if(T===null)return new Date(NaN);if(N.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var j=T.match(b);if(j){var H=j[2]-1||0,U=(j[7]||"0").substring(0,3);return V?new Date(Date.UTC(j[1],H,j[3]||1,j[4]||0,j[5]||0,j[6]||0,U)):new Date(j[1],H,j[3]||1,j[4]||0,j[5]||0,j[6]||0,U)}}return new Date(T)}(E),this.init()},P.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},P.$utils=function(){return N},P.isValid=function(){return this.$d.toString()!==y},P.isSame=function(E,D){var T=F(E);return this.startOf(D)<=T&&T<=this.endOf(D)},P.isAfter=function(E,D){return F(E)<this.startOf(D)},P.isBefore=function(E,D){return this.endOf(D)<F(E)},P.$g=function(E,D,T){return N.u(E)?this[D]:this.set(T,E)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(E,D){var T=this,V=!!N.u(D)||D,j=N.p(E),H=function(Z,G){var re=N.w(T.$u?Date.UTC(T.$y,G,Z):new Date(T.$y,G,Z),T);return V?re:re.endOf(u)},U=function(Z,G){return N.w(T.toDate()[Z].apply(T.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(G)),T)},J=this.$W,ne=this.$M,ee=this.$D,Ne="set"+(this.$u?"UTC":"");switch(j){case v:return V?H(1,0):H(31,11);case m:return V?H(1,ne):H(0,ne+1);case d:var q=this.$locale().weekStart||0,ue=(J<q?J+7:J)-q;return H(V?ee-ue:ee+(6-ue),ne);case u:case p:return U(Ne+"Hours",0);case c:return U(Ne+"Minutes",1);case l:return U(Ne+"Seconds",2);case a:return U(Ne+"Milliseconds",3);default:return this.clone()}},P.endOf=function(E){return this.startOf(E,!1)},P.$set=function(E,D){var T,V=N.p(E),j="set"+(this.$u?"UTC":""),H=(T={},T[u]=j+"Date",T[p]=j+"Date",T[m]=j+"Month",T[v]=j+"FullYear",T[c]=j+"Hours",T[l]=j+"Minutes",T[a]=j+"Seconds",T[s]=j+"Milliseconds",T)[V],U=V===u?this.$D+(D-this.$W):D;if(V===m||V===v){var J=this.clone().set(p,1);J.$d[H](U),J.init(),this.$d=J.set(p,Math.min(this.$D,J.daysInMonth())).$d}else H&&this.$d[H](U);return this.init(),this},P.set=function(E,D){return this.clone().$set(E,D)},P.get=function(E){return this[N.p(E)]()},P.add=function(E,D){var T,V=this;E=Number(E);var j=N.p(D),H=function(ne){var ee=F(V);return N.w(ee.date(ee.date()+Math.round(ne*E)),V)};if(j===m)return this.set(m,this.$M+E);if(j===v)return this.set(v,this.$y+E);if(j===u)return H(1);if(j===d)return H(7);var U=(T={},T[l]=o,T[c]=r,T[a]=n,T)[j]||1,J=this.$d.getTime()+E*U;return N.w(J,this)},P.subtract=function(E,D){return this.add(-1*E,D)},P.format=function(E){var D=this,T=this.$locale();if(!this.isValid())return T.invalidDate||y;var V=E||"YYYY-MM-DDTHH:mm:ssZ",j=N.z(this),H=this.$H,U=this.$m,J=this.$M,ne=T.weekdays,ee=T.months,Ne=T.meridiem,q=function(G,re,ge,Ce){return G&&(G[re]||G(D,V))||ge[re].slice(0,Ce)},ue=function(G){return N.s(H%12||12,G,"0")},Z=Ne||function(G,re,ge){var Ce=G<12?"AM":"PM";return ge?Ce.toLowerCase():Ce};return V.replace(C,function(G,re){return re||function(ge){switch(ge){case"YY":return String(D.$y).slice(-2);case"YYYY":return N.s(D.$y,4,"0");case"M":return J+1;case"MM":return N.s(J+1,2,"0");case"MMM":return q(T.monthsShort,J,ee,3);case"MMMM":return q(ee,J);case"D":return D.$D;case"DD":return N.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return q(T.weekdaysMin,D.$W,ne,2);case"ddd":return q(T.weekdaysShort,D.$W,ne,3);case"dddd":return ne[D.$W];case"H":return String(H);case"HH":return N.s(H,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return Z(H,U,!0);case"A":return Z(H,U,!1);case"m":return String(U);case"mm":return N.s(U,2,"0");case"s":return String(D.$s);case"ss":return N.s(D.$s,2,"0");case"SSS":return N.s(D.$ms,3,"0");case"Z":return j}return null}(G)||j.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(E,D,T){var V,j=this,H=N.p(D),U=F(E),J=(U.utcOffset()-this.utcOffset())*o,ne=this-U,ee=function(){return N.m(j,U)};switch(H){case v:V=ee()/12;break;case m:V=ee();break;case g:V=ee()/3;break;case d:V=(ne-J)/6048e5;break;case u:V=(ne-J)/864e5;break;case c:V=ne/r;break;case l:V=ne/o;break;case a:V=ne/n;break;default:V=ne}return T?V:N.a(V)},P.daysInMonth=function(){return this.endOf(m).$D},P.$locale=function(){return I[this.$L]},P.locale=function(E,D){if(!E)return this.$L;var T=this.clone(),V=L(E,D,!0);return V&&(T.$L=V),T},P.clone=function(){return N.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},_}(),z=W.prototype;return F.prototype=z,[["$ms",s],["$s",a],["$m",l],["$H",c],["$W",u],["$M",m],["$y",v],["$D",p]].forEach(function(_){z[_[1]]=function(P){return this.$g(P,_[0],_[1])}}),F.extend=function(_,P){return _.$i||(_(P,W,F),_.$i=!0),F},F.locale=L,F.isDayjs=O,F.unix=function(_){return F(1e3*_)},F.en=I[k],F.Ls=I,F.p={},F})})(ga);var Y1=ga.exports;const he=xt(Y1),va=()=>i.createElement("svg",{height:"1em",viewBox:"0 0 44 44"},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-100.000000, -22.000000)"},i.createElement("g",{transform:"translate(100.000000, 22.000000)"},i.createElement("rect",{x:"0",y:"0",width:"44",height:"44"}),i.createElement("g",{transform:"translate(12.000000, 4.000000)",fill:"currentColor",fillRule:"nonzero"},i.createElement("path",{d:"M19.4833058,2.71985611 L3.53051139,17.0699744 C3.0173831,17.5315665 2.97522952,18.3220903 3.43630803,18.8357433 L3.43630796,18.8357432 C3.46601289,18.8688164 3.49745845,18.9002801 3.53051133,18.9300007 L19.4833057,33.2801611 C20.1234001,33.8559077 20.1759552,34.8420707 19.6007967,35.4827774 C19.0256382,36.1235263 18.0404824,36.1761351 17.400388,35.6003885 L1.44759367,21.2502703 L1.4475933,21.25027 C1.33208743,21.1463692 1.22220259,21.036372 1.11840792,20.920748 C-0.49302969,19.1256817 -0.345639536,16.3628317 1.4475933,14.7497465 L17.4003877,0.399628282 C18.0404821,-0.176160428 19.0256378,-0.123509422 19.6007963,0.517239417 C20.1759548,1.1579461 20.1233997,2.14410915 19.4833053,2.7198557 L19.4833058,2.71985611 Z"})))))),ba=()=>i.createElement("svg",{height:"1em",viewBox:"0 0 44 44"},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-24.000000, -22.000000)"},i.createElement("g",{transform:"translate(24.000000, 22.000000)"},i.createElement("rect",{x:"0",y:"0",width:"44",height:"44"}),i.createElement("g",{transform:"translate(7.000000, 4.000000)",fill:"currentColor",fillRule:"nonzero"},i.createElement("path",{d:"M19.4833058,2.71985611 L3.53051139,17.0699744 C3.0173831,17.5315665 2.97522952,18.3220903 3.43630803,18.8357433 L3.43630796,18.8357432 C3.46601289,18.8688164 3.49745845,18.9002801 3.53051133,18.9300007 L19.4833057,33.2801611 C20.1234001,33.8559077 20.1759552,34.8420707 19.6007967,35.4827774 C19.0256382,36.1235263 18.0404824,36.1761351 17.400388,35.6003885 L1.44759367,21.2502703 L1.4475933,21.25027 C1.33208743,21.1463692 1.22220259,21.036372 1.11840792,20.920748 C-0.49302969,19.1256817 -0.345639536,16.3628317 1.4475933,14.7497465 L17.4003877,0.399628282 C18.0404821,-0.176160428 19.0256378,-0.123509422 19.6007963,0.517239417 C20.1759548,1.1579461 20.1233997,2.14410915 19.4833053,2.7198557 L19.4833058,2.71985611 Z"}),i.createElement("path",{d:"M19.5305114,17.0699744 C19.0173831,17.5315665 18.9752295,18.3220903 19.436308,18.8357433 C19.4660129,18.8688164 19.4974585,18.9002801 19.5305113,18.9300007 L29.4833057,27.2801611 C30.1234001,27.8559077 30.1759552,28.8420707 29.6007967,29.4827774 C29.0256382,30.1235263 28.0404824,30.1761351 27.400388,29.6003885 L17.4475937,21.2502703 C17.3320874,21.1463692 17.2222026,21.036372 17.1184079,20.920748 C15.5069703,19.1256817 15.6543605,16.3628317 17.4475933,14.7497465 L27.4003877,6.39962828 C28.0404821,5.82383957 29.0256378,5.87649058 29.6007963,6.51723942 C30.1759548,7.1579461 30.1233997,8.14410915 29.4833053,8.7198557 L19.5305114,17.0699744 Z"}))))));var ya={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ct,function(){var n="day";return function(o,r,s){var a=function(u){return u.add(4-u.isoWeekday(),n)},l=r.prototype;l.isoWeekYear=function(){return a(this).year()},l.isoWeek=function(u){if(!this.$utils().u(u))return this.add(7*(u-this.isoWeek()),n);var d,m,g,v,p=a(this),y=(d=this.isoWeekYear(),m=this.$u,g=(m?s.utc:s)().year(d).startOf("year"),v=4-g.isoWeekday(),g.isoWeekday()>4&&(v+=7),g.add(v,n));return p.diff(y,"week")+1},l.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var c=l.startOf;l.startOf=function(u,d){var m=this.$utils(),g=!!m.u(d)||d;return m.p(u)==="isoweek"?g?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(u,d)}}})})(ya);var G1=ya.exports;const Lr=xt(G1);function Ie(e){const{value:t,defaultValue:n,onChange:o}=e,r=te.useUpdate(),s=i.useRef(t!==void 0?t:n);t!==void 0&&(s.current=t);const a=te.useMemoizedFn((l,c=!1)=>{const u=typeof l=="function"?l(s.current):l;if(!(!c&&u===s.current))return s.current=u,r(),o==null?void 0:o(u)});return[s.current,a]}function q1(e,t){return e.replace(/\$\{\w+\}/g,n=>{const o=n.slice(2,-1);return t[o]})}function Ca(e,t){return e===void 0||t===null?null:Array.isArray(t)?t:[t,t]}function Br(e){return he().year(e.year).month(e.month-1).date(1)}he.extend(Lr);const fe="adm-calendar",X1={weekStartsOn:"Sunday",defaultValue:null,allowClear:!0,prevMonthButton:i.createElement(va,null),prevYearButton:i.createElement(ba,null),nextMonthButton:i.createElement(va,null),nextYearButton:i.createElement(ba,null)},Q1=i.forwardRef((e,t)=>{const n=he(),o=oe(X1,e),{locale:r}=Pe(),s=[...r.Calendar.markItems];if(o.weekStartsOn==="Sunday"){const x=s.pop();x&&s.unshift(x)}const[a,l]=Ie({value:o.value===void 0?void 0:Ca(o.selectionMode,o.value),defaultValue:Ca(o.selectionMode,o.defaultValue),onChange:x=>{var S,k;o.selectionMode==="single"?(S=o.onChange)===null||S===void 0||S.call(o,x?x[0]:null):o.selectionMode==="range"&&((k=o.onChange)===null||k===void 0||k.call(o,x))}}),[c,u]=i.useState(!1),[d,m]=i.useState(()=>he(a?a[0]:n).date(1));te.useUpdateEffect(()=>{var x;(x=o.onPageChange)===null||x===void 0||x.call(o,d.year(),d.month()+1)},[d]),i.useImperativeHandle(t,()=>({jumpTo:x=>{let S;typeof x=="function"?S=x({year:d.year(),month:d.month()+1}):S=x,m(Br(S))},jumpToToday:()=>{m(he().date(1))}}));const g=(x,S,k)=>{const I=d[x](S,k);if(x==="subtract"&&o.minPage){const M=Br(o.minPage);if(I.isBefore(M,k))return}if(x==="add"&&o.maxPage){const M=Br(o.maxPage);if(I.isAfter(M,k))return}m(I)},v=i.createElement("div",{className:`${fe}-header`},i.createElement("a",{className:`${fe}-arrow-button ${fe}-arrow-button-year`,onClick:()=>{g("subtract",1,"year")}},o.prevYearButton),i.createElement("a",{className:`${fe}-arrow-button ${fe}-arrow-button-month`,onClick:()=>{g("subtract",1,"month")}},o.prevMonthButton),i.createElement("div",{className:`${fe}-title`},q1(r.Calendar.yearAndMonth,{year:d.year().toString(),month:(d.month()+1).toString()})),i.createElement("a",{className:K(`${fe}-arrow-button`,`${fe}-arrow-button-right`,`${fe}-arrow-button-right-month`),onClick:()=>{g("add",1,"month")}},o.nextMonthButton),i.createElement("a",{className:K(`${fe}-arrow-button`,`${fe}-arrow-button-right`,`${fe}-arrow-button-right-year`),onClick:()=>{g("add",1,"year")}},o.nextYearButton)),p=i.useMemo(()=>o.max&&he(o.max),[o.max]),y=i.useMemo(()=>o.min&&he(o.min),[o.min]);function b(){var x;const S=[];let k=d.subtract(d.isoWeekday(),"day");for(o.weekStartsOn==="Monday"&&(k=k.add(1,"day"));S.length<6*7;){const I=k;let M=!1,O=!1,L=!1,F=!1,N=!1;if(a){const[_,P]=a;O=I.isSame(_,"day"),L=I.isSame(P,"day"),M=O||L||I.isAfter(_,"day")&&I.isBefore(P,"day"),M&&(F=(S.length%7===0||I.isSame(I.startOf("month"),"day"))&&!O,N=(S.length%7===6||I.isSame(I.endOf("month"),"day"))&&!L)}const W=I.month()===d.month(),z=o.shouldDisableDate?o.shouldDisableDate(I.toDate()):p&&I.isAfter(p,"day")||y&&I.isBefore(y,"day");S.push(i.createElement("div",{key:I.valueOf(),className:K(`${fe}-cell`,(z||!W)&&`${fe}-cell-disabled`,W&&{[`${fe}-cell-today`]:I.isSame(n,"day"),[`${fe}-cell-selected`]:M,[`${fe}-cell-selected-begin`]:O,[`${fe}-cell-selected-end`]:L,[`${fe}-cell-selected-row-begin`]:F,[`${fe}-cell-selected-row-end`]:N}),onClick:()=>{if(!o.selectionMode||z)return;const _=I.toDate();W||m(I.clone().date(1));function P(){if(!o.allowClear||!a)return!1;const[E,D]=a;return I.isSame(E,"date")&&I.isSame(D,"day")}if(o.selectionMode==="single"){if(o.allowClear&&P()){l(null);return}l([_,_])}else if(o.selectionMode==="range"){if(!a){l([_,_]),u(!0);return}if(P()){l(null),u(!1);return}if(c){const E=a[0];l(E>_?[_,E]:[E,_]),u(!1)}else l([_,_]),u(!0)}}},i.createElement("div",{className:`${fe}-cell-top`},o.renderDate?o.renderDate(I.toDate()):I.date()),i.createElement("div",{className:`${fe}-cell-bottom`},(x=o.renderLabel)===null||x===void 0?void 0:x.call(o,I.toDate())))),k=k.add(1,"day")}return S}const C=i.createElement("div",{className:`${fe}-cells`},b()),w=i.createElement("div",{className:`${fe}-mark`},s.map((x,S)=>i.createElement("div",{key:S,className:`${fe}-mark-cell`},x)));return Y(o,i.createElement("div",{className:fe},v,w,C))});var xa={exports:{}},ce={};/**
|
|
125
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(s=r(s,o(l)))}return s}function o(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var l in s)t.call(s,l)&&s[l]&&(a=r(a,l));return a}function r(s,a){return a?s?s+" "+a:s+a:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ms);var $c=Ms.exports;const K=xt($c);function Y(e,t){const n=Object.assign({},t.props);e.className&&(n.className=K(t.props.className,e.className)),e.style&&(n.style=Object.assign(Object.assign({},n.style),e.style)),e.tabIndex!==void 0&&(n.tabIndex=e.tabIndex);for(const o in e)e.hasOwnProperty(o)&&(o.startsWith("data-")||o.startsWith("aria-"))&&(n[o]=e[o]);return i.cloneElement(t,n)}function oe(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(o=>{n[o]!==void 0&&(t[o]=n[o])})}),t}function Uo(e,...t){for(let n=t.length-1;n>=0;n-=1)if(t[n]!==void 0)return t[n];return e}const Fs=10;function _c(e,t){return e>t&&e>Fs?"horizontal":t>e&&t>Fs?"vertical":""}function Pc(){const e=i.useRef(0),t=i.useRef(0),n=i.useRef(0),o=i.useRef(0),r=i.useRef(0),s=i.useRef(0),a=i.useRef(""),l=()=>a.current==="vertical",c=()=>a.current==="horizontal",u=()=>{n.current=0,o.current=0,r.current=0,s.current=0,a.current=""};return{move:g=>{const v=g.touches[0];n.current=v.clientX<0?0:v.clientX-e.current,o.current=v.clientY-t.current,r.current=Math.abs(n.current),s.current=Math.abs(o.current),a.current||(a.current=_c(r.current,s.current))},start:g=>{u(),e.current=g.touches[0].clientX,t.current=g.touches[0].clientY},reset:u,startX:e,startY:t,deltaX:n,deltaY:o,offsetX:r,offsetY:s,direction:a,isVertical:l,isHorizontal:c}}const Mc=Tt?window:void 0,Fc=["scroll","auto","overlay"];function Nc(e){return e.nodeType===1}function Oc(e,t=Mc){let n=e;for(;n&&n!==t&&Nc(n);){if(n===document.body)return t;const{overflowY:o}=window.getComputedStyle(n);if(Fc.includes(o)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return t}let On=!1;if(Tt)try{const e={};Object.defineProperty(e,"passive",{get(){On=!0}}),window.addEventListener("test-passive",null,e)}catch(e){}let en=0;const Ns="adm-overflow-hidden";function Tc(e){let t=e==null?void 0:e.parentElement;for(;t;){if(t.clientHeight<t.scrollHeight)return t;t=t.parentElement}return null}function Os(e,t){const n=Pc(),o=a=>{n.move(a);const l=n.deltaY.current>0?"10":"01",c=Oc(a.target,e.current);if(!c)return;if(t==="strict"){const p=Tc(a.target);if(p===document.body||p===document.documentElement){a.preventDefault();return}}const{scrollHeight:u,offsetHeight:d,scrollTop:m}=c,{height:g}=c.getBoundingClientRect();let v="11";m===0?v=d>=u?"00":"01":u<=Math.round(g+m)&&(v="10"),v!=="11"&&n.isVertical()&&!(parseInt(v,2)&parseInt(l,2))&&a.cancelable&&On&&a.preventDefault()},r=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",o,On?{passive:!1}:!1),en||document.body.classList.add(Ns),en++},s=()=>{en&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",o),en--,en||document.body.classList.remove(Ns))};i.useEffect(()=>{if(t)return r(),()=>{s()}},[t])}let Yo=nn();const Q=e=>tn(e,Yo);let Go=nn();Q.write=e=>tn(e,Go);let Tn=nn();Q.onStart=e=>tn(e,Tn);let qo=nn();Q.onFrame=e=>tn(e,qo);let Xo=nn();Q.onFinish=e=>tn(e,Xo);let Dt=[];Q.setTimeout=(e,t)=>{let n=Q.now()+t,o=()=>{let s=Dt.findIndex(a=>a.cancel==o);~s&&Dt.splice(s,1),ft-=~s?1:0},r={time:n,handler:e,cancel:o};return Dt.splice(Ts(n),0,r),ft+=1,Ds(),r};let Ts=e=>~(~Dt.findIndex(t=>t.time>e)||~Dt.length);Q.cancel=e=>{Tn.delete(e),qo.delete(e),Xo.delete(e),Yo.delete(e),Go.delete(e)},Q.sync=e=>{Jo=!0,Q.batchedUpdates(e),Jo=!1},Q.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...r){t=r,Q.onStart(n)}return o.handler=e,o.cancel=()=>{Tn.delete(n),t=null},o};let Qo=typeof window!="undefined"?window.requestAnimationFrame:()=>{};Q.use=e=>Qo=e,Q.now=typeof performance!="undefined"?()=>performance.now():Date.now,Q.batchedUpdates=e=>e(),Q.catch=console.error,Q.frameLoop="always",Q.advance=()=>{Q.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ls()};let dt=-1,ft=0,Jo=!1;function tn(e,t){Jo?(t.delete(e),e(0)):(t.add(e),Ds())}function Ds(){dt<0&&(dt=0,Q.frameLoop!=="demand"&&Qo(As))}function Dc(){dt=-1}function As(){~dt&&(Qo(As),Q.batchedUpdates(Ls))}function Ls(){let e=dt;dt=Q.now();let t=Ts(dt);if(t&&(Bs(Dt.splice(0,t),n=>n.handler()),ft-=t),!ft){Dc();return}Tn.flush(),Yo.flush(e?Math.min(64,dt-e):16.667),qo.flush(),Go.flush(),Xo.flush()}function nn(){let e=new Set,t=e;return{add(n){ft+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return ft-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,ft-=t.size,Bs(t,o=>o(n)&&e.add(o)),ft+=e.size,t=e)}}}function Bs(e,t){e.forEach(n=>{try{t(n)}catch(o){Q.catch(o)}})}function Ro(){}const Ac=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),A={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function rt(e,t){if(A.arr(e)){if(!A.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const se=(e,t)=>e.forEach(t);function Xe(e,t,n){if(A.arr(e)){for(let o=0;o<e.length;o++)t.call(n,e[o],`${o}`);return}for(const o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}const Te=e=>A.und(e)?[]:A.arr(e)?e:[e];function on(e,t){if(e.size){const n=Array.from(e);e.clear(),se(n,t)}}const rn=(e,...t)=>on(e,n=>n(...t)),er=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let tr,Vs,mt=null,zs=!1,nr=Ro;var Qe=Object.freeze({__proto__:null,get createStringInterpolator(){return tr},get to(){return Vs},get colors(){return mt},get skipAnimation(){return zs},get willAdvance(){return nr},assign:e=>{e.to&&(Vs=e.to),e.now&&(Q.now=e.now),e.colors!==void 0&&(mt=e.colors),e.skipAnimation!=null&&(zs=e.skipAnimation),e.createStringInterpolator&&(tr=e.createStringInterpolator),e.requestAnimationFrame&&Q.use(e.requestAnimationFrame),e.batchedUpdates&&(Q.batchedUpdates=e.batchedUpdates),e.willAdvance&&(nr=e.willAdvance),e.frameLoop&&(Q.frameLoop=e.frameLoop)}});const sn=new Set;let Le=[],or=[],Dn=0;const An={get idle(){return!sn.size&&!Le.length},start(e){Dn>e.priority?(sn.add(e),Q.onStart(Lc)):(Zs(e),Q(rr))},advance:rr,sort(e){if(Dn)Q.onFrame(()=>An.sort(e));else{const t=Le.indexOf(e);~t&&(Le.splice(t,1),js(e))}},clear(){Le=[],sn.clear()}};function Lc(){sn.forEach(Zs),sn.clear(),Q(rr)}function Zs(e){Le.includes(e)||js(e)}function js(e){Le.splice(Bc(Le,t=>t.priority>e.priority),0,e)}function rr(e){const t=or;for(let n=0;n<Le.length;n++){const o=Le[n];Dn=o.priority,o.idle||(nr(o),o.advance(e),o.idle||t.push(o))}return Dn=0,or=Le,or.length=0,Le=t,Le.length>0}function Bc(e,t){const n=e.findIndex(t);return n<0?e.length:n}const Vc=(e,t,n)=>Math.min(Math.max(n,e),t),zc={transparent:0,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,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,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,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},He="[-+]?\\d*\\.?\\d+",Ln=He+"%";function Bn(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Zc=new RegExp("rgb"+Bn(He,He,He)),jc=new RegExp("rgba"+Bn(He,He,He,He)),Kc=new RegExp("hsl"+Bn(He,Ln,Ln)),Wc=new RegExp("hsla"+Bn(He,Ln,Ln,He)),Hc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Uc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Yc=/^#([0-9a-fA-F]{6})$/,Gc=/^#([0-9a-fA-F]{8})$/;function qc(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Yc.exec(e))?parseInt(t[1]+"ff",16)>>>0:mt&&mt[e]!==void 0?mt[e]:(t=Zc.exec(e))?(At(t[1])<<24|At(t[2])<<16|At(t[3])<<8|255)>>>0:(t=jc.exec(e))?(At(t[1])<<24|At(t[2])<<16|At(t[3])<<8|Hs(t[4]))>>>0:(t=Hc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Gc.exec(e))?parseInt(t[1],16)>>>0:(t=Uc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Kc.exec(e))?(Ks(Ws(t[1]),Vn(t[2]),Vn(t[3]))|255)>>>0:(t=Wc.exec(e))?(Ks(Ws(t[1]),Vn(t[2]),Vn(t[3]))|Hs(t[4]))>>>0:null}function sr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ks(e,t,n){const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,s=sr(r,o,e+1/3),a=sr(r,o,e),l=sr(r,o,e-1/3);return Math.round(s*255)<<24|Math.round(a*255)<<16|Math.round(l*255)<<8}function At(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ws(e){return(parseFloat(e)%360+360)%360/360}function Hs(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Vn(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Us(e){let t=qc(e);if(t===null)return e;t=t||0;let n=(t&4278190080)>>>24,o=(t&16711680)>>>16,r=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${o}, ${r}, ${s})`}const an=(e,t,n)=>{if(A.fun(e))return e;if(A.arr(e))return an({range:e,output:t,extrapolate:n});if(A.str(e.output[0]))return tr(e);const o=e,r=o.output,s=o.range||[0,1],a=o.extrapolateLeft||o.extrapolate||"extend",l=o.extrapolateRight||o.extrapolate||"extend",c=o.easing||(u=>u);return u=>{const d=Qc(u,s);return Xc(u,s[d],s[d+1],r[d],r[d+1],c,a,l,o.map)}};function Xc(e,t,n,o,r,s,a,l,c){let u=c?c(e):e;if(u<t){if(a==="identity")return u;a==="clamp"&&(u=t)}if(u>n){if(l==="identity")return u;l==="clamp"&&(u=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=s(u),o===-1/0?u=-u:r===1/0?u=u+o:u=u*(r-o)+o,u)}function Qc(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}const Jc=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const o=n*e,r=t==="end"?Math.floor(o):Math.ceil(o);return Vc(0,1,r/e)},zn=1.70158,Zn=zn*1.525,Ys=zn+1,Gs=2*Math.PI/3,qs=2*Math.PI/4.5,jn=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Rc={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Ys*e*e*e-zn*e*e,easeOutBack:e=>1+Ys*Math.pow(e-1,3)+zn*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Zn+1)*2*e-Zn)/2:(Math.pow(2*e-2,2)*((Zn+1)*(e*2-2)+Zn)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Gs),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Gs)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*qs))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*qs)/2+1,easeInBounce:e=>1-jn(1-e),easeOutBounce:jn,easeInOutBounce:e=>e<.5?(1-jn(1-2*e))/2:(1+jn(2*e-1))/2,steps:Jc};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ir.apply(this,arguments)}const Lt=Symbol.for("FluidValue.get"),St=Symbol.for("FluidValue.observers"),Be=e=>!!(e&&e[Lt]),Me=e=>e&&e[Lt]?e[Lt]():e,Xs=e=>e[St]||null;function eu(e,t){e.eventObserved?e.eventObserved(t):e(t)}function ln(e,t){let n=e[St];n&&n.forEach(o=>{eu(o,t)})}class Qs{constructor(t){if(this[Lt]=void 0,this[St]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");tu(this,t)}}const tu=(e,t)=>Js(e,Lt,t);function Bt(e,t){if(e[Lt]){let n=e[St];n||Js(e,St,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function cn(e,t){let n=e[St];if(n&&n.has(t)){const o=n.size-1;o?n.delete(t):e[St]=null,e.observerRemoved&&e.observerRemoved(o,t)}}const Js=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Kn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,nu=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Rs=new RegExp(`(${Kn.source})(%|[a-z]+)`,"i"),ou=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Wn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,ei=e=>{const[t,n]=ru(e);if(!t||er())return e;const o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(n&&n.startsWith("--")){const r=window.getComputedStyle(document.documentElement).getPropertyValue(n);return r||e}else{if(n&&Wn.test(n))return ei(n);if(n)return n}return e},ru=e=>{const t=Wn.exec(e);if(!t)return[,];const[,n,o]=t;return[n,o]};let ar;const su=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,ti=e=>{ar||(ar=mt?new RegExp(`(${Object.keys(mt).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>Me(s).replace(Wn,ei).replace(nu,Us).replace(ar,Us)),n=t.map(s=>s.match(Kn).map(Number)),r=n[0].map((s,a)=>n.map(l=>{if(!(a in l))throw Error('The arity of each "output" value must be equal');return l[a]})).map(s=>an(ir({},e,{output:s})));return s=>{var a;const l=!Rs.test(t[0])&&((a=t.find(u=>Rs.test(u)))==null?void 0:a.replace(Kn,""));let c=0;return t[0].replace(Kn,()=>`${r[c++](s)}${l||""}`).replace(ou,su)}},lr="react-spring: ",ni=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${lr}once requires a function parameter`);return(...o)=>{n||(t(...o),n=!0)}},iu=ni(console.warn);function au(){iu(`${lr}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const lu=ni(console.warn);function cu(){lu(`${lr}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Hn(e){return A.str(e)&&(e[0]=="#"||/\d/.test(e)||!er()&&Wn.test(e)||e in(mt||{}))}const cr=er()?i.useEffect:i.useLayoutEffect,uu=()=>{const e=i.useRef(!1);return cr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function oi(){const e=i.useState()[1],t=uu();return()=>{t.current&&e(Math.random())}}function du(e,t){const[n]=i.useState(()=>({inputs:t,result:e()})),o=i.useRef(),r=o.current;let s=r;return s?t&&s.inputs&&fu(t,s.inputs)||(s={inputs:t,result:e()}):s=n,i.useEffect(()=>{o.current=s,r==n&&(n.inputs=n.result=void 0)},[s]),s.result}function fu(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const ri=e=>i.useEffect(e,mu),mu=[];function si(e){const t=i.useRef();return i.useEffect(()=>{t.current=e}),t.current}const un=Symbol.for("Animated:node"),hu=e=>!!e&&e[un]===e,Je=e=>e&&e[un],ur=(e,t)=>Ac(e,un,t),Un=e=>e&&e[un]&&e[un].getPayload();class ii{constructor(){this.payload=void 0,ur(this,this)}getPayload(){return this.payload||[]}}class Vt extends ii{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,A.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new Vt(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return A.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,A.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}}class zt extends Vt{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=an({output:[t,t]})}static create(t){return new zt(t)}getValue(){let t=this._string;return t==null?this._string=this._toString(this._value):t}setValue(t){if(A.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=an({output:[this.getValue(),t]})),this._value=0,super.reset()}}const Yn={dependencies:null};class Gn extends ii{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const n={};return Xe(this.source,(o,r)=>{hu(o)?n[r]=o.getValue(t):Be(o)?n[r]=Me(o):t||(n[r]=o)}),n}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&se(this.payload,t=>t.reset())}_makePayload(t){if(t){const n=new Set;return Xe(t,this._addToPayload,n),Array.from(n)}}_addToPayload(t){Yn.dependencies&&Be(t)&&Yn.dependencies.add(t);const n=Un(t);n&&se(n,o=>this.add(o))}}class dr extends Gn{constructor(t){super(t)}static create(t){return new dr(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((o,r)=>o.setValue(t[r])).some(Boolean):(super.setValue(t.map(pu)),!0)}}function pu(e){return(Hn(e)?zt:Vt).create(e)}function fr(e){const t=Je(e);return t?t.constructor:A.arr(e)?dr:Hn(e)?zt:Vt}function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qn.apply(this,arguments)}const ai=(e,t)=>{const n=!A.fun(e)||e.prototype&&e.prototype.isReactComponent;return i.forwardRef((o,r)=>{const s=i.useRef(null),a=n&&i.useCallback(p=>{s.current=bu(r,p)},[r]),[l,c]=vu(o,t),u=oi(),d=()=>{const p=s.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,l.getValue(!0)):!1)===!1&&u()},m=new gu(d,c),g=i.useRef();cr(()=>(g.current=m,se(c,p=>Bt(p,m)),()=>{g.current&&(se(g.current.deps,p=>cn(p,g.current)),Q.cancel(g.current.update))})),i.useEffect(d,[]),ri(()=>()=>{const p=g.current;se(p.deps,y=>cn(y,p))});const v=t.getComponentProps(l.getValue());return X.createElement(e,qn({},v,{ref:a}))})};class gu{constructor(t,n){this.update=t,this.deps=n}eventObserved(t){t.type=="change"&&Q.write(this.update)}}function vu(e,t){const n=new Set;return Yn.dependencies=n,e.style&&(e=qn({},e,{style:t.createAnimatedStyle(e.style)})),e=new Gn(e),Yn.dependencies=null,[e,n]}function bu(e,t){return e&&(A.fun(e)?e(t):e.current=t),t}const li=Symbol.for("AnimatedComponent"),yu=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=r=>new Gn(r),getComponentProps:o=r=>r}={})=>{const r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},s=a=>{const l=ci(a)||"Anonymous";return A.str(a)?a=s[a]||(s[a]=ai(a,r)):a=a[li]||(a[li]=ai(a,r)),a.displayName=`Animated(${l})`,a};return Xe(e,(a,l)=>{A.arr(e)&&(l=ci(a)),s[l]=s(a)}),{animated:s}},ci=e=>A.str(e)?e:e&&A.str(e.displayName)?e.displayName:A.fun(e)&&e.name||null;function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},xe.apply(this,arguments)}function wt(e,...t){return A.fun(e)?e(...t):e}const dn=(e,t)=>e===!0||!!(t&&e&&(A.fun(e)?e(t):Te(e).includes(t))),ui=(e,t)=>A.obj(e)?t&&e[t]:e,di=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Cu=e=>e,mr=(e,t=Cu)=>{let n=xu;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const o={};for(const r of n){const s=t(e[r],r);A.und(s)||(o[r]=s)}return o},xu=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Su={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function wu(e){const t={};let n=0;if(Xe(e,(o,r)=>{Su[r]||(t[r]=o,n++)}),n)return t}function fi(e){const t=wu(e);if(t){const n={to:t};return Xe(e,(o,r)=>r in t||(n[r]=o)),n}return xe({},e)}function fn(e){return e=Me(e),A.arr(e)?e.map(fn):Hn(e)?Qe.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function ku(e){for(const t in e)return!0;return!1}function hr(e){return A.fun(e)||A.arr(e)&&A.obj(e[0])}function Eu(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Iu(e,t){if(t&&e.ref!==t){var n;(n=e.ref)==null||n.delete(e),t.add(e),e.ref=t}}const pr=xe({},{default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}}.default,{mass:1,damping:1,easing:Rc.linear,clamp:!1});class $u{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,pr)}}function _u(e,t,n){n&&(n=xe({},n),mi(n,t),t=xe({},n,t)),mi(e,t),Object.assign(e,t);for(const a in pr)e[a]==null&&(e[a]=pr[a]);let{mass:o,frequency:r,damping:s}=e;return A.und(r)||(r<.01&&(r=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*s*o/r),e}function mi(e,t){if(!A.und(t.decay))e.duration=void 0;else{const n=!A.und(t.tension)||!A.und(t.friction);(n||!A.und(t.frequency)||!A.und(t.damping)||!A.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}const hi=[];class Pu{constructor(){this.changed=!1,this.values=hi,this.toValues=null,this.fromValues=hi,this.to=void 0,this.from=void 0,this.config=new $u,this.immediate=!1}}function pi(e,{key:t,props:n,defaultProps:o,state:r,actions:s}){return new Promise((a,l)=>{var c;let u,d,m=dn((c=n.cancel)!=null?c:o==null?void 0:o.cancel,t);if(m)p();else{A.und(n.pause)||(r.paused=dn(n.pause,t));let y=o==null?void 0:o.pause;y!==!0&&(y=r.paused||dn(y,t)),u=wt(n.delay||0,t),y?(r.resumeQueue.add(v),s.pause()):(s.resume(),v())}function g(){r.resumeQueue.add(v),r.timeouts.delete(d),d.cancel(),u=d.time-Q.now()}function v(){u>0&&!Qe.skipAnimation?(r.delayed=!0,d=Q.setTimeout(p,u),r.pauseQueue.add(g),r.timeouts.add(d)):p()}function p(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(g),r.timeouts.delete(d),e<=(r.cancelId||0)&&(m=!0);try{s.start(xe({},n,{callId:e,cancel:m}),a)}catch(y){l(y)}}})}const gr=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Zt(e.get()):t.every(n=>n.noop)?gi(e.get()):Ue(e.get(),t.every(n=>n.finished)),gi=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ue=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Zt=e=>({value:e,cancelled:!0,finished:!1});function vi(e,t,n,o){const{callId:r,parentId:s,onRest:a}=t,{asyncTo:l,promise:c}=n;return!s&&e===l&&!t.reset?c:n.promise=me(this,null,function*(){n.asyncId=r,n.asyncTo=e;const u=mr(t,(b,C)=>C==="onRest"?void 0:b);let d,m;const g=new Promise((b,C)=>(d=b,m=C)),v=b=>{const C=r<=(n.cancelId||0)&&Zt(o)||r!==n.asyncId&&Ue(o,!1);if(C)throw b.result=C,m(b),b},p=(b,C)=>{const w=new bi,x=new yi;return me(this,null,function*(){if(Qe.skipAnimation)throw mn(n),x.result=Ue(o,!1),m(x),x;v(w);const S=A.obj(b)?xe({},b):xe({},C,{to:b});S.parentId=r,Xe(u,(I,M)=>{A.und(S[M])&&(S[M]=I)});const k=yield o.start(S);return v(w),n.paused&&(yield new Promise(I=>{n.resumeQueue.add(I)})),k})};let y;if(Qe.skipAnimation)return mn(n),Ue(o,!1);try{let b;A.arr(e)?b=(C=>me(this,null,function*(){for(const w of C)yield p(w)}))(e):b=Promise.resolve(e(p,o.stop.bind(o))),yield Promise.all([b.then(d),g]),y=Ue(o.get(),!0,!1)}catch(b){if(b instanceof bi)y=b.result;else if(b instanceof yi)y=b.result;else throw b}finally{r==n.asyncId&&(n.asyncId=s,n.asyncTo=s?l:void 0,n.promise=s?c:void 0)}return A.fun(a)&&Q.batchedUpdates(()=>{a(y,o,o.item)}),y})}function mn(e,t){on(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class bi extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class yi extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const vr=e=>e instanceof br;let Mu=1;class br extends Qs{constructor(...t){super(...t),this.id=Mu++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=Je(this);return t&&t.getValue()}to(...t){return Qe.to(this,t)}interpolate(...t){return au(),Qe.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,n=!1){ln(this,{type:"change",parent:this,value:t,idle:n})}_onPriorityChange(t){this.idle||An.sort(this),ln(this,{type:"priority",parent:this,priority:t})}}const kt=Symbol.for("SpringPhase"),Ci=1,yr=2,Cr=4,xr=e=>(e[kt]&Ci)>0,ht=e=>(e[kt]&yr)>0,hn=e=>(e[kt]&Cr)>0,xi=(e,t)=>t?e[kt]|=yr|Ci:e[kt]&=~yr,Si=(e,t)=>t?e[kt]|=Cr:e[kt]&=~Cr;class Fu extends br{constructor(t,n){if(super(),this.key=void 0,this.animation=new Pu,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!A.und(t)||!A.und(n)){const o=A.obj(t)?xe({},t):xe({},n,{from:t});A.und(o.default)&&(o.default=!0),this.start(o)}}get idle(){return!(ht(this)||this._state.asyncTo)||hn(this)}get goal(){return Me(this.animation.to)}get velocity(){const t=Je(this);return t instanceof Vt?t.lastVelocity||0:t.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return xr(this)}get isAnimating(){return ht(this)}get isPaused(){return hn(this)}get isDelayed(){return this._state.delayed}advance(t){let n=!0,o=!1;const r=this.animation;let{config:s,toValues:a}=r;const l=Un(r.to);!l&&Be(r.to)&&(a=Te(Me(r.to))),r.values.forEach((d,m)=>{if(d.done)return;const g=d.constructor==zt?1:l?l[m].lastPosition:a[m];let v=r.immediate,p=g;if(!v){if(p=d.lastPosition,s.tension<=0){d.done=!0;return}let y=d.elapsedTime+=t;const b=r.fromValues[m],C=d.v0!=null?d.v0:d.v0=A.arr(s.velocity)?s.velocity[m]:s.velocity;let w;const x=s.precision||(b==g?.005:Math.min(1,Math.abs(g-b)*.001));if(A.und(s.duration))if(s.decay){const S=s.decay===!0?.998:s.decay,k=Math.exp(-(1-S)*y);p=b+C/(1-S)*(1-k),v=Math.abs(d.lastPosition-p)<=x,w=C*k}else{w=d.lastVelocity==null?C:d.lastVelocity;const S=s.restVelocity||x/10,k=s.clamp?0:s.bounce,I=!A.und(k),M=b==g?d.v0>0:b<g;let O,L=!1;const F=1,N=Math.ceil(t/F);for(let W=0;W<N&&(O=Math.abs(w)>S,!(!O&&(v=Math.abs(g-p)<=x,v)));++W){I&&(L=p==g||p>g==M,L&&(w=-w*k,p=g));const V=-s.tension*1e-6*(p-g),_=-s.friction*.001*w,P=(V+_)/s.mass;w=w+P*F,p=p+w*F}}else{let S=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,d.durationProgress>0&&(d.elapsedTime=s.duration*d.durationProgress,y=d.elapsedTime+=t)),S=(s.progress||0)+y/this._memoizedDuration,S=S>1?1:S<0?0:S,d.durationProgress=S),p=b+s.easing(S)*(g-b),w=(p-d.lastPosition)/t,v=S==1}d.lastVelocity=w,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),v=!0)}l&&!l[m].done&&(v=!1),v?d.done=!0:n=!1,d.setValue(p,s.round)&&(o=!0)});const c=Je(this),u=c.getValue();if(n){const d=Me(r.to);(u!==d||o)&&!s.decay?(c.setValue(d),this._onChange(d)):o&&s.decay&&this._onChange(u),this._stop()}else o&&this._onChange(u)}set(t){return Q.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ht(this)){const{to:t,config:n}=this.animation;Q.batchedUpdates(()=>{this._onStart(),n.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,n){let o;return A.und(t)?(o=this.queue||[],this.queue=[]):o=[A.obj(t)?t:xe({},n,{to:t})],Promise.all(o.map(r=>this._update(r))).then(r=>gr(this,r))}stop(t){const{to:n}=this.animation;return this._focus(this.get()),mn(this._state,t&&this._lastCallId),Q.batchedUpdates(()=>this._stop(n,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){const n=this.key||"";let{to:o,from:r}=t;o=A.obj(o)?o[n]:o,(o==null||hr(o))&&(o=void 0),r=A.obj(r)?r[n]:r,r==null&&(r=void 0);const s={to:o,from:r};return xr(this)||(t.reverse&&([o,r]=[r,o]),r=Me(r),A.und(r)?Je(this)||this._set(o):this._set(r)),s}_update(t,n){let o=xe({},t);const{key:r,defaultProps:s}=this;o.default&&Object.assign(s,mr(o,(c,u)=>/^on/.test(u)?ui(c,r):c)),Ei(this,o,"onProps"),vn(this,"onProps",o,this);const a=this._prepareNode(o);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const l=this._state;return pi(++this._lastCallId,{key:r,props:o,defaultProps:s,state:l,actions:{pause:()=>{hn(this)||(Si(this,!0),rn(l.pauseQueue),vn(this,"onPause",Ue(this,pn(this,this.animation.to)),this))},resume:()=>{hn(this)&&(Si(this,!1),ht(this)&&this._resume(),rn(l.resumeQueue),vn(this,"onResume",Ue(this,pn(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(c=>{if(o.loop&&c.finished&&!(n&&c.noop)){const u=wi(o);if(u)return this._update(u,!0)}return c})}_merge(t,n,o){if(n.cancel)return this.stop(!0),o(Zt(this));const r=!A.und(t.to),s=!A.und(t.from);if(r||s)if(n.callId>this._lastToId)this._lastToId=n.callId;else return o(Zt(this));const{key:a,defaultProps:l,animation:c}=this,{to:u,from:d}=c;let{to:m=u,from:g=d}=t;s&&!r&&(!n.default||A.und(m))&&(m=g),n.reverse&&([m,g]=[g,m]);const v=!rt(g,d);v&&(c.from=g),g=Me(g);const p=!rt(m,u);p&&this._focus(m);const y=hr(n.to),{config:b}=c,{decay:C,velocity:w}=b;(r||s)&&(b.velocity=0),n.config&&!y&&_u(b,wt(n.config,a),n.config!==l.config?wt(l.config,a):void 0);let x=Je(this);if(!x||A.und(m))return o(Ue(this,!0));const S=A.und(n.reset)?s&&!n.default:!A.und(g)&&dn(n.reset,a),k=S?g:this.get(),I=fn(m),M=A.num(I)||A.arr(I)||Hn(I),O=!y&&(!M||dn(l.immediate||n.immediate,a));if(p){const W=fr(m);if(W!==x.constructor)if(O)x=this._set(I);else throw Error(`Cannot animate between ${x.constructor.name} and ${W.name}, as the "to" prop suggests`)}const L=x.constructor;let F=Be(m),N=!1;if(!F){const W=S||!xr(this)&&v;(p||W)&&(N=rt(fn(k),I),F=!N),(!rt(c.immediate,O)&&!O||!rt(b.decay,C)||!rt(b.velocity,w))&&(F=!0)}if(N&&ht(this)&&(c.changed&&!S?F=!0:F||this._stop(u)),!y&&((F||Be(u))&&(c.values=x.getPayload(),c.toValues=Be(m)?null:L==zt?[1]:Te(I)),c.immediate!=O&&(c.immediate=O,!O&&!S&&this._set(u)),F)){const{onRest:W}=c;se(Ou,_=>Ei(this,n,_));const V=Ue(this,pn(this,u));rn(this._pendingCalls,V),this._pendingCalls.add(o),c.changed&&Q.batchedUpdates(()=>{c.changed=!S,W==null||W(V,this),S?wt(l.onRest,V):c.onStart==null||c.onStart(V,this)})}S&&this._set(k),y?o(vi(n.to,n,this._state,this)):F?this._start():ht(this)&&!p?this._pendingCalls.add(o):o(gi(k))}_focus(t){const n=this.animation;t!==n.to&&(Xs(this)&&this._detach(),n.to=t,Xs(this)&&this._attach())}_attach(){let t=0;const{to:n}=this.animation;Be(n)&&(Bt(n,this),vr(n)&&(t=n.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;Be(t)&&cn(t,this)}_set(t,n=!0){const o=Me(t);if(!A.und(o)){const r=Je(this);if(!r||!rt(o,r.getValue())){const s=fr(o);!r||r.constructor!=s?ur(this,s.create(o)):r.setValue(o),r&&Q.batchedUpdates(()=>{this._onChange(o,n)})}}return Je(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,vn(this,"onStart",Ue(this,pn(this,t.to)),this))}_onChange(t,n){n||(this._onStart(),wt(this.animation.onChange,t,this)),wt(this.defaultProps.onChange,t,this),super._onChange(t,n)}_start(){const t=this.animation;Je(this).reset(Me(t.to)),t.immediate||(t.fromValues=t.values.map(n=>n.lastPosition)),ht(this)||(xi(this,!0),hn(this)||this._resume())}_resume(){Qe.skipAnimation?this.finish():An.start(this)}_stop(t,n){if(ht(this)){xi(this,!1);const o=this.animation;se(o.values,s=>{s.done=!0}),o.toValues&&(o.onChange=o.onPause=o.onResume=void 0),ln(this,{type:"idle",parent:this});const r=n?Zt(this.get()):Ue(this.get(),pn(this,t!=null?t:o.to));rn(this._pendingCalls,r),o.changed&&(o.changed=!1,vn(this,"onRest",r,this))}}}function pn(e,t){const n=fn(t),o=fn(e.get());return rt(o,n)}function wi(e,t=e.loop,n=e.to){let o=wt(t);if(o){const r=o!==!0&&fi(o),s=(r||e).reverse,a=!r||r.reset;return gn(xe({},e,{loop:t,default:!1,pause:void 0,to:!s||hr(n)?n:void 0,from:a?e.from:void 0,reset:a},r))}}function gn(e){const{to:t,from:n}=e=fi(e),o=new Set;return A.obj(t)&&ki(t,o),A.obj(n)&&ki(n,o),e.keys=o.size?Array.from(o):null,e}function Nu(e){const t=gn(e);return A.und(t.default)&&(t.default=mr(t)),t}function ki(e,t){Xe(e,(n,o)=>n!=null&&t.add(o))}const Ou=["onStart","onRest","onChange","onPause","onResume"];function Ei(e,t,n){e.animation[n]=t[n]!==di(t,n)?ui(t[n],e.key):void 0}function vn(e,t,...n){var o,r,s,a;(o=(r=e.animation)[t])==null||o.call(r,...n),(s=(a=e.defaultProps)[t])==null||s.call(a,...n)}const Tu=["onStart","onChange","onRest"];let Du=1,Au=class{constructor(t,n){this.id=Du++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),t&&this.start(xe({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each((n,o)=>t[o]=n.get()),t}set(t){for(const n in t){const o=t[n];A.und(o)||this.springs[n].set(o)}}update(t){return t&&this.queue.push(gn(t)),this}start(t){let{queue:n}=this;return t?n=Te(t).map(gn):this.queue=[],this._flush?this._flush(this,n):(Fi(this,n),Sr(this,n))}stop(t,n){if(t!==!!t&&(n=t),n){const o=this.springs;se(Te(n),r=>o[r].stop(!!t))}else mn(this._state,this._lastAsyncId),this.each(o=>o.stop(!!t));return this}pause(t){if(A.und(t))this.start({pause:!0});else{const n=this.springs;se(Te(t),o=>n[o].pause())}return this}resume(t){if(A.und(t))this.start({pause:!1});else{const n=this.springs;se(Te(t),o=>n[o].resume())}return this}each(t){Xe(this.springs,t)}_onFrame(){const{onStart:t,onChange:n,onRest:o}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,on(t,([c,u])=>{u.value=this.get(),c(u,this,this._item)}));const a=!r&&this._started,l=s||a&&o.size?this.get():null;s&&n.size&&on(n,([c,u])=>{u.value=l,c(u,this,this._item)}),a&&(this._started=!1,on(o,([c,u])=>{u.value=l,c(u,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;Q.onFrame(this._onFrame)}};function Sr(e,t){return Promise.all(t.map(n=>Ii(e,n))).then(n=>gr(e,n))}function Ii(e,t,n){return me(this,null,function*(){const{keys:o,to:r,from:s,loop:a,onRest:l,onResolve:c}=t,u=A.obj(t.default)&&t.default;a&&(t.loop=!1),r===!1&&(t.to=null),s===!1&&(t.from=null);const d=A.arr(r)||A.fun(r)?r:void 0;d?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):se(Tu,y=>{const b=t[y];if(A.fun(b)){const C=e._events[y];t[y]=({finished:w,cancelled:x})=>{const S=C.get(b);S?(w||(S.finished=!1),x&&(S.cancelled=!0)):C.set(b,{value:null,finished:w||!1,cancelled:x||!1})},u&&(u[y]=t[y])}});const m=e._state;t.pause===!m.paused?(m.paused=t.pause,rn(t.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(t.pause=!0);const g=(o||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),v=t.cancel===!0||di(t,"cancel")===!0;(d||v&&m.asyncId)&&g.push(pi(++e._lastAsyncId,{props:t,state:m,actions:{pause:Ro,resume:Ro,start(y,b){v?(mn(m,e._lastAsyncId),b(Zt(e))):(y.onRest=l,b(vi(d,y,m,e)))}}})),m.paused&&(yield new Promise(y=>{m.resumeQueue.add(y)}));const p=gr(e,yield Promise.all(g));if(a&&p.finished&&!(n&&p.noop)){const y=wi(t,a,r);if(y)return Fi(e,[y]),Ii(e,y,!0)}return c&&Q.batchedUpdates(()=>c(p,e,e.item)),p})}function $i(e,t){const n=xe({},e.springs);return t&&se(Te(t),o=>{A.und(o.keys)&&(o=gn(o)),A.obj(o.to)||(o=xe({},o,{to:void 0})),Mi(n,o,r=>Pi(r))}),_i(e,n),n}function _i(e,t){Xe(t,(n,o)=>{e.springs[o]||(e.springs[o]=n,Bt(n,e))})}function Pi(e,t){const n=new Fu;return n.key=e,t&&Bt(n,t),n}function Mi(e,t,n){t.keys&&se(t.keys,o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)})}function Fi(e,t){se(t,n=>{Mi(e.springs,n,o=>Pi(o,e))})}function Lu(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}const Bu=["children"],Xn=e=>{let{children:t}=e,n=Lu(e,Bu);const o=i.useContext(Qn),r=n.pause||!!o.pause,s=n.immediate||!!o.immediate;n=du(()=>({pause:r,immediate:s}),[r,s]);const{Provider:a}=Qn;return X.createElement(a,{value:n},t)},Qn=Vu(Xn,{});Xn.Provider=Qn.Provider,Xn.Consumer=Qn.Consumer;function Vu(e,t){return Object.assign(e,X.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}const zu=()=>{const e=[],t=function(r){cu();const s=[];return se(e,(a,l)=>{if(A.und(r))s.push(a.start());else{const c=n(r,a,l);c&&s.push(a.start(c))}}),s};t.current=e,t.add=function(o){e.includes(o)||e.push(o)},t.delete=function(o){const r=e.indexOf(o);~r&&e.splice(r,1)},t.pause=function(){return se(e,o=>o.pause(...arguments)),this},t.resume=function(){return se(e,o=>o.resume(...arguments)),this},t.set=function(o){se(e,r=>r.set(o))},t.start=function(o){const r=[];return se(e,(s,a)=>{if(A.und(o))r.push(s.start());else{const l=this._getProps(o,s,a);l&&r.push(s.start(l))}}),r},t.stop=function(){return se(e,o=>o.stop(...arguments)),this},t.update=function(o){return se(e,(r,s)=>r.update(this._getProps(o,r,s))),this};const n=function(r,s,a){return A.fun(r)?r(a,s):r};return t._getProps=n,t};function Zu(e,t,n){const o=A.fun(t)&&t;o&&!n&&(n=[]);const r=i.useMemo(()=>o||arguments.length==3?zu():void 0,[]),s=i.useRef(0),a=oi(),l=i.useMemo(()=>({ctrls:[],queue:[],flush(C,w){const x=$i(C,w);return s.current>0&&!l.queue.length&&!Object.keys(x).some(k=>!C.springs[k])?Sr(C,w):new Promise(k=>{_i(C,x),l.queue.push(()=>{k(Sr(C,w))}),a()})}}),[]),c=i.useRef([...l.ctrls]),u=[],d=si(e)||0;i.useMemo(()=>{se(c.current.slice(e,d),C=>{Eu(C,r),C.stop(!0)}),c.current.length=e,m(d,e)},[e]),i.useMemo(()=>{m(0,Math.min(d,e))},n);function m(C,w){for(let x=C;x<w;x++){const S=c.current[x]||(c.current[x]=new Au(null,l.flush)),k=o?o(x,S):t[x];k&&(u[x]=Nu(k))}}const g=c.current.map((C,w)=>$i(C,u[w])),v=i.useContext(Xn),p=si(v),y=v!==p&&ku(v);cr(()=>{s.current++,l.ctrls=c.current;const{queue:C}=l;C.length&&(l.queue=[],se(C,w=>w())),se(c.current,(w,x)=>{r==null||r.add(w),y&&w.start({default:v});const S=u[x];S&&(Iu(w,S.ref),w.ref?w.queue.push(S):w.start(S))})}),ri(()=>()=>{se(l.ctrls,C=>C.stop(!0))});const b=g.map(C=>xe({},C));return r?[b,r]:b}function Ve(e,t){const n=A.fun(e),[[o],r]=Zu(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[o,r]:o}let Ni;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(Ni||(Ni={}));class ju extends br{constructor(t,n){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=an(...n);const o=this._get(),r=fr(o);ur(this,r.create(o))}advance(t){const n=this._get(),o=this.get();rt(n,o)||(Je(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&Oi(this._active)&&wr(this)}_get(){const t=A.arr(this.source)?this.source.map(Me):Te(Me(this.source));return this.calc(...t)}_start(){this.idle&&!Oi(this._active)&&(this.idle=!1,se(Un(this),t=>{t.done=!1}),Qe.skipAnimation?(Q.batchedUpdates(()=>this.advance()),wr(this)):An.start(this))}_attach(){let t=1;se(Te(this.source),n=>{Be(n)&&Bt(n,this),vr(n)&&(n.idle||this._active.add(n),t=Math.max(t,n.priority+1))}),this.priority=t,this._start()}_detach(){se(Te(this.source),t=>{Be(t)&&cn(t,this)}),this._active.clear(),wr(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=Te(this.source).reduce((n,o)=>Math.max(n,(vr(o)?o.priority:0)+1),0))}}function Ku(e){return e.idle!==!1}function Oi(e){return!e.size||Array.from(e).every(Ku)}function wr(e){e.idle||(e.idle=!0,se(Un(e),t=>{t.done=!0}),ln(e,{type:"idle",parent:e}))}Qe.assign({createStringInterpolator:ti,to:(e,t)=>new ju(e,t)});function kr(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}const Wu=["style","children","scrollTop","scrollLeft","viewBox"],Ti=/^--/;function Hu(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Ti.test(e)&&!(bn.hasOwnProperty(e)&&bn[e])?t+"px":(""+t).trim()}const Di={};function Uu(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",o=t,{style:r,children:s,scrollTop:a,scrollLeft:l,viewBox:c}=o,u=kr(o,Wu),d=Object.values(u),m=Object.keys(u).map(g=>n||e.hasAttribute(g)?g:Di[g]||(Di[g]=g.replace(/([A-Z])/g,v=>"-"+v.toLowerCase())));s!==void 0&&(e.textContent=s);for(let g in r)if(r.hasOwnProperty(g)){const v=Hu(g,r[g]);Ti.test(g)?e.style.setProperty(g,v):e.style[g]=v}m.forEach((g,v)=>{e.setAttribute(g,d[v])}),a!==void 0&&(e.scrollTop=a),l!==void 0&&(e.scrollLeft=l),c!==void 0&&e.setAttribute("viewBox",c)}let bn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,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};const Yu=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Gu=["Webkit","Ms","Moz","O"];bn=Object.keys(bn).reduce((e,t)=>(Gu.forEach(n=>e[Yu(n,t)]=e[t]),e),bn);const qu=["x","y","z"],Xu=/^(matrix|translate|scale|rotate|skew)/,Qu=/^(translate)/,Ju=/^(rotate|skew)/,Er=(e,t)=>A.num(e)&&e!==0?e+t:e,Jn=(e,t)=>A.arr(e)?e.every(n=>Jn(n,t)):A.num(e)?e===t:parseFloat(e)===t;class Ru extends Gn{constructor(t){let{x:n,y:o,z:r}=t,s=kr(t,qu);const a=[],l=[];(n||o||r)&&(a.push([n||0,o||0,r||0]),l.push(c=>[`translate3d(${c.map(u=>Er(u,"px")).join(",")})`,Jn(c,0)])),Xe(s,(c,u)=>{if(u==="transform")a.push([c||""]),l.push(d=>[d,d===""]);else if(Xu.test(u)){if(delete s[u],A.und(c))return;const d=Qu.test(u)?"px":Ju.test(u)?"deg":"";a.push(Te(c)),l.push(u==="rotate3d"?([m,g,v,p])=>[`rotate3d(${m},${g},${v},${Er(p,d)})`,Jn(p,0)]:m=>[`${u}(${m.map(g=>Er(g,d)).join(",")})`,Jn(m,u.startsWith("scale")?1:0)])}}),a.length&&(s.transform=new ed(a,l)),super(s)}}class ed extends Qs{constructor(t,n){super(),this._value=null,this.inputs=t,this.transforms=n}get(){return this._value||(this._value=this._get())}_get(){let t="",n=!0;return se(this.inputs,(o,r)=>{const s=Me(o[0]),[a,l]=this.transforms[r](A.arr(s)?s:o.map(Me));t+=" "+a,n=n&&l}),n?"none":t}observerAdded(t){t==1&&se(this.inputs,n=>se(n,o=>Be(o)&&Bt(o,this)))}observerRemoved(t){t==0&&se(this.inputs,n=>se(n,o=>Be(o)&&cn(o,this)))}eventObserved(t){t.type=="change"&&(this._value=null),ln(this,t)}}const td=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],nd=["scrollTop","scrollLeft"];Qe.assign({batchedUpdates:Ot.unstable_batchedUpdates,createStringInterpolator:ti,colors:zc});const ke=yu(td,{applyAnimatedValues:Uu,createAnimatedStyle:e=>new Ru(e),getComponentProps:e=>kr(e,nd)}).animated;function od(e){return(typeof e=="function"?e():e)||document.body}function Rn(e,t){if(Tt&&e){const n=od(e);return Ot.createPortal(t,n)}return t}function rd(e){const t=i.useRef(e);return e&&(t.current=!0),!!t.current}const eo=e=>sd(e.active,e.forceRender,e.destroyOnClose)?e.children:null;function sd(e,t,n){const o=rd(e);return t||e?!0:o?!n:!1}const id={click:"onClick",touchstart:"onTouchStart"};function Ai(e,t){const n=Object.assign({},t.props);for(const o of e){const r=id[o];n[r]=function(s){var a,l;s.stopPropagation(),(l=(a=t.props)[r])===null||l===void 0||l.call(a,s)}}return i.cloneElement(t,n)}const Ir="adm-mask",ad={default:.55,thin:.35,thick:.75},ld={black:"0, 0, 0",white:"255, 255, 255"},cd={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},to=e=>{const t=oe(cd,e),{locale:n}=Pe(),o=i.useRef(null);Os(o,t.visible&&t.disableBodyScroll);const r=i.useMemo(()=>{var d;const m=(d=ad[t.opacity])!==null&&d!==void 0?d:t.opacity,g=ld[t.color];return g?`rgba(${g}, ${m})`:t.color},[t.color,t.opacity]),[s,a]=i.useState(t.visible),l=te.useUnmountedRef(),{opacity:c}=Ve({opacity:t.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{a(!0)},onRest:()=>{var d,m;l.current||(a(t.visible),t.visible?(d=t.afterShow)===null||d===void 0||d.call(t):(m=t.afterClose)===null||m===void 0||m.call(t))}}),u=Ai(t.stopPropagation,Y(t,i.createElement(ke.div,{className:Ir,ref:o,"aria-hidden":!0,style:Object.assign(Object.assign({},t.style),{background:r,opacity:c,display:s?void 0:"none"}),onClick:d=>{var m;d.target===d.currentTarget&&((m=t.onMaskClick)===null||m===void 0||m.call(t,d))}},t.onMaskClick&&i.createElement("div",{className:`${Ir}-aria-button`,role:"button","aria-label":n.Mask.name,onClick:t.onMaskClick}),i.createElement("div",{className:`${Ir}-content`},t.children))));return i.createElement(eo,{active:s,forceRender:t.forceRender,destroyOnClose:t.destroyOnClose},Rn(t.getContainer,u))};function ud(e){return X.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"AddOutline-AddOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"AddOutline-add"},X.createElement("rect",{id:"AddOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.createElement("path",{d:"M25.1,6.5 C25.3209139,6.5 25.5,6.6790861 25.5,6.9 L25.5,22.5 L41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L25.5,25.5 L25.5,41.1 C25.5,41.3209139 25.3209139,41.5 25.1,41.5 L22.9,41.5 C22.6790861,41.5 22.5,41.3209139 22.5,41.1 L22.5,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L22.5,22.5 L22.5,6.9 C22.5,6.6790861 22.6790861,6.5 22.9,6.5 L25.1,6.5 Z",id:"AddOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function Li(e){return X.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"CheckOutline-CheckOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CheckOutline-编组"},X.createElement("rect",{id:"CheckOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.createElement("path",{d:"M44.309608,12.6841286 L21.2180499,35.5661955 L21.2180499,35.5661955 C20.6343343,36.1446015 19.6879443,36.1446015 19.1042286,35.5661955 C19.0538201,35.5162456 19.0077648,35.4636155 18.9660627,35.4087682 C18.9113105,35.368106 18.8584669,35.3226694 18.808302,35.2729607 L3.6903839,20.2920499 C3.53346476,20.1365529 3.53231192,19.8832895 3.68780898,19.7263704 C3.7629255,19.6505669 3.86521855,19.6079227 3.97193622,19.6079227 L7.06238923,19.6079227 C7.16784214,19.6079227 7.26902895,19.6495648 7.34393561,19.7237896 L20.160443,32.4236157 L20.160443,32.4236157 L40.656066,12.115858 C40.7309719,12.0416387 40.8321549,12 40.9376034,12 L44.0280571,12 C44.248971,12 44.4280571,12.1790861 44.4280571,12.4 C44.4280571,12.5067183 44.3854124,12.609012 44.309608,12.6841286 Z",id:"CheckOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function dd(e){return X.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"CloseCircleFill-CloseCircleFill",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CloseCircleFill-编组"},X.createElement("rect",{id:"CloseCircleFill-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.createElement("path",{d:"M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M18.6753876,16 L15.5637812,16 C15.4576916,16 15.3559474,16.0421451 15.2809323,16.1171635 C15.124726,16.2733766 15.1247316,16.5266426 15.2809447,16.6828489 L15.2809447,16.6828489 L22.299066,23.7006641 L14.6828159,31.3171619 C14.6078042,31.3921761 14.5656632,31.4939157 14.5656632,31.6 C14.5656632,31.8209139 14.7447493,32 14.9656632,32 L14.9656632,32 L18.0753284,32 C18.1814068,32 18.2831412,31.9578638 18.3581544,31.8828594 L18.3581544,31.8828594 L24.420066,25.8216641 L30.4818451,31.8828564 C30.5568585,31.9578626 30.6585942,32 30.7646741,32 L30.7646741,32 L33.8763476,32 C33.9824309,32 34.0841695,31.9578599 34.1591835,31.8828496 C34.315397,31.7266436 34.3154031,31.4733776 34.1591972,31.3171641 L34.1591972,31.3171641 L26.542066,23.6996641 L33.5591874,16.6828489 C33.6342057,16.6078338 33.6763508,16.5060896 33.6763508,16.4 C33.6763508,16.1790861 33.4972647,16 33.2763508,16 L33.2763508,16 L30.1637654,16 C30.0576705,16 29.9559218,16.0421493 29.8809058,16.1171741 L29.8809058,16.1171741 L24.420066,21.5786641 L18.9582218,16.1171488 C18.883208,16.0421394 18.7814701,16 18.6753876,16 L18.6753876,16 Z",id:"CloseCircleFill-形状结合",fill:"currentColor",fillRule:"nonzero"}))))}function no(e){return X.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"CloseOutline-CloseOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CloseOutline-编组"},X.createElement("rect",{id:"CloseOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.createElement("path",{d:"M10.6085104,8.11754663 L24.1768397,21.8195031 L24.1768397,21.8195031 L37.7443031,8.1175556 C37.8194278,8.04168616 37.9217669,7.999 38.0285372,7.999 L41.1040268,7.999 C41.3249407,7.999 41.5040268,8.1780861 41.5040268,8.399 C41.5040268,8.50440471 41.4624226,8.60554929 41.3882578,8.68044752 L26.2773302,23.9408235 L26.2773302,23.9408235 L41.5021975,39.3175645 C41.65763,39.4745475 41.6563731,39.7278104 41.4993901,39.8832429 C41.4244929,39.9574004 41.3233534,39.999 41.2179546,39.999 L38.1434012,39.999 C38.0366291,39.999 37.9342885,39.9563124 37.8591634,39.8804408 L24.1768397,26.0621438 L24.1768397,26.0621438 L10.4936501,39.8804497 C10.4185257,39.9563159 10.3161889,39.999 10.2094212,39.999 L7.13584526,39.999 C6.91493136,39.999 6.73584526,39.8199139 6.73584526,39.599 C6.73584526,39.4936017 6.77744443,39.3924627 6.85160121,39.3175656 L22.0763492,23.9408235 L22.0763492,23.9408235 L6.96554081,8.68044639 C6.81010226,8.52346929 6.81134951,8.27020637 6.9683266,8.11476782 C7.04322474,8.04060377 7.14436883,7.999 7.24977299,7.999 L10.3242852,7.999 C10.4310511,7.999 10.5333863,8.04168267 10.6085104,8.11754663 Z",id:"CloseOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function fd(e){return X.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"DownOutline-DownOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",null,X.createElement("rect",{id:"DownOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.createElement("path",{d:"M5.11219264,16.3947957 L22.6612572,34.5767382 L22.6612572,34.5767382 C23.2125856,35.1304785 24.0863155,35.1630514 24.6755735,34.6744571 L24.7825775,34.5767382 L42.8834676,16.3956061 C42.9580998,16.320643 43,16.2191697 43,16.1133896 L43,12.9866673 C43,12.7657534 42.8209139,12.5866673 42.6,12.5866673 C42.4936115,12.5866673 42.391606,12.6290496 42.316542,12.7044413 L23.7816937,31.3201933 L23.7816937,31.3201933 L5.6866816,12.7237117 C5.53262122,12.5653818 5.27937888,12.5619207 5.121049,12.7159811 C5.04365775,12.7912854 5,12.8946805 5,13.0026627 L5,16.1170064 C5,16.2206403 5.04022164,16.3202292 5.11219264,16.3947957 Z",id:"DownOutline-down",fill:"currentColor",fillRule:"nonzero"}))))}function md(e){return X.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"LeftOutline-LeftOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"LeftOutline-编组"},X.createElement("rect",{id:"LeftOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.createElement("path",{d:"M31.7053818,5.11219264 L13.5234393,22.6612572 L13.5234393,22.6612572 C12.969699,23.2125856 12.9371261,24.0863155 13.4257204,24.6755735 L13.5234393,24.7825775 L31.7045714,42.8834676 C31.7795345,42.9580998 31.8810078,43 31.9867879,43 L35.1135102,43 C35.3344241,43 35.5135102,42.8209139 35.5135102,42.6 C35.5135102,42.4936115 35.4711279,42.391606 35.3957362,42.316542 L16.7799842,23.7816937 L16.7799842,23.7816937 L35.3764658,5.6866816 C35.5347957,5.53262122 35.5382568,5.27937888 35.3841964,5.121049 C35.3088921,5.04365775 35.205497,5 35.0975148,5 L31.9831711,5 C31.8795372,5 31.7799483,5.04022164 31.7053818,5.11219264 Z",id:"LeftOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function hd(e){return X.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"RightOutline-RightOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"RightOutline-RightOutlined"},X.createElement("rect",{id:"RightOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.createElement("path",{d:"M17.3947957,5.11219264 L35.5767382,22.6612572 L35.5767382,22.6612572 C36.1304785,23.2125856 36.1630514,24.0863155 35.6744571,24.6755735 L35.5767382,24.7825775 L17.3956061,42.8834676 C17.320643,42.9580998 17.2191697,43 17.1133896,43 L13.9866673,43 C13.7657534,43 13.5866673,42.8209139 13.5866673,42.6 C13.5866673,42.4936115 13.6290496,42.391606 13.7044413,42.316542 L32.3201933,23.7816937 L32.3201933,23.7816937 L13.7237117,5.6866816 C13.5653818,5.53262122 13.5619207,5.27937888 13.7159811,5.121049 C13.7912854,5.04365775 13.8946805,5 14.0026627,5 L17.1170064,5 C17.2206403,5 17.3202292,5.04022164 17.3947957,5.11219264 Z",id:"RightOutline-right",fill:"currentColor",fillRule:"nonzero"}))))}function pd(e){return X.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"SearchOutline-SearchOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"SearchOutline-编组"},X.createElement("rect",{id:"SearchOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.createElement("path",{d:"M10.2434135,10.1505371 C17.2346315,3.28315429 28.5696354,3.28315429 35.5608534,10.1505371 C42.3159331,16.7859644 42.5440954,27.4048667 36.2453405,34.3093889 L43.7095294,41.6422249 C43.8671196,41.7970419 43.8693677,42.0502979 43.7145508,42.2078881 C43.7128864,42.2095822 43.7112069,42.2112616 43.7095126,42.2129259 L42.1705322,43.7246464 C42.014915,43.8775072 41.7655181,43.8775006 41.6099089,43.7246316 L34.0775268,36.3248916 L34.0775268,36.3248916 C27.0485579,41.8551751 16.7593545,41.4200547 10.2434135,35.0195303 C3.25219551,28.1521474 3.25219551,17.0179199 10.2434135,10.1505371 Z M12.3532001,12.2229532 C6.52718516,17.9457722 6.52718516,27.2242951 12.3532001,32.9471142 C18.1792151,38.6699332 27.6250517,38.6699332 33.4510667,32.9471142 C39.2770817,27.2242951 39.2770817,17.9457722 33.4510667,12.2229532 C27.6250517,6.50013419 18.1792151,6.50013419 12.3532001,12.2229532 Z",id:"SearchOutline-形状",fill:"currentColor",fillRule:"nonzero"}))))}const gd={closeOnMaskClick:!1,closeIcon:i.createElement(no,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:()=>document.body,mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1};function vd(e){const[t,n]=i.useState(e);return te.useIsomorphicLayoutEffect(()=>{n(e)},[e]),t}function bd(e,t,n){return Math.max(t,Math.min(e,n))}const ve={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Bi(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Vi(e,t,n,o=.15){return o===0?bd(e,t,n):e<t?-Bi(t-e,n-t,o)+t:e>n?+Bi(e-n,n-t,o)+n:e}function yd(e,[t,n],[o,r]){const[[s,a],[l,c]]=e;return[Vi(t,s,a,o),Vi(n,l,c,r)]}function Cd(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xd(e){var t=Cd(e,"string");return typeof t=="symbol"?t:String(t)}function Ee(e,t,n){return t=xd(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zi(Object(n),!0).forEach(function(o){Ee(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}const Zi={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function ji(e){return e?e[0].toUpperCase()+e.slice(1):""}const Sd=["enter","leave"];function wd(e=!1,t){return e&&!Sd.includes(t)}function kd(e,t="",n=!1){const o=Zi[e],r=o&&o[t]||t;return"on"+ji(e)+ji(r)+(wd(n,r)?"Capture":"")}const Ed=["gotpointercapture","lostpointercapture"];function Id(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const o=Ed.includes(t)?"capturecapture":"capture",r=!!~t.indexOf(o);return r&&(t=t.replace("capture","")),{device:t,capture:r,passive:n}}function $d(e,t=""){const n=Zi[e],o=n&&n[t]||t;return e+o}function oo(e){return"touches"in e}function Ki(e){return oo(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function _d(e){return Array.from(e.touches).filter(t=>{var n,o;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(o=n.contains)===null||o===void 0?void 0:o.call(n,t.target))})}function Pd(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Wi(e){return oo(e)?Pd(e)[0]:e}function $r(e,t){try{const n=t.clientX-e.clientX,o=t.clientY-e.clientY,r=(t.clientX+e.clientX)/2,s=(t.clientY+e.clientY)/2,a=Math.hypot(n,o);return{angle:-(Math.atan2(n,o)*180)/Math.PI,distance:a,origin:[r,s]}}catch(n){}return null}function Md(e){return _d(e).map(t=>t.identifier)}function Hi(e,t){const[n,o]=Array.from(e.touches).filter(r=>t.includes(r.identifier));return $r(n,o)}function _r(e){const t=Wi(e);return oo(e)?t.identifier:t.pointerId}function Ui(e){const t=Wi(e);return[t.clientX,t.clientY]}const Yi=40,Gi=800;function qi(e){let{deltaX:t,deltaY:n,deltaMode:o}=e;return o===1?(t*=Yi,n*=Yi):o===2&&(t*=Gi,n*=Gi),[t,n]}function Fd(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s}=e;Object.assign(t,{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s})}return t}function ro(e,...t){return typeof e=="function"?e(...t):e}function Nd(){}function Od(...e){return e.length===0?Nd:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Xi(e,t){return Object.assign({},t,e||{})}const Td=32;class Qi{constructor(t,n,o){this.ctrl=t,this.args=n,this.key=o,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:o,args:r}=this;n[o]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=r,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,o=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=o.from?ro(o.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:o,shared:r}=this;n.args=this.args;let s=0;if(t&&(n.event=t,o.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,Fd(t)),r.down=r.pressed=r.buttons%2===1||r.touches>0,s=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const I=n._delta.map(Math.abs);ve.addTo(n._distance,I)}this.axisIntent&&this.axisIntent(t);const[a,l]=n._movement,[c,u]=o.threshold,{_step:d,values:m}=n;if(o.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(a)>=c&&m[0]),d[1]===!1&&(d[1]=Math.abs(l)>=u&&m[1])):(d[0]===!1&&(d[0]=Math.abs(a)>=c&&Math.sign(a)*c),d[1]===!1&&(d[1]=Math.abs(l)>=u&&Math.sign(l)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const g=[0,0];if(o.hasCustomTransform){const[I,M]=m;g[0]=d[0]!==!1?I-d[0]:0,g[1]=d[1]!==!1?M-d[1]:0}else g[0]=d[0]!==!1?a-d[0]:0,g[1]=d[1]!==!1?l-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(g);const v=n.offset,p=n._active&&!n._blocked||n.active;p&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=r[this.ingKey]=n._active,t&&(n.first&&("bounds"in o&&(n._bounds=ro(o.bounds,n)),this.setup&&this.setup()),n.movement=g,this.computeOffset()));const[y,b]=n.offset,[[C,w],[x,S]]=n._bounds;n.overflow=[y<C?-1:y>w?1:0,b<x?-1:b>S?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const k=n._active?o.rubberband||[0,0]:[0,0];if(n.offset=yd(n._bounds,n.offset,k),n.delta=ve.sub(n.offset,v),this.computeMovement(),p&&(!n.last||s>Td)){n.delta=ve.sub(n.offset,v);const I=n.delta.map(Math.abs);ve.addTo(n.distance,I),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&s>0&&(n.velocity=[I[0]/s,I[1]/s],n.timeDelta=s)}}emit(){const t=this.state,n=this.shared,o=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!o.triggerAllEvents)return;const r=this.handler(pe(pe(pe({},n),t),{},{[this.aliasKey]:t.values}));r!==void 0&&(t.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Dd([e,t],n){const o=Math.abs(e),r=Math.abs(t);if(o>r&&o>n)return"x";if(r>o&&r>n)return"y"}class Ji extends Qi{constructor(...t){super(...t),Ee(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=ve.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=ve.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,o=this.config;if(!n.axis&&t){const r=typeof o.axisThreshold=="object"?o.axisThreshold[Ki(t)]:o.axisThreshold;n.axis=Dd(n._movement,r)}n._blocked=(o.lockDirection||!!o.axis)&&!n.axis||!!o.axis&&o.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const Ad=e=>e,Ri=.15,ea={enabled(e=!0){return e},eventOptions(e,t,n){return pe(pe({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[Ri,Ri];case!1:return[0,0];default:return ve.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return ve.toVector(e)},transform(e,t,n){const o=e||n.shared.transform;return this.hasCustomTransform=!!o,o||Ad},threshold(e){return ve.toVector(e,0)}},Ld=0,jt=pe(pe({},ea),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=Ld){return e},bounds(e={}){if(typeof e=="function")return s=>jt.bounds(e(s));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:o=-1/0,bottom:r=1/0}=e;return[[t,n],[o,r]]}}),ta={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class Bd extends Ji{constructor(...t){super(...t),Ee(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),o=t.currentTarget.getBoundingClientRect(),r={left:n.left-o.left+t.offset[0],right:n.right-o.right+t.offset[0],top:n.top-o.top+t.offset[1],bottom:n.bottom-o.bottom+t.offset[1]};t._bounds=jt.bounds(r)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,o=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const r=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(r&&r.size>1&&o._pointerActive)&&(this.start(t),this.setupPointer(t),o._pointerId=_r(t),o._pointerActive=!0,this.computeValues(Ui(t)),this.computeInitial(),n.preventScrollAxis&&Ki(t)!=="mouse"?(o._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,o=this.config;if(!n._pointerActive)return;const r=_r(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;const s=Ui(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=ve.sub(s,n._values),this.computeValues(s)),ve.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(o.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===o.preventScrollAxis||o.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch(l){}const n=this.state,o=this.config;if(!n._active||!n._pointerActive)return;const r=_r(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[s,a]=n._distance;if(n.tap=s<=o.tapsThreshold&&a<=o.tapsThreshold,n.tap&&o.filterTaps)n._force=!0;else{const[l,c]=n._delta,[u,d]=n._movement,[m,g]=o.swipe.velocity,[v,p]=o.swipe.distance,y=o.swipe.duration;if(n.elapsedTime<y){const b=Math.abs(l/n.timeDelta),C=Math.abs(c/n.timeDelta);b>m&&Math.abs(u)>v&&(n.swipe[0]=Math.sign(l)),C>g&&Math.abs(d)>p&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,o=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,o,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,o,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,o,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,Vd(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=ta[t.key];if(n){const o=this.state,r=t.shiftKey?10:t.altKey?.1:1;this.start(t),o._delta=n(this.config.keyboardDisplacement,r),o._keyboardActive=!0,ve.addTo(o._movement,o._delta),this.compute(t),this.emit()}}keyUp(t){t.key in ta&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Vd(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const yn=typeof window!="undefined"&&window.document&&window.document.createElement;function na(){return yn&&"ontouchstart"in window}function zd(){return na()||yn&&window.navigator.maxTouchPoints>1}function Zd(){return yn&&"onpointerdown"in window}function jd(){return yn&&"exitPointerLock"in window.document}function Kd(){try{return"constructor"in GestureEvent}catch(e){return!1}}const ze={isBrowser:yn,gesture:Kd(),touch:na(),touchscreen:zd(),pointer:Zd(),pointerLock:jd()},Wd=250,Hd=180,Ud=.5,Yd=50,Gd=250,qd=10,oa={mouse:0,touch:0,pen:8},Xd=pe(pe({},jt),{},{device(e,t,{pointer:{touch:n=!1,lock:o=!1,mouse:r=!1}={}}){return this.pointerLock=o&&ze.pointerLock,ze.touch&&n?"touch":this.pointerLock?"mouse":ze.pointer&&!r?"pointer":ze.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?Wd:void 0,!(!ze.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:o=1,keys:r=!0}={}}){return this.pointerButtons=o,this.keys=r,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:o=3,axis:r=void 0}){const s=ve.toVector(e,n?o:r?1:0);return this.filterTaps=n,this.tapsThreshold=o,s},swipe({velocity:e=Ud,distance:t=Yd,duration:n=Gd}={}){return{velocity:this.transform(ve.toVector(e)),distance:this.transform(ve.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return Hd;case!1:return 0;default:return e}},axisThreshold(e){return e?pe(pe({},oa),e):oa},keyboardDisplacement(e=qd){return e}});function ra(e){const[t,n]=e.overflow,[o,r]=e._delta,[s,a]=e._direction;(t<0&&o>0&&s<0||t>0&&o<0&&s>0)&&(e._movement[0]=e._movementBound[0]),(n<0&&r>0&&a<0||n>0&&r<0&&a>0)&&(e._movement[1]=e._movementBound[1])}const Qd=30,Jd=100;class Rd extends Qi{constructor(...t){super(...t),Ee(this,"ingKey","pinching"),Ee(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const t=this.state;t._touchIds=[],t.canceled=!1,t.cancel=this.cancel.bind(this),t.turns=0}computeOffset(){const{type:t,movement:n,lastOffset:o}=this.state;t==="wheel"?this.state.offset=ve.add(n,o):this.state.offset=[(1+n[0])*o[0],n[1]+o[1]]}computeMovement(){const{offset:t,lastOffset:n}=this.state;this.state.movement=[t[0]/n[0],t[1]-n[1]]}axisIntent(){const t=this.state,[n,o]=t._movement;if(!t.axis){const r=Math.abs(n)*Qd-Math.abs(o);r<0?t.axis="angle":r>0&&(t.axis="scale")}}restrictToAxis(t){this.config.lockDirection&&(this.state.axis==="scale"?t[1]=0:this.state.axis==="angle"&&(t[0]=0))}cancel(){const t=this.state;t.canceled||setTimeout(()=>{t.canceled=!0,t._active=!1,this.compute(),this.emit()},0)}touchStart(t){this.ctrl.setEventIds(t);const n=this.state,o=this.ctrl.touchIds;if(n._active&&n._touchIds.every(s=>o.has(s))||o.size<2)return;this.start(t),n._touchIds=Array.from(o).slice(0,2);const r=Hi(t,n._touchIds);r&&this.pinchStart(t,r)}pointerStart(t){if(t.buttons!=null&&t.buttons%2!==1)return;this.ctrl.setEventIds(t),t.target.setPointerCapture(t.pointerId);const n=this.state,o=n._pointerEvents,r=this.ctrl.pointerIds;if(n._active&&Array.from(o.keys()).every(a=>r.has(a))||(o.size<2&&o.set(t.pointerId,t),n._pointerEvents.size<2))return;this.start(t);const s=$r(...Array.from(o.values()));s&&this.pinchStart(t,s)}pinchStart(t,n){const o=this.state;o.origin=n.origin,this.computeValues([n.distance,n.angle]),this.computeInitial(),this.compute(t),this.emit()}touchMove(t){if(!this.state._active)return;const n=Hi(t,this.state._touchIds);n&&this.pinchMove(t,n)}pointerMove(t){const n=this.state._pointerEvents;if(n.has(t.pointerId)&&n.set(t.pointerId,t),!this.state._active)return;const o=$r(...Array.from(n.values()));o&&this.pinchMove(t,o)}pinchMove(t,n){const o=this.state,r=o._values[1],s=n.angle-r;let a=0;Math.abs(s)>270&&(a+=Math.sign(s)),this.computeValues([n.distance,n.angle-360*a]),o.origin=n.origin,o.turns=a,o._movement=[o._values[0]/o._initial[0]-1,o._values[1]-o._initial[1]],this.compute(t),this.emit()}touchEnd(t){this.ctrl.setEventIds(t),this.state._active&&this.state._touchIds.some(n=>!this.ctrl.touchIds.has(n))&&(this.state._active=!1,this.compute(t),this.emit())}pointerEnd(t){const n=this.state;this.ctrl.setEventIds(t);try{t.target.releasePointerCapture(t.pointerId)}catch(o){}n._pointerEvents.has(t.pointerId)&&n._pointerEvents.delete(t.pointerId),n._active&&n._pointerEvents.size<2&&(n._active=!1,this.compute(t),this.emit())}gestureStart(t){t.cancelable&&t.preventDefault();const n=this.state;n._active||(this.start(t),this.computeValues([t.scale,t.rotation]),n.origin=[t.clientX,t.clientY],this.compute(t),this.emit())}gestureMove(t){if(t.cancelable&&t.preventDefault(),!this.state._active)return;const n=this.state;this.computeValues([t.scale,t.rotation]),n.origin=[t.clientX,t.clientY];const o=n._movement;n._movement=[t.scale-1,t.rotation],n._delta=ve.sub(n._movement,o),this.compute(t),this.emit()}gestureEnd(t){this.state._active&&(this.state._active=!1,this.compute(t),this.emit())}wheel(t){const n=this.config.modifierKey;n&&(Array.isArray(n)?!n.find(o=>t[o]):!t[n])||(this.state._active?this.wheelChange(t):this.wheelStart(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(t){this.start(t),this.wheelChange(t)}wheelChange(t){"uv"in t||t.cancelable&&t.preventDefault();const o=this.state;o._delta=[-qi(t)[1]/Jd*o.offset[0],0],ve.addTo(o._movement,o._delta),ra(o),this.state.origin=[t.clientX,t.clientY],this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){const n=this.config.device;n&&(t(n,"start",this[n+"Start"].bind(this)),t(n,"change",this[n+"Move"].bind(this)),t(n,"end",this[n+"End"].bind(this)),t(n,"cancel",this[n+"End"].bind(this)),t("lostPointerCapture","",this[n+"End"].bind(this))),this.config.pinchOnWheel&&t("wheel","",this.wheel.bind(this),{passive:!1})}}const e1=pe(pe({},ea),{},{device(e,t,{shared:n,pointer:{touch:o=!1}={}}){if(n.target&&!ze.touch&&ze.gesture)return"gesture";if(ze.touch&&o)return"touch";if(ze.touchscreen){if(ze.pointer)return"pointer";if(ze.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:o={}}){const r=a=>{const l=Xi(ro(n,a),{min:-1/0,max:1/0});return[l.min,l.max]},s=a=>{const l=Xi(ro(o,a),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof n!="function"&&typeof o!="function"?[r(),s()]:a=>[r(a),s(a)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",ve.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});pe(pe({},jt),{},{mouseOnly:(e=!0)=>e});class t1 extends Ji{constructor(...t){super(...t),Ee(this,"ingKey","wheeling")}wheel(t){this.state._active||this.start(t),this.wheelChange(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(t){const n=this.state;n._delta=qi(t),ve.addTo(n._movement,n._delta),ra(n),this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){t("wheel","",this.wheel.bind(this))}}const n1=jt;pe(pe({},jt),{},{mouseOnly:(e=!0)=>e});const Pr=new Map,Mr=new Map;function Fr(e){Pr.set(e.key,e.engine),Mr.set(e.key,e.resolver)}const sa={key:"drag",engine:Bd,resolver:Xd},o1={key:"pinch",engine:Rd,resolver:e1},r1={key:"wheel",engine:t1,resolver:n1};function s1(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function i1(e,t){if(e==null)return{};var n=s1(e,t),o,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}const a1={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=ze.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},l1=["target","eventOptions","window","enabled","transform"];function so(e={},t){const n={};for(const[o,r]of Object.entries(t))switch(typeof r){case"function":n[o]=r.call(n,e[o],o,e);break;case"object":n[o]=so(e[o],r);break;case"boolean":r&&(n[o]=e[o]);break}return n}function c1(e,t,n={}){const o=e,{target:r,eventOptions:s,window:a,enabled:l,transform:c}=o,u=i1(o,l1);if(n.shared=so({target:r,eventOptions:s,window:a,enabled:l,transform:c},a1),t){const d=Mr.get(t);n[t]=so(pe({shared:n.shared},u),d)}else for(const d in u){const m=Mr.get(d);m&&(n[d]=so(pe({shared:n.shared},u[d]),m))}return n}class ia{constructor(t,n){Ee(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,o,r,s){const a=this._listeners,l=$d(n,o),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=pe(pe({},c),s);t.addEventListener(l,r,u);const d=()=>{t.removeEventListener(l,r,u),a.delete(d)};return a.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class u1{constructor(){Ee(this,"_timeouts",new Map)}add(t,n,o=140,...r){this.remove(t),this._timeouts.set(t,window.setTimeout(n,o,...r))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class d1{constructor(t){Ee(this,"gestures",new Set),Ee(this,"_targetEventStore",new ia(this)),Ee(this,"gestureEventStores",{}),Ee(this,"gestureTimeoutStores",{}),Ee(this,"handlers",{}),Ee(this,"config",{}),Ee(this,"pointerIds",new Set),Ee(this,"touchIds",new Set),Ee(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),f1(this,t)}setEventIds(t){if(oo(t))return this.touchIds=new Set(Md(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=c1(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,o={};let r;if(!(n.target&&(r=n.target(),!r))){if(n.enabled){for(const a of this.gestures){const l=this.config[a],c=aa(o,l.eventOptions,!!r);if(l.enabled){const u=Pr.get(a);new u(this,t,a).bind(c)}}const s=aa(o,n.eventOptions,!!r);for(const a in this.nativeHandlers)s(a,"",l=>this.nativeHandlers[a](pe(pe({},this.state.shared),{},{event:l,args:t})),void 0,!0)}for(const s in o)o[s]=Od(...o[s]);if(!r)return o;for(const s in o){const{device:a,capture:l,passive:c}=Id(s);this._targetEventStore.add(r,a,"",o[s],{capture:l,passive:c})}}}}function Kt(e,t){e.gestures.add(t),e.gestureEventStores[t]=new ia(e,t),e.gestureTimeoutStores[t]=new u1}function f1(e,t){t.drag&&Kt(e,"drag"),t.wheel&&Kt(e,"wheel"),t.scroll&&Kt(e,"scroll"),t.move&&Kt(e,"move"),t.pinch&&Kt(e,"pinch"),t.hover&&Kt(e,"hover")}const aa=(e,t,n)=>(o,r,s,a={},l=!1)=>{var c,u;const d=(c=a.capture)!==null&&c!==void 0?c:t.capture,m=(u=a.passive)!==null&&u!==void 0?u:t.passive;let g=l?o:kd(o,r,d);n&&m&&(g+="Passive"),e[g]=e[g]||[],e[g].push(s)},m1=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function h1(e){const t={},n={},o=new Set;for(let r in e)m1.test(r)?(o.add(RegExp.lastMatch),n[r]=e[r]):t[r]=e[r];return[n,t,o]}function Wt(e,t,n,o,r,s){if(!e.has(n)||!Pr.has(o))return;const a=n+"Start",l=n+"End",c=u=>{let d;return u.first&&a in t&&t[a](u),n in t&&(d=t[n](u)),u.last&&l in t&&t[l](u),d};r[o]=c,s[o]=s[o]||{}}function p1(e,t){const[n,o,r]=h1(e),s={};return Wt(r,n,"onDrag","drag",s,t),Wt(r,n,"onWheel","wheel",s,t),Wt(r,n,"onScroll","scroll",s,t),Wt(r,n,"onPinch","pinch",s,t),Wt(r,n,"onMove","move",s,t),Wt(r,n,"onHover","hover",s,t),{handlers:s,config:t,nativeHandlers:o}}function Nr(e,t={},n,o){const r=i.useMemo(()=>new d1(e),[]);if(r.applyHandlers(e,o),r.applyConfig(t,n),i.useEffect(r.effect.bind(r)),i.useEffect(()=>r.clean.bind(r),[]),t.target===void 0)return r.bind.bind(r)}function io(e,t){return Fr(sa),Nr({drag:e},t||{},"drag")}function g1(e,t){return Fr(r1),Nr({wheel:e},t||{},"wheel")}function v1(e){return e.forEach(Fr),function(n,o){const{handlers:r,nativeHandlers:s,config:a}=p1(n,o||{});return Nr(r,a,void 0,s)}}const ao="adm-popup",b1=Object.assign(Object.assign({},gd),{closeOnSwipe:!1,position:"bottom"}),Ht=e=>{const{locale:t,popup:n={}}=Pe(),o=oe(b1,n,e),r=K(`${ao}-body`,o.bodyClassName,`${ao}-body-position-${o.position}`),[s,a]=i.useState(o.visible),l=i.useRef(null);Os(l,o.disableBodyScroll&&s?"strict":!1),te.useIsomorphicLayoutEffect(()=>{o.visible&&a(!0)},[o.visible]);const c=te.useUnmountedRef(),{percent:u}=Ve({percent:o.visible?0:100,config:{precision:.1,mass:.4,tension:300,friction:30},onRest:()=>{var v,p;c.current||(a(o.visible),o.visible?(v=o.afterShow)===null||v===void 0||v.call(o):(p=o.afterClose)===null||p===void 0||p.call(o))}}),d=io(({swipe:[,v]})=>{var p;o.closeOnSwipe&&(v===1&&o.position==="bottom"||v===-1&&o.position==="top")&&((p=o.onClose)===null||p===void 0||p.call(o))},{axis:"y",enabled:["top","bottom"].includes(o.position)}),m=vd(s&&o.visible),g=Ai(o.stopPropagation,Y(o,i.createElement("div",Object.assign({className:ao,onClick:o.onClick,style:{display:s?void 0:"none",touchAction:["top","bottom"].includes(o.position)?"none":"auto"}},d()),o.mask&&i.createElement(to,{visible:m,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose,onMaskClick:v=>{var p,y;(p=o.onMaskClick)===null||p===void 0||p.call(o,v),o.closeOnMaskClick&&((y=o.onClose)===null||y===void 0||y.call(o))},className:o.maskClassName,style:o.maskStyle,disableBodyScroll:!1,stopPropagation:o.stopPropagation}),i.createElement(ke.div,{className:r,style:Object.assign(Object.assign({},o.bodyStyle),{pointerEvents:u.to(v=>v===0?"unset":"none"),transform:u.to(v=>o.position==="bottom"?`translate(0, ${v}%)`:o.position==="top"?`translate(0, -${v}%)`:o.position==="left"?`translate(-${v}%, 0)`:o.position==="right"?`translate(${v}%, 0)`:"none")}),ref:l},o.showCloseButton&&i.createElement("a",{className:K(`${ao}-close-icon`,"adm-plain-anchor"),onClick:()=>{var v;(v=o.onClose)===null||v===void 0||v.call(o)},role:"button","aria-label":t.common.close},o.closeIcon),o.children))));return i.createElement(eo,{active:s,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose},Rn(o.getContainer,g))},la="adm-safe-area",Cn=e=>Y(e,i.createElement("div",{className:K(la,`${la}-position-${e.position}`)})),lo=Object.assign({},nc),{version:y1,render:C1,unmountComponentAtNode:x1}=lo;let co;try{Number((y1||"").split(".")[0])>=18&&lo.createRoot&&(co=lo.createRoot)}catch(e){}function ca(e){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:t}=lo;t&&typeof t=="object"&&(t.usingClientEntryPoint=e)}const uo="__antd_mobile_root__";function S1(e,t){C1(e,t)}function w1(e,t){ca(!0);const n=t[uo]||co(t);ca(!1),n.render(e),t[uo]=n}function k1(e,t){if(co){w1(e,t);return}S1(e,t)}function E1(e){return x1(e)}function I1(e){return yt(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var t;(t=e[uo])===null||t===void 0||t.unmount(),delete e[uo]})})}function $1(e){return co?I1(e):E1(e)}function Or(e){const t=document.createElement("div");document.body.appendChild(t);function n(){$1(t)&&t.parentNode&&t.parentNode.removeChild(t)}return k1(e,t),n}function xn(e){const t=i.forwardRef((r,s)=>{const[a,l]=i.useState(!1),c=i.useRef(!1),[u,d]=i.useState(e),m=i.useRef(0);i.useEffect(()=>{c.current?v():l(!0)},[]);function g(){var p,y;c.current=!0,l(!1),(y=(p=u.props).onClose)===null||y===void 0||y.call(p)}function v(){var p,y;o(),(y=(p=u.props).afterClose)===null||y===void 0||y.call(p)}return i.useImperativeHandle(s,()=>({close:g,replace:p=>{var y,b;m.current++,(b=(y=u.props).afterClose)===null||b===void 0||b.call(y),d(p)}})),i.cloneElement(u,Object.assign(Object.assign({},u.props),{key:m.current,visible:a,onClose:g,afterClose:v}))}),n=i.createRef(),o=Or(i.createElement(t,{ref:n}));return{close:()=>yt(this,void 0,void 0,function*(){var r,s,a;n.current?(a=n.current)===null||a===void 0||a.close():(o(),(s=(r=e.props).afterClose)===null||s===void 0||s.call(r))}),replace:r=>{var s;(s=n.current)===null||s===void 0||s.replace(r)},isRendered:()=>!!n.current}}const _e="adm-action-sheet",_1={visible:!1,actions:[],cancelText:"",closeOnAction:!1,closeOnMaskClick:!0,safeArea:!0,destroyOnClose:!1,forceRender:!1},ua=e=>{const t=oe(_1,e),{styles:n}=t;return i.createElement(Ht,{visible:t.visible,onMaskClick:()=>{var o,r;(o=t.onMaskClick)===null||o===void 0||o.call(t),t.closeOnMaskClick&&((r=t.onClose)===null||r===void 0||r.call(t))},afterClose:t.afterClose,className:K(`${_e}-popup`,t.popupClassName),style:t.popupStyle,getContainer:t.getContainer,destroyOnClose:t.destroyOnClose,forceRender:t.forceRender,bodyStyle:n==null?void 0:n.body,maskStyle:n==null?void 0:n.mask},Y(t,i.createElement("div",{className:_e},t.extra&&i.createElement("div",{className:`${_e}-extra`},t.extra),i.createElement("div",{className:`${_e}-button-list`},t.actions.map((o,r)=>i.createElement("div",{key:o.key,className:`${_e}-button-item-wrapper`},i.createElement("a",{className:K("adm-plain-anchor",`${_e}-button-item`,{[`${_e}-button-item-danger`]:o.danger,[`${_e}-button-item-disabled`]:o.disabled,[`${_e}-button-item-bold`]:o.bold}),onClick:()=>{var s,a,l;(s=o.onClick)===null||s===void 0||s.call(o),(a=t.onAction)===null||a===void 0||a.call(t,o,r),t.closeOnAction&&((l=t.onClose)===null||l===void 0||l.call(t))},role:"option","aria-disabled":o.disabled},i.createElement("div",{className:`${_e}-button-item-name`},o.text),o.description&&i.createElement("div",{className:`${_e}-button-item-description`},o.description))))),t.cancelText&&i.createElement("div",{className:`${_e}-cancel`,role:"option","aria-label":t.cancelText},i.createElement("div",{className:`${_e}-button-item-wrapper`},i.createElement("a",{className:K("adm-plain-anchor",`${_e}-button-item`),onClick:t.onClose},i.createElement("div",{className:`${_e}-button-item-name`},t.cancelText)))),t.safeArea&&i.createElement(Cn,{position:"bottom"}))))};function P1(e){return xn(i.createElement(ua,Object.assign({},e)))}const M1=we(ua,{show:P1}),da="adm-auto-center",F1=e=>Y(e,i.createElement("div",{className:da},i.createElement("div",{className:`${da}-content`},e.children)));var Tr={},N1=Ct&&Ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tr,"__esModule",{value:!0});var Dr=Tr.staged=void 0;const O1=N1(i);function fa(e){return typeof e=="function"?O1.default.createElement(T1,{stage:e}):e}function T1(e){const t=e.stage();return fa(t)}function D1(e){return function(n,o){const r=e(n,o);return fa(r)}}Dr=Tr.staged=D1;function Et(e){return typeof e=="number"?`${e}px`:e}const A1=e=>{const t=i.useRef(null),[n]=te.useInViewport(t);return i.useEffect(()=>{n&&e.onActive()},[n]),i.createElement("div",{ref:t})},Ar=te.createUpdateEffect(te.useIsomorphicLayoutEffect),L1=()=>i.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M41.396 6.234c1.923 0 3.487 1.574 3.487 3.505v29.14c0 1.937-1.568 3.51-3.491 3.51H6.604c-1.923 0-3.487-1.573-3.487-3.51V9.745c0-1.936 1.564-3.51 3.487-3.51Zm0 2.847H6.604c-.355 0-.654.3-.654.658V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.405 2.405 0 0 1 1.933.752l4.182 4.525 7.58-11.005a2.374 2.374 0 0 1 1.96-1.01c.79 0 1.532.38 1.966 1.01L42.05 34.89V9.74a.664.664 0 0 0-.654-.658Zm-28.305 2.763a3.119 3.119 0 0 1 3.117 3.117 3.119 3.119 0 0 1-3.117 3.117 3.122 3.122 0 0 1-3.117-3.117 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),B1=()=>i.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M19.233 6.233 17.42 9.08l-10.817.001a.665.665 0 0 0-.647.562l-.007.096V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.415 2.415 0 0 1 1.807.625l.126.127 4.182 4.525 2.267-3.292 5.461 7.841-4.065 7.375H6.604c-1.86 0-3.382-1.47-3.482-3.317l-.005-.192V9.744c0-1.872 1.461-3.405 3.296-3.505l.19-.005h12.63Zm22.163 0c1.86 0 3.382 1.472 3.482 3.314l.005.192v29.14a3.507 3.507 0 0 1-3.3 3.505l-.191.006H27.789l3.63-6.587.06-.119a1.87 1.87 0 0 0-.163-1.853l-6.928-9.949 3.047-4.422a2.374 2.374 0 0 1 1.96-1.01 2.4 2.4 0 0 1 1.86.87l.106.14L42.05 34.89V9.74a.664.664 0 0 0-.654-.658H21.855l1.812-2.848h17.73Zm-28.305 5.611c.794 0 1.52.298 2.07.788l-.843 1.325-.067.114a1.87 1.87 0 0 0 .11 1.959l.848 1.217c-.556.515-1.3.83-2.118.83a3.122 3.122 0 0 1-3.117-3.116 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),fo="adm-image",V1={fit:"fill",placeholder:i.createElement("div",{className:`${fo}-tip`},i.createElement(L1,null)),fallback:i.createElement("div",{className:`${fo}-tip`},i.createElement(B1,null)),lazy:!1,draggable:!1},ma=Dr(e=>{const t=oe(V1,e),[n,o]=i.useState(!1),[r,s]=i.useState(!1),a=i.useRef(null),l=i.useRef(null);let c=t.src,u=t.srcSet;const[d,m]=i.useState(!t.lazy);c=d?t.src:void 0,u=d?t.srcSet:void 0,Ar(()=>{o(!1),s(!1)},[c]),i.useEffect(()=>{var p;!((p=l.current)===null||p===void 0)&&p.complete&&o(!0)},[]);function g(){if(r)return i.createElement(i.Fragment,null,t.fallback);const p=i.createElement("img",{ref:l,id:t.id,className:`${fo}-img`,src:c,alt:t.alt,onClick:t.onClick,onLoad:y=>{var b;o(!0),(b=t.onLoad)===null||b===void 0||b.call(t,y)},onError:y=>{var b;s(!0),(b=t.onError)===null||b===void 0||b.call(t,y)},style:{objectFit:t.fit,display:n?"block":"none"},crossOrigin:t.crossOrigin,decoding:t.decoding,loading:t.loading,referrerPolicy:t.referrerPolicy,sizes:t.sizes,srcSet:u,useMap:t.useMap,draggable:t.draggable});return i.createElement(i.Fragment,null,!n&&t.placeholder,p)}const v={};return t.width&&(v["--width"]=Et(t.width),v.width=Et(t.width)),t.height&&(v["--height"]=Et(t.height),v.height=Et(t.height)),Y(t,i.createElement("div",{ref:a,className:fo,style:v,onClick:t.onContainerClick},t.lazy&&!d&&i.createElement(A1,{onActive:()=>{m(!0)}}),g()))}),Ut="adm-badge",ha=i.createElement(i.Fragment,null),pa=we(e=>{const{content:t,color:n,children:o}=e,r=t===ha,s=K(Ut,{[`${Ut}-fixed`]:!!o,[`${Ut}-dot`]:r,[`${Ut}-bordered`]:e.bordered}),a=t||t===0?Y(e,i.createElement("div",{className:s,style:{"--color":n}},!r&&i.createElement("div",{className:`${Ut}-content`},t))):null;return o?i.createElement("div",{className:K(`${Ut}-wrapper`,e.wrapperClassName),style:e.wrapperStyle},o,a):a},{dot:ha}),z1="adm-dot-loading",Z1={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},j1={color:"default"},K1=i.memo(e=>{var t;const n=oe(j1,e);return Y(n,i.createElement("div",{style:{color:(t=Z1[n.color])!==null&&t!==void 0?t:n.color},className:K("adm-loading",z1)},i.createElement("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"}},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-100.000000, -71.000000)"},i.createElement("g",{transform:"translate(95.000000, 71.000000)"},i.createElement("g",{transform:"translate(5.000000, 0.000000)"},[0,1,2].map(o=>i.createElement("rect",{key:o,fill:"currentColor",x:20+o*26,y:"16",width:"8",height:"8",rx:"2"},i.createElement("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${o*.2}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1"}))))))))))});function W1(e){return!!e&&typeof e=="object"&&typeof e.then=="function"}function H1(){return Tt?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}const Ze="adm-button",U1={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:i.createElement(K1,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},st=i.forwardRef((e,t)=>{const n=oe(U1,e),[o,r]=i.useState(!1),s=i.useRef(null),a=n.loading==="auto"?o:n.loading,l=n.disabled||a;i.useImperativeHandle(t,()=>({get nativeElement(){return s.current}}));const c=u=>yt(void 0,void 0,void 0,function*(){if(!n.onClick)return;const d=n.onClick(u);if(W1(d))try{r(!0),yield d,r(!1)}catch(m){throw r(!1),m}});return Y(n,i.createElement("button",{ref:s,type:n.type,onClick:c,className:K(Ze,{[`${Ze}-${n.color}`]:n.color,[`${Ze}-block`]:n.block,[`${Ze}-disabled`]:l,[`${Ze}-fill-outline`]:n.fill==="outline",[`${Ze}-fill-none`]:n.fill==="none",[`${Ze}-mini`]:n.size==="mini",[`${Ze}-small`]:n.size==="small",[`${Ze}-large`]:n.size==="large",[`${Ze}-loading`]:a},`${Ze}-shape-${n.shape}`),disabled:l,onMouseDown:n.onMouseDown,onMouseUp:n.onMouseUp,onTouchStart:n.onTouchStart,onTouchEnd:n.onTouchEnd},a?i.createElement("div",{className:`${Ze}-loading-wrapper`},n.loadingIcon,n.loadingText):i.createElement("span",null,n.children)))});var ga={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ct,function(){var n=1e3,o=6e4,r=36e5,s="millisecond",a="second",l="minute",c="hour",u="day",d="week",m="month",g="quarter",v="year",p="date",y="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var P=["th","st","nd","rd"],E=_%100;return"["+_+(P[(E-20)%10]||P[E]||P[0])+"]"}},x=function(_,P,E){var D=String(_);return!D||D.length>=P?_:""+Array(P+1-D.length).join(E)+_},S={s:x,z:function(_){var P=-_.utcOffset(),E=Math.abs(P),D=Math.floor(E/60),T=E%60;return(P<=0?"+":"-")+x(D,2,"0")+":"+x(T,2,"0")},m:function _(P,E){if(P.date()<E.date())return-_(E,P);var D=12*(E.year()-P.year())+(E.month()-P.month()),T=P.clone().add(D,m),z=E-T<0,j=P.clone().add(D+(z?-1:1),m);return+(-(D+(E-T)/(z?T-j:j-T))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:m,y:v,w:d,d:u,D:p,h:c,m:l,s:a,ms:s,Q:g}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},k="en",I={};I[k]=w;var M="$isDayjsObject",O=function(_){return _ instanceof W||!(!_||!_[M])},L=function _(P,E,D){var T;if(!P)return k;if(typeof P=="string"){var z=P.toLowerCase();I[z]&&(T=z),E&&(I[z]=E,T=z);var j=P.split("-");if(!T&&j.length>1)return _(j[0])}else{var H=P.name;I[H]=P,T=H}return!D&&T&&(k=T),T||!D&&k},F=function(_,P){if(O(_))return _.clone();var E=typeof P=="object"?P:{};return E.date=_,E.args=arguments,new W(E)},N=S;N.l=L,N.i=O,N.w=function(_,P){return F(_,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var W=function(){function _(E){this.$L=L(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[M]=!0}var P=_.prototype;return P.parse=function(E){this.$d=function(D){var T=D.date,z=D.utc;if(T===null)return new Date(NaN);if(N.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var j=T.match(b);if(j){var H=j[2]-1||0,U=(j[7]||"0").substring(0,3);return z?new Date(Date.UTC(j[1],H,j[3]||1,j[4]||0,j[5]||0,j[6]||0,U)):new Date(j[1],H,j[3]||1,j[4]||0,j[5]||0,j[6]||0,U)}}return new Date(T)}(E),this.init()},P.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},P.$utils=function(){return N},P.isValid=function(){return this.$d.toString()!==y},P.isSame=function(E,D){var T=F(E);return this.startOf(D)<=T&&T<=this.endOf(D)},P.isAfter=function(E,D){return F(E)<this.startOf(D)},P.isBefore=function(E,D){return this.endOf(D)<F(E)},P.$g=function(E,D,T){return N.u(E)?this[D]:this.set(T,E)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(E,D){var T=this,z=!!N.u(D)||D,j=N.p(E),H=function(Z,G){var re=N.w(T.$u?Date.UTC(T.$y,G,Z):new Date(T.$y,G,Z),T);return z?re:re.endOf(u)},U=function(Z,G){return N.w(T.toDate()[Z].apply(T.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(G)),T)},J=this.$W,ne=this.$M,ee=this.$D,Ne="set"+(this.$u?"UTC":"");switch(j){case v:return z?H(1,0):H(31,11);case m:return z?H(1,ne):H(0,ne+1);case d:var q=this.$locale().weekStart||0,ue=(J<q?J+7:J)-q;return H(z?ee-ue:ee+(6-ue),ne);case u:case p:return U(Ne+"Hours",0);case c:return U(Ne+"Minutes",1);case l:return U(Ne+"Seconds",2);case a:return U(Ne+"Milliseconds",3);default:return this.clone()}},P.endOf=function(E){return this.startOf(E,!1)},P.$set=function(E,D){var T,z=N.p(E),j="set"+(this.$u?"UTC":""),H=(T={},T[u]=j+"Date",T[p]=j+"Date",T[m]=j+"Month",T[v]=j+"FullYear",T[c]=j+"Hours",T[l]=j+"Minutes",T[a]=j+"Seconds",T[s]=j+"Milliseconds",T)[z],U=z===u?this.$D+(D-this.$W):D;if(z===m||z===v){var J=this.clone().set(p,1);J.$d[H](U),J.init(),this.$d=J.set(p,Math.min(this.$D,J.daysInMonth())).$d}else H&&this.$d[H](U);return this.init(),this},P.set=function(E,D){return this.clone().$set(E,D)},P.get=function(E){return this[N.p(E)]()},P.add=function(E,D){var T,z=this;E=Number(E);var j=N.p(D),H=function(ne){var ee=F(z);return N.w(ee.date(ee.date()+Math.round(ne*E)),z)};if(j===m)return this.set(m,this.$M+E);if(j===v)return this.set(v,this.$y+E);if(j===u)return H(1);if(j===d)return H(7);var U=(T={},T[l]=o,T[c]=r,T[a]=n,T)[j]||1,J=this.$d.getTime()+E*U;return N.w(J,this)},P.subtract=function(E,D){return this.add(-1*E,D)},P.format=function(E){var D=this,T=this.$locale();if(!this.isValid())return T.invalidDate||y;var z=E||"YYYY-MM-DDTHH:mm:ssZ",j=N.z(this),H=this.$H,U=this.$m,J=this.$M,ne=T.weekdays,ee=T.months,Ne=T.meridiem,q=function(G,re,ge,Ce){return G&&(G[re]||G(D,z))||ge[re].slice(0,Ce)},ue=function(G){return N.s(H%12||12,G,"0")},Z=Ne||function(G,re,ge){var Ce=G<12?"AM":"PM";return ge?Ce.toLowerCase():Ce};return z.replace(C,function(G,re){return re||function(ge){switch(ge){case"YY":return String(D.$y).slice(-2);case"YYYY":return N.s(D.$y,4,"0");case"M":return J+1;case"MM":return N.s(J+1,2,"0");case"MMM":return q(T.monthsShort,J,ee,3);case"MMMM":return q(ee,J);case"D":return D.$D;case"DD":return N.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return q(T.weekdaysMin,D.$W,ne,2);case"ddd":return q(T.weekdaysShort,D.$W,ne,3);case"dddd":return ne[D.$W];case"H":return String(H);case"HH":return N.s(H,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return Z(H,U,!0);case"A":return Z(H,U,!1);case"m":return String(U);case"mm":return N.s(U,2,"0");case"s":return String(D.$s);case"ss":return N.s(D.$s,2,"0");case"SSS":return N.s(D.$ms,3,"0");case"Z":return j}return null}(G)||j.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(E,D,T){var z,j=this,H=N.p(D),U=F(E),J=(U.utcOffset()-this.utcOffset())*o,ne=this-U,ee=function(){return N.m(j,U)};switch(H){case v:z=ee()/12;break;case m:z=ee();break;case g:z=ee()/3;break;case d:z=(ne-J)/6048e5;break;case u:z=(ne-J)/864e5;break;case c:z=ne/r;break;case l:z=ne/o;break;case a:z=ne/n;break;default:z=ne}return T?z:N.a(z)},P.daysInMonth=function(){return this.endOf(m).$D},P.$locale=function(){return I[this.$L]},P.locale=function(E,D){if(!E)return this.$L;var T=this.clone(),z=L(E,D,!0);return z&&(T.$L=z),T},P.clone=function(){return N.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},_}(),V=W.prototype;return F.prototype=V,[["$ms",s],["$s",a],["$m",l],["$H",c],["$W",u],["$M",m],["$y",v],["$D",p]].forEach(function(_){V[_[1]]=function(P){return this.$g(P,_[0],_[1])}}),F.extend=function(_,P){return _.$i||(_(P,W,F),_.$i=!0),F},F.locale=L,F.isDayjs=O,F.unix=function(_){return F(1e3*_)},F.en=I[k],F.Ls=I,F.p={},F})})(ga);var Y1=ga.exports;const he=xt(Y1),va=()=>i.createElement("svg",{height:"1em",viewBox:"0 0 44 44"},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-100.000000, -22.000000)"},i.createElement("g",{transform:"translate(100.000000, 22.000000)"},i.createElement("rect",{x:"0",y:"0",width:"44",height:"44"}),i.createElement("g",{transform:"translate(12.000000, 4.000000)",fill:"currentColor",fillRule:"nonzero"},i.createElement("path",{d:"M19.4833058,2.71985611 L3.53051139,17.0699744 C3.0173831,17.5315665 2.97522952,18.3220903 3.43630803,18.8357433 L3.43630796,18.8357432 C3.46601289,18.8688164 3.49745845,18.9002801 3.53051133,18.9300007 L19.4833057,33.2801611 C20.1234001,33.8559077 20.1759552,34.8420707 19.6007967,35.4827774 C19.0256382,36.1235263 18.0404824,36.1761351 17.400388,35.6003885 L1.44759367,21.2502703 L1.4475933,21.25027 C1.33208743,21.1463692 1.22220259,21.036372 1.11840792,20.920748 C-0.49302969,19.1256817 -0.345639536,16.3628317 1.4475933,14.7497465 L17.4003877,0.399628282 C18.0404821,-0.176160428 19.0256378,-0.123509422 19.6007963,0.517239417 C20.1759548,1.1579461 20.1233997,2.14410915 19.4833053,2.7198557 L19.4833058,2.71985611 Z"})))))),ba=()=>i.createElement("svg",{height:"1em",viewBox:"0 0 44 44"},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-24.000000, -22.000000)"},i.createElement("g",{transform:"translate(24.000000, 22.000000)"},i.createElement("rect",{x:"0",y:"0",width:"44",height:"44"}),i.createElement("g",{transform:"translate(7.000000, 4.000000)",fill:"currentColor",fillRule:"nonzero"},i.createElement("path",{d:"M19.4833058,2.71985611 L3.53051139,17.0699744 C3.0173831,17.5315665 2.97522952,18.3220903 3.43630803,18.8357433 L3.43630796,18.8357432 C3.46601289,18.8688164 3.49745845,18.9002801 3.53051133,18.9300007 L19.4833057,33.2801611 C20.1234001,33.8559077 20.1759552,34.8420707 19.6007967,35.4827774 C19.0256382,36.1235263 18.0404824,36.1761351 17.400388,35.6003885 L1.44759367,21.2502703 L1.4475933,21.25027 C1.33208743,21.1463692 1.22220259,21.036372 1.11840792,20.920748 C-0.49302969,19.1256817 -0.345639536,16.3628317 1.4475933,14.7497465 L17.4003877,0.399628282 C18.0404821,-0.176160428 19.0256378,-0.123509422 19.6007963,0.517239417 C20.1759548,1.1579461 20.1233997,2.14410915 19.4833053,2.7198557 L19.4833058,2.71985611 Z"}),i.createElement("path",{d:"M19.5305114,17.0699744 C19.0173831,17.5315665 18.9752295,18.3220903 19.436308,18.8357433 C19.4660129,18.8688164 19.4974585,18.9002801 19.5305113,18.9300007 L29.4833057,27.2801611 C30.1234001,27.8559077 30.1759552,28.8420707 29.6007967,29.4827774 C29.0256382,30.1235263 28.0404824,30.1761351 27.400388,29.6003885 L17.4475937,21.2502703 C17.3320874,21.1463692 17.2222026,21.036372 17.1184079,20.920748 C15.5069703,19.1256817 15.6543605,16.3628317 17.4475933,14.7497465 L27.4003877,6.39962828 C28.0404821,5.82383957 29.0256378,5.87649058 29.6007963,6.51723942 C30.1759548,7.1579461 30.1233997,8.14410915 29.4833053,8.7198557 L19.5305114,17.0699744 Z"}))))));var ya={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ct,function(){var n="day";return function(o,r,s){var a=function(u){return u.add(4-u.isoWeekday(),n)},l=r.prototype;l.isoWeekYear=function(){return a(this).year()},l.isoWeek=function(u){if(!this.$utils().u(u))return this.add(7*(u-this.isoWeek()),n);var d,m,g,v,p=a(this),y=(d=this.isoWeekYear(),m=this.$u,g=(m?s.utc:s)().year(d).startOf("year"),v=4-g.isoWeekday(),g.isoWeekday()>4&&(v+=7),g.add(v,n));return p.diff(y,"week")+1},l.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var c=l.startOf;l.startOf=function(u,d){var m=this.$utils(),g=!!m.u(d)||d;return m.p(u)==="isoweek"?g?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(u,d)}}})})(ya);var G1=ya.exports;const Lr=xt(G1);function Ie(e){const{value:t,defaultValue:n,onChange:o}=e,r=te.useUpdate(),s=i.useRef(t!==void 0?t:n);t!==void 0&&(s.current=t);const a=te.useMemoizedFn((l,c=!1)=>{const u=typeof l=="function"?l(s.current):l;if(!(!c&&u===s.current))return s.current=u,r(),o==null?void 0:o(u)});return[s.current,a]}function q1(e,t){return e.replace(/\$\{\w+\}/g,n=>{const o=n.slice(2,-1);return t[o]})}function Ca(e,t){return e===void 0||t===null?null:Array.isArray(t)?t:[t,t]}function Br(e){return he().year(e.year).month(e.month-1).date(1)}he.extend(Lr);const fe="adm-calendar",X1={weekStartsOn:"Sunday",defaultValue:null,allowClear:!0,prevMonthButton:i.createElement(va,null),prevYearButton:i.createElement(ba,null),nextMonthButton:i.createElement(va,null),nextYearButton:i.createElement(ba,null)},Q1=i.forwardRef((e,t)=>{const n=he(),o=oe(X1,e),{locale:r}=Pe(),s=[...r.Calendar.markItems];if(o.weekStartsOn==="Sunday"){const x=s.pop();x&&s.unshift(x)}const[a,l]=Ie({value:o.value===void 0?void 0:Ca(o.selectionMode,o.value),defaultValue:Ca(o.selectionMode,o.defaultValue),onChange:x=>{var S,k;o.selectionMode==="single"?(S=o.onChange)===null||S===void 0||S.call(o,x?x[0]:null):o.selectionMode==="range"&&((k=o.onChange)===null||k===void 0||k.call(o,x))}}),[c,u]=i.useState(!1),[d,m]=i.useState(()=>he(a?a[0]:n).date(1));te.useUpdateEffect(()=>{var x;(x=o.onPageChange)===null||x===void 0||x.call(o,d.year(),d.month()+1)},[d]),i.useImperativeHandle(t,()=>({jumpTo:x=>{let S;typeof x=="function"?S=x({year:d.year(),month:d.month()+1}):S=x,m(Br(S))},jumpToToday:()=>{m(he().date(1))}}));const g=(x,S,k)=>{const I=d[x](S,k);if(x==="subtract"&&o.minPage){const M=Br(o.minPage);if(I.isBefore(M,k))return}if(x==="add"&&o.maxPage){const M=Br(o.maxPage);if(I.isAfter(M,k))return}m(I)},v=i.createElement("div",{className:`${fe}-header`},i.createElement("a",{className:`${fe}-arrow-button ${fe}-arrow-button-year`,onClick:()=>{g("subtract",1,"year")}},o.prevYearButton),i.createElement("a",{className:`${fe}-arrow-button ${fe}-arrow-button-month`,onClick:()=>{g("subtract",1,"month")}},o.prevMonthButton),i.createElement("div",{className:`${fe}-title`},q1(r.Calendar.yearAndMonth,{year:d.year().toString(),month:(d.month()+1).toString()})),i.createElement("a",{className:K(`${fe}-arrow-button`,`${fe}-arrow-button-right`,`${fe}-arrow-button-right-month`),onClick:()=>{g("add",1,"month")}},o.nextMonthButton),i.createElement("a",{className:K(`${fe}-arrow-button`,`${fe}-arrow-button-right`,`${fe}-arrow-button-right-year`),onClick:()=>{g("add",1,"year")}},o.nextYearButton)),p=i.useMemo(()=>o.max&&he(o.max),[o.max]),y=i.useMemo(()=>o.min&&he(o.min),[o.min]);function b(){var x;const S=[];let k=d.subtract(d.isoWeekday(),"day");for(o.weekStartsOn==="Monday"&&(k=k.add(1,"day"));S.length<6*7;){const I=k;let M=!1,O=!1,L=!1,F=!1,N=!1;if(a){const[_,P]=a;O=I.isSame(_,"day"),L=I.isSame(P,"day"),M=O||L||I.isAfter(_,"day")&&I.isBefore(P,"day"),M&&(F=(S.length%7===0||I.isSame(I.startOf("month"),"day"))&&!O,N=(S.length%7===6||I.isSame(I.endOf("month"),"day"))&&!L)}const W=I.month()===d.month(),V=o.shouldDisableDate?o.shouldDisableDate(I.toDate()):p&&I.isAfter(p,"day")||y&&I.isBefore(y,"day");S.push(i.createElement("div",{key:I.valueOf(),className:K(`${fe}-cell`,(V||!W)&&`${fe}-cell-disabled`,W&&{[`${fe}-cell-today`]:I.isSame(n,"day"),[`${fe}-cell-selected`]:M,[`${fe}-cell-selected-begin`]:O,[`${fe}-cell-selected-end`]:L,[`${fe}-cell-selected-row-begin`]:F,[`${fe}-cell-selected-row-end`]:N}),onClick:()=>{if(!o.selectionMode||V)return;const _=I.toDate();W||m(I.clone().date(1));function P(){if(!o.allowClear||!a)return!1;const[E,D]=a;return I.isSame(E,"date")&&I.isSame(D,"day")}if(o.selectionMode==="single"){if(o.allowClear&&P()){l(null);return}l([_,_])}else if(o.selectionMode==="range"){if(!a){l([_,_]),u(!0);return}if(P()){l(null),u(!1);return}if(c){const E=a[0];l(E>_?[_,E]:[E,_]),u(!1)}else l([_,_]),u(!0)}}},i.createElement("div",{className:`${fe}-cell-top`},o.renderDate?o.renderDate(I.toDate()):I.date()),i.createElement("div",{className:`${fe}-cell-bottom`},(x=o.renderLabel)===null||x===void 0?void 0:x.call(o,I.toDate())))),k=k.add(1,"day")}return S}const C=i.createElement("div",{className:`${fe}-cells`},b()),w=i.createElement("div",{className:`${fe}-mark`},s.map((x,S)=>i.createElement("div",{key:S,className:`${fe}-mark-cell`},x)));return Y(o,i.createElement("div",{className:fe},v,w,C))});var xa={exports:{}},ce={};/**
|
|
126
126
|
* @license React
|
|
127
127
|
* react-is.production.min.js
|
|
128
128
|
*
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
*
|
|
131
131
|
* This source code is licensed under the MIT license found in the
|
|
132
132
|
* LICENSE file in the root directory of this source tree.
|
|
133
|
-
*/var zr=Symbol.for("react.element"),Vr=Symbol.for("react.portal"),mo=Symbol.for("react.fragment"),ho=Symbol.for("react.strict_mode"),po=Symbol.for("react.profiler"),go=Symbol.for("react.provider"),vo=Symbol.for("react.context"),J1=Symbol.for("react.server_context"),bo=Symbol.for("react.forward_ref"),yo=Symbol.for("react.suspense"),Co=Symbol.for("react.suspense_list"),xo=Symbol.for("react.memo"),So=Symbol.for("react.lazy"),R1=Symbol.for("react.offscreen"),Sa;Sa=Symbol.for("react.module.reference");function je(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zr:switch(e=e.type,e){case mo:case po:case ho:case yo:case Co:return e;default:switch(e=e&&e.$$typeof,e){case J1:case vo:case bo:case So:case xo:case go:return e;default:return t}}case Vr:return t}}}ce.ContextConsumer=vo,ce.ContextProvider=go,ce.Element=zr,ce.ForwardRef=bo,ce.Fragment=mo,ce.Lazy=So,ce.Memo=xo,ce.Portal=Vr,ce.Profiler=po,ce.StrictMode=ho,ce.Suspense=yo,ce.SuspenseList=Co,ce.isAsyncMode=function(){return!1},ce.isConcurrentMode=function(){return!1},ce.isContextConsumer=function(e){return je(e)===vo},ce.isContextProvider=function(e){return je(e)===go},ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zr},ce.isForwardRef=function(e){return je(e)===bo},ce.isFragment=function(e){return je(e)===mo},ce.isLazy=function(e){return je(e)===So},ce.isMemo=function(e){return je(e)===xo},ce.isPortal=function(e){return je(e)===Vr},ce.isProfiler=function(e){return je(e)===po},ce.isStrictMode=function(e){return je(e)===ho},ce.isSuspense=function(e){return je(e)===yo},ce.isSuspenseList=function(e){return je(e)===Co},ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===mo||e===po||e===ho||e===yo||e===Co||e===R1||typeof e=="object"&&e!==null&&(e.$$typeof===So||e.$$typeof===xo||e.$$typeof===go||e.$$typeof===vo||e.$$typeof===bo||e.$$typeof===Sa||e.getModuleId!==void 0)},ce.typeOf=je,xa.exports=ce;var e0=xa.exports;const wo="adm-divider",t0={contentPosition:"center",direction:"horizontal"},Zr=e=>{const t=oe(t0,e);return Y(t,i.createElement("div",{className:K(wo,`${wo}-${t.direction}`,`${wo}-${t.contentPosition}`)},t.children&&i.createElement("div",{className:`${wo}-content`},t.children)))};function wa(e,t){const n=te.useMemoizedFn(e);te.useIsomorphicLayoutEffect(()=>{const o=t.current;if(o)if(window.ResizeObserver){let r;const s=new ResizeObserver(()=>{r=window.requestAnimationFrame(()=>n(o))});return s.observe(o),()=>{window.cancelAnimationFrame(r),s.disconnect()}}else n(o)},[t])}function n0(e,t,n){if(e&&typeof MutationObserver!="undefined"){let o=new MutationObserver(()=>{n()});return o.observe(e,t),()=>{o&&(o.disconnect(),o=null)}}return()=>{}}function ka(e,t,n){const o=te.useMemoizedFn(e);i.useEffect(()=>n0(t.current,n,o),[t])}function ye(e,t,n){let o=e;return t!==void 0&&(o=Math.max(e,t)),n!==void 0&&(o=Math.min(o,n)),o}const o0=(e,t)=>{const[{scrollLeft:n},o]=ze(()=>({scrollLeft:0,config:{tension:300,clamp:!0}}));function r(s=!1){const a=e.current;if(!a||t===void 0)return;const c=a.children.item(t).children.item(0),u=c.offsetLeft,d=c.offsetWidth,m=a.offsetWidth,g=a.scrollWidth,v=a.scrollLeft;if(g-m<=0)return;const y=ye(u-(m-d)/2,0,g-m);o.start({scrollLeft:y,from:{scrollLeft:v},immediate:s&&!n.isAnimating})}return te.useIsomorphicLayoutEffect(()=>{r(!0)},[]),Ar(()=>{r()},[t]),ka(()=>{r(!0)},e,{subtree:!0,childList:!0,characterData:!0}),{scrollLeft:n,animate:r}},ko="adm-scroll-mask",r0=e=>{const t=i.useRef(null),[{leftMaskOpacity:n,rightMaskOpacity:o},r]=ze(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}})),{run:s}=te.useThrottleFn((a=!1)=>{if(!t.current)return;const c=e.scrollTrackRef.current;if(!c)return;const u=c.scrollLeft,d=u>0,m=u+c.offsetWidth<c.scrollWidth;r.start({leftMaskOpacity:d?1:0,rightMaskOpacity:m?1:0,immediate:a})},{wait:100,trailing:!0,leading:!0});return i.useEffect(()=>{s(!0)},[]),i.useEffect(()=>{const a=e.scrollTrackRef.current;if(a)return a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)},[]),i.createElement(i.Fragment,null,i.createElement(ke.div,{ref:t,className:K(ko,`${ko}-left`),style:{opacity:n}}),i.createElement(ke.div,{className:K(ko,`${ko}-right`),style:{opacity:o}}))};function jr(e,t){let n=0;function o(r){i.Children.forEach(r,s=>{e0.isFragment(s)?o(s.props.children):(t(s,n),n+=1)})}o(e)}function Ea(e,t,n){return e*t*n/(t+n*e)}function Eo(e,t,n,o,r=.15){return r===0?ye(e,t,n):e<t?-Ea(t-e,o,r)+t:e>n?+Ea(e-n,o,r)+n:e}var s0=typeof Element!="undefined",i0=typeof Map=="function",a0=typeof Set=="function",l0=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Io(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,o,r;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!Io(e[o],t[o]))return!1;return!0}var s;if(i0&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(o=s.next()).done;)if(!t.has(o.value[0]))return!1;for(s=e.entries();!(o=s.next()).done;)if(!Io(o.value[1],t.get(o.value[0])))return!1;return!0}if(a0&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(o=s.next()).done;)if(!t.has(o.value[0]))return!1;return!0}if(l0&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[o]))return!1;if(s0&&e instanceof Element)return!1;for(o=n;o--!==0;)if(!((r[o]==="_owner"||r[o]==="__v"||r[o]==="__o")&&e.$$typeof)&&!Io(e[r[o]],t[r[o]]))return!1;return!0}return e!==e&&t!==t}var c0=function(t,n){try{return Io(t,n)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const Kr=xt(c0);function Ia(e){if(e==null||e==="")return 0;const t=e.trim();return t.endsWith("px")?parseFloat(t):t.endsWith("rem")?parseFloat(t)*parseFloat(window.getComputedStyle(document.documentElement).fontSize):t.endsWith("vw")?parseFloat(t)*window.innerWidth/100:0}const Re="adm-picker-view",$a=i.memo(e=>{const{value:t,column:n,renderLabel:o}=e;function r(C){e.onSelect(C,e.index)}const[{y:s},a]=ze(()=>({from:{y:0},config:{tension:400,mass:.8}})),l=i.useRef(!1),c=i.useRef(null),u=i.useRef(null),d=i.useRef(34);te.useIsomorphicLayoutEffect(()=>{const C=u.current;C&&(d.current=Ia(window.getComputedStyle(C).getPropertyValue("height")))}),te.useIsomorphicLayoutEffect(()=>{if(l.current||t===null)return;const C=n.findIndex(x=>x.value===t);if(C<0)return;const w=C*-d.current;a.start({y:w,immediate:s.goal!==w})},[t,n]),te.useIsomorphicLayoutEffect(()=>{if(n.length===0)t!==null&&r(null);else if(!n.some(C=>C.value===t)){const C=n[0];r(C.value)}},[n,t]);function m(C){const w=C*-d.current;a.start({y:w});const x=n[C];x&&r(x.value)}const g=C=>{const{direction:[,w],distance:[,x],velocity:[,S],offset:[,k],last:I}=C;return{direction:w,distance:x,velocity:S,offset:k,last:I}},v=C=>{l.current=!0;const w=-((n.length-1)*d.current),x=0,{direction:S,last:k,velocity:I,offset:M}=g(C);if(k){l.current=!1;const O=M+I*S*50,L=ye(O,w,x),F=-Math.round(L/d.current);m(F)}else{const O=M;a.start({y:Eo(O,w,x,d.current*50,.2)})}},p=C=>{l.current=!0;const w=-((n.length-1)*d.current),x=0,{direction:S,last:k,velocity:I,distance:M}=g(C),O=-S,L=s.get();if(k){l.current=!1;const F=I*O*50,N=L+M*O+F,W=ye(N,w,x),z=-Math.round(W/d.current);m(z)}else{const F=L+M*O;a.start({y:Eo(F,w,x,d.current*50,.2)})}};io(C=>{C.event.stopPropagation(),v(C)},{axis:"y",from:()=>[0,s.get()],filterTaps:!0,pointer:{touch:!0},target:c}),g1(C=>{C.event.stopPropagation(),p(C)},{target:e.mouseWheel?c:void 0,axis:"y",from:()=>[0,s.get()],preventDefault:!0,eventOptions:On?{passive:!1}:void 0});let y=null;function b(){if(y===null)return null;const C=n[y],w=y-1,x=y+1,S=n[w],k=n[x];return i.createElement("div",{className:`${Re}-column-accessible`},i.createElement("div",{className:`${Re}-column-accessible-current`,role:"button","aria-label":C?`当前选择的是:${C.label}`:"当前未选择"},"-"),i.createElement("div",{className:`${Re}-column-accessible-button`,onClick:()=>{S&&m(w)},role:S?"button":"text","aria-label":S?`选择上一项:${S.label}`:"没有上一项"},"-"),i.createElement("div",{className:`${Re}-column-accessible-button`,onClick:()=>{k&&m(x)},role:k?"button":"text","aria-label":k?`选择下一项:${k.label}`:"没有下一项"},"-"))}return i.createElement("div",{className:`${Re}-column`},i.createElement("div",{className:`${Re}-item-height-measure`,ref:u}),i.createElement(ke.div,{ref:c,style:{translateY:s},className:`${Re}-column-wheel`,"aria-hidden":!0},n.map((C,w)=>{var x;const S=e.value===C.value;S&&(y=w);function k(){l.current=!1,m(w)}return i.createElement("div",{key:(x=C.key)!==null&&x!==void 0?x:C.value,"data-selected":S,className:K(`${Re}-column-item`,{[`${Re}-column-item-active`]:S}),onClick:k,"aria-hidden":!S,"aria-label":S?"active":""},i.createElement("div",{className:`${Re}-column-item-label`},o(C)))})),b())},(e,t)=>!(e.index!==t.index||e.value!==t.value||e.onSelect!==t.onSelect||e.renderLabel!==t.renderLabel||e.mouseWheel!==t.mouseWheel||!Kr(e.column,t.column)));$a.displayName="Wheel";function _a(e){let t=null;return()=>(t===null&&(t=e()),t)}function Pa(e,t){const n=_a(()=>(typeof e=="function"?e(t):e).map(a=>a.map(l=>typeof l=="string"?{label:l,value:l}:l))),o=_a(()=>t.map((s,a)=>{var l;const c=n()[a];return c&&(l=c.find(u=>u.value===s))!==null&&l!==void 0?l:null}));return{get columns(){return n()},get items(){return o()}}}function Ma(e,t){return i.useMemo(()=>Pa(e,t),[e,t])}const Fa=e=>e.label;var Na={exports:{}},Oa={};/**
|
|
133
|
+
*/var Vr=Symbol.for("react.element"),zr=Symbol.for("react.portal"),mo=Symbol.for("react.fragment"),ho=Symbol.for("react.strict_mode"),po=Symbol.for("react.profiler"),go=Symbol.for("react.provider"),vo=Symbol.for("react.context"),J1=Symbol.for("react.server_context"),bo=Symbol.for("react.forward_ref"),yo=Symbol.for("react.suspense"),Co=Symbol.for("react.suspense_list"),xo=Symbol.for("react.memo"),So=Symbol.for("react.lazy"),R1=Symbol.for("react.offscreen"),Sa;Sa=Symbol.for("react.module.reference");function je(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Vr:switch(e=e.type,e){case mo:case po:case ho:case yo:case Co:return e;default:switch(e=e&&e.$$typeof,e){case J1:case vo:case bo:case So:case xo:case go:return e;default:return t}}case zr:return t}}}ce.ContextConsumer=vo,ce.ContextProvider=go,ce.Element=Vr,ce.ForwardRef=bo,ce.Fragment=mo,ce.Lazy=So,ce.Memo=xo,ce.Portal=zr,ce.Profiler=po,ce.StrictMode=ho,ce.Suspense=yo,ce.SuspenseList=Co,ce.isAsyncMode=function(){return!1},ce.isConcurrentMode=function(){return!1},ce.isContextConsumer=function(e){return je(e)===vo},ce.isContextProvider=function(e){return je(e)===go},ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vr},ce.isForwardRef=function(e){return je(e)===bo},ce.isFragment=function(e){return je(e)===mo},ce.isLazy=function(e){return je(e)===So},ce.isMemo=function(e){return je(e)===xo},ce.isPortal=function(e){return je(e)===zr},ce.isProfiler=function(e){return je(e)===po},ce.isStrictMode=function(e){return je(e)===ho},ce.isSuspense=function(e){return je(e)===yo},ce.isSuspenseList=function(e){return je(e)===Co},ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===mo||e===po||e===ho||e===yo||e===Co||e===R1||typeof e=="object"&&e!==null&&(e.$$typeof===So||e.$$typeof===xo||e.$$typeof===go||e.$$typeof===vo||e.$$typeof===bo||e.$$typeof===Sa||e.getModuleId!==void 0)},ce.typeOf=je,xa.exports=ce;var e0=xa.exports;const wo="adm-divider",t0={contentPosition:"center",direction:"horizontal"},Zr=e=>{const t=oe(t0,e);return Y(t,i.createElement("div",{className:K(wo,`${wo}-${t.direction}`,`${wo}-${t.contentPosition}`)},t.children&&i.createElement("div",{className:`${wo}-content`},t.children)))};function wa(e,t){const n=te.useMemoizedFn(e);te.useIsomorphicLayoutEffect(()=>{const o=t.current;if(o)if(window.ResizeObserver){let r;const s=new ResizeObserver(()=>{r=window.requestAnimationFrame(()=>n(o))});return s.observe(o),()=>{window.cancelAnimationFrame(r),s.disconnect()}}else n(o)},[t])}function n0(e,t,n){if(e&&typeof MutationObserver!="undefined"){let o=new MutationObserver(()=>{n()});return o.observe(e,t),()=>{o&&(o.disconnect(),o=null)}}return()=>{}}function ka(e,t,n){const o=te.useMemoizedFn(e);i.useEffect(()=>n0(t.current,n,o),[t])}function ye(e,t,n){let o=e;return t!==void 0&&(o=Math.max(e,t)),n!==void 0&&(o=Math.min(o,n)),o}const o0=(e,t)=>{const[{scrollLeft:n},o]=Ve(()=>({scrollLeft:0,config:{tension:300,clamp:!0}}));function r(s=!1){const a=e.current;if(!a||t===void 0)return;const c=a.children.item(t).children.item(0),u=c.offsetLeft,d=c.offsetWidth,m=a.offsetWidth,g=a.scrollWidth,v=a.scrollLeft;if(g-m<=0)return;const y=ye(u-(m-d)/2,0,g-m);o.start({scrollLeft:y,from:{scrollLeft:v},immediate:s&&!n.isAnimating})}return te.useIsomorphicLayoutEffect(()=>{r(!0)},[]),Ar(()=>{r()},[t]),ka(()=>{r(!0)},e,{subtree:!0,childList:!0,characterData:!0}),{scrollLeft:n,animate:r}},ko="adm-scroll-mask",r0=e=>{const t=i.useRef(null),[{leftMaskOpacity:n,rightMaskOpacity:o},r]=Ve(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}})),{run:s}=te.useThrottleFn((a=!1)=>{if(!t.current)return;const c=e.scrollTrackRef.current;if(!c)return;const u=c.scrollLeft,d=u>0,m=u+c.offsetWidth<c.scrollWidth;r.start({leftMaskOpacity:d?1:0,rightMaskOpacity:m?1:0,immediate:a})},{wait:100,trailing:!0,leading:!0});return i.useEffect(()=>{s(!0)},[]),i.useEffect(()=>{const a=e.scrollTrackRef.current;if(a)return a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)},[]),i.createElement(i.Fragment,null,i.createElement(ke.div,{ref:t,className:K(ko,`${ko}-left`),style:{opacity:n}}),i.createElement(ke.div,{className:K(ko,`${ko}-right`),style:{opacity:o}}))};function jr(e,t){let n=0;function o(r){i.Children.forEach(r,s=>{e0.isFragment(s)?o(s.props.children):(t(s,n),n+=1)})}o(e)}function Ea(e,t,n){return e*t*n/(t+n*e)}function Eo(e,t,n,o,r=.15){return r===0?ye(e,t,n):e<t?-Ea(t-e,o,r)+t:e>n?+Ea(e-n,o,r)+n:e}var s0=typeof Element!="undefined",i0=typeof Map=="function",a0=typeof Set=="function",l0=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Io(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,o,r;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!Io(e[o],t[o]))return!1;return!0}var s;if(i0&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(o=s.next()).done;)if(!t.has(o.value[0]))return!1;for(s=e.entries();!(o=s.next()).done;)if(!Io(o.value[1],t.get(o.value[0])))return!1;return!0}if(a0&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(o=s.next()).done;)if(!t.has(o.value[0]))return!1;return!0}if(l0&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[o]))return!1;if(s0&&e instanceof Element)return!1;for(o=n;o--!==0;)if(!((r[o]==="_owner"||r[o]==="__v"||r[o]==="__o")&&e.$$typeof)&&!Io(e[r[o]],t[r[o]]))return!1;return!0}return e!==e&&t!==t}var c0=function(t,n){try{return Io(t,n)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const Kr=xt(c0);function Ia(e){if(e==null||e==="")return 0;const t=e.trim();return t.endsWith("px")?parseFloat(t):t.endsWith("rem")?parseFloat(t)*parseFloat(window.getComputedStyle(document.documentElement).fontSize):t.endsWith("vw")?parseFloat(t)*window.innerWidth/100:0}const Re="adm-picker-view",$a=i.memo(e=>{const{value:t,column:n,renderLabel:o}=e;function r(C){e.onSelect(C,e.index)}const[{y:s},a]=Ve(()=>({from:{y:0},config:{tension:400,mass:.8}})),l=i.useRef(!1),c=i.useRef(null),u=i.useRef(null),d=i.useRef(34);te.useIsomorphicLayoutEffect(()=>{const C=u.current;C&&(d.current=Ia(window.getComputedStyle(C).getPropertyValue("height")))}),te.useIsomorphicLayoutEffect(()=>{if(l.current||t===null)return;const C=n.findIndex(x=>x.value===t);if(C<0)return;const w=C*-d.current;a.start({y:w,immediate:s.goal!==w})},[t,n]),te.useIsomorphicLayoutEffect(()=>{if(n.length===0)t!==null&&r(null);else if(!n.some(C=>C.value===t)){const C=n[0];r(C.value)}},[n,t]);function m(C){const w=C*-d.current;a.start({y:w});const x=n[C];x&&r(x.value)}const g=C=>{const{direction:[,w],distance:[,x],velocity:[,S],offset:[,k],last:I}=C;return{direction:w,distance:x,velocity:S,offset:k,last:I}},v=C=>{l.current=!0;const w=-((n.length-1)*d.current),x=0,{direction:S,last:k,velocity:I,offset:M}=g(C);if(k){l.current=!1;const O=M+I*S*50,L=ye(O,w,x),F=-Math.round(L/d.current);m(F)}else{const O=M;a.start({y:Eo(O,w,x,d.current*50,.2)})}},p=C=>{l.current=!0;const w=-((n.length-1)*d.current),x=0,{direction:S,last:k,velocity:I,distance:M}=g(C),O=-S,L=s.get();if(k){l.current=!1;const F=I*O*50,N=L+M*O+F,W=ye(N,w,x),V=-Math.round(W/d.current);m(V)}else{const F=L+M*O;a.start({y:Eo(F,w,x,d.current*50,.2)})}};io(C=>{C.event.stopPropagation(),v(C)},{axis:"y",from:()=>[0,s.get()],filterTaps:!0,pointer:{touch:!0},target:c}),g1(C=>{C.event.stopPropagation(),p(C)},{target:e.mouseWheel?c:void 0,axis:"y",from:()=>[0,s.get()],preventDefault:!0,eventOptions:On?{passive:!1}:void 0});let y=null;function b(){if(y===null)return null;const C=n[y],w=y-1,x=y+1,S=n[w],k=n[x];return i.createElement("div",{className:`${Re}-column-accessible`},i.createElement("div",{className:`${Re}-column-accessible-current`,role:"button","aria-label":C?`当前选择的是:${C.label}`:"当前未选择"},"-"),i.createElement("div",{className:`${Re}-column-accessible-button`,onClick:()=>{S&&m(w)},role:S?"button":"text","aria-label":S?`选择上一项:${S.label}`:"没有上一项"},"-"),i.createElement("div",{className:`${Re}-column-accessible-button`,onClick:()=>{k&&m(x)},role:k?"button":"text","aria-label":k?`选择下一项:${k.label}`:"没有下一项"},"-"))}return i.createElement("div",{className:`${Re}-column`},i.createElement("div",{className:`${Re}-item-height-measure`,ref:u}),i.createElement(ke.div,{ref:c,style:{translateY:s},className:`${Re}-column-wheel`,"aria-hidden":!0},n.map((C,w)=>{var x;const S=e.value===C.value;S&&(y=w);function k(){l.current=!1,m(w)}return i.createElement("div",{key:(x=C.key)!==null&&x!==void 0?x:C.value,"data-selected":S,className:K(`${Re}-column-item`,{[`${Re}-column-item-active`]:S}),onClick:k,"aria-hidden":!S,"aria-label":S?"active":""},i.createElement("div",{className:`${Re}-column-item-label`},o(C)))})),b())},(e,t)=>!(e.index!==t.index||e.value!==t.value||e.onSelect!==t.onSelect||e.renderLabel!==t.renderLabel||e.mouseWheel!==t.mouseWheel||!Kr(e.column,t.column)));$a.displayName="Wheel";function _a(e){let t=null;return()=>(t===null&&(t=e()),t)}function Pa(e,t){const n=_a(()=>(typeof e=="function"?e(t):e).map(a=>a.map(l=>typeof l=="string"?{label:l,value:l}:l))),o=_a(()=>t.map((s,a)=>{var l;const c=n()[a];return c&&(l=c.find(u=>u.value===s))!==null&&l!==void 0?l:null}));return{get columns(){return n()},get items(){return o()}}}function Ma(e,t){return i.useMemo(()=>Pa(e,t),[e,t])}const Fa=e=>e.label;var Na={exports:{}},Oa={};/**
|
|
134
134
|
* @license React
|
|
135
135
|
* use-sync-external-store-shim.production.min.js
|
|
136
136
|
*
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
*
|
|
139
139
|
* This source code is licensed under the MIT license found in the
|
|
140
140
|
* LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/var Yt=i;function u0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var d0=typeof Object.is=="function"?Object.is:u0,f0=Yt.useState,m0=Yt.useEffect,h0=Yt.useLayoutEffect,p0=Yt.useDebugValue;function g0(e,t){var n=t(),o=f0({inst:{value:n,getSnapshot:t}}),r=o[0].inst,s=o[1];return h0(function(){r.value=n,r.getSnapshot=t,Wr(r)&&s({inst:r})},[e,n,t]),m0(function(){return Wr(r)&&s({inst:r}),e(function(){Wr(r)&&s({inst:r})})},[e]),p0(n),n}function Wr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!d0(e,n)}catch(o){return!0}}function v0(e,t){return t()}var b0=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?v0:g0;Oa.useSyncExternalStore=Yt.useSyncExternalStore!==void 0?Yt.useSyncExternalStore:b0,Na.exports=Oa;var y0=Na.exports;let C0=!1;const Ta=new Set;function Da(){return C0}function x0(e){return Ta.add(e),()=>{Ta.delete(e)}}function S0(){return y0.useSyncExternalStore(x0,Da,Da)}const Hr="adm-spin-loading",w0={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},k0={color:"default"},E0=15*3.14159265358979*2,Ur=i.memo(e=>{var t;const n=oe(k0,e),o=S0(),{percent:r}=ze({cancel:o,loop:{reverse:!0},from:{percent:80},to:{percent:30},config:{duration:1200}});return Y(n,i.createElement(ke.div,{className:Hr,style:{"--color":(t=w0[n.color])!==null&&t!==void 0?t:n.color,"--percent":r}},i.createElement("svg",{className:`${Hr}-svg`,viewBox:"0 0 32 32"},i.createElement(ke.circle,{className:`${Hr}-fill`,fill:"transparent",strokeWidth:"2",strokeDasharray:E0,strokeDashoffset:r,strokeLinecap:"square",r:15,cx:16,cy:16}))))}),Gt="adm-picker-view",I0={defaultValue:[],renderLabel:Fa,mouseWheel:!1,loadingContent:i.createElement("div",{className:`${Gt}-loading-content`},i.createElement(Ur,null))},Yr=i.memo(e=>{const t=oe(I0,e),[n,o]=i.useState(t.value===void 0?t.defaultValue:t.value);i.useEffect(()=>{t.value!==void 0&&t.value!==n&&o(t.value)},[t.value]),i.useEffect(()=>{if(t.value===n)return;const l=window.setTimeout(()=>{t.value!==void 0&&t.value!==n&&o(t.value)},1e3);return()=>{window.clearTimeout(l)}},[t.value,n]);const r=Ma(t.columns,n),s=r.columns;te.useDebounceEffect(()=>{var l;t.value!==n&&((l=t.onChange)===null||l===void 0||l.call(t,n,r))},[n],{wait:0,leading:!1,trailing:!0});const a=i.useCallback((l,c)=>{o(u=>{const d=[...u];return d[c]=l,d})},[]);return Y(t,i.createElement("div",{className:`${Gt}`},t.loading?t.loadingContent:i.createElement(i.Fragment,null,s.map((l,c)=>i.createElement($a,{key:c,index:c,column:l,value:n[c],onSelect:a,renderLabel:t.renderLabel,mouseWheel:t.mouseWheel})),i.createElement("div",{className:`${Gt}-mask`},i.createElement("div",{className:`${Gt}-mask-top`}),i.createElement("div",{className:`${Gt}-mask-middle`}),i.createElement("div",{className:`${Gt}-mask-bottom`})))))});Yr.displayName="PickerView";const pt="adm-picker",$0={defaultValue:[],closeOnMaskClick:!0,renderLabel:Fa,destroyOnClose:!1,forceRender:!1},Gr=i.memo(i.forwardRef((e,t)=>{var n;const{locale:o}=Pe(),r=oe($0,{confirmText:o.common.confirm,cancelText:o.common.cancel},e),[s,a]=Ie({value:r.visible,defaultValue:!1,onChange:b=>{var C;b===!1&&((C=r.onClose)===null||C===void 0||C.call(r))}}),l={toggle:()=>{a(b=>!b)},open:()=>{a(!0)},close:()=>{a(!1)}};i.useImperativeHandle(t,()=>l);const[c,u]=Ie(Object.assign(Object.assign({},r),{onChange:b=>{var C;const w=Pa(r.columns,b);(C=r.onConfirm)===null||C===void 0||C.call(r,b,w)}})),d=Ma(r.columns,c),[m,g]=i.useState(c);i.useEffect(()=>{m!==c&&g(c)},[s]),i.useEffect(()=>{s||g(c)},[c]);const v=te.useMemoizedFn((b,C)=>{var w;g(b),s&&((w=r.onSelect)===null||w===void 0||w.call(r,b,C))}),p=Y(r,i.createElement("div",{className:pt},i.createElement("div",{className:`${pt}-header`},i.createElement("a",{role:"button",className:`${pt}-header-button`,onClick:()=>{var b;(b=r.onCancel)===null||b===void 0||b.call(r),a(!1)}},r.cancelText),i.createElement("div",{className:`${pt}-header-title`},r.title),i.createElement("a",{role:"button",className:K(`${pt}-header-button`,r.loading&&`${pt}-header-button-disabled`),onClick:()=>{r.loading||(u(m,!0),a(!1))},"aria-disabled":r.loading},r.confirmText)),i.createElement("div",{className:`${pt}-body`},i.createElement(Yr,{loading:r.loading,loadingContent:r.loadingContent,columns:r.columns,renderLabel:r.renderLabel,value:m,mouseWheel:r.mouseWheel,onChange:v})))),y=i.createElement(Ht,{style:r.popupStyle,className:K(`${pt}-popup`,r.popupClassName),visible:s,position:"bottom",onMaskClick:()=>{var b;r.closeOnMaskClick&&((b=r.onCancel)===null||b===void 0||b.call(r),a(!1))},getContainer:r.getContainer,destroyOnClose:r.destroyOnClose,afterShow:r.afterShow,afterClose:r.afterClose,onClick:r.onClick,forceRender:r.forceRender,stopPropagation:r.stopPropagation},p,i.createElement(Cn,{position:"bottom"}));return i.createElement(i.Fragment,null,y,(n=r.children)===null||n===void 0?void 0:n.call(r,d.items,l))}));Gr.displayName="Picker";function _0(e){return new Promise(t=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Gr,Object.assign({},e,{visible:r,onConfirm:(a,l)=>{var c;(c=e.onConfirm)===null||c===void 0||c.call(e,a,l),t(a)},onClose:()=>{var a;(a=e.onClose)===null||a===void 0||a.call(e),s(!1),t(null)},afterClose:()=>{var a;(a=e.afterClose)===null||a===void 0||a.call(e),o()}}))},o=Or(i.createElement(n,null))})}const Aa=we(Gr,{prompt:_0}),Fe="adm-tabs",P0=()=>null,M0={activeLineMode:"auto",stretch:!0,direction:"ltr"},$o=we(e=>{var t;const n=oe(M0,e),o=i.useRef(null),r=i.useRef(null),s={};let a=null;const l=[],c=n.direction==="rtl";jr(n.children,(k,I)=>{if(!i.isValidElement(k))return;const M=k.key;if(typeof M!="string")return;I===0&&(a=M);const O=l.push(k);s[M]=O-1});const[u,d]=Ie({value:n.activeKey,defaultValue:(t=n.defaultActiveKey)!==null&&t!==void 0?t:a,onChange:k=>{var I;k!==null&&((I=n.onChange)===null||I===void 0||I.call(n,k))}}),[{x:m,width:g},v]=ze(()=>({x:0,width:0,config:{tension:300,clamp:!0}})),[{scrollLeft:p},y]=ze(()=>({scrollLeft:0,config:{tension:300,clamp:!0}})),[{leftMaskOpacity:b,rightMaskOpacity:C},w]=ze(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}}));function x(k=!1,I=!1){const M=o.current;if(!M)return;const O=s[u];if(O===void 0){v.start({x:0,width:0,immediate:!0});return}const L=r.current;if(!L)return;const F=M.children.item(O+1),N=F.children.item(0),W=N.offsetLeft,z=N.offsetWidth,_=F.offsetLeft,P=F.offsetWidth,E=M.offsetWidth,D=M.scrollWidth,T=M.scrollLeft,V=L.offsetWidth;let j=0,H=0;if(n.activeLineMode==="auto"?(j=W,H=z):n.activeLineMode==="full"?(j=_,H=P):j=W+(z-V)/2,c){const ne=["auto","full"].includes(n.activeLineMode)?H:V;j=-(E-j-ne)}v.start({x:j,width:H,immediate:k});const U=D-E;if(U<=0)return;let J=0;c?J=-ye(E/2-W+z/2-V,0,U):J=ye(W-(E-z)/2,0,U),(!I||n.autoScroll!==!1)&&y.start({scrollLeft:J,from:{scrollLeft:T},immediate:k})}te.useIsomorphicLayoutEffect(()=>{x(!m.isAnimating)},[]),Ar(()=>{x()},[u,c,n.activeLineMode]),wa(()=>{x(!m.isAnimating)},o),ka(()=>{x(!m.isAnimating,!0)},o,{subtree:!0,childList:!0,characterData:!0});const{run:S}=te.useThrottleFn((k=!1)=>{const I=o.current;if(!I)return;const M=I.scrollLeft;let O=!1,L=!1;c?(O=Math.round(-M)+I.offsetWidth<I.scrollWidth,L=M<0):(O=M>0,L=M+I.offsetWidth<I.scrollWidth),w.start({leftMaskOpacity:O?1:0,rightMaskOpacity:L?1:0,immediate:k})},{wait:100,trailing:!0,leading:!0});return te.useIsomorphicLayoutEffect(()=>{S(!0)},[]),Y(n,i.createElement("div",{className:Fe,style:{direction:n.direction}},i.createElement("div",{className:`${Fe}-header`},i.createElement(ke.div,{className:K(`${Fe}-header-mask`,`${Fe}-header-mask-left`),style:{opacity:b}}),i.createElement(ke.div,{className:K(`${Fe}-header-mask`,`${Fe}-header-mask-right`),style:{opacity:C}}),i.createElement(ke.div,{className:`${Fe}-tab-list`,ref:o,scrollLeft:p,onScroll:S,role:"tablist"},i.createElement(ke.div,{ref:r,className:`${Fe}-tab-line`,style:{width:n.activeLineMode==="fixed"?"var(--fixed-active-line-width, 30px)":g,x:m}}),l.map(k=>Y(k.props,i.createElement("div",{key:k.key,className:K(`${Fe}-tab-wrapper`,{[`${Fe}-tab-wrapper-stretch`]:n.stretch})},i.createElement("div",{onClick:()=>{const{key:I}=k;k.props.disabled||I!=null&&d(I.toString())},className:K(`${Fe}-tab`,{[`${Fe}-tab-active`]:k.key===u,[`${Fe}-tab-disabled`]:k.props.disabled}),role:"tab","aria-selected":k.key===u},k.props.title)))))),l.map(k=>{if(k.props.children===void 0)return null;const I=k.key===u;return i.createElement(eo,{key:k.key,active:I,forceRender:k.props.forceRender,destroyOnClose:k.props.destroyOnClose},i.createElement("div",{className:`${Fe}-content`,style:{display:I?"block":"none"}},k.props.children))})))},{Tab:P0}),Sn="adm-list",F0={mode:"default"},N0=i.forwardRef((e,t)=>{const n=oe(F0,e),o=i.useRef(null);return i.useImperativeHandle(t,()=>({get nativeElement(){return o.current}})),Y(n,i.createElement("div",{className:K(Sn,`${Sn}-${n.mode}`),ref:o},n.header&&i.createElement("div",{className:`${Sn}-header`},n.header),i.createElement("div",{className:`${Sn}-body`},i.createElement("div",{className:`${Sn}-body-inner`},n.children))))});function _o(e){return e!=null&&e!==!1}const it="adm-list-item",qt=we(N0,{Item:e=>{var t,n;const{arrow:o,arrowIcon:r}=e,{list:s={}}=Pe(),a=(t=e.clickable)!==null&&t!==void 0?t:!!e.onClick,l=(n=o!=null?o:r)!==null&&n!==void 0?n:a,c=Uo(s.arrowIcon,o!==!0?o:null,r!==!0?r:null),u=i.createElement("div",{className:`${it}-content`},_o(e.prefix)&&i.createElement("div",{className:`${it}-content-prefix`},e.prefix),i.createElement("div",{className:`${it}-content-main`},_o(e.title)&&i.createElement("div",{className:`${it}-title`},e.title),e.children,_o(e.description)&&i.createElement("div",{className:`${it}-description`},e.description)),_o(e.extra)&&i.createElement("div",{className:`${it}-content-extra`},e.extra),l&&i.createElement("div",{className:`${it}-content-arrow`},c||i.createElement(hd,null)));return Y(e,i.createElement(a?"a":"div",{className:K(`${it}`,a?["adm-plain-anchor"]:[],e.disabled&&`${it}-disabled`),onClick:e.disabled?void 0:e.onClick},u))}}),La=i.createContext(null),O0="adm-check-list",T0={multiple:!1,defaultValue:[],activeIcon:i.createElement(Li,null)},D0=e=>{const{checkList:t={}}=Pe(),n=oe(T0,t,e),[o,r]=Ie(n);function s(m){n.multiple?r([...o,m]):r([m])}function a(m){r(o.filter(g=>g!==m))}const{activeIcon:l,extra:c,disabled:u,readOnly:d}=n;return i.createElement(La.Provider,{value:{value:o,check:s,uncheck:a,activeIcon:l,extra:c,disabled:u,readOnly:d}},Y(n,i.createElement(qt,{mode:n.mode,className:O0},n.children)))},Po="adm-check-list-item",Mo=we(D0,{Item:e=>{const t=i.useContext(La);if(t===null)return null;const n=t.value.includes(e.value),o=e.readOnly||t.readOnly,r=n?t.activeIcon:null,s=t.extra?t.extra(n):r,a=i.createElement("div",{className:`${Po}-extra`},s);return Y(e,i.createElement(qt.Item,{title:e.title,className:K(Po,o&&`${Po}-readonly`,n&&`${Po}-active`),description:e.description,prefix:e.prefix,onClick:l=>{var c;o||(n?t.uncheck(e.value):t.check(e.value),(c=e.onClick)===null||c===void 0||c.call(e,l))},arrow:!1,clickable:!o,extra:a,disabled:e.disabled||t.disabled},e.children))}});function A0(e){var t=e+"",n=t.indexOf("...");return n>=0&&(n<t.indexOf(")")||t.indexOf("arguments")>=0)}function Ba(e,t){t||(t={});var n=t.vargs||A0(e),o=[],r=new Map,s,a,l=function(v){return a=setTimeout(function(){if(s){r.delete(v);return}o.splice(v,1)},t.maxAge)},c=t.maxAge>0&&t.maxAge<1/0?l:0,u=t.equals?t.equals:0,d=t.maxArgs,m=t.serializer,g;return e.length===1&&!t.equals&&!n?(g=function(v){m&&(v=m(v));var p;return r.get(v)||(!c||c(v),r.set(v,p=e.call(this,v)),p)},s=1):u?g=function(){for(var v=d||arguments.length,p=o.length,y=-1;++y<p;)if(o[y].length===v){for(var b=-1;++b<v&&u(arguments[b],o[y][b]););if(b===v)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=e.apply(this,o[y])}:g=function(){for(var v=d||arguments.length,p=o.length,y=-1;++y<p;)if(o[y].length===v){for(var b=-1;++b<v&&arguments[b]===o[y][b];);if(b===v)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=e.apply(this,o[y])},g.clear=function(){a&&clearTimeout(a),r.clear(),o=[]},g.keys=function(){return s?[...r.keys()]:o.slice()},g.values=function(){return s?[...r.values()]:o.map(v=>v.val)},g}function L0(e,t){const{valueName:n,childrenName:o}=t,r=i.useMemo(()=>Ba(l=>{const c=[];let u=e;for(const d of l){const m=u.find(g=>g[n]===d);if(!m||(c.push(m),!m[o]))break;u=m[o]}return c},{equals:Kr}),[e]),s=i.useMemo(()=>Ba(l=>l.reduce((u,d)=>{var m;return((m=u.find(g=>g[n]===d))===null||m===void 0?void 0:m[o])||[]},e).length===0,{equals:Kr}),[e]);function a(l){return{get items(){return r(l)},get isLeaf(){return s(l)}}}return a}const za=[];function B0(e,t){const n=[];for(let o=e;o<=t;o++)n.push(o);return n}const wn="adm-skeleton",qr=e=>Y(e,i.createElement("div",{className:K(wn,{[`${wn}-animated`]:e.animated})})),z0=e=>Y(e,i.createElement(qr,{animated:e.animated,className:`${wn}-title`})),V0={lineCount:3},Fo=we(qr,{Title:z0,Paragraph:e=>{const t=oe(V0,e),n=B0(1,t.lineCount),o=i.createElement("div",{className:`${wn}-paragraph`},n.map(r=>i.createElement(qr,{key:r,animated:t.animated,className:`${wn}-paragraph-line`})));return Y(t,o)}}),Z0=(e={})=>i.useMemo(()=>{const{label:n="label",value:o="value",disabled:r="disabled",children:s="children"}=e;return[n,o,s,r]},[JSON.stringify(e)]),Ye="adm-cascader-view",j0={defaultValue:[]},K0=we(e=>{const t=oe(j0,e),{locale:n}=Pe(),[o,r,s,a]=Z0(t.fieldNames),l=L0(t.options,{valueName:r,childrenName:s}),[c,u]=Ie(Object.assign(Object.assign({},t),{onChange:b=>{var C;(C=t.onChange)===null||C===void 0||C.call(t,b,l(b))}})),[d,m]=i.useState(0),g=i.useMemo(()=>{const b=[];let C=t.options,w=!1;for(const x of c){const S=C.find(k=>k[r]===x);if(b.push({selected:S,options:C}),!S||!S[s]){w=!0;break}C=S[s]}return w||b.push({selected:void 0,options:C}),b},[c,t.options]);te.useUpdateEffect(()=>{var b;(b=t.onTabsChange)===null||b===void 0||b.call(t,d)},[d]),i.useEffect(()=>{m(g.length-1)},[c]),i.useEffect(()=>{const b=g.length-1;d>b&&m(b)},[d,g]);const v=(b,C)=>{const w=c.slice(0,C);b!==void 0&&(w[C]=b),u(w)},p=b=>t.loading||b===za,y=t.placeholder||n.Cascader.placeholder;return Y(t,i.createElement("div",{className:Ye},i.createElement($o,{activeKey:d.toString(),onChange:b=>{const C=parseInt(b);m(C)},stretch:!1,className:`${Ye}-tabs`},g.map((b,C)=>{const w=b.selected;return i.createElement($o.Tab,{key:C.toString(),title:i.createElement("div",{className:`${Ye}-header-title`},w?w[o]:typeof y=="function"?y(C):y),forceRender:!0},i.createElement("div",{className:`${Ye}-content`},p(b.options)?i.createElement("div",{className:`${Ye}-skeleton`},i.createElement(Fo,{className:`${Ye}-skeleton-line-1`,animated:!0}),i.createElement(Fo,{className:`${Ye}-skeleton-line-2`,animated:!0}),i.createElement(Fo,{className:`${Ye}-skeleton-line-3`,animated:!0}),i.createElement(Fo,{className:`${Ye}-skeleton-line-4`,animated:!0})):i.createElement(Mo,{value:[c[C]],onChange:x=>v(x[0],C),activeIcon:t.activeIcon},b.options.map(x=>{const S=c[C]===x[r];return i.createElement(Mo.Item,{value:x[r],key:x[r],disabled:x[a],className:K(`${Ye}-item`,{[`${Ye}-item-active`]:S})},x[o])}))))}))))},{optionSkeleton:za}),Va=i.createContext(null),W0={disabled:!1,defaultValue:[]},H0=e=>{const t=oe(W0,e),[n,o]=Ie(t);return i.createElement(Va.Provider,{value:{value:n,disabled:t.disabled,check:r=>{o([...n,r])},uncheck:r=>{o(n.filter(s=>s!==r))}}},t.children)},Za=i.memo(e=>Y(e,i.createElement("svg",{viewBox:"0 0 40 40"},i.createElement("path",{d:"M31.5541766,15 L28.0892433,15 L28.0892434,15 C27.971052,15 27.8576674,15.044522 27.7740471,15.1239792 L18.2724722,24.1625319 L13.2248725,19.3630279 L13.2248725,19.3630279 C13.1417074,19.2834412 13.0287551,19.2384807 12.9107898,19.2380079 L9.44474455,19.2380079 L9.44474454,19.2380079 C9.19869815,19.2384085 8.99957935,19.4284738 9,19.66253 C9,19.7747587 9.04719253,19.8823283 9.13066188,19.9616418 L17.0907466,27.5338228 C17.4170809,27.8442545 17.8447695,28 18.2713393,28 L18.2980697,28 C18.7168464,27.993643 19.133396,27.8378975 19.4530492,27.5338228 L31.8693384,15.7236361 L31.8693384,15.7236361 C32.0434167,15.5582251 32.0435739,15.2898919 31.8696892,15.1242941 C31.7860402,15.0446329 31.6725052,15 31.5541421,15 L31.5541766,15 Z",fill:"currentColor"})))),U0=i.memo(e=>Y(e,i.createElement("svg",{viewBox:"0 0 40 40"},i.createElement("path",{d:"M20,9 C26.0752953,9 31,13.9247047 31,20 C31,26.0752953 26.0752953,31 20,31 C13.9247047,31 9,26.0752953 9,20 C9,13.9247047 13.9247047,9 20,9 Z",fill:"currentColor"})))),ja=e=>{const t=i.useRef(null),n=te.useMemoizedFn(o=>{o.stopPropagation(),o.stopImmediatePropagation();const r=o.target.checked;r!==e.checked&&e.onChange(r)});return i.useEffect(()=>{if(e.disabled||!t.current)return;const o=t.current;return o.addEventListener("click",n),()=>{o.removeEventListener("click",n)}},[e.disabled,e.onChange]),i.createElement("input",{ref:t,type:e.type,checked:e.checked,onChange:()=>{},disabled:e.disabled,id:e.id})},gt="adm-checkbox",Y0={defaultChecked:!1,indeterminate:!1},G0=i.forwardRef((e,t)=>{const n=i.useContext(Va),o=oe(Y0,e);let[r,s]=Ie({value:o.checked,defaultValue:o.defaultChecked,onChange:o.onChange}),a=o.disabled;const{value:l}=o;n&&l!==void 0&&(r=n.value.includes(l),s=u=>{var d;u?n.check(l):n.uncheck(l),(d=o.onChange)===null||d===void 0||d.call(o,u)},a=a||n.disabled),i.useImperativeHandle(t,()=>({check:()=>{s(!0)},uncheck:()=>{s(!1)},toggle:()=>{s(!r)}}));const c=()=>o.icon?i.createElement("div",{className:`${gt}-custom-icon`},o.icon(r,o.indeterminate)):i.createElement("div",{className:`${gt}-icon`},o.indeterminate?i.createElement(U0,null):r&&i.createElement(Za,null));return Y(o,i.createElement("label",{onClick:o.onClick,className:K(gt,{[`${gt}-checked`]:r&&!o.indeterminate,[`${gt}-indeterminate`]:o.indeterminate,[`${gt}-disabled`]:a,[`${gt}-block`]:o.block})},i.createElement(ja,{type:"checkbox",checked:r,onChange:s,disabled:a,id:o.id}),c(),o.children&&i.createElement("div",{className:`${gt}-content`},o.children)))}),Xr=we(G0,{Group:H0});var Ka={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ct,function(){return function(n,o){o.prototype.isoWeeksInYear=function(){var r=this.isLeapYear(),s=this.endOf("y").day();return s===4||r&&s===5?53:52}}})})(Ka);var q0=Ka.exports;const Wa=xt(q0);var Ha={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ct,function(){return function(n,o){o.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}})})(Ha);var X0=Ha.exports;const Ua=xt(X0),kn="TILL_NOW";he.extend(Lr),he.extend(Wa),he.extend(Ua);const vt={year:0,month:1,day:2,hour:3,minute:4,second:5};function Q0(e,t,n,o,r,s,a){const l=[],c=t.getFullYear(),u=t.getMonth()+1,d=t.getDate(),m=t.getHours(),g=t.getMinutes(),v=t.getSeconds(),p=n.getFullYear(),y=n.getMonth()+1,b=n.getDate(),C=n.getHours(),w=n.getMinutes(),x=n.getSeconds(),S=vt[o],k=parseInt(e[0]),I=he(Qr([e[0],e[1],"1"])),M=parseInt(e[1]),O=parseInt(e[2]),L=parseInt(e[3]),F=parseInt(e[4]),N=k===c,W=k===p,z=N&&M===u,_=W&&M===y,P=z&&O===d,E=_&&O===b,D=P&&L===m,T=E&&L===C,V=D&&F===g,j=T&&F===w,H=(U,J,ne)=>{let ee=[];for(let ue=U;ue<=J;ue++)ee.push(ue);const Ne=e.slice(0,vt[ne]),q=s==null?void 0:s[ne];return q&&typeof q=="function"&&(ee=ee.filter(ue=>q(ue,{get date(){const Z=[...Ne,ue.toString()];return Qr(Z)}}))),ee};if(S>=vt.year){const ne=H(c,p,"year");l.push(ne.map(ee=>({label:r("year",ee),value:ee.toString()})))}if(S>=vt.month){const ne=H(N?u:1,W?y:12,"month");l.push(ne.map(ee=>({label:r("month",ee),value:ee.toString()})))}if(S>=vt.day){const U=z?d:1,J=_?b:I.daysInMonth(),ne=H(U,J,"day");l.push(ne.map(ee=>({label:r("day",ee),value:ee.toString()})))}if(S>=vt.hour){const ne=H(P?m:0,E?C:23,"hour");l.push(ne.map(ee=>({label:r("hour",ee),value:ee.toString()})))}if(S>=vt.minute){const ne=H(D?g:0,T?w:59,"minute");l.push(ne.map(ee=>({label:r("minute",ee),value:ee.toString()})))}if(S>=vt.second){const ne=H(V?v:0,j?x:59,"second");l.push(ne.map(ee=>({label:r("second",ee),value:ee.toString()})))}if(a&&(l[0].push({label:r("now",null),value:kn}),kn===(e==null?void 0:e[0])))for(let U=1;U<l.length;U+=1)l[U]=[];return l}function J0(e){return e?[e.getFullYear().toString(),(e.getMonth()+1).toString(),e.getDate().toString(),e.getHours().toString(),e.getMinutes().toString(),e.getSeconds().toString()]:[]}function Qr(e){var t,n,o,r,s,a;const l=(t=e[0])!==null&&t!==void 0?t:"1900",c=(n=e[1])!==null&&n!==void 0?n:"1",u=(o=e[2])!==null&&o!==void 0?o:"1",d=(r=e[3])!==null&&r!==void 0?r:"0",m=(s=e[4])!==null&&s!==void 0?s:"0",g=(a=e[5])!==null&&a!==void 0?a:"0";return new Date(parseInt(l),parseInt(c)-1,parseInt(u),parseInt(d),parseInt(m),parseInt(g))}var Ya={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ct,function(){var n="month",o="quarter";return function(r,s){var a=s.prototype;a.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=a.add;a.add=function(u,d){return u=Number(u),this.$utils().p(d)===o?this.add(3*u,n):l.bind(this)(u,d)};var c=a.startOf;a.startOf=function(u,d){var m=this.$utils(),g=!!m.u(d)||d;if(m.p(u)===o){var v=this.quarter()-1;return g?this.month(3*v).startOf(n).startOf("day"):this.month(3*v+2).endOf(n).endOf("day")}return c.bind(this)(u,d)}}})})(Ya);var R0=Ya.exports;const ef=xt(R0);he.extend(ef);const No={year:0,quarter:1};function tf(e,t,n,o,r,s){const a=[],l=t.getFullYear(),c=n.getFullYear(),u=No[o],d=parseInt(e[0]),m=d===l,g=d===c,v=he(t),p=he(n),y=v.quarter(),b=p.quarter(),C=(w,x,S)=>{let k=[];for(let O=w;O<=x;O++)k.push(O);const I=e.slice(0,No[S]),M=s==null?void 0:s[S];return M&&typeof M=="function"&&(k=k.filter(O=>M(O,{get date(){const L=[...I,O.toString()];return Ga(L)}}))),k};if(u>=No.year){const S=C(l,c,"year");a.push(S.map(k=>({label:r("year",k),value:k.toString()})))}if(u>=No.quarter){const S=C(m?y:1,g?b:4,"quarter");a.push(S.map(k=>({label:r("quarter",k),value:k.toString()})))}return a}function nf(e){if(!e)return[];const t=he(e);return[t.year().toString(),t.quarter().toString()]}function Ga(e){var t,n;const o=(t=e[0])!==null&&t!==void 0?t:"1900",r=(n=e[1])!==null&&n!==void 0?n:"1";return he().year(parseInt(o)).quarter(parseInt(r)).hour(0).minute(0).second(0).toDate()}he.extend(Lr),he.extend(Wa),he.extend(Ua);const En={year:0,week:1,"week-day":2};function of(e,t,n,o,r,s){const a=[],l=t.getFullYear(),c=n.getFullYear(),u=En[o],d=parseInt(e[0]),m=d===l,g=d===c,v=he(t),p=he(n),y=v.isoWeek(),b=p.isoWeek(),C=v.isoWeekday(),w=p.isoWeekday(),x=parseInt(e[1]),S=m&&x===y,k=g&&x===b,I=he(`${d}-01-01`).isoWeeksInYear(),M=(O,L,F)=>{let N=[];for(let _=O;_<=L;_++)N.push(_);const W=e.slice(0,En[F]),z=s==null?void 0:s[F];return z&&typeof z=="function"&&(N=N.filter(_=>z(_,{get date(){const P=[...W,_.toString()];return qa(P)}}))),N};if(u>=En.year){const F=M(l,c,"year");a.push(F.map(N=>({label:r("year",N),value:N.toString()})))}if(u>=En.week){const F=M(m?y:1,g?b:I,"week");a.push(F.map(N=>({label:r("week",N),value:N.toString()})))}if(u>=En["week-day"]){const F=M(S?C:1,k?w:7,"week-day");a.push(F.map(N=>({label:r("week-day",N),value:N.toString()})))}return a}function rf(e){if(!e)return[];const t=he(e);return[t.isoWeekYear().toString(),t.isoWeek().toString(),t.isoWeekday().toString()]}function qa(e){var t,n,o;const r=(t=e[0])!==null&&t!==void 0?t:"1900",s=(n=e[1])!==null&&n!==void 0?n:"1",a=(o=e[2])!==null&&o!==void 0?o:"1";return he().year(parseInt(r)).isoWeek(parseInt(s)).isoWeekday(parseInt(a)).hour(0).minute(0).second(0).toDate()}const sf={year:1,month:2,day:3,hour:4,minute:5,second:6},af=(e,t)=>{if(t.includes("week"))return rf(e);if(t.includes("quarter"))return nf(e);{const n=t;return J0(e).slice(0,sf[n])}},Xa=(e,t)=>{if((e==null?void 0:e[0])===kn){const n=new Date;return n.tillNow=!0,n}return t.includes("week")?qa(e):t.includes("quarter")?Ga(e):Qr(e)},lf=(e,t,n,o,r,s,a)=>o.startsWith("week")?of(e,t,n,o,r,s):o.startsWith("quarter")?tf(e,t,n,o,r,s):Q0(e,t,n,o,r,s,a);function cf(e){const{locale:t}=Pe();return i.useCallback((n,o)=>{if(e)return e(n,o);switch(n){case"minute":case"second":case"hour":return("0"+o.toString()).slice(-2);case"now":return t.DatePicker.tillNow;default:return o.toString()}},[e])}const Qa=new Date().getFullYear(),uf={min:new Date(new Date().setFullYear(Qa-10)),max:new Date(new Date().setFullYear(Qa+10)),precision:"day",defaultValue:null},Ja=i.forwardRef((e,t)=>{const n=oe(uf,e),{renderLabel:o}=n,[r,s]=Ie({value:n.value,defaultValue:n.defaultValue,onChange:g=>{var v;g!==null&&((v=n.onConfirm)===null||v===void 0||v.call(n,g))}}),a=i.useMemo(()=>new Date,[]),l=cf(o),c=i.useMemo(()=>{let g=r!=null?r:a;return g.tillNow?[kn]:(g=new Date(ye(g.getTime(),n.min.getTime(),n.max.getTime())),af(g,n.precision))},[r,n.precision,n.min,n.max]),u=i.useCallback(g=>{const v=Xa(g,n.precision);s(v,!0)},[s,n.precision]),d=te.useMemoizedFn(g=>{var v;const p=Xa(g,n.precision);(v=n.onSelect)===null||v===void 0||v.call(n,p)}),m=i.useCallback(g=>lf(g,n.min,n.max,n.precision,l,n.filter,n.tillNow),[n.min,n.max,n.precision,l,n.tillNow]);return Y(n,i.createElement(Aa,{ref:t,columns:m,value:c,onCancel:n.onCancel,onClose:n.onClose,closeOnMaskClick:n.closeOnMaskClick,visible:n.visible,confirmText:n.confirmText,cancelText:n.cancelText,onConfirm:u,onSelect:d,getContainer:n.getContainer,loading:n.loading,loadingContent:n.loadingContent,afterShow:n.afterShow,afterClose:n.afterClose,onClick:n.onClick,title:n.title,stopPropagation:n.stopPropagation,mouseWheel:n.mouseWheel,destroyOnClose:n.destroyOnClose,forceRender:n.forceRender},(g,v)=>{var p;return(p=n.children)===null||p===void 0?void 0:p.call(n,r,v)}))});function df(e){return new Promise(t=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Ja,Object.assign({},e,{visible:r,onConfirm:a=>{var l;(l=e.onConfirm)===null||l===void 0||l.call(e,a),t(a)},onClose:()=>{var a;(a=e.onClose)===null||a===void 0||a.call(e),s(!1),t(null)},afterClose:()=>{var a;(a=e.afterClose)===null||a===void 0||a.call(e),o()}}))},o=Or(i.createElement(n,null))})}const ff=we(Ja,{prompt:df,DATE_NOW:kn});var Ra;(function(e){e[e.HIGH_SURROGATE_START=55296]="HIGH_SURROGATE_START",e[e.HIGH_SURROGATE_END=56319]="HIGH_SURROGATE_END",e[e.LOW_SURROGATE_START=56320]="LOW_SURROGATE_START",e[e.REGIONAL_INDICATOR_START=127462]="REGIONAL_INDICATOR_START",e[e.REGIONAL_INDICATOR_END=127487]="REGIONAL_INDICATOR_END",e[e.FITZPATRICK_MODIFIER_START=127995]="FITZPATRICK_MODIFIER_START",e[e.FITZPATRICK_MODIFIER_END=127999]="FITZPATRICK_MODIFIER_END",e[e.VARIATION_MODIFIER_START=65024]="VARIATION_MODIFIER_START",e[e.VARIATION_MODIFIER_END=65039]="VARIATION_MODIFIER_END",e[e.DIACRITICAL_MARKS_START=8400]="DIACRITICAL_MARKS_START",e[e.DIACRITICAL_MARKS_END=8447]="DIACRITICAL_MARKS_END",e[e.SUBDIVISION_INDICATOR_START=127988]="SUBDIVISION_INDICATOR_START",e[e.TAGS_START=917504]="TAGS_START",e[e.TAGS_END=917631]="TAGS_END",e[e.ZWJ=8205]="ZWJ"})(Ra||(Ra={}));const mf=Object.freeze([776,2359,2367,2984,3007,3021,3633,3635,3648,3657,4352,4449,4520]);var el;function Jr(e){if(typeof e!="string")throw new TypeError("string cannot be undefined or null");const t=[];let n=0,o=0;for(;n<e.length;)o+=hf(n+o,e),xf(e[n+o])&&o++,bf(e[n+o])&&o++,yf(e[n+o])&&o++,Sf(e[n+o])?o++:(t.push(e.substring(n,n+o)),n+=o,o=0);return t}function hf(e,t){const n=t[e];if(!pf(n)||e===t.length-1)return 1;const o=n+t[e+1];let r=t.substring(e+2,e+5);return tl(o)&&tl(r)?4:gf(o)&&Cf(r)?t.slice(e).indexOf(String.fromCodePoint(917631))+2:vf(r)?4:2}function pf(e){return e&&It(e[0].charCodeAt(0),55296,56319)}function tl(e){return It(Rr(e),127462,127487)}function gf(e){return It(Rr(e),127988,127988)}function vf(e){return It(Rr(e),127995,127999)}function bf(e){return typeof e=="string"&&It(e.charCodeAt(0),65024,65039)}function yf(e){return typeof e=="string"&&It(e.charCodeAt(0),8400,8447)}function Cf(e){const t=e.codePointAt(0);return typeof e=="string"&&typeof t=="number"&&It(t,917504,917631)}function xf(e){return typeof e=="string"&&mf.includes(e.charCodeAt(0))}function Sf(e){return typeof e=="string"&&e.charCodeAt(0)===8205}function Rr(e){return(e.charCodeAt(0)-55296<<10)+(e.charCodeAt(1)-56320)+65536}function It(e,t,n){return e>=t&&e<=n}(function(e){e[e.unit_1=1]="unit_1",e[e.unit_2=2]="unit_2",e[e.unit_4=4]="unit_4"})(el||(el={}));const $t="adm-error-block",wf={status:"default"};function kf(e){return n=>{var o;const r=oe(wf,n),{locale:s}=Pe(),a=s.ErrorBlock[r.status],l="description"in r?r.description:a.description,c="title"in r?r.title:a.title,u=(o=r.image)!==null&&o!==void 0?o:e[r.status],d=typeof u=="string"?i.createElement("img",{src:u,alt:"error block image"}):u;return Y(r,i.createElement("div",{className:K($t,{[`${$t}-full-page`]:r.fullPage})},i.createElement("div",{className:`${$t}-image`},d),i.createElement("div",{className:`${$t}-description`},![void 0,null].includes(c)&&i.createElement("div",{className:`${$t}-description-title`},c),![void 0,null].includes(l)&&i.createElement("div",{className:`${$t}-description-subtitle`},l)),r.children&&i.createElement("div",{className:`${$t}-content`},r.children)))}}const Ef=i.createElement("svg",{viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-default-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-default-d",cx:18.823,cy:18.823,r:18.823}),i.createElement("rect",{id:"error-block-image-default-b",x:3.5,y:9,width:51.429,height:88,rx:4.571})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M73.557.004c19.435-.311 38.696 17.016 51.523 35.287 8.708-10.822 17.127-16.233 25.255-16.233 13.333 0 28.35 14.274 45.053 42.822 1.769 3.024-3.582 7.435-16.054 13.231l-41.322 1.37c-7.343 5.872-31.225.626-69.152 1.234-27.79.445-45.759-1.234-53.908-5.037C3.2 71.143-1.625 68.686.48 65.308 27.371 22.12 51.73.353 73.557.003Zm93.098 49.53a1.125 1.125 0 0 0-.401.072l-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.283 1.719 4.153 3.898 4.314l.026.001v3.805c0 .39.25.705.56.705.31 0 .56-.316.56-.705l.001-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734Zm-100-5a1.125 1.125 0 0 0-.331.05l-.035.01-.035.012-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.212 1.613 4.036 3.695 4.294l.203.02.026.001v3.805c0 .39.25.705.56.705.282 0 .515-.26.555-.6l.006-.105v-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734ZM52.64 38.348l-.15.008-.149.023-.032.007-.032.008-.078.022-.045.015-.045.016-.06.023-.038.017-.038.017-.058.028-.022.011a2.201 2.201 0 0 0-.323.204l-.05.038-.05.04-.025.02-.025.021a3.742 3.742 0 0 0-.31.294l-.036.04c-.035.037-.07.076-.105.116-.01.012-.02.025-.031.036a3.275 3.275 0 0 0-.081.098l-.063.078c-2.031 2.583-3.48 8.692-3.48 11.027 0 2.636 1.846 4.832 4.292 5.323l.224.04-.064-.012.105.018.103.014v4.618c0 .47.299.85.667.85.337 0 .615-.32.659-.735l.006-.115v-4.618c.18-.023.355-.054.527-.094l.256-.067.196-.06c2.136-.706 3.68-2.75 3.68-5.162 0-2.996-2.383-12.207-5.325-12.207Z",transform:"translate(2.286 22.286)",fill:"url(#error-block-image-default-a)"}),i.createElement("g",{transform:"rotate(-90 102.429 55.357)"},i.createElement("path",{d:"M6.857 0H52a6.857 6.857 0 0 1 6.857 6.857v92A6.857 6.857 0 0 1 52 105.714H6.857A6.857 6.857 0 0 1 0 98.857v-92A6.857 6.857 0 0 1 6.857 0Z",fill:"#7EACFF"}),i.createElement("mask",{id:"error-block-image-default-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-default-b"})),i.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-default-b"}),i.createElement("path",{d:"M11.838 91.8a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-2.858 0a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.16-2.305a.64.64 0 0 1 .628.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-2.982-.04a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm5.268-.531a.64.64 0 0 1 .628.651.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.858-1.143a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-6.37-.917c.209 0 .377.175.377.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm3.512-.798.093.007a.644.644 0 0 1 .535.645.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.652.627-.652Zm5.715 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-11.429 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.261.241c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm11.833-.812a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.628-.651c0-.36.281-.652.628-.652Zm-4.851.399c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm10.313-2.056a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-2.354-.128a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.652.628-.652Zm-13.798.311c.207 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.377-.39c0-.217.169-.392.377-.392Zm11.832-.812a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-6.285 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm3.428 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-6.118.24c.208 0 .376.176.376.392a.384.384 0 0 1-.376.39.384.384 0 0 1-.377-.39c0-.216.169-.391.377-.391Zm11.261-2.525a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm-3.557.484c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.478-.555a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.512-.26c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.857 0c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-4.571 0c.207 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm14.898-1.835a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-8.027-.245c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.169-.391.376-.391Zm6.271-1.349c.208 0 .377.175.377.391a.384.384 0 0 1-.377.391.384.384 0 0 1-.376-.39c0-.217.169-.392.376-.392Zm-11.484-.481c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm15.103-.972c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.39c0-.217.168-.392.376-.392Zm-9.333-1.404c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-6.819-.405c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-default-c)",transform:"rotate(116 12.367 83.503)"}),i.createElement("path",{stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"M36.774 5.474H21.523"}),i.createElement("path",{d:"m67.818 94.025-4.996 3.913m4.996 11.91-4.996-3.912m-1.142 9.145-1.143-6.288m10.71-6.768h-7.262",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"})),i.createElement("circle",{cx:8.571,cy:8.571,r:8.571,transform:"translate(22.857 142)",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(132.857 124)"},i.createElement("mask",{id:"error-block-image-default-e",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-default-d"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-default-d"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:13.886,cy:15.12,r:18.823}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:23.4,cy:29.057,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.343,cy:29.829,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:18.771,cy:32.657,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:29.571,cy:25.971,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:19.286,cy:7.971,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:26.486,cy:5.914,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:11.057,cy:6.943,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.086,cy:15.686,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:22.886,cy:14.657,r:1})),i.createElement("path",{d:"m87.429 135.123 6.591-9.378v-.08h-5.99v-2.559h10.038v1.787l-6.44 9.254v.082h6.56v2.557h-10.76v-1.663Zm12.185-5.889 4.948-7.047v-.056h-4.498v-1.917h7.536v1.34l-4.849 6.942v.059h4.923v1.92h-8.06v-1.24Zm10.345.702 3.708-5.274v-.045h-3.372v-1.437h5.648v1.003l-3.628 5.206v.045H116v1.438h-6.041v-.936Z",fill:"#FFF",fillRule:"nonzero"}))),If=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("title",null,"@反馈/异常/网络服务异常"),i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-disconnected-c"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-disconnected-d",cx:22.309,cy:22.309,r:22.309}),i.createElement("path",{id:"error-block-image-disconnected-a",d:"M0 0h400v400H0z"})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("mask",{id:"error-block-image-disconnected-b",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-disconnected-a"})),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"url(#error-block-image-disconnected-c)"},i.createElement("path",{d:"M151.686 45.58c38.869-.623 77.391 34.03 103.046 70.573 17.416-21.644 34.253-32.465 50.51-32.465 26.666 0 56.701 28.548 90.105 85.643 3.539 6.05-7.164 14.87-32.107 26.462l-82.643 2.741c-14.686 11.745-62.45 1.252-138.305 2.467-55.58.89-91.518-2.468-107.816-10.074-23.505-3.07-33.154-7.983-28.946-14.74C59.313 89.813 108.03 46.278 151.686 45.58Zm186.195 99.06-.127.003-.126.01a2.32 2.32 0 0 0-.465.103l-.032.01-.031.01a2.364 2.364 0 0 0-.181.071 2.52 2.52 0 0 0-.116.054l-.133.067-.042.024-.036.02a2.946 2.946 0 0 0-.133.08l-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024a4.906 4.906 0 0 0-.31.27l-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.108.008v7.608c0 .779.502 1.41 1.121 1.41.62 0 1.121-.632 1.121-1.41v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-200-10-.127.003-.126.01a2.32 2.32 0 0 0-.368.073l-.049.014-.048.016-.032.01-.031.01a2.364 2.364 0 0 0-.181.071l-.058.026-.058.028-.133.067-.042.024-.036.02-.066.039-.067.041-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024l-.156.13-.154.14-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.054.004.054.004v7.608c0 .779.502 1.41 1.121 1.41.58 0 1.058-.556 1.115-1.266l.006-.144v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-28.029-12.373-.107.002-.106.006a2.978 2.978 0 0 0-.551.095 3.444 3.444 0 0 0-.323.104 3.962 3.962 0 0 0-.61.297c-.076.045-.15.092-.226.141-4.964 3.312-8.728 18.445-8.728 23.77 0 5.434 3.922 9.935 9.04 10.726l.28.04v9.236c0 .886.532 1.614 1.21 1.692l.121.007.122-.007c.638-.074 1.147-.723 1.204-1.538l.006-.155v-9.235c5.254-.668 9.32-5.234 9.32-10.767 0-5.993-4.77-24.414-10.652-24.414Z"})),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},i.createElement("g",{transform:"translate(85.858 150.644)"},i.createElement("path",{d:"M116.26 28.467c1.352 0 2.703.018 4.054.054 3.923.385 10.188 4.248 9.267 11.061-.878 6.496-5.836 9.089-8.962 9.529a130.762 130.762 0 0 0-4.36-.072c-28.567 0-60.654 10.149-96.22 30.676l-2.227 1.297c-.744.437-1.49.878-2.236 1.323-4.878 2.911-11.193 1.316-14.103-3.562C-1.438 73.894.157 67.58 5.035 64.67 45.34 40.62 82.4 28.467 116.26 28.467Zm22 11.63c1.03-5.942 6.376-8.618 11.084-8.08C172.14 36.91 194.83 46.86 217.37 61.794c4.735 3.138 6.03 9.52 2.893 14.255-3.138 4.736-9.52 6.031-14.256 2.893-20.111-13.325-40.075-22.165-59.935-26.584a9.974 9.974 0 0 0-.325-.088c-3.987-1.015-8.602-5.738-7.487-12.175ZM116.26 77.418c22.777 0 45.4 7.057 67.73 20.988 4.82 3.007 6.289 9.351 3.282 14.17-3.007 4.82-9.351 6.29-14.17 3.283-19.194-11.974-38.095-17.87-56.842-17.87s-37.648 5.896-56.842 17.87c-4.82 3.007-11.164 1.537-14.17-3.282-3.007-4.82-1.538-11.164 3.282-14.171 22.33-13.931 44.953-20.988 67.73-20.988ZM117.974 124.67c9.85 0 17.303 1.69 25.687 5.082l.82.337 2.9 1.231 3.008 1.252.77.305.107.04c5.326 1.976 8.042 7.895 6.066 13.221-1.976 5.326-7.895 8.042-13.221 6.067l-.713-.27-.726-.285-.763-.31-1.263-.527-2.944-1.26-1.125-.473c-6.393-2.648-11.433-3.838-18.603-3.838-8.223 0-16.532 2.126-25.028 6.475-5.056 2.588-11.254.587-13.842-4.47-2.589-5.056-.588-11.253 4.47-13.842 11.313-5.791 22.814-8.735 34.4-8.735ZM118.235 197.047c7.15 0 13.77-.897 19.841-2.721 5.44-1.635 8.526-7.37 6.892-12.81-1.635-5.44-7.37-8.526-12.81-6.892-4.072 1.224-8.707 1.851-13.923 1.851-4.36 0-8.79-1.045-13.373-3.21l-.626-.301c-5.095-2.512-11.262-.418-13.773 4.678-2.512 5.095-.418 11.261 4.678 13.773 7.559 3.727 15.288 5.632 23.094 5.632Z",fill:"#377EFF",fillRule:"nonzero"}),i.createElement("path",{d:"M198.35 62.413c2.755-4.967 9.016-6.76 13.984-4.004 13.068 7.25 19.124 18.535 17.615 30.952-1.157 9.515-6.83 18.757-14.096 24.352-13.364 10.29-34.915 9.401-49.363-1.91-4.472-3.502-5.26-9.967-1.758-14.44 3.436-4.388 9.724-5.229 14.185-1.952l.255.194c7.283 5.702 18.475 6.164 24.13 1.809 3.072-2.366 5.766-6.754 6.226-10.536.467-3.844-1.21-7.07-6.796-10.267l-.378-.213c-4.967-2.756-6.76-9.017-4.004-13.985ZM61.35 103.092c-2.84-4.92-9.13-6.607-14.05-3.768-20.662 11.922-21.772 35.751-6.018 51.69 13.752 13.914 33.192 13.447 50.507 1.158 4.633-3.288 5.723-9.708 2.436-14.34-3.288-4.633-9.709-5.724-14.341-2.436-9.763 6.928-18.07 7.128-23.97 1.158-6.761-6.84-6.498-14.501 1.35-19.225l.317-.187c4.92-2.84 6.608-9.13 3.769-14.05ZM129.103 135.702c1.688-5.424 7.454-8.453 12.878-6.764 14.776 4.599 23.437 13.727 25.259 25.58 1.316 8.561-1.228 17.533-5.58 24.052-3.132 4.688-7.388 8.287-12.504 11.112-3.03 1.673-5.75 2.811-9.37 4.066l-1.4.477c-5.387 1.806-11.217-1.097-13.022-6.484-1.805-5.386 1.098-11.216 6.484-13.02l1.09-.374c6.032-2.112 9.602-4.19 11.613-7.201 1.693-2.535 2.818-6.502 2.356-9.503-.564-3.673-3.432-6.696-11.04-9.063-5.424-1.689-8.452-7.454-6.764-12.878Z",fill:"#377EFF",fillRule:"nonzero"}),i.createElement("path",{d:"M148.072 181.58c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.236-9.096-10.275-9.707",stroke:"#FFF",strokeWidth:.571,strokeLinecap:"round"}),i.createElement("ellipse",{fill:"#7EACFF",transform:"rotate(10 147 41.933)",cx:147,cy:41.933,rx:9.143,ry:10.286}),i.createElement("path",{d:"M210.422 107.472c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.668-9.883-11.572-12.067M51.604 131.769c-3.15-6.8-3.537-12.694-1.161-17.685 2.376-4.99 5.57-8.136 9.583-9.438",stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M21.53 64.408c4.946-3.389 9.817-6.026 14.612-7.912",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"m113.243 15.444 9.588 8.314M144.31 9.405l-5.775 11.3m18.389-1.246-11.907 4.643M127.64 5.66l2.77 14.255",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}))),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},i.createElement("g",{transform:"translate(275.143 302.571)"},i.createElement("mask",{id:"error-block-image-disconnected-e",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-disconnected-d"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-disconnected-d"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:16.457,cy:17.92,r:22.309}),i.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:14.263,cy:12.069,r:2.194}))),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"#FBBE47",fillRule:"nonzero"},i.createElement("circle",{cx:12,cy:12,r:12,transform:"translate(84 297.714)"})))),$f=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-empty-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("path",{d:"M146.183 18.461c31.705 23.336 33.349 71.85 4.93 96.614-.252.22 6.172 5.602 13.577 11.414l.686.537.69.54.695.54.348.27.698.54a341.27 341.27 0 0 0 8.806 6.596c1.114.802 4.643-.853 10.587-4.965l-.532 12.218a1.2 1.2 0 0 1-.481.91l-10.868 8.111c-1.405 1.048-3.32 1.185-4.854.072l-35.578-25.834c-33.414 17.333-79.913 15-109.804-7-33.444-24.616-33.444-75.95 0-100.563 33.443-24.615 87.657-24.615 121.1 0Zm-60.469 7.653C51.63 26.114 24 44.534 24 67.257S51.63 108.4 85.714 108.4s61.715-18.42 61.715-41.143c0-22.722-27.63-41.143-61.715-41.143Z",id:"error-block-image-empty-b"})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M157.964 244.661H0L3.806 100.13a4.572 4.572 0 0 1 4.353-4.446l.217-.006h45.588V68.2a4.572 4.572 0 0 1 4.356-4.567l.216-.005h65.498l2.554-58.689a4.571 4.571 0 0 1 4.779-4.367l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.212 3.146 69.652L301.634 64.9a4.571 4.571 0 0 1 5.628 4.231l.005.215v43.955l56.162.001v130.264h-56.163v.001h-82.383v-.004h-66.919v1.098ZM89.503 160.03h-9.968v8.436h9.968v-8.436Zm0-14.507h-9.968v8.435h9.968v-8.435Zm197.985-5.15h-9.967v8.432h9.967v-8.431Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.436h9.967v-8.436Zm-84.643-3.29h-30.8v8.436h30.8v-8.436Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 50.286)",fill:"url(#error-block-image-empty-a)"}),i.createElement("g",{transform:"translate(108.571 189.886)"},i.createElement("mask",{id:"error-block-image-empty-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-empty-b"})),i.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-empty-b"}),i.createElement("path",{d:"M131.429 134.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM128 133.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM120 128.971a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.142.125.006a1.143 1.143 0 1 1-.125-.006Zm11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-22.857 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm17.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM136 125.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-13.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm18.857-2.286a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-37.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm13.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm18.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-28 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm17.715-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-4.571a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.428 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.143 1.142a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-9.143 0a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm30.286-3.429a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM124 109.543a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.858-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-11.428-3.429a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM124 99.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM49.143 55.829a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-9.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM52 52.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-19.429-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-1.142a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-13.143 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM64 44.4a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.125.007a1.143 1.143 0 1 1-.125-.007Zm11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.858 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM30.286 44.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM44 43.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM72 38.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-28 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm5.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM56 37.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM60.57 32.97a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM44 34.114a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm30.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-15.429 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.857-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-11.429-3.428a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM41.714 20.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-empty-c)"})),i.createElement("path",{d:"M295.213 319.24c.744.546.745 1.433.002 1.98l-11.806 8.81c-1.069.799-3.326.474-4.853-.609l-35.622-25.241c-33.375 17.037-79.545 14.615-109.28-7.271-33.443-24.615-33.443-64.521 0-89.133 33.443-24.616 87.657-24.616 121.1 0 31.706 23.336 33.35 60.42 4.931 85.185-.543.473 35.528 26.278 35.528 26.278ZM148.06 220.015c-25.44 17.853-25.44 46.8 0 64.652 25.44 17.85 66.689 17.85 92.129 0 25.436-17.853 25.436-46.799 0-64.652-25.44-17.853-66.688-17.853-92.129 0Z",fill:"#5D96FE"}),i.createElement("path",{d:"M123.514 233.021c2.185-5.241 5.67-9.735 10.453-13.482M264.967 271.54c-2.185 5.24-5.67 9.734-10.453 13.481",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M81.143 252.571c7.574 0 13.714 23.88 13.714 31.649 0 6.97-4.942 12.755-11.429 13.871v11.672c0 1.235-.767 2.237-1.713 2.237-.904 0-1.644-.912-1.71-2.07l-.005-.167v-11.526c-7.04-.595-12.571-6.644-12.571-14.017 0-7.024 5.02-27.222 11.581-31.027l.096-.053c.027-.016.055-.03.082-.045l.067-.035.066-.033.1-.05.094-.041a3.34 3.34 0 0 1 .224-.093l.11-.042.097-.032c.038-.013.077-.025.115-.036l.053-.016.053-.014a3.351 3.351 0 0 1 .23-.055l.085-.016a3.95 3.95 0 0 1 .441-.054l.11-.005.11-.002Z",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(283.429 177.143)",fillRule:"nonzero"},i.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.49 0-2.707-1.46-2.79-3.301l-.004-.2-.001-19.018C8.659 71.92.13 62.518.13 51.123.13 40.071 8.154 8.49 18.694 2.015l.054-.031a5.94 5.94 0 0 1 .214-.128l.088-.048c.213-.12.427-.228.642-.326l.135-.06.18-.075.135-.053a5.796 5.796 0 0 1 .464-.16 4.44 4.44 0 0 1 .33-.092l.124-.03a7.122 7.122 0 0 1 .31-.065l.018-.003a6.305 6.305 0 0 1 .756-.088l.165-.007.166-.002Z",fill:"#FFCD6B"}),i.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.543 0-2.794-1.566-2.794-3.5V73.295C8.659 71.921.13 62.518.13 51.123.13 38.783 10.134.847 22.475.847Z",fill:"#FFCD6B"}),i.createElement("circle",{fill:"#FFB400",cx:26.4,cy:56.869,r:1.45}),i.createElement("circle",{fill:"#FFB400",cx:39.453,cy:58.319,r:1}),i.createElement("circle",{fill:"#FFB400",cx:17.698,cy:63.637,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:38.002,cy:51.068,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:18.665,cy:17.228,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:32.201,cy:13.36,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:26.83,cy:20.666,r:1.45}),i.createElement("circle",{fill:"#FFB400",cx:38.969,cy:31.731,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:25.433,cy:29.797,r:1.45}),i.createElement("path",{d:"M34.197 53.033c0 9.825-6.934 18.017-16.172 19.987a22.44 22.44 0 0 0 4.45.448c12.34 0 22.344-10.004 22.344-22.345C44.82 38.783 34.815.847 22.475.847c8.947 14.03 11.722 40.891 11.722 52.186Z",fill:"#FBBE47"})))),_f=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-busy-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-busy-b",cx:34.857,cy:34.857,r:34.857})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M157.964 243.667H0L3.806 99.134a4.572 4.572 0 0 1 4.353-4.446l.217-.005h45.588V67.205a4.572 4.572 0 0 1 4.356-4.566l.216-.005 65.498-.001 2.554-58.688a4.571 4.571 0 0 1 4.779-4.368l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.213 3.146 69.652 74.976-17.906a4.571 4.571 0 0 1 5.628 4.23l.005.216v43.955h56.162v130.265l-56.163-.001v.002h-82.383v-.004h-66.919v1.098Zm-68.461-84.631h-9.968v8.435h9.968v-8.435Zm0-14.508h-9.968v8.436h9.968v-8.436Zm197.985-5.149h-9.967v8.432h9.967v-8.432Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.435h9.967v-8.435Zm-84.643-3.29h-30.8v8.435h30.8v-8.435Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 51.286)",fill:"url(#error-block-image-busy-a)"}),i.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l.958-.01c-.376 7.363 3.679 59.93 34.894 62.659 4.203.367 7.432.39 7.475 4.609.042 4.218-3.176 4.307-7.37 4.76-34.593 3.737-34.136 56.004-33.61 63.357l-.957.01c-5.276.053-9.51 4.373-9.455 9.649.053 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.054 9.508-4.374 9.455-9.648-.055-5.276-4.374-9.51-9.65-9.455l-.958.01c.377-7.363-.729-59.672-34.894-62.66-4.202-.367-7.432-.39-7.474-4.608-.043-4.219 3.175-4.308 7.369-4.76 31.276-3.377 34.136-56.004 33.61-63.357l.958-.01c5.276-.053 9.508-4.373 9.455-9.649-.055-5.276-4.374-9.509-9.65-9.454Z",fill:"#377EFF"}),i.createElement("path",{d:"M233.524 314.422c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.894-5.644c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.149 17.865c.108.684.773 1.147 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm-2.144-8.182c.109.684.773 1.148 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-1.586-4.694c.108.684.772 1.148 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.013-5.88c.109.685.773 1.148 1.484 1.036.71-.113 1.2-.759 1.09-1.443-.107-.684-.772-1.148-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm.236 15.575c.108.685.772 1.148 1.483 1.035.71-.112 1.2-.758 1.09-1.442-.107-.685-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.442Zm-.4 4.494c.108.684.772 1.147 1.483 1.035.71-.113 1.2-.759 1.091-1.443-.108-.684-.773-1.148-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-3.88-8.601c.108.684.772 1.147 1.483 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-.524-7.186c.065.41.463.688.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-2.265-4.102c.109.684.773 1.148 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.147-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm-.545-6.518c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm2.098 23.629c.109.684.773 1.147 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.443Zm-.756-9.65c.043.274.309.46.593.414a.512.512 0 0 0 .437-.577.512.512 0 0 0-.594-.414.512.512 0 0 0-.436.577Zm-.808 20.96c.109.684.773 1.147 1.484 1.034.71-.112 1.2-.758 1.09-1.442-.108-.685-.772-1.148-1.483-1.036-.71.113-1.199.759-1.09 1.443Zm-4.691-31.966c.065.41.463.689.89.621.426-.068.72-.455.654-.866-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm2.098 23.628c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.967-12.416c.109.684.773 1.147 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm1.073 6.772c.108.685.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.036-.711.113-1.2.759-1.091 1.443Zm-.009-3.131c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.43-9.03c.065.41.463.688.89.62.426-.067.72-.454.655-.865-.065-.41-.464-.689-.89-.62-.427.067-.72.454-.655.865ZM214.5 333.38c.108.685.772 1.148 1.483 1.036.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.711.112-1.2.758-1.091 1.442Zm-.156-7.178c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm-1.871-4.72c.108.684.773 1.147 1.483 1.034.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.035-.71.112-1.2.758-1.091 1.442Zm-1.614-6.857c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-.894-5.644c.065.41.464.689.89.621.427-.067.72-.455.655-.866-.065-.41-.463-.688-.89-.62-.427.067-.72.455-.655.865Zm-1.43-9.03c.065.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.958 14.225c.065.41.463.689.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-.703 12.81c.065.41.464.688.89.62.427-.067.72-.455.655-.865-.065-.41-.463-.689-.89-.621-.427.067-.72.455-.655.866Zm-4.543-22.536c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm2.806 30.138c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm-5.694-17.996c.065.41.463.688.89.62.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.866Zm-2.935-13.343c.066.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.463-.689-.89-.621-.426.068-.72.455-.655.866Z",fill:"#003CFF",fillRule:"nonzero"}),i.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l101.963-1.04c5.276-.052 9.508-4.372 9.455-9.648-.055-5.276-4.374-9.509-9.65-9.454ZM252.64 331.241l-101.964 1.038c-5.275.054-9.508 4.374-9.454 9.65.054 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.053 9.507-4.373 9.454-9.649-.054-5.275-4.374-9.508-9.649-9.454Z",fill:"#7EACFF"}),i.createElement("path",{stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"m196.824 197.298 52.216-.506M193.329 330.5h52.215"}),i.createElement("path",{d:"M167.367 228.041c-4.091-10.787-6.086-20.934-5.985-30.44",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("circle",{cx:14.857,cy:14.857,r:14.857,transform:"translate(106.857 248.571)",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(236.571 284.571)"},i.createElement("mask",{id:"error-block-image-busy-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-busy-b"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-busy-b"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:25.714,cy:28,r:34.857}),i.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:22.286,cy:18.857,r:3.429})))),Pf=kf({default:Ef,disconnected:If,empty:$f,busy:_f});let Xt=null,Qt=null;Tt&&(Xt=document.createElement("div"),Xt.className="adm-px-tester",Xt.style.setProperty("--size","10"),document.body.appendChild(Xt),Qt=document.createElement("div"),Qt.className="adm-px-tester",document.body.appendChild(Qt));function Mf(e){return Xt===null||Qt===null||Xt.getBoundingClientRect().height===10?e:(Qt.style.setProperty("--size",e.toString()),Qt.getBoundingClientRect().height)}const nl="adm-grid",et=we(e=>{const t={"--columns":e.columns.toString()},{gap:n}=e;return n!==void 0&&(Array.isArray(n)?(t["--gap-horizontal"]=Et(n[0]),t["--gap-vertical"]=Et(n[1])):t["--gap"]=Et(n)),Y(e,i.createElement("div",{className:nl,style:t},e.children))},{Item:e=>{const t=oe({span:1},e),n={"--item-span":t.span};return Y(t,i.createElement("div",{className:`${nl}-item`,style:n,onClick:t.onClick},t.children))}}),Ff=v1([sa,o1]),Oo=()=>[1,0,0,1,0,0],ol=e=>e[4],rl=e=>e[5],In=e=>e[0],$n=(e,t,n)=>sl([1,0,0,1,t,n],e),Nf=(e,t,n=t)=>sl([t,0,0,n,0,0],e),Of=(e,[t,n])=>[e[0]*t+e[2]*n+e[4],e[1]*t+e[3]*n+e[5]],sl=(e,t)=>[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]],es="adm-image-viewer",il=e=>{const{dragLockRef:t,maxZoom:n}=e,o=i.useRef([]),r=i.useRef(null),s=i.useRef(null),[{matrix:a},l]=ze(()=>({matrix:Oo(),config:{tension:200}})),c=te.useSize(r),u=te.useSize(s),d=i.useRef(!1),m=p=>{if(!c||!u)return{x:{position:0,minX:0,maxX:0},y:{position:0,minY:0,maxY:0}};const y=-c.width/2,b=-c.height/2,C=-u.width/2,w=-u.height/2,x=In(p),S=x*u.width,k=x*u.height,I=y-(S-c.width),M=y,O=b-(k-c.height),L=b,[F,N]=Of(p,[C,w]);return{x:{position:F,minX:I,maxX:M},y:{position:N,minY:O,maxY:L}}},g=(p,y,b,C=0)=>[p<=y-C,p>=b+C],v=(p,y,b=!1)=>{if(!c||!u)return p;const C=In(p),w=C*u.width,x=C*u.height,{x:{position:S,minX:k,maxX:I},y:{position:M,minY:O,maxY:L}}=m(p);if(y==="translate"){let F=S,N=M;return w>c.width?F=b?ye(S,k,I):Eo(S,k,I,C*50):F=-w/2,x>c.height?N=b?ye(M,O,L):Eo(M,O,L,C*50):N=-x/2,$n(p,F-S,N-M)}if(y==="scale"&&b){const[F,N]=[w>c.width?ye(S,k,I):-w/2,x>c.height?ye(M,O,L):-x/2];return $n(p,F-S,N-M)}return p};return Ff({onDrag:p=>{var y;if(p.first){const{x:{position:C,minX:w,maxX:x}}=m(a.get());o.current=g(C,w,x);return}if(p.pinching)return p.cancel();if(p.tap&&p.elapsedTime>0&&p.elapsedTime<1e3){(y=e.onTap)===null||y===void 0||y.call(e);return}const b=In(a.get());if(t&&(t.current=b!==1),!d.current&&b<=1)l.start({matrix:Oo()});else{const C=a.get(),w=[p.offset[0]-ol(C),p.offset[1]-rl(C)],x=$n(C,...p.last?[w[0]+p.velocity[0]*p.direction[0]*200,w[1]+p.velocity[1]*p.direction[1]*200]:w);l.start({matrix:v(x,"translate",p.last),immediate:!p.last});const{x:{position:S,minX:k,maxX:I}}=m(x);p.last&&o.current.some(M=>M)&&g(S,k,I).some(M=>M)&&(t&&(t.current=!1),l.start({matrix:Oo()}))}},onPinch:p=>{var y;d.current=!p.last;const[b]=p.offset;if(b<0)return;let C;n==="auto"?C=c&&u?Math.max(c.height/u.height,c.width/u.width):1:C=n;const w=p.last?ye(b,1,C):b;if((y=e.onZoomChange)===null||y===void 0||y.call(e,w),p.last&&w<=1)l.start({matrix:Oo()}),t&&(t.current=!1);else{if(!c)return;const x=a.get(),S=In(x),k=p.origin[0]-c.width/2,I=p.origin[1]-c.height/2;let M=$n(x,-k,-I);M=Nf(M,w/S),M=$n(M,k,I),l.start({matrix:v(M,"scale",p.last),immediate:!p.last}),t&&(t.current=!0)}}},{target:r,drag:{from:()=>[ol(a.get()),rl(a.get())],pointer:{touch:!0}},pinch:{from:()=>[In(a.get()),0],pointer:{touch:!0}}}),i.createElement("div",{className:`${es}-slide`},i.createElement("div",{className:`${es}-control`,ref:r},i.createElement(ke.div,{className:`${es}-image-wrapper`,style:{matrix:a}},i.createElement("img",{ref:s,src:e.image,draggable:!1,alt:e.image}))))},ts="adm-image-viewer",Tf=i.forwardRef((e,t)=>{const n=window.innerWidth+Mf(16),[{x:o},r]=ze(()=>({x:e.defaultIndex*n,config:{tension:250,clamp:!0}})),s=e.images.length;function a(u,d=!1){var m;const g=ye(u,0,s-1);(m=e.onIndexChange)===null||m===void 0||m.call(e,g),r.start({x:g*n,immediate:d})}i.useImperativeHandle(t,()=>({swipeTo:a}));const l=i.useRef(!1),c=io(u=>{if(l.current)return;const[d]=u.offset;if(u.last){const m=Math.floor(d/n),g=m+1,v=Math.min(u.velocity[0]*2e3,n)*u.direction[0];a(ye(Math.round((d+v)/n),m,g))}else r.start({x:d,immediate:!0})},{transform:([u,d])=>[-u,d],from:()=>[o.get(),0],bounds:()=>({left:0,right:(s-1)*n}),rubberband:!0,axis:"x",pointer:{touch:!0}});return i.createElement("div",Object.assign({className:`${ts}-slides`},c()),i.createElement(ke.div,{className:`${ts}-indicator`},o.to(u=>`${ye(Math.round(u/n),0,s-1)+1} / ${s}`)),i.createElement(ke.div,{className:`${ts}-slides-inner`,style:{x:o.to(u=>-u)}},e.images.map((u,d)=>i.createElement(il,{key:d,image:u,onTap:e.onTap,maxZoom:e.maxZoom,onZoomChange:m=>{if(m!==1){const g=Math.round(o.get()/n);r.start({x:g*n})}},dragLockRef:l}))))}),To="adm-image-viewer",al={maxZoom:3,getContainer:null,visible:!1},ll=e=>{var t,n,o;const r=oe(al,e),s=i.createElement(to,{visible:r.visible,disableBodyScroll:!1,opacity:"thick",afterClose:r.afterClose,destroyOnClose:!0,className:(t=r==null?void 0:r.classNames)===null||t===void 0?void 0:t.mask},i.createElement("div",{className:K(`${To}-content`,(n=r==null?void 0:r.classNames)===null||n===void 0?void 0:n.body)},r.image&&i.createElement(il,{image:r.image,onTap:r.onClose,maxZoom:r.maxZoom})),r.image&&i.createElement("div",{className:`${To}-footer`},(o=r.renderFooter)===null||o===void 0?void 0:o.call(r,r.image),i.createElement(Cn,{position:"bottom"})));return Rn(r.getContainer,s)},Df=Object.assign(Object.assign({},al),{defaultIndex:0}),cl=i.forwardRef((e,t)=>{var n,o,r;const s=oe(Df,e),[a,l]=i.useState(s.defaultIndex),c=i.useRef(null);i.useImperativeHandle(t,()=>({swipeTo:(m,g)=>{var v;l(m),(v=c.current)===null||v===void 0||v.swipeTo(m,g)}}));const u=i.useCallback(m=>{var g;m!==a&&(l(m),(g=s.onIndexChange)===null||g===void 0||g.call(s,m))},[s.onIndexChange,a]),d=i.createElement(to,{visible:s.visible,disableBodyScroll:!1,opacity:"thick",afterClose:s.afterClose,destroyOnClose:!0,className:(n=s==null?void 0:s.classNames)===null||n===void 0?void 0:n.mask},i.createElement("div",{className:K(`${To}-content`,(o=s==null?void 0:s.classNames)===null||o===void 0?void 0:o.body)},s.images&&i.createElement(Tf,{ref:c,defaultIndex:a,onIndexChange:u,images:s.images,onTap:s.onClose,maxZoom:s.maxZoom})),s.images&&i.createElement("div",{className:`${To}-footer`},(r=s.renderFooter)===null||r===void 0?void 0:r.call(s,s.images[a],a),i.createElement(Cn,{position:"bottom"})));return Rn(s.getContainer,d)}),Jt=new Set;function Af(e){ns();const t=xn(i.createElement(ll,Object.assign({},e,{afterClose:()=>{var n;Jt.delete(t),(n=e.afterClose)===null||n===void 0||n.call(e)}})));return Jt.add(t),t}function Lf(e){ns();const t=xn(i.createElement(cl,Object.assign({},e,{afterClose:()=>{var n;Jt.delete(t),(n=e.afterClose)===null||n===void 0||n.call(e)}})));return Jt.add(t),t}function ns(){Jt.forEach(e=>{e.close()}),Jt.clear()}const Bf=we(cl,{show:Lf}),zf=we(ll,{Multi:Bf,show:Af,clear:ns}),_t="adm-image-uploader",ul=e=>{const{locale:t}=Pe(),{url:n,file:o,deletable:r,deleteIcon:s,onDelete:a,imageFit:l}=e,c=i.useMemo(()=>n||(o?URL.createObjectURL(o):""),[n,o]);i.useEffect(()=>()=>{o&&URL.revokeObjectURL(c)},[c,o]);function u(){return e.status==="pending"&&i.createElement("div",{className:`${_t}-cell-mask`},i.createElement("span",{className:`${_t}-cell-loading`},i.createElement(Ur,{color:"white"}),i.createElement("span",{className:`${_t}-cell-mask-message`},t.ImageUploader.uploading)))}function d(){return r&&i.createElement("span",{className:`${_t}-cell-delete`,onClick:a},s)}return i.createElement("div",{className:K(`${_t}-cell`,e.status==="fail"&&`${_t}-cell-fail`)},i.createElement(ma,{className:`${_t}-cell-image`,src:c,fit:l,onClick:e.onClick}),u(),d())},Pt="adm-space",Vf={direction:"horizontal"},_n=e=>{const t=oe(Vf,e),{direction:n,onClick:o}=t;return Y(t,i.createElement("div",{className:K(Pt,{[`${Pt}-wrap`]:t.wrap,[`${Pt}-block`]:t.block,[`${Pt}-${n}`]:!0,[`${Pt}-align-${t.align}`]:!!t.align,[`${Pt}-justify-${t.justify}`]:!!t.justify}),onClick:o},i.Children.map(t.children,r=>r!=null&&i.createElement("div",{className:`${Pt}-item`},r))))},tt="adm-image-uploader",Zf={disableUpload:!1,deletable:!0,deleteIcon:i.createElement(no,{className:`${tt}-cell-delete-icon`}),showUpload:!0,multiple:!1,maxCount:0,defaultValue:[],accept:"image/*",preview:!0,showFailed:!0,imageFit:"cover"},dl=i.forwardRef((e,t)=>{const{locale:n}=Pe(),o=oe(Zf,e),{columns:r}=o,[s,a]=Ie(o),[l,c]=i.useState([]),u=i.useRef(null),d=te.useSize(u),m=i.useRef(null),[g,v]=i.useState(80),p=i.useRef(null);te.useIsomorphicLayoutEffect(()=>{const z=m.current;if(r&&d&&z){const _=d.width,P=Ia(window.getComputedStyle(z).getPropertyValue("height"));v((_-P*(r-1))/r)}},[d==null?void 0:d.width]);const y={"--cell-size":g+"px"};te.useIsomorphicLayoutEffect(()=>{c(z=>z.filter(_=>_.url===void 0?!0:!s.some(P=>P.url===_.url)))},[s]),te.useIsomorphicLayoutEffect(()=>{var z;(z=o.onUploadQueueChange)===null||z===void 0||z.call(o,l.map(_=>({id:_.id,status:_.status})))},[l]);const b=i.useRef(0),{maxCount:C,onPreview:w,renderItem:x}=o;function S(z,_){return yt(this,void 0,void 0,function*(){const{beforeUpload:P}=o;let E=z;return E=yield P==null?void 0:P(z,_),E})}function k(z){return o.showFailed?z:z.filter(_=>_.status!=="fail")}function I(z){var _;return yt(this,void 0,void 0,function*(){z.persist();const{files:P}=z.target;if(!P)return;let E=[].slice.call(P);if(z.target.value="",o.beforeUpload){const V=E.map(j=>S(j,E));yield Promise.all(V).then(j=>{E=j.filter(Boolean)})}if(E.length===0)return;if(C>0){const V=s.length+E.length-C;V>0&&(E=E.slice(0,E.length-V),(_=o.onCountExceed)===null||_===void 0||_.call(o,V))}const D=E.map(V=>({id:b.current++,status:"pending",file:V}));c(V=>[...k(V),...D]);const T=[];yield Promise.all(D.map((V,j)=>yt(this,void 0,void 0,function*(){try{const H=yield o.upload(V.file);T[j]=H,c(U=>U.map(J=>J.id===V.id?Object.assign(Object.assign({},J),{status:"success",url:H.url}):J))}catch(H){throw c(U=>U.map(J=>J.id===V.id?Object.assign(Object.assign({},J),{status:"fail"}):J)),H}}))).catch(V=>console.error(V)),a(V=>V.concat(T))})}const M=i.useRef(null);function O(z){M.current=zf.Multi.show({images:s.map(_=>_.url),defaultIndex:z,onClose:()=>{M.current=null}})}te.useUnmount(()=>{var z;(z=M.current)===null||z===void 0||z.close()});const L=k(l),F=o.showUpload&&(C===0||s.length+L.length<C),N=()=>s.map((z,_)=>{var P,E;const D=i.createElement(ul,{key:(P=z.key)!==null&&P!==void 0?P:_,url:(E=z.thumbnailUrl)!==null&&E!==void 0?E:z.url,deletable:o.deletable,deleteIcon:o.deleteIcon,imageFit:o.imageFit,onClick:()=>{o.preview&&O(_),w&&w(_,z)},onDelete:()=>yt(void 0,void 0,void 0,function*(){var T;(yield(T=o.onDelete)===null||T===void 0?void 0:T.call(o,z))!==!1&&a(s.filter((j,H)=>H!==_))})});return x?x(D,z,s):D}),W=i.createElement(i.Fragment,null,N(),l.map(z=>!o.showFailed&&z.status==="fail"?null:i.createElement(ul,{key:z.id,file:z.file,deletable:z.status!=="pending",deleteIcon:o.deleteIcon,status:z.status,imageFit:o.imageFit,onDelete:()=>{c(l.filter(_=>_.id!==z.id))}})),i.createElement("div",{className:`${tt}-upload-button-wrap`,style:F?void 0:{display:"none"}},o.children||i.createElement("span",{className:`${tt}-cell ${tt}-upload-button`,role:"button","aria-label":n.ImageUploader.upload},i.createElement("span",{className:`${tt}-upload-button-icon`},i.createElement(ud,null))),!o.disableUpload&&i.createElement("input",{"aria-label":n.ImageUploader.upload,ref:p,capture:o.capture,accept:o.accept,multiple:o.multiple,type:"file",className:`${tt}-input`,onChange:I})));return i.useImperativeHandle(t,()=>({get nativeElement(){return p.current}})),Y(o,i.createElement("div",{className:tt,ref:u},r?i.createElement(et,{className:`${tt}-grid`,columns:r,style:y},i.createElement("div",{className:`${tt}-gap-measure`,ref:m}),W.props.children):i.createElement(_n,{className:`${tt}-space`,wrap:!0,block:!0},W.props.children)))});function fl({onEnterPress:e,onKeyDown:t,nativeInputRef:n,enterKeyHint:o}){const r=s=>{e&&(s.code==="Enter"||s.keyCode===13)&&e(s),t==null||t(s)};return te.useIsomorphicLayoutEffect(()=>{const s=n.current;if(!(!o||!s))return s.setAttribute("enterkeyhint",o),()=>{s.removeAttribute("enterkeyhint")}},[o]),r}const Do="adm-input",jf={defaultValue:"",clearIcon:i.createElement(dd,null),onlyShowClearWhenFocus:!0},os=i.forwardRef((e,t)=>{const{locale:n,input:o={}}=Pe(),r=oe(jf,o,e),[s,a]=Ie(r),[l,c]=i.useState(!1),u=i.useRef(!1),d=i.useRef(null),m=fl({onEnterPress:r.onEnterPress,onKeyDown:r.onKeyDown,nativeInputRef:d,enterKeyHint:r.enterKeyHint});i.useImperativeHandle(t,()=>({clear:()=>{a("")},focus:()=>{var p;(p=d.current)===null||p===void 0||p.focus()},blur:()=>{var p;(p=d.current)===null||p===void 0||p.blur()},get nativeElement(){return d.current}}));function g(){let p=s;if(r.type==="number"){const y=p&&ye(parseFloat(p),r.min,r.max).toString();Number(p)!==Number(y)&&(p=y)}p!==s&&a(p)}const v=!r.clearable||!s||r.readOnly?!1:r.onlyShowClearWhenFocus?l:!0;return Y(r,i.createElement("div",{className:K(`${Do}`,r.disabled&&`${Do}-disabled`)},i.createElement("input",{ref:d,className:`${Do}-element`,value:s,onChange:p=>{a(p.target.value)},onFocus:p=>{var y;c(!0),(y=r.onFocus)===null||y===void 0||y.call(r,p)},onBlur:p=>{var y;c(!1),g(),(y=r.onBlur)===null||y===void 0||y.call(r,p)},onPaste:r.onPaste,id:r.id,placeholder:r.placeholder,disabled:r.disabled,readOnly:r.readOnly,maxLength:r.maxLength,minLength:r.minLength,max:r.max,min:r.min,autoComplete:r.autoComplete,enterKeyHint:r.enterKeyHint,autoFocus:r.autoFocus,pattern:r.pattern,inputMode:r.inputMode,type:r.type,name:r.name,autoCapitalize:r.autoCapitalize,autoCorrect:r.autoCorrect,onKeyDown:m,onKeyUp:r.onKeyUp,onCompositionStart:p=>{var y;u.current=!0,(y=r.onCompositionStart)===null||y===void 0||y.call(r,p)},onCompositionEnd:p=>{var y;u.current=!1,(y=r.onCompositionEnd)===null||y===void 0||y.call(r,p)},onClick:r.onClick,step:r.step,role:r.role,"aria-valuenow":r["aria-valuenow"],"aria-valuemax":r["aria-valuemax"],"aria-valuemin":r["aria-valuemin"],"aria-label":r["aria-label"]}),v&&i.createElement("div",{className:`${Do}-clear`,onMouseDown:p=>{p.preventDefault()},onClick:()=>{var p,y;a(""),(p=r.onClear)===null||p===void 0||p.call(r),H1()&&u.current&&(u.current=!1,(y=d.current)===null||y===void 0||y.blur())},"aria-label":n.Input.clear},r.clearIcon)))}),nt="adm-jumbo-tabs",ml=we(e=>{var t;const n=i.useRef(null),o=i.useRef(null),r={};let s=null;const a=[];jr(e.children,(m,g)=>{if(!i.isValidElement(m))return;const v=m.key;if(typeof v!="string")return;g===0&&(s=v);const p=a.push(m);r[v]=p-1});const[l,c]=Ie({value:e.activeKey,defaultValue:(t=e.defaultActiveKey)!==null&&t!==void 0?t:s,onChange:m=>{var g;m!==null&&((g=e.onChange)===null||g===void 0||g.call(e,m))}}),{scrollLeft:u,animate:d}=o0(n,r[l]);return wa(()=>{d(!0)},o),Y(e,i.createElement("div",{className:nt,ref:o},i.createElement("div",{className:`${nt}-header`},i.createElement(r0,{scrollTrackRef:n}),i.createElement(ke.div,{className:`${nt}-tab-list`,ref:n,scrollLeft:u},a.map(m=>Y(m.props,i.createElement("div",{key:m.key,className:`${nt}-tab-wrapper`},i.createElement("div",{onClick:()=>{const{key:g}=m;m.props.disabled||g!=null&&c(g.toString())},className:K(`${nt}-tab`,{[`${nt}-tab-active`]:m.key===l,[`${nt}-tab-disabled`]:m.props.disabled})},i.createElement("div",{className:`${nt}-tab-title`},m.props.title),i.createElement("div",{className:`${nt}-tab-description`},m.props.description))))))),a.map(m=>{if(m.props.children===void 0)return null;const g=m.key===l;return i.createElement(eo,{key:m.key,active:g,forceRender:m.props.forceRender,destroyOnClose:m.props.destroyOnClose},i.createElement("div",{className:`${nt}-content`,style:{display:g?"block":"none"}},m.props.children))})))},{Tab:()=>null}),Rt="adm-nav-bar",hl=i.createElement(md,null),Kf=e=>{const{navBar:t={}}=Pe(),n=oe(t,e),{back:o,backIcon:r,backArrow:s}=n,a=t.backIcon||hl,l=Uo(hl,t.backIcon,s===!0?a:s,r===!0?a:r);return Y(n,i.createElement("div",{className:K(Rt)},i.createElement("div",{className:`${Rt}-left`,role:"button"},o!==null&&i.createElement("div",{className:`${Rt}-back`,onClick:n.onBack},l&&i.createElement("span",{className:`${Rt}-back-arrow`},l),i.createElement("span",{"aria-hidden":"true"},o)),n.left),i.createElement("div",{className:`${Rt}-title`},n.children),i.createElement("div",{className:`${Rt}-right`},n.right)))},Pn="adm-page-indicator",Wf={color:"primary",direction:"horizontal"},Hf=i.memo(e=>{const t=oe(Wf,e),n=[];for(let o=0;o<t.total;o++)n.push(i.createElement("div",{key:o,className:K(`${Pn}-dot`,{[`${Pn}-dot-active`]:t.current===o})}));return Y(t,i.createElement("div",{className:K(Pn,`${Pn}-${t.direction}`,`${Pn}-color-${t.color}`)},n))}),pl=i.createContext(null),Uf={disabled:!1,defaultValue:null},Yf=e=>{const t=oe(Uf,e),[n,o]=Ie({value:t.value,defaultValue:t.defaultValue,onChange:r=>{var s;r!==null&&((s=t.onChange)===null||s===void 0||s.call(t,r))}});return i.createElement(pl.Provider,{value:{value:n===null?[]:[n],check:r=>{o(r)},uncheck:()=>{},disabled:t.disabled}},t.children)},Mt="adm-radio",Gf={defaultChecked:!1},rs=we(e=>{const t=oe(Gf,e),n=i.useContext(pl);let[o,r]=Ie({value:t.checked,defaultValue:t.defaultChecked,onChange:t.onChange}),s=t.disabled;const{value:a}=t;n&&a!==void 0&&(o=n.value.includes(a),r=c=>{var u;c?n.check(a):n.uncheck(a),(u=t.onChange)===null||u===void 0||u.call(t,c)},s=s||n.disabled);const l=()=>t.icon?i.createElement("div",{className:`${Mt}-custom-icon`},t.icon(o)):i.createElement("div",{className:`${Mt}-icon`},o&&i.createElement(Za,null));return Y(t,i.createElement("label",{onClick:t.onClick,className:K(Mt,{[`${Mt}-checked`]:o,[`${Mt}-disabled`]:s,[`${Mt}-block`]:t.block})},i.createElement(ja,{type:"radio",checked:o,onChange:r,disabled:s,id:t.id}),l(),t.children&&i.createElement("div",{className:`${Mt}-content`},t.children)))},{Group:Yf}),bt="adm-search-bar",qf={clearable:!0,onlyShowClearWhenFocus:!1,showCancelButton:!1,defaultValue:"",clearOnCancel:!0},gl=i.forwardRef((e,t)=>{const{locale:n,searchBar:o={}}=Pe(),r=oe(qf,o,{cancelText:n.common.cancel},e),s=Uo(i.createElement(pd,null),o.searchIcon,e.icon,e.searchIcon),[a,l]=Ie(r),[c,u]=i.useState(!1),d=i.useRef(null),m=i.useRef(!1);i.useImperativeHandle(t,()=>({clear:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.clear()},focus:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.focus()},blur:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.blur()},get nativeElement(){var v,p;return(p=(v=d.current)===null||v===void 0?void 0:v.nativeElement)!==null&&p!==void 0?p:null}}));const g=()=>{let v;return typeof r.showCancelButton=="function"?v=r.showCancelButton(c,a):v=r.showCancelButton&&c,v&&i.createElement("div",{className:`${bt}-suffix`},i.createElement(st,{fill:"none",className:`${bt}-cancel-button`,onClick:()=>{var p,y,b;r.clearOnCancel&&((p=d.current)===null||p===void 0||p.clear()),(y=d.current)===null||y===void 0||y.blur(),(b=r.onCancel)===null||b===void 0||b.call(r)},onMouseDown:p=>{p.preventDefault()}},r.cancelText))};return Y(r,i.createElement("div",{className:K(bt,{[`${bt}-active`]:c})},i.createElement("div",{className:`${bt}-input-box`},s&&i.createElement("div",{className:`${bt}-input-box-icon`},s),i.createElement(os,{ref:d,className:K(`${bt}-input`,{[`${bt}-input-without-icon`]:!s}),value:a,onChange:l,maxLength:r.maxLength,autoFocus:r.autoFocus,placeholder:r.placeholder,clearable:r.clearable,onlyShowClearWhenFocus:r.onlyShowClearWhenFocus,onFocus:v=>{var p;u(!0),(p=r.onFocus)===null||p===void 0||p.call(r,v)},onBlur:v=>{var p;u(!1),(p=r.onBlur)===null||p===void 0||p.call(r,v)},onClear:r.onClear,type:"search",enterKeyHint:"search",onEnterPress:()=>{var v,p;m.current||((v=d.current)===null||v===void 0||v.blur(),(p=r.onSearch)===null||p===void 0||p.call(r,a))},"aria-label":n.SearchBar.name,onCompositionStart:v=>{var p;m.current=!0,(p=r.onCompositionStart)===null||p===void 0||p.call(r,v)},onCompositionEnd:v=>{var p;m.current=!1,(p=r.onCompositionEnd)===null||p===void 0||p.call(r,v)}})),g()))}),vl=e=>Y(e,i.createElement("div",{className:"adm-swiper-item",onClick:e.onClick},e.children));function Xf(e){const[t,n]=i.useState(e),o=i.useRef(t);return i.useEffect(()=>{o.current=t},[t]),[t,n,o]}function Qf(e,t){const n=Object.keys(e),o=Object.keys(t),r=new Set([...n,...o]),s={};return r.forEach(a=>{const l=e[a],c=t[a];typeof l=="function"&&typeof c=="function"?s[a]=function(...u){l(...u),c(...u)}:s[a]=l||c}),s}const ot="adm-swiper",Jf={mousedown:"onMouseDown",mousemove:"onMouseMove",mouseup:"onMouseUp"},Rf={defaultIndex:0,allowTouchMove:!0,autoplay:!1,autoplayInterval:3e3,loop:!1,direction:"horizontal",slideSize:100,trackOffset:0,stuckAtBoundary:!0,rubberband:!0,stopPropagation:[]};let Ao;const em=i.forwardRef(Dr((e,t)=>{const n=oe(Rf,e),{direction:o,total:r,children:s,indicator:a}=n,[l]=i.useState({}),c=i.useRef(null),u=o==="vertical",d=n.slideSize/100,m=n.trackOffset/100,{validChildren:g,count:v,renderChildren:p}=i.useMemo(()=>{let b=0,C,w;return typeof s=="function"?C=s:w=i.Children.map(s,x=>!i.isValidElement(x)||x.type!==vl?null:(b++,x)),{renderChildren:C,validChildren:w,count:b}},[s]),y=r!=null?r:v;return y===0||!g&&!p?null:()=>{let b=n.loop;d*(y-1)<1&&(b=!1);const C=i.useRef(null);function w(){const Z=C.current;return Z?(u?Z.offsetHeight:Z.offsetWidth)*n.slideSize/100:0}const[x,S,k]=te.useGetState(n.defaultIndex),[I,M,O]=Xf(!1);function L(Z){let G=0,re=y-1;return n.stuckAtBoundary&&(G+=m/d,re-=(1-d-m)/d),ye(Z,G,re)}const[{position:F},N]=ze(()=>({position:L(x)*100,config:{tension:200,friction:30},onRest:()=>{if(O.current||!b)return;const Z=F.get(),G=100*y,re=ss(Z,G);re!==Z&&N.start({position:re,immediate:!0})}}),[y]),W=i.useRef(null);function z(){var Z;(Z=W.current)===null||Z===void 0||Z.call(W),O.current=!1}const _=io(Z=>{if(W.current=Z.cancel,!Z.intentional||(Z.first&&!Ao&&(Ao=l),Ao!==l))return;Ao=Z.last?void 0:l;const G=w();if(!G)return;const re=u?1:0,ge=Z.offset[re],Ce=Z.direction[re],Ko=Z.velocity[re];if(M(!0),!Z.last)N.start({position:ge*100/G,immediate:!0});else{const Nn=Math.floor(ge/G),b2=Nn+1,y2=Math.round((ge+Ko*2e3*Ce)/G);P(ye(y2,Nn,b2)),window.setTimeout(()=>{M(!1)})}},{transform:([Z,G])=>[-Z,-G],from:()=>{const Z=w();return[F.get()/100*Z,F.get()/100*Z]},triggerAllEvents:!0,bounds:()=>{if(b)return{};const Z=w(),G=L(0)*Z,re=L(y-1)*Z;return u?{top:G,bottom:re}:{left:G,right:re}},rubberband:n.rubberband,axis:u?"y":"x",preventScroll:!u,pointer:{touch:!0}});function P(Z,G=!1){var re;const ge=Math.round(Z),Ce=b?ss(ge,y):ye(ge,0,y-1);Ce!==k()&&((re=n.onIndexChange)===null||re===void 0||re.call(n,Ce)),S(Ce),N.start({position:(b?ge:L(ge))*100,immediate:G})}function E(){P(Math.round(F.get()/100)+1)}function D(){P(Math.round(F.get()/100)-1)}i.useImperativeHandle(t,()=>({swipeTo:P,swipeNext:E,swipePrev:D})),te.useIsomorphicLayoutEffect(()=>{const Z=y-1;x>Z&&P(Z,!0)});const{autoplay:T,autoplayInterval:V}=n,j=()=>{c.current=window.setTimeout(()=>{T==="reverse"?D():E(),j()},V)};i.useEffect(()=>{if(!(!T||I))return j(),()=>{c.current&&window.clearTimeout(c.current)}},[T,V,I,y]);function H(Z,G){let re={};return b&&(re={[u?"y":"x"]:F.to(ge=>{let Ce=-ge+Z*100;const Ko=y*100,Nn=Ko/2;return Ce=ss(Ce+Nn,Ko)-Nn,`${Ce}%`}),[u?"top":"left"]:`-${Z*100}%`}),i.createElement(ke.div,{className:K(`${ot}-slide`,{[`${ot}-slide-active`]:x===Z}),style:re,key:Z},G)}function U(){if(p&&r){const G=Math.max(x-2,0),re=Math.min(x+2,r-1),ge=[];for(let Ce=G;Ce<=re;Ce+=1)ge.push(H(Ce,p(Ce)));return i.createElement(i.Fragment,null,i.createElement("div",{className:`${ot}-slide-placeholder`,style:{width:`${G*100}%`}}),ge)}return i.Children.map(g,(Z,G)=>H(G,Z))}function J(){return b?i.createElement("div",{className:`${ot}-track-inner`},U()):i.createElement(ke.div,{className:`${ot}-track-inner`,style:{[u?"y":"x"]:F.to(Z=>`${-Z}%`)}},U())}const ne={"--slide-size":`${n.slideSize}%`,"--track-offset":`${n.trackOffset}%`},ee=Object.assign({},n.allowTouchMove?_():{}),Ne={};for(const Z of n.stopPropagation){const G=Jf[Z];Ne[G]=function(re){re.stopPropagation()}}const q=Qf(ee,Ne);let ue=null;return typeof a=="function"?ue=a(y,x):a!==!1&&(ue=i.createElement("div",{className:`${ot}-indicator`},i.createElement(Hf,Object.assign({},n.indicatorProps,{total:y,current:x,direction:o})))),Y(n,i.createElement("div",{className:K(ot,`${ot}-${o}`),style:ne},i.createElement("div",Object.assign({ref:C,className:K(`${ot}-track`,{[`${ot}-track-allow-touch-move`]:n.allowTouchMove}),onClickCapture:Z=>{O.current&&Z.stopPropagation(),z()}},q),J()),ue))}}));function ss(e,t){const n=e%t;return n<0?n+t:n}const Lo=we(em,{Item:vl}),tm=()=>null,at="adm-tab-bar",nm={safeArea:!1},is=we(e=>{var t;const n=oe(nm,e);let o=null;const r=[];jr(n.children,(l,c)=>{if(!i.isValidElement(l))return;const u=l.key;typeof u=="string"&&(c===0&&(o=u),r.push(l))});const[s,a]=Ie({value:n.activeKey,defaultValue:(t=n.defaultActiveKey)!==null&&t!==void 0?t:o,onChange:l=>{var c;l!==null&&((c=n.onChange)===null||c===void 0||c.call(n,l))}});return Y(n,i.createElement("div",{className:at},i.createElement("div",{className:`${at}-wrap`},r.map(l=>{const c=l.key===s;function u(){const d=l.props.icon&&i.createElement("div",{className:`${at}-item-icon`},typeof l.props.icon=="function"?l.props.icon(c):l.props.icon),m=l.props.title&&i.createElement("div",{className:K(`${at}-item-title`,!!d&&`${at}-item-title-with-icon`)},typeof l.props.title=="function"?l.props.title(c):l.props.title);return d?i.createElement(i.Fragment,null,i.createElement(pa,{content:l.props.badge,className:`${at}-icon-badge`},d),m):m?i.createElement(pa,{content:l.props.badge,className:`${at}-title-badge`},m):null}return Y(l.props,i.createElement("div",{key:l.key,onClick:()=>{var d,m;const{key:g}=l;g!=null&&(a(g.toString()),(m=(d=l.props).onClick)===null||m===void 0||m.call(d))},className:K(`${at}-item`,{[`${at}-item-active`]:c})},u()))})),n.safeArea&&i.createElement(Cn,{position:"bottom"})))},{Item:tm}),bl="adm-tag",om={default:"var(--adm-color-text-secondary, #666666)",primary:"var(--adm-color-primary, #1677ff)",success:"var(--adm-color-success, #00b578)",warning:"var(--adm-color-warning, #ff8f1f)",danger:"var(--adm-color-danger, #ff3141)"},rm={color:"default",fill:"solid",round:!1},as=e=>{var t;const n=oe(rm,e),o=(t=om[n.color])!==null&&t!==void 0?t:n.color,r={"--border-color":o,"--text-color":n.fill==="outline"?o:"#ffffff","--background-color":n.fill==="outline"?"transparent":o};return Y(n,i.createElement("span",{style:r,onClick:n.onClick,className:K(bl,{[`${bl}-round`]:n.round})},n.children))},Mn="adm-text-area",yl={rows:2,showCount:!1,autoSize:!1,defaultValue:""},Cl=i.forwardRef((e,t)=>{const n=oe(yl,e),{autoSize:o,showCount:r,maxLength:s}=n,[a,l]=Ie(Object.assign(Object.assign({},n),{value:n.value===null?"":n.value}));n.value;const c=i.useRef(null),u=i.useRef("auto"),d=i.useRef(null),m=fl({onEnterPress:n.onEnterPress,onKeyDown:n.onKeyDown,nativeInputRef:c,enterKeyHint:n.enterKeyHint});i.useImperativeHandle(t,()=>({clear:()=>{l("")},focus:()=>{var b;(b=c.current)===null||b===void 0||b.focus()},blur:()=>{var b;(b=c.current)===null||b===void 0||b.blur()},get nativeElement(){return c.current}})),te.useIsomorphicLayoutEffect(()=>{if(!o)return;const b=c.current,C=d.current;if(!b||(b.style.height=u.current,!C))return;let w=C.scrollHeight;if(typeof o=="object"){const x=window.getComputedStyle(b),S=parseFloat(x.lineHeight);o.minRows&&(w=Math.max(w,o.minRows*S)),o.maxRows&&(w=Math.min(w,o.maxRows*S))}u.current=`${w}px`,b.style.height=`${w}px`},[a,o]);const g=i.useRef(!1);let v;const p=Jr(a).length;typeof r=="function"?v=r(p,s):r&&(v=i.createElement("div",{className:`${Mn}-count`},s===void 0?p:p+"/"+s));let y=n.rows;return typeof o=="object"&&(o.maxRows&&y>o.maxRows&&(y=o.maxRows),o.minRows&&y<o.minRows&&(y=o.minRows)),Y(n,i.createElement("div",{className:Mn},i.createElement("textarea",{ref:c,className:`${Mn}-element`,rows:y,value:a,placeholder:n.placeholder,onChange:b=>{let C=b.target.value;s&&!g.current&&(C=Jr(C).slice(0,s).join("")),l(C)},id:n.id,onCompositionStart:b=>{var C;g.current=!0,(C=n.onCompositionStart)===null||C===void 0||C.call(n,b)},onCompositionEnd:b=>{var C;if(g.current=!1,s){const w=b.target.value;l(Jr(w).slice(0,s).join(""))}(C=n.onCompositionEnd)===null||C===void 0||C.call(n,b)},autoComplete:n.autoComplete,autoFocus:n.autoFocus,disabled:n.disabled,readOnly:n.readOnly,name:n.name,onFocus:n.onFocus,onBlur:n.onBlur,onClick:n.onClick,onKeyDown:m}),v,o&&i.createElement("textarea",{ref:d,className:`${Mn}-element ${Mn}-element-hidden`,value:a,rows:y,"aria-hidden":!0,readOnly:!0})))});Cl.defaultProps=yl;const lt="adm-toast",sm={maskClickable:!0,stopPropagation:["click"]},im=e=>{const t=oe(sm,e),{maskClickable:n,content:o,icon:r,position:s}=t,a=i.useMemo(()=>{if(r==null)return null;switch(r){case"success":return i.createElement(Li,{className:`${lt}-icon-success`});case"fail":return i.createElement(no,{className:`${lt}-icon-fail`});case"loading":return i.createElement(Ur,{color:"white",className:`${lt}-loading`});default:return r}},[r]),l=i.useMemo(()=>{switch(s){case"top":return"20%";case"bottom":return"80%";default:return"50%"}},[s]);return i.createElement(to,{visible:t.visible,destroyOnClose:!0,opacity:0,disableBodyScroll:!n,getContainer:t.getContainer,afterClose:t.afterClose,style:Object.assign({pointerEvents:n?"none":"auto"},t.maskStyle),className:K(`${lt}-mask`,t.maskClassName),stopPropagation:t.stopPropagation},i.createElement("div",{className:K(`${lt}-wrap`)},i.createElement("div",{style:{top:l},className:K(`${lt}-main`,r?`${lt}-main-icon`:`${lt}-main-text`)},a&&i.createElement("div",{className:`${lt}-icon`},a),i.createElement(F1,null,o))))};let De=null,ls=null;const Bo={duration:2e3,position:"center",maskClickable:!0},am=e=>i.createElement(im,Object.assign({},e));function lm(e){var t;const n=oe(Bo,typeof e=="string"?{content:e}:e),o=i.createElement(am,Object.assign({},n,{onClose:()=>{De=null}}));return De?!((t=De.isRendered)===null||t===void 0)&&t.call(De)?De.replace(o):(De.close(),De=xn(o)):De=xn(o),ls&&window.clearTimeout(ls),n.duration!==0&&(ls=window.setTimeout(()=>{xl()},n.duration)),De}function xl(){De==null||De.close(),De=null}function cm(e){e.duration!==void 0&&(Bo.duration=e.duration),e.position!==void 0&&(Bo.position=e.position),e.maskClickable!==void 0&&(Bo.maskClickable=e.maskClickable)}const cs={show:lm,clear:xl,config:cm},Sl={type:"void","x-component":"MPage","x-designer":"MPage.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"mobilePage:addBlock","x-component-props":{showDivider:!1}}}},um=e=>{const{t}=le(),n=$.useFieldSchema(),{dn:o}=h.useDesignable(),r=$.useField(),s={dn:o,field:r,fieldSchema:n};return f.jsx(h.SchemaSettingsDropdown,ae(B({title:f.jsx(de.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)"},icon:f.jsx(Ke.MenuOutlined,{}),type:"dashed",children:t("Menu configuration")})},s),{children:f.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete menu block")},breakRemoveOn:{"x-component":"Grid"}},"remove")}))},Fn=()=>{const{dn:e}=h.useDesignable(),t=$.useFieldSchema(),n=$.useField();return{onUpdateComponentProps:te.useMemoizedFn(r=>me(this,null,function*(){Ae.set(t,"x-component-props",r),n.componentProps=B(B({},n.componentProps),r),yield e.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"],"x-server-hooks":[{type:"onSelfSave",method:"extractTextToLocale"}]}}),yield e.refresh()}))}},wl={properties:{name:{type:"string",title:ut("Menu name"),required:!0,"x-component":"Input","x-decorator":"FormItem"},icon:{"x-decorator":"FormItem","x-component":"IconPicker",title:ut("Icon"),"x-component-props":{}}}},dm=e=>{const{icon:t,name:n}=e,o=h.useDesigner(),r=ie.useNavigate(),s=ie.useLocation(),a=$.useFieldSchema(),l=h.useCompile(),c=ie.useParams(),u=()=>{const d=s.pathname.endsWith("/")?s.pathname.slice(0,-1):s.pathname;r(c.name?`/mobile/${a["x-uid"]}`:`${d}/${a["x-uid"]}`)};return f.jsxs(h.SortableItem,{className:h.cx("tb-mobile-menu-item",h.css`
|
|
141
|
+
*/var Yt=i;function u0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var d0=typeof Object.is=="function"?Object.is:u0,f0=Yt.useState,m0=Yt.useEffect,h0=Yt.useLayoutEffect,p0=Yt.useDebugValue;function g0(e,t){var n=t(),o=f0({inst:{value:n,getSnapshot:t}}),r=o[0].inst,s=o[1];return h0(function(){r.value=n,r.getSnapshot=t,Wr(r)&&s({inst:r})},[e,n,t]),m0(function(){return Wr(r)&&s({inst:r}),e(function(){Wr(r)&&s({inst:r})})},[e]),p0(n),n}function Wr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!d0(e,n)}catch(o){return!0}}function v0(e,t){return t()}var b0=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?v0:g0;Oa.useSyncExternalStore=Yt.useSyncExternalStore!==void 0?Yt.useSyncExternalStore:b0,Na.exports=Oa;var y0=Na.exports;let C0=!1;const Ta=new Set;function Da(){return C0}function x0(e){return Ta.add(e),()=>{Ta.delete(e)}}function S0(){return y0.useSyncExternalStore(x0,Da,Da)}const Hr="adm-spin-loading",w0={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},k0={color:"default"},E0=15*3.14159265358979*2,Ur=i.memo(e=>{var t;const n=oe(k0,e),o=S0(),{percent:r}=Ve({cancel:o,loop:{reverse:!0},from:{percent:80},to:{percent:30},config:{duration:1200}});return Y(n,i.createElement(ke.div,{className:Hr,style:{"--color":(t=w0[n.color])!==null&&t!==void 0?t:n.color,"--percent":r}},i.createElement("svg",{className:`${Hr}-svg`,viewBox:"0 0 32 32"},i.createElement(ke.circle,{className:`${Hr}-fill`,fill:"transparent",strokeWidth:"2",strokeDasharray:E0,strokeDashoffset:r,strokeLinecap:"square",r:15,cx:16,cy:16}))))}),Gt="adm-picker-view",I0={defaultValue:[],renderLabel:Fa,mouseWheel:!1,loadingContent:i.createElement("div",{className:`${Gt}-loading-content`},i.createElement(Ur,null))},Yr=i.memo(e=>{const t=oe(I0,e),[n,o]=i.useState(t.value===void 0?t.defaultValue:t.value);i.useEffect(()=>{t.value!==void 0&&t.value!==n&&o(t.value)},[t.value]),i.useEffect(()=>{if(t.value===n)return;const l=window.setTimeout(()=>{t.value!==void 0&&t.value!==n&&o(t.value)},1e3);return()=>{window.clearTimeout(l)}},[t.value,n]);const r=Ma(t.columns,n),s=r.columns;te.useDebounceEffect(()=>{var l;t.value!==n&&((l=t.onChange)===null||l===void 0||l.call(t,n,r))},[n],{wait:0,leading:!1,trailing:!0});const a=i.useCallback((l,c)=>{o(u=>{const d=[...u];return d[c]=l,d})},[]);return Y(t,i.createElement("div",{className:`${Gt}`},t.loading?t.loadingContent:i.createElement(i.Fragment,null,s.map((l,c)=>i.createElement($a,{key:c,index:c,column:l,value:n[c],onSelect:a,renderLabel:t.renderLabel,mouseWheel:t.mouseWheel})),i.createElement("div",{className:`${Gt}-mask`},i.createElement("div",{className:`${Gt}-mask-top`}),i.createElement("div",{className:`${Gt}-mask-middle`}),i.createElement("div",{className:`${Gt}-mask-bottom`})))))});Yr.displayName="PickerView";const pt="adm-picker",$0={defaultValue:[],closeOnMaskClick:!0,renderLabel:Fa,destroyOnClose:!1,forceRender:!1},Gr=i.memo(i.forwardRef((e,t)=>{var n;const{locale:o}=Pe(),r=oe($0,{confirmText:o.common.confirm,cancelText:o.common.cancel},e),[s,a]=Ie({value:r.visible,defaultValue:!1,onChange:b=>{var C;b===!1&&((C=r.onClose)===null||C===void 0||C.call(r))}}),l={toggle:()=>{a(b=>!b)},open:()=>{a(!0)},close:()=>{a(!1)}};i.useImperativeHandle(t,()=>l);const[c,u]=Ie(Object.assign(Object.assign({},r),{onChange:b=>{var C;const w=Pa(r.columns,b);(C=r.onConfirm)===null||C===void 0||C.call(r,b,w)}})),d=Ma(r.columns,c),[m,g]=i.useState(c);i.useEffect(()=>{m!==c&&g(c)},[s]),i.useEffect(()=>{s||g(c)},[c]);const v=te.useMemoizedFn((b,C)=>{var w;g(b),s&&((w=r.onSelect)===null||w===void 0||w.call(r,b,C))}),p=Y(r,i.createElement("div",{className:pt},i.createElement("div",{className:`${pt}-header`},i.createElement("a",{role:"button",className:`${pt}-header-button`,onClick:()=>{var b;(b=r.onCancel)===null||b===void 0||b.call(r),a(!1)}},r.cancelText),i.createElement("div",{className:`${pt}-header-title`},r.title),i.createElement("a",{role:"button",className:K(`${pt}-header-button`,r.loading&&`${pt}-header-button-disabled`),onClick:()=>{r.loading||(u(m,!0),a(!1))},"aria-disabled":r.loading},r.confirmText)),i.createElement("div",{className:`${pt}-body`},i.createElement(Yr,{loading:r.loading,loadingContent:r.loadingContent,columns:r.columns,renderLabel:r.renderLabel,value:m,mouseWheel:r.mouseWheel,onChange:v})))),y=i.createElement(Ht,{style:r.popupStyle,className:K(`${pt}-popup`,r.popupClassName),visible:s,position:"bottom",onMaskClick:()=>{var b;r.closeOnMaskClick&&((b=r.onCancel)===null||b===void 0||b.call(r),a(!1))},getContainer:r.getContainer,destroyOnClose:r.destroyOnClose,afterShow:r.afterShow,afterClose:r.afterClose,onClick:r.onClick,forceRender:r.forceRender,stopPropagation:r.stopPropagation},p,i.createElement(Cn,{position:"bottom"}));return i.createElement(i.Fragment,null,y,(n=r.children)===null||n===void 0?void 0:n.call(r,d.items,l))}));Gr.displayName="Picker";function _0(e){return new Promise(t=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Gr,Object.assign({},e,{visible:r,onConfirm:(a,l)=>{var c;(c=e.onConfirm)===null||c===void 0||c.call(e,a,l),t(a)},onClose:()=>{var a;(a=e.onClose)===null||a===void 0||a.call(e),s(!1),t(null)},afterClose:()=>{var a;(a=e.afterClose)===null||a===void 0||a.call(e),o()}}))},o=Or(i.createElement(n,null))})}const Aa=we(Gr,{prompt:_0}),Fe="adm-tabs",P0=()=>null,M0={activeLineMode:"auto",stretch:!0,direction:"ltr"},$o=we(e=>{var t;const n=oe(M0,e),o=i.useRef(null),r=i.useRef(null),s={};let a=null;const l=[],c=n.direction==="rtl";jr(n.children,(k,I)=>{if(!i.isValidElement(k))return;const M=k.key;if(typeof M!="string")return;I===0&&(a=M);const O=l.push(k);s[M]=O-1});const[u,d]=Ie({value:n.activeKey,defaultValue:(t=n.defaultActiveKey)!==null&&t!==void 0?t:a,onChange:k=>{var I;k!==null&&((I=n.onChange)===null||I===void 0||I.call(n,k))}}),[{x:m,width:g},v]=Ve(()=>({x:0,width:0,config:{tension:300,clamp:!0}})),[{scrollLeft:p},y]=Ve(()=>({scrollLeft:0,config:{tension:300,clamp:!0}})),[{leftMaskOpacity:b,rightMaskOpacity:C},w]=Ve(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}}));function x(k=!1,I=!1){const M=o.current;if(!M)return;const O=s[u];if(O===void 0){v.start({x:0,width:0,immediate:!0});return}const L=r.current;if(!L)return;const F=M.children.item(O+1),N=F.children.item(0),W=N.offsetLeft,V=N.offsetWidth,_=F.offsetLeft,P=F.offsetWidth,E=M.offsetWidth,D=M.scrollWidth,T=M.scrollLeft,z=L.offsetWidth;let j=0,H=0;if(n.activeLineMode==="auto"?(j=W,H=V):n.activeLineMode==="full"?(j=_,H=P):j=W+(V-z)/2,c){const ne=["auto","full"].includes(n.activeLineMode)?H:z;j=-(E-j-ne)}v.start({x:j,width:H,immediate:k});const U=D-E;if(U<=0)return;let J=0;c?J=-ye(E/2-W+V/2-z,0,U):J=ye(W-(E-V)/2,0,U),(!I||n.autoScroll!==!1)&&y.start({scrollLeft:J,from:{scrollLeft:T},immediate:k})}te.useIsomorphicLayoutEffect(()=>{x(!m.isAnimating)},[]),Ar(()=>{x()},[u,c,n.activeLineMode]),wa(()=>{x(!m.isAnimating)},o),ka(()=>{x(!m.isAnimating,!0)},o,{subtree:!0,childList:!0,characterData:!0});const{run:S}=te.useThrottleFn((k=!1)=>{const I=o.current;if(!I)return;const M=I.scrollLeft;let O=!1,L=!1;c?(O=Math.round(-M)+I.offsetWidth<I.scrollWidth,L=M<0):(O=M>0,L=M+I.offsetWidth<I.scrollWidth),w.start({leftMaskOpacity:O?1:0,rightMaskOpacity:L?1:0,immediate:k})},{wait:100,trailing:!0,leading:!0});return te.useIsomorphicLayoutEffect(()=>{S(!0)},[]),Y(n,i.createElement("div",{className:Fe,style:{direction:n.direction}},i.createElement("div",{className:`${Fe}-header`},i.createElement(ke.div,{className:K(`${Fe}-header-mask`,`${Fe}-header-mask-left`),style:{opacity:b}}),i.createElement(ke.div,{className:K(`${Fe}-header-mask`,`${Fe}-header-mask-right`),style:{opacity:C}}),i.createElement(ke.div,{className:`${Fe}-tab-list`,ref:o,scrollLeft:p,onScroll:S,role:"tablist"},i.createElement(ke.div,{ref:r,className:`${Fe}-tab-line`,style:{width:n.activeLineMode==="fixed"?"var(--fixed-active-line-width, 30px)":g,x:m}}),l.map(k=>Y(k.props,i.createElement("div",{key:k.key,className:K(`${Fe}-tab-wrapper`,{[`${Fe}-tab-wrapper-stretch`]:n.stretch})},i.createElement("div",{onClick:()=>{const{key:I}=k;k.props.disabled||I!=null&&d(I.toString())},className:K(`${Fe}-tab`,{[`${Fe}-tab-active`]:k.key===u,[`${Fe}-tab-disabled`]:k.props.disabled}),role:"tab","aria-selected":k.key===u},k.props.title)))))),l.map(k=>{if(k.props.children===void 0)return null;const I=k.key===u;return i.createElement(eo,{key:k.key,active:I,forceRender:k.props.forceRender,destroyOnClose:k.props.destroyOnClose},i.createElement("div",{className:`${Fe}-content`,style:{display:I?"block":"none"}},k.props.children))})))},{Tab:P0}),Sn="adm-list",F0={mode:"default"},N0=i.forwardRef((e,t)=>{const n=oe(F0,e),o=i.useRef(null);return i.useImperativeHandle(t,()=>({get nativeElement(){return o.current}})),Y(n,i.createElement("div",{className:K(Sn,`${Sn}-${n.mode}`),ref:o},n.header&&i.createElement("div",{className:`${Sn}-header`},n.header),i.createElement("div",{className:`${Sn}-body`},i.createElement("div",{className:`${Sn}-body-inner`},n.children))))});function _o(e){return e!=null&&e!==!1}const it="adm-list-item",qt=we(N0,{Item:e=>{var t,n;const{arrow:o,arrowIcon:r}=e,{list:s={}}=Pe(),a=(t=e.clickable)!==null&&t!==void 0?t:!!e.onClick,l=(n=o!=null?o:r)!==null&&n!==void 0?n:a,c=Uo(s.arrowIcon,o!==!0?o:null,r!==!0?r:null),u=i.createElement("div",{className:`${it}-content`},_o(e.prefix)&&i.createElement("div",{className:`${it}-content-prefix`},e.prefix),i.createElement("div",{className:`${it}-content-main`},_o(e.title)&&i.createElement("div",{className:`${it}-title`},e.title),e.children,_o(e.description)&&i.createElement("div",{className:`${it}-description`},e.description)),_o(e.extra)&&i.createElement("div",{className:`${it}-content-extra`},e.extra),l&&i.createElement("div",{className:`${it}-content-arrow`},c||i.createElement(hd,null)));return Y(e,i.createElement(a?"a":"div",{className:K(`${it}`,a?["adm-plain-anchor"]:[],e.disabled&&`${it}-disabled`),onClick:e.disabled?void 0:e.onClick},u))}}),La=i.createContext(null),O0="adm-check-list",T0={multiple:!1,defaultValue:[],activeIcon:i.createElement(Li,null)},D0=e=>{const{checkList:t={}}=Pe(),n=oe(T0,t,e),[o,r]=Ie(n);function s(m){n.multiple?r([...o,m]):r([m])}function a(m){r(o.filter(g=>g!==m))}const{activeIcon:l,extra:c,disabled:u,readOnly:d}=n;return i.createElement(La.Provider,{value:{value:o,check:s,uncheck:a,activeIcon:l,extra:c,disabled:u,readOnly:d}},Y(n,i.createElement(qt,{mode:n.mode,className:O0},n.children)))},Po="adm-check-list-item",Mo=we(D0,{Item:e=>{const t=i.useContext(La);if(t===null)return null;const n=t.value.includes(e.value),o=e.readOnly||t.readOnly,r=n?t.activeIcon:null,s=t.extra?t.extra(n):r,a=i.createElement("div",{className:`${Po}-extra`},s);return Y(e,i.createElement(qt.Item,{title:e.title,className:K(Po,o&&`${Po}-readonly`,n&&`${Po}-active`),description:e.description,prefix:e.prefix,onClick:l=>{var c;o||(n?t.uncheck(e.value):t.check(e.value),(c=e.onClick)===null||c===void 0||c.call(e,l))},arrow:!1,clickable:!o,extra:a,disabled:e.disabled||t.disabled},e.children))}});function A0(e){var t=e+"",n=t.indexOf("...");return n>=0&&(n<t.indexOf(")")||t.indexOf("arguments")>=0)}function Ba(e,t){t||(t={});var n=t.vargs||A0(e),o=[],r=new Map,s,a,l=function(v){return a=setTimeout(function(){if(s){r.delete(v);return}o.splice(v,1)},t.maxAge)},c=t.maxAge>0&&t.maxAge<1/0?l:0,u=t.equals?t.equals:0,d=t.maxArgs,m=t.serializer,g;return e.length===1&&!t.equals&&!n?(g=function(v){m&&(v=m(v));var p;return r.get(v)||(!c||c(v),r.set(v,p=e.call(this,v)),p)},s=1):u?g=function(){for(var v=d||arguments.length,p=o.length,y=-1;++y<p;)if(o[y].length===v){for(var b=-1;++b<v&&u(arguments[b],o[y][b]););if(b===v)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=e.apply(this,o[y])}:g=function(){for(var v=d||arguments.length,p=o.length,y=-1;++y<p;)if(o[y].length===v){for(var b=-1;++b<v&&arguments[b]===o[y][b];);if(b===v)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=e.apply(this,o[y])},g.clear=function(){a&&clearTimeout(a),r.clear(),o=[]},g.keys=function(){return s?[...r.keys()]:o.slice()},g.values=function(){return s?[...r.values()]:o.map(v=>v.val)},g}function L0(e,t){const{valueName:n,childrenName:o}=t,r=i.useMemo(()=>Ba(l=>{const c=[];let u=e;for(const d of l){const m=u.find(g=>g[n]===d);if(!m||(c.push(m),!m[o]))break;u=m[o]}return c},{equals:Kr}),[e]),s=i.useMemo(()=>Ba(l=>l.reduce((u,d)=>{var m;return((m=u.find(g=>g[n]===d))===null||m===void 0?void 0:m[o])||[]},e).length===0,{equals:Kr}),[e]);function a(l){return{get items(){return r(l)},get isLeaf(){return s(l)}}}return a}const Va=[];function B0(e,t){const n=[];for(let o=e;o<=t;o++)n.push(o);return n}const wn="adm-skeleton",qr=e=>Y(e,i.createElement("div",{className:K(wn,{[`${wn}-animated`]:e.animated})})),V0=e=>Y(e,i.createElement(qr,{animated:e.animated,className:`${wn}-title`})),z0={lineCount:3},Fo=we(qr,{Title:V0,Paragraph:e=>{const t=oe(z0,e),n=B0(1,t.lineCount),o=i.createElement("div",{className:`${wn}-paragraph`},n.map(r=>i.createElement(qr,{key:r,animated:t.animated,className:`${wn}-paragraph-line`})));return Y(t,o)}}),Z0=(e={})=>i.useMemo(()=>{const{label:n="label",value:o="value",disabled:r="disabled",children:s="children"}=e;return[n,o,s,r]},[JSON.stringify(e)]),Ye="adm-cascader-view",j0={defaultValue:[]},K0=we(e=>{const t=oe(j0,e),{locale:n}=Pe(),[o,r,s,a]=Z0(t.fieldNames),l=L0(t.options,{valueName:r,childrenName:s}),[c,u]=Ie(Object.assign(Object.assign({},t),{onChange:b=>{var C;(C=t.onChange)===null||C===void 0||C.call(t,b,l(b))}})),[d,m]=i.useState(0),g=i.useMemo(()=>{const b=[];let C=t.options,w=!1;for(const x of c){const S=C.find(k=>k[r]===x);if(b.push({selected:S,options:C}),!S||!S[s]){w=!0;break}C=S[s]}return w||b.push({selected:void 0,options:C}),b},[c,t.options]);te.useUpdateEffect(()=>{var b;(b=t.onTabsChange)===null||b===void 0||b.call(t,d)},[d]),i.useEffect(()=>{m(g.length-1)},[c]),i.useEffect(()=>{const b=g.length-1;d>b&&m(b)},[d,g]);const v=(b,C)=>{const w=c.slice(0,C);b!==void 0&&(w[C]=b),u(w)},p=b=>t.loading||b===Va,y=t.placeholder||n.Cascader.placeholder;return Y(t,i.createElement("div",{className:Ye},i.createElement($o,{activeKey:d.toString(),onChange:b=>{const C=parseInt(b);m(C)},stretch:!1,className:`${Ye}-tabs`},g.map((b,C)=>{const w=b.selected;return i.createElement($o.Tab,{key:C.toString(),title:i.createElement("div",{className:`${Ye}-header-title`},w?w[o]:typeof y=="function"?y(C):y),forceRender:!0},i.createElement("div",{className:`${Ye}-content`},p(b.options)?i.createElement("div",{className:`${Ye}-skeleton`},i.createElement(Fo,{className:`${Ye}-skeleton-line-1`,animated:!0}),i.createElement(Fo,{className:`${Ye}-skeleton-line-2`,animated:!0}),i.createElement(Fo,{className:`${Ye}-skeleton-line-3`,animated:!0}),i.createElement(Fo,{className:`${Ye}-skeleton-line-4`,animated:!0})):i.createElement(Mo,{value:[c[C]],onChange:x=>v(x[0],C),activeIcon:t.activeIcon},b.options.map(x=>{const S=c[C]===x[r];return i.createElement(Mo.Item,{value:x[r],key:x[r],disabled:x[a],className:K(`${Ye}-item`,{[`${Ye}-item-active`]:S})},x[o])}))))}))))},{optionSkeleton:Va}),za=i.createContext(null),W0={disabled:!1,defaultValue:[]},H0=e=>{const t=oe(W0,e),[n,o]=Ie(t);return i.createElement(za.Provider,{value:{value:n,disabled:t.disabled,check:r=>{o([...n,r])},uncheck:r=>{o(n.filter(s=>s!==r))}}},t.children)},Za=i.memo(e=>Y(e,i.createElement("svg",{viewBox:"0 0 40 40"},i.createElement("path",{d:"M31.5541766,15 L28.0892433,15 L28.0892434,15 C27.971052,15 27.8576674,15.044522 27.7740471,15.1239792 L18.2724722,24.1625319 L13.2248725,19.3630279 L13.2248725,19.3630279 C13.1417074,19.2834412 13.0287551,19.2384807 12.9107898,19.2380079 L9.44474455,19.2380079 L9.44474454,19.2380079 C9.19869815,19.2384085 8.99957935,19.4284738 9,19.66253 C9,19.7747587 9.04719253,19.8823283 9.13066188,19.9616418 L17.0907466,27.5338228 C17.4170809,27.8442545 17.8447695,28 18.2713393,28 L18.2980697,28 C18.7168464,27.993643 19.133396,27.8378975 19.4530492,27.5338228 L31.8693384,15.7236361 L31.8693384,15.7236361 C32.0434167,15.5582251 32.0435739,15.2898919 31.8696892,15.1242941 C31.7860402,15.0446329 31.6725052,15 31.5541421,15 L31.5541766,15 Z",fill:"currentColor"})))),U0=i.memo(e=>Y(e,i.createElement("svg",{viewBox:"0 0 40 40"},i.createElement("path",{d:"M20,9 C26.0752953,9 31,13.9247047 31,20 C31,26.0752953 26.0752953,31 20,31 C13.9247047,31 9,26.0752953 9,20 C9,13.9247047 13.9247047,9 20,9 Z",fill:"currentColor"})))),ja=e=>{const t=i.useRef(null),n=te.useMemoizedFn(o=>{o.stopPropagation(),o.stopImmediatePropagation();const r=o.target.checked;r!==e.checked&&e.onChange(r)});return i.useEffect(()=>{if(e.disabled||!t.current)return;const o=t.current;return o.addEventListener("click",n),()=>{o.removeEventListener("click",n)}},[e.disabled,e.onChange]),i.createElement("input",{ref:t,type:e.type,checked:e.checked,onChange:()=>{},disabled:e.disabled,id:e.id})},gt="adm-checkbox",Y0={defaultChecked:!1,indeterminate:!1},G0=i.forwardRef((e,t)=>{const n=i.useContext(za),o=oe(Y0,e);let[r,s]=Ie({value:o.checked,defaultValue:o.defaultChecked,onChange:o.onChange}),a=o.disabled;const{value:l}=o;n&&l!==void 0&&(r=n.value.includes(l),s=u=>{var d;u?n.check(l):n.uncheck(l),(d=o.onChange)===null||d===void 0||d.call(o,u)},a=a||n.disabled),i.useImperativeHandle(t,()=>({check:()=>{s(!0)},uncheck:()=>{s(!1)},toggle:()=>{s(!r)}}));const c=()=>o.icon?i.createElement("div",{className:`${gt}-custom-icon`},o.icon(r,o.indeterminate)):i.createElement("div",{className:`${gt}-icon`},o.indeterminate?i.createElement(U0,null):r&&i.createElement(Za,null));return Y(o,i.createElement("label",{onClick:o.onClick,className:K(gt,{[`${gt}-checked`]:r&&!o.indeterminate,[`${gt}-indeterminate`]:o.indeterminate,[`${gt}-disabled`]:a,[`${gt}-block`]:o.block})},i.createElement(ja,{type:"checkbox",checked:r,onChange:s,disabled:a,id:o.id}),c(),o.children&&i.createElement("div",{className:`${gt}-content`},o.children)))}),Xr=we(G0,{Group:H0});var Ka={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ct,function(){return function(n,o){o.prototype.isoWeeksInYear=function(){var r=this.isLeapYear(),s=this.endOf("y").day();return s===4||r&&s===5?53:52}}})})(Ka);var q0=Ka.exports;const Wa=xt(q0);var Ha={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ct,function(){return function(n,o){o.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}})})(Ha);var X0=Ha.exports;const Ua=xt(X0),kn="TILL_NOW";he.extend(Lr),he.extend(Wa),he.extend(Ua);const vt={year:0,month:1,day:2,hour:3,minute:4,second:5};function Q0(e,t,n,o,r,s,a){const l=[],c=t.getFullYear(),u=t.getMonth()+1,d=t.getDate(),m=t.getHours(),g=t.getMinutes(),v=t.getSeconds(),p=n.getFullYear(),y=n.getMonth()+1,b=n.getDate(),C=n.getHours(),w=n.getMinutes(),x=n.getSeconds(),S=vt[o],k=parseInt(e[0]),I=he(Qr([e[0],e[1],"1"])),M=parseInt(e[1]),O=parseInt(e[2]),L=parseInt(e[3]),F=parseInt(e[4]),N=k===c,W=k===p,V=N&&M===u,_=W&&M===y,P=V&&O===d,E=_&&O===b,D=P&&L===m,T=E&&L===C,z=D&&F===g,j=T&&F===w,H=(U,J,ne)=>{let ee=[];for(let ue=U;ue<=J;ue++)ee.push(ue);const Ne=e.slice(0,vt[ne]),q=s==null?void 0:s[ne];return q&&typeof q=="function"&&(ee=ee.filter(ue=>q(ue,{get date(){const Z=[...Ne,ue.toString()];return Qr(Z)}}))),ee};if(S>=vt.year){const ne=H(c,p,"year");l.push(ne.map(ee=>({label:r("year",ee),value:ee.toString()})))}if(S>=vt.month){const ne=H(N?u:1,W?y:12,"month");l.push(ne.map(ee=>({label:r("month",ee),value:ee.toString()})))}if(S>=vt.day){const U=V?d:1,J=_?b:I.daysInMonth(),ne=H(U,J,"day");l.push(ne.map(ee=>({label:r("day",ee),value:ee.toString()})))}if(S>=vt.hour){const ne=H(P?m:0,E?C:23,"hour");l.push(ne.map(ee=>({label:r("hour",ee),value:ee.toString()})))}if(S>=vt.minute){const ne=H(D?g:0,T?w:59,"minute");l.push(ne.map(ee=>({label:r("minute",ee),value:ee.toString()})))}if(S>=vt.second){const ne=H(z?v:0,j?x:59,"second");l.push(ne.map(ee=>({label:r("second",ee),value:ee.toString()})))}if(a&&(l[0].push({label:r("now",null),value:kn}),kn===(e==null?void 0:e[0])))for(let U=1;U<l.length;U+=1)l[U]=[];return l}function J0(e){return e?[e.getFullYear().toString(),(e.getMonth()+1).toString(),e.getDate().toString(),e.getHours().toString(),e.getMinutes().toString(),e.getSeconds().toString()]:[]}function Qr(e){var t,n,o,r,s,a;const l=(t=e[0])!==null&&t!==void 0?t:"1900",c=(n=e[1])!==null&&n!==void 0?n:"1",u=(o=e[2])!==null&&o!==void 0?o:"1",d=(r=e[3])!==null&&r!==void 0?r:"0",m=(s=e[4])!==null&&s!==void 0?s:"0",g=(a=e[5])!==null&&a!==void 0?a:"0";return new Date(parseInt(l),parseInt(c)-1,parseInt(u),parseInt(d),parseInt(m),parseInt(g))}var Ya={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ct,function(){var n="month",o="quarter";return function(r,s){var a=s.prototype;a.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=a.add;a.add=function(u,d){return u=Number(u),this.$utils().p(d)===o?this.add(3*u,n):l.bind(this)(u,d)};var c=a.startOf;a.startOf=function(u,d){var m=this.$utils(),g=!!m.u(d)||d;if(m.p(u)===o){var v=this.quarter()-1;return g?this.month(3*v).startOf(n).startOf("day"):this.month(3*v+2).endOf(n).endOf("day")}return c.bind(this)(u,d)}}})})(Ya);var R0=Ya.exports;const ef=xt(R0);he.extend(ef);const No={year:0,quarter:1};function tf(e,t,n,o,r,s){const a=[],l=t.getFullYear(),c=n.getFullYear(),u=No[o],d=parseInt(e[0]),m=d===l,g=d===c,v=he(t),p=he(n),y=v.quarter(),b=p.quarter(),C=(w,x,S)=>{let k=[];for(let O=w;O<=x;O++)k.push(O);const I=e.slice(0,No[S]),M=s==null?void 0:s[S];return M&&typeof M=="function"&&(k=k.filter(O=>M(O,{get date(){const L=[...I,O.toString()];return Ga(L)}}))),k};if(u>=No.year){const S=C(l,c,"year");a.push(S.map(k=>({label:r("year",k),value:k.toString()})))}if(u>=No.quarter){const S=C(m?y:1,g?b:4,"quarter");a.push(S.map(k=>({label:r("quarter",k),value:k.toString()})))}return a}function nf(e){if(!e)return[];const t=he(e);return[t.year().toString(),t.quarter().toString()]}function Ga(e){var t,n;const o=(t=e[0])!==null&&t!==void 0?t:"1900",r=(n=e[1])!==null&&n!==void 0?n:"1";return he().year(parseInt(o)).quarter(parseInt(r)).hour(0).minute(0).second(0).toDate()}he.extend(Lr),he.extend(Wa),he.extend(Ua);const En={year:0,week:1,"week-day":2};function of(e,t,n,o,r,s){const a=[],l=t.getFullYear(),c=n.getFullYear(),u=En[o],d=parseInt(e[0]),m=d===l,g=d===c,v=he(t),p=he(n),y=v.isoWeek(),b=p.isoWeek(),C=v.isoWeekday(),w=p.isoWeekday(),x=parseInt(e[1]),S=m&&x===y,k=g&&x===b,I=he(`${d}-01-01`).isoWeeksInYear(),M=(O,L,F)=>{let N=[];for(let _=O;_<=L;_++)N.push(_);const W=e.slice(0,En[F]),V=s==null?void 0:s[F];return V&&typeof V=="function"&&(N=N.filter(_=>V(_,{get date(){const P=[...W,_.toString()];return qa(P)}}))),N};if(u>=En.year){const F=M(l,c,"year");a.push(F.map(N=>({label:r("year",N),value:N.toString()})))}if(u>=En.week){const F=M(m?y:1,g?b:I,"week");a.push(F.map(N=>({label:r("week",N),value:N.toString()})))}if(u>=En["week-day"]){const F=M(S?C:1,k?w:7,"week-day");a.push(F.map(N=>({label:r("week-day",N),value:N.toString()})))}return a}function rf(e){if(!e)return[];const t=he(e);return[t.isoWeekYear().toString(),t.isoWeek().toString(),t.isoWeekday().toString()]}function qa(e){var t,n,o;const r=(t=e[0])!==null&&t!==void 0?t:"1900",s=(n=e[1])!==null&&n!==void 0?n:"1",a=(o=e[2])!==null&&o!==void 0?o:"1";return he().year(parseInt(r)).isoWeek(parseInt(s)).isoWeekday(parseInt(a)).hour(0).minute(0).second(0).toDate()}const sf={year:1,month:2,day:3,hour:4,minute:5,second:6},af=(e,t)=>{if(t.includes("week"))return rf(e);if(t.includes("quarter"))return nf(e);{const n=t;return J0(e).slice(0,sf[n])}},Xa=(e,t)=>{if((e==null?void 0:e[0])===kn){const n=new Date;return n.tillNow=!0,n}return t.includes("week")?qa(e):t.includes("quarter")?Ga(e):Qr(e)},lf=(e,t,n,o,r,s,a)=>o.startsWith("week")?of(e,t,n,o,r,s):o.startsWith("quarter")?tf(e,t,n,o,r,s):Q0(e,t,n,o,r,s,a);function cf(e){const{locale:t}=Pe();return i.useCallback((n,o)=>{if(e)return e(n,o);switch(n){case"minute":case"second":case"hour":return("0"+o.toString()).slice(-2);case"now":return t.DatePicker.tillNow;default:return o.toString()}},[e])}const Qa=new Date().getFullYear(),uf={min:new Date(new Date().setFullYear(Qa-10)),max:new Date(new Date().setFullYear(Qa+10)),precision:"day",defaultValue:null},Ja=i.forwardRef((e,t)=>{const n=oe(uf,e),{renderLabel:o}=n,[r,s]=Ie({value:n.value,defaultValue:n.defaultValue,onChange:g=>{var v;g!==null&&((v=n.onConfirm)===null||v===void 0||v.call(n,g))}}),a=i.useMemo(()=>new Date,[]),l=cf(o),c=i.useMemo(()=>{let g=r!=null?r:a;return g.tillNow?[kn]:(g=new Date(ye(g.getTime(),n.min.getTime(),n.max.getTime())),af(g,n.precision))},[r,n.precision,n.min,n.max]),u=i.useCallback(g=>{const v=Xa(g,n.precision);s(v,!0)},[s,n.precision]),d=te.useMemoizedFn(g=>{var v;const p=Xa(g,n.precision);(v=n.onSelect)===null||v===void 0||v.call(n,p)}),m=i.useCallback(g=>lf(g,n.min,n.max,n.precision,l,n.filter,n.tillNow),[n.min,n.max,n.precision,l,n.tillNow]);return Y(n,i.createElement(Aa,{ref:t,columns:m,value:c,onCancel:n.onCancel,onClose:n.onClose,closeOnMaskClick:n.closeOnMaskClick,visible:n.visible,confirmText:n.confirmText,cancelText:n.cancelText,onConfirm:u,onSelect:d,getContainer:n.getContainer,loading:n.loading,loadingContent:n.loadingContent,afterShow:n.afterShow,afterClose:n.afterClose,onClick:n.onClick,title:n.title,stopPropagation:n.stopPropagation,mouseWheel:n.mouseWheel,destroyOnClose:n.destroyOnClose,forceRender:n.forceRender},(g,v)=>{var p;return(p=n.children)===null||p===void 0?void 0:p.call(n,r,v)}))});function df(e){return new Promise(t=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Ja,Object.assign({},e,{visible:r,onConfirm:a=>{var l;(l=e.onConfirm)===null||l===void 0||l.call(e,a),t(a)},onClose:()=>{var a;(a=e.onClose)===null||a===void 0||a.call(e),s(!1),t(null)},afterClose:()=>{var a;(a=e.afterClose)===null||a===void 0||a.call(e),o()}}))},o=Or(i.createElement(n,null))})}const ff=we(Ja,{prompt:df,DATE_NOW:kn});var Ra;(function(e){e[e.HIGH_SURROGATE_START=55296]="HIGH_SURROGATE_START",e[e.HIGH_SURROGATE_END=56319]="HIGH_SURROGATE_END",e[e.LOW_SURROGATE_START=56320]="LOW_SURROGATE_START",e[e.REGIONAL_INDICATOR_START=127462]="REGIONAL_INDICATOR_START",e[e.REGIONAL_INDICATOR_END=127487]="REGIONAL_INDICATOR_END",e[e.FITZPATRICK_MODIFIER_START=127995]="FITZPATRICK_MODIFIER_START",e[e.FITZPATRICK_MODIFIER_END=127999]="FITZPATRICK_MODIFIER_END",e[e.VARIATION_MODIFIER_START=65024]="VARIATION_MODIFIER_START",e[e.VARIATION_MODIFIER_END=65039]="VARIATION_MODIFIER_END",e[e.DIACRITICAL_MARKS_START=8400]="DIACRITICAL_MARKS_START",e[e.DIACRITICAL_MARKS_END=8447]="DIACRITICAL_MARKS_END",e[e.SUBDIVISION_INDICATOR_START=127988]="SUBDIVISION_INDICATOR_START",e[e.TAGS_START=917504]="TAGS_START",e[e.TAGS_END=917631]="TAGS_END",e[e.ZWJ=8205]="ZWJ"})(Ra||(Ra={}));const mf=Object.freeze([776,2359,2367,2984,3007,3021,3633,3635,3648,3657,4352,4449,4520]);var el;function Jr(e){if(typeof e!="string")throw new TypeError("string cannot be undefined or null");const t=[];let n=0,o=0;for(;n<e.length;)o+=hf(n+o,e),xf(e[n+o])&&o++,bf(e[n+o])&&o++,yf(e[n+o])&&o++,Sf(e[n+o])?o++:(t.push(e.substring(n,n+o)),n+=o,o=0);return t}function hf(e,t){const n=t[e];if(!pf(n)||e===t.length-1)return 1;const o=n+t[e+1];let r=t.substring(e+2,e+5);return tl(o)&&tl(r)?4:gf(o)&&Cf(r)?t.slice(e).indexOf(String.fromCodePoint(917631))+2:vf(r)?4:2}function pf(e){return e&&It(e[0].charCodeAt(0),55296,56319)}function tl(e){return It(Rr(e),127462,127487)}function gf(e){return It(Rr(e),127988,127988)}function vf(e){return It(Rr(e),127995,127999)}function bf(e){return typeof e=="string"&&It(e.charCodeAt(0),65024,65039)}function yf(e){return typeof e=="string"&&It(e.charCodeAt(0),8400,8447)}function Cf(e){const t=e.codePointAt(0);return typeof e=="string"&&typeof t=="number"&&It(t,917504,917631)}function xf(e){return typeof e=="string"&&mf.includes(e.charCodeAt(0))}function Sf(e){return typeof e=="string"&&e.charCodeAt(0)===8205}function Rr(e){return(e.charCodeAt(0)-55296<<10)+(e.charCodeAt(1)-56320)+65536}function It(e,t,n){return e>=t&&e<=n}(function(e){e[e.unit_1=1]="unit_1",e[e.unit_2=2]="unit_2",e[e.unit_4=4]="unit_4"})(el||(el={}));const $t="adm-error-block",wf={status:"default"};function kf(e){return n=>{var o;const r=oe(wf,n),{locale:s}=Pe(),a=s.ErrorBlock[r.status],l="description"in r?r.description:a.description,c="title"in r?r.title:a.title,u=(o=r.image)!==null&&o!==void 0?o:e[r.status],d=typeof u=="string"?i.createElement("img",{src:u,alt:"error block image"}):u;return Y(r,i.createElement("div",{className:K($t,{[`${$t}-full-page`]:r.fullPage})},i.createElement("div",{className:`${$t}-image`},d),i.createElement("div",{className:`${$t}-description`},![void 0,null].includes(c)&&i.createElement("div",{className:`${$t}-description-title`},c),![void 0,null].includes(l)&&i.createElement("div",{className:`${$t}-description-subtitle`},l)),r.children&&i.createElement("div",{className:`${$t}-content`},r.children)))}}const Ef=i.createElement("svg",{viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-default-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-default-d",cx:18.823,cy:18.823,r:18.823}),i.createElement("rect",{id:"error-block-image-default-b",x:3.5,y:9,width:51.429,height:88,rx:4.571})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M73.557.004c19.435-.311 38.696 17.016 51.523 35.287 8.708-10.822 17.127-16.233 25.255-16.233 13.333 0 28.35 14.274 45.053 42.822 1.769 3.024-3.582 7.435-16.054 13.231l-41.322 1.37c-7.343 5.872-31.225.626-69.152 1.234-27.79.445-45.759-1.234-53.908-5.037C3.2 71.143-1.625 68.686.48 65.308 27.371 22.12 51.73.353 73.557.003Zm93.098 49.53a1.125 1.125 0 0 0-.401.072l-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.283 1.719 4.153 3.898 4.314l.026.001v3.805c0 .39.25.705.56.705.31 0 .56-.316.56-.705l.001-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734Zm-100-5a1.125 1.125 0 0 0-.331.05l-.035.01-.035.012-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.212 1.613 4.036 3.695 4.294l.203.02.026.001v3.805c0 .39.25.705.56.705.282 0 .515-.26.555-.6l.006-.105v-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734ZM52.64 38.348l-.15.008-.149.023-.032.007-.032.008-.078.022-.045.015-.045.016-.06.023-.038.017-.038.017-.058.028-.022.011a2.201 2.201 0 0 0-.323.204l-.05.038-.05.04-.025.02-.025.021a3.742 3.742 0 0 0-.31.294l-.036.04c-.035.037-.07.076-.105.116-.01.012-.02.025-.031.036a3.275 3.275 0 0 0-.081.098l-.063.078c-2.031 2.583-3.48 8.692-3.48 11.027 0 2.636 1.846 4.832 4.292 5.323l.224.04-.064-.012.105.018.103.014v4.618c0 .47.299.85.667.85.337 0 .615-.32.659-.735l.006-.115v-4.618c.18-.023.355-.054.527-.094l.256-.067.196-.06c2.136-.706 3.68-2.75 3.68-5.162 0-2.996-2.383-12.207-5.325-12.207Z",transform:"translate(2.286 22.286)",fill:"url(#error-block-image-default-a)"}),i.createElement("g",{transform:"rotate(-90 102.429 55.357)"},i.createElement("path",{d:"M6.857 0H52a6.857 6.857 0 0 1 6.857 6.857v92A6.857 6.857 0 0 1 52 105.714H6.857A6.857 6.857 0 0 1 0 98.857v-92A6.857 6.857 0 0 1 6.857 0Z",fill:"#7EACFF"}),i.createElement("mask",{id:"error-block-image-default-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-default-b"})),i.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-default-b"}),i.createElement("path",{d:"M11.838 91.8a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-2.858 0a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.16-2.305a.64.64 0 0 1 .628.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-2.982-.04a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm5.268-.531a.64.64 0 0 1 .628.651.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.858-1.143a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-6.37-.917c.209 0 .377.175.377.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm3.512-.798.093.007a.644.644 0 0 1 .535.645.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.652.627-.652Zm5.715 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-11.429 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.261.241c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm11.833-.812a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.628-.651c0-.36.281-.652.628-.652Zm-4.851.399c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm10.313-2.056a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-2.354-.128a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.652.628-.652Zm-13.798.311c.207 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.377-.39c0-.217.169-.392.377-.392Zm11.832-.812a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-6.285 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm3.428 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-6.118.24c.208 0 .376.176.376.392a.384.384 0 0 1-.376.39.384.384 0 0 1-.377-.39c0-.216.169-.391.377-.391Zm11.261-2.525a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm-3.557.484c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.478-.555a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.512-.26c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.857 0c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-4.571 0c.207 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm14.898-1.835a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-8.027-.245c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.169-.391.376-.391Zm6.271-1.349c.208 0 .377.175.377.391a.384.384 0 0 1-.377.391.384.384 0 0 1-.376-.39c0-.217.169-.392.376-.392Zm-11.484-.481c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm15.103-.972c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.39c0-.217.168-.392.376-.392Zm-9.333-1.404c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-6.819-.405c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-default-c)",transform:"rotate(116 12.367 83.503)"}),i.createElement("path",{stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"M36.774 5.474H21.523"}),i.createElement("path",{d:"m67.818 94.025-4.996 3.913m4.996 11.91-4.996-3.912m-1.142 9.145-1.143-6.288m10.71-6.768h-7.262",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"})),i.createElement("circle",{cx:8.571,cy:8.571,r:8.571,transform:"translate(22.857 142)",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(132.857 124)"},i.createElement("mask",{id:"error-block-image-default-e",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-default-d"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-default-d"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:13.886,cy:15.12,r:18.823}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:23.4,cy:29.057,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.343,cy:29.829,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:18.771,cy:32.657,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:29.571,cy:25.971,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:19.286,cy:7.971,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:26.486,cy:5.914,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:11.057,cy:6.943,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.086,cy:15.686,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:22.886,cy:14.657,r:1})),i.createElement("path",{d:"m87.429 135.123 6.591-9.378v-.08h-5.99v-2.559h10.038v1.787l-6.44 9.254v.082h6.56v2.557h-10.76v-1.663Zm12.185-5.889 4.948-7.047v-.056h-4.498v-1.917h7.536v1.34l-4.849 6.942v.059h4.923v1.92h-8.06v-1.24Zm10.345.702 3.708-5.274v-.045h-3.372v-1.437h5.648v1.003l-3.628 5.206v.045H116v1.438h-6.041v-.936Z",fill:"#FFF",fillRule:"nonzero"}))),If=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("title",null,"@反馈/异常/网络服务异常"),i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-disconnected-c"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-disconnected-d",cx:22.309,cy:22.309,r:22.309}),i.createElement("path",{id:"error-block-image-disconnected-a",d:"M0 0h400v400H0z"})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("mask",{id:"error-block-image-disconnected-b",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-disconnected-a"})),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"url(#error-block-image-disconnected-c)"},i.createElement("path",{d:"M151.686 45.58c38.869-.623 77.391 34.03 103.046 70.573 17.416-21.644 34.253-32.465 50.51-32.465 26.666 0 56.701 28.548 90.105 85.643 3.539 6.05-7.164 14.87-32.107 26.462l-82.643 2.741c-14.686 11.745-62.45 1.252-138.305 2.467-55.58.89-91.518-2.468-107.816-10.074-23.505-3.07-33.154-7.983-28.946-14.74C59.313 89.813 108.03 46.278 151.686 45.58Zm186.195 99.06-.127.003-.126.01a2.32 2.32 0 0 0-.465.103l-.032.01-.031.01a2.364 2.364 0 0 0-.181.071 2.52 2.52 0 0 0-.116.054l-.133.067-.042.024-.036.02a2.946 2.946 0 0 0-.133.08l-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024a4.906 4.906 0 0 0-.31.27l-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.108.008v7.608c0 .779.502 1.41 1.121 1.41.62 0 1.121-.632 1.121-1.41v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-200-10-.127.003-.126.01a2.32 2.32 0 0 0-.368.073l-.049.014-.048.016-.032.01-.031.01a2.364 2.364 0 0 0-.181.071l-.058.026-.058.028-.133.067-.042.024-.036.02-.066.039-.067.041-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024l-.156.13-.154.14-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.054.004.054.004v7.608c0 .779.502 1.41 1.121 1.41.58 0 1.058-.556 1.115-1.266l.006-.144v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-28.029-12.373-.107.002-.106.006a2.978 2.978 0 0 0-.551.095 3.444 3.444 0 0 0-.323.104 3.962 3.962 0 0 0-.61.297c-.076.045-.15.092-.226.141-4.964 3.312-8.728 18.445-8.728 23.77 0 5.434 3.922 9.935 9.04 10.726l.28.04v9.236c0 .886.532 1.614 1.21 1.692l.121.007.122-.007c.638-.074 1.147-.723 1.204-1.538l.006-.155v-9.235c5.254-.668 9.32-5.234 9.32-10.767 0-5.993-4.77-24.414-10.652-24.414Z"})),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},i.createElement("g",{transform:"translate(85.858 150.644)"},i.createElement("path",{d:"M116.26 28.467c1.352 0 2.703.018 4.054.054 3.923.385 10.188 4.248 9.267 11.061-.878 6.496-5.836 9.089-8.962 9.529a130.762 130.762 0 0 0-4.36-.072c-28.567 0-60.654 10.149-96.22 30.676l-2.227 1.297c-.744.437-1.49.878-2.236 1.323-4.878 2.911-11.193 1.316-14.103-3.562C-1.438 73.894.157 67.58 5.035 64.67 45.34 40.62 82.4 28.467 116.26 28.467Zm22 11.63c1.03-5.942 6.376-8.618 11.084-8.08C172.14 36.91 194.83 46.86 217.37 61.794c4.735 3.138 6.03 9.52 2.893 14.255-3.138 4.736-9.52 6.031-14.256 2.893-20.111-13.325-40.075-22.165-59.935-26.584a9.974 9.974 0 0 0-.325-.088c-3.987-1.015-8.602-5.738-7.487-12.175ZM116.26 77.418c22.777 0 45.4 7.057 67.73 20.988 4.82 3.007 6.289 9.351 3.282 14.17-3.007 4.82-9.351 6.29-14.17 3.283-19.194-11.974-38.095-17.87-56.842-17.87s-37.648 5.896-56.842 17.87c-4.82 3.007-11.164 1.537-14.17-3.282-3.007-4.82-1.538-11.164 3.282-14.171 22.33-13.931 44.953-20.988 67.73-20.988ZM117.974 124.67c9.85 0 17.303 1.69 25.687 5.082l.82.337 2.9 1.231 3.008 1.252.77.305.107.04c5.326 1.976 8.042 7.895 6.066 13.221-1.976 5.326-7.895 8.042-13.221 6.067l-.713-.27-.726-.285-.763-.31-1.263-.527-2.944-1.26-1.125-.473c-6.393-2.648-11.433-3.838-18.603-3.838-8.223 0-16.532 2.126-25.028 6.475-5.056 2.588-11.254.587-13.842-4.47-2.589-5.056-.588-11.253 4.47-13.842 11.313-5.791 22.814-8.735 34.4-8.735ZM118.235 197.047c7.15 0 13.77-.897 19.841-2.721 5.44-1.635 8.526-7.37 6.892-12.81-1.635-5.44-7.37-8.526-12.81-6.892-4.072 1.224-8.707 1.851-13.923 1.851-4.36 0-8.79-1.045-13.373-3.21l-.626-.301c-5.095-2.512-11.262-.418-13.773 4.678-2.512 5.095-.418 11.261 4.678 13.773 7.559 3.727 15.288 5.632 23.094 5.632Z",fill:"#377EFF",fillRule:"nonzero"}),i.createElement("path",{d:"M198.35 62.413c2.755-4.967 9.016-6.76 13.984-4.004 13.068 7.25 19.124 18.535 17.615 30.952-1.157 9.515-6.83 18.757-14.096 24.352-13.364 10.29-34.915 9.401-49.363-1.91-4.472-3.502-5.26-9.967-1.758-14.44 3.436-4.388 9.724-5.229 14.185-1.952l.255.194c7.283 5.702 18.475 6.164 24.13 1.809 3.072-2.366 5.766-6.754 6.226-10.536.467-3.844-1.21-7.07-6.796-10.267l-.378-.213c-4.967-2.756-6.76-9.017-4.004-13.985ZM61.35 103.092c-2.84-4.92-9.13-6.607-14.05-3.768-20.662 11.922-21.772 35.751-6.018 51.69 13.752 13.914 33.192 13.447 50.507 1.158 4.633-3.288 5.723-9.708 2.436-14.34-3.288-4.633-9.709-5.724-14.341-2.436-9.763 6.928-18.07 7.128-23.97 1.158-6.761-6.84-6.498-14.501 1.35-19.225l.317-.187c4.92-2.84 6.608-9.13 3.769-14.05ZM129.103 135.702c1.688-5.424 7.454-8.453 12.878-6.764 14.776 4.599 23.437 13.727 25.259 25.58 1.316 8.561-1.228 17.533-5.58 24.052-3.132 4.688-7.388 8.287-12.504 11.112-3.03 1.673-5.75 2.811-9.37 4.066l-1.4.477c-5.387 1.806-11.217-1.097-13.022-6.484-1.805-5.386 1.098-11.216 6.484-13.02l1.09-.374c6.032-2.112 9.602-4.19 11.613-7.201 1.693-2.535 2.818-6.502 2.356-9.503-.564-3.673-3.432-6.696-11.04-9.063-5.424-1.689-8.452-7.454-6.764-12.878Z",fill:"#377EFF",fillRule:"nonzero"}),i.createElement("path",{d:"M148.072 181.58c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.236-9.096-10.275-9.707",stroke:"#FFF",strokeWidth:.571,strokeLinecap:"round"}),i.createElement("ellipse",{fill:"#7EACFF",transform:"rotate(10 147 41.933)",cx:147,cy:41.933,rx:9.143,ry:10.286}),i.createElement("path",{d:"M210.422 107.472c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.668-9.883-11.572-12.067M51.604 131.769c-3.15-6.8-3.537-12.694-1.161-17.685 2.376-4.99 5.57-8.136 9.583-9.438",stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M21.53 64.408c4.946-3.389 9.817-6.026 14.612-7.912",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"m113.243 15.444 9.588 8.314M144.31 9.405l-5.775 11.3m18.389-1.246-11.907 4.643M127.64 5.66l2.77 14.255",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}))),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},i.createElement("g",{transform:"translate(275.143 302.571)"},i.createElement("mask",{id:"error-block-image-disconnected-e",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-disconnected-d"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-disconnected-d"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:16.457,cy:17.92,r:22.309}),i.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:14.263,cy:12.069,r:2.194}))),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"#FBBE47",fillRule:"nonzero"},i.createElement("circle",{cx:12,cy:12,r:12,transform:"translate(84 297.714)"})))),$f=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-empty-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("path",{d:"M146.183 18.461c31.705 23.336 33.349 71.85 4.93 96.614-.252.22 6.172 5.602 13.577 11.414l.686.537.69.54.695.54.348.27.698.54a341.27 341.27 0 0 0 8.806 6.596c1.114.802 4.643-.853 10.587-4.965l-.532 12.218a1.2 1.2 0 0 1-.481.91l-10.868 8.111c-1.405 1.048-3.32 1.185-4.854.072l-35.578-25.834c-33.414 17.333-79.913 15-109.804-7-33.444-24.616-33.444-75.95 0-100.563 33.443-24.615 87.657-24.615 121.1 0Zm-60.469 7.653C51.63 26.114 24 44.534 24 67.257S51.63 108.4 85.714 108.4s61.715-18.42 61.715-41.143c0-22.722-27.63-41.143-61.715-41.143Z",id:"error-block-image-empty-b"})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M157.964 244.661H0L3.806 100.13a4.572 4.572 0 0 1 4.353-4.446l.217-.006h45.588V68.2a4.572 4.572 0 0 1 4.356-4.567l.216-.005h65.498l2.554-58.689a4.571 4.571 0 0 1 4.779-4.367l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.212 3.146 69.652L301.634 64.9a4.571 4.571 0 0 1 5.628 4.231l.005.215v43.955l56.162.001v130.264h-56.163v.001h-82.383v-.004h-66.919v1.098ZM89.503 160.03h-9.968v8.436h9.968v-8.436Zm0-14.507h-9.968v8.435h9.968v-8.435Zm197.985-5.15h-9.967v8.432h9.967v-8.431Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.436h9.967v-8.436Zm-84.643-3.29h-30.8v8.436h30.8v-8.436Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 50.286)",fill:"url(#error-block-image-empty-a)"}),i.createElement("g",{transform:"translate(108.571 189.886)"},i.createElement("mask",{id:"error-block-image-empty-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-empty-b"})),i.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-empty-b"}),i.createElement("path",{d:"M131.429 134.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM128 133.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM120 128.971a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.142.125.006a1.143 1.143 0 1 1-.125-.006Zm11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-22.857 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm17.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM136 125.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-13.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm18.857-2.286a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-37.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm13.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm18.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-28 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm17.715-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-4.571a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.428 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.143 1.142a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-9.143 0a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm30.286-3.429a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM124 109.543a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.858-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-11.428-3.429a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM124 99.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM49.143 55.829a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-9.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM52 52.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-19.429-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-1.142a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-13.143 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM64 44.4a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.125.007a1.143 1.143 0 1 1-.125-.007Zm11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.858 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM30.286 44.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM44 43.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM72 38.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-28 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm5.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM56 37.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM60.57 32.97a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM44 34.114a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm30.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-15.429 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.857-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-11.429-3.428a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM41.714 20.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-empty-c)"})),i.createElement("path",{d:"M295.213 319.24c.744.546.745 1.433.002 1.98l-11.806 8.81c-1.069.799-3.326.474-4.853-.609l-35.622-25.241c-33.375 17.037-79.545 14.615-109.28-7.271-33.443-24.615-33.443-64.521 0-89.133 33.443-24.616 87.657-24.616 121.1 0 31.706 23.336 33.35 60.42 4.931 85.185-.543.473 35.528 26.278 35.528 26.278ZM148.06 220.015c-25.44 17.853-25.44 46.8 0 64.652 25.44 17.85 66.689 17.85 92.129 0 25.436-17.853 25.436-46.799 0-64.652-25.44-17.853-66.688-17.853-92.129 0Z",fill:"#5D96FE"}),i.createElement("path",{d:"M123.514 233.021c2.185-5.241 5.67-9.735 10.453-13.482M264.967 271.54c-2.185 5.24-5.67 9.734-10.453 13.481",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M81.143 252.571c7.574 0 13.714 23.88 13.714 31.649 0 6.97-4.942 12.755-11.429 13.871v11.672c0 1.235-.767 2.237-1.713 2.237-.904 0-1.644-.912-1.71-2.07l-.005-.167v-11.526c-7.04-.595-12.571-6.644-12.571-14.017 0-7.024 5.02-27.222 11.581-31.027l.096-.053c.027-.016.055-.03.082-.045l.067-.035.066-.033.1-.05.094-.041a3.34 3.34 0 0 1 .224-.093l.11-.042.097-.032c.038-.013.077-.025.115-.036l.053-.016.053-.014a3.351 3.351 0 0 1 .23-.055l.085-.016a3.95 3.95 0 0 1 .441-.054l.11-.005.11-.002Z",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(283.429 177.143)",fillRule:"nonzero"},i.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.49 0-2.707-1.46-2.79-3.301l-.004-.2-.001-19.018C8.659 71.92.13 62.518.13 51.123.13 40.071 8.154 8.49 18.694 2.015l.054-.031a5.94 5.94 0 0 1 .214-.128l.088-.048c.213-.12.427-.228.642-.326l.135-.06.18-.075.135-.053a5.796 5.796 0 0 1 .464-.16 4.44 4.44 0 0 1 .33-.092l.124-.03a7.122 7.122 0 0 1 .31-.065l.018-.003a6.305 6.305 0 0 1 .756-.088l.165-.007.166-.002Z",fill:"#FFCD6B"}),i.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.543 0-2.794-1.566-2.794-3.5V73.295C8.659 71.921.13 62.518.13 51.123.13 38.783 10.134.847 22.475.847Z",fill:"#FFCD6B"}),i.createElement("circle",{fill:"#FFB400",cx:26.4,cy:56.869,r:1.45}),i.createElement("circle",{fill:"#FFB400",cx:39.453,cy:58.319,r:1}),i.createElement("circle",{fill:"#FFB400",cx:17.698,cy:63.637,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:38.002,cy:51.068,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:18.665,cy:17.228,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:32.201,cy:13.36,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:26.83,cy:20.666,r:1.45}),i.createElement("circle",{fill:"#FFB400",cx:38.969,cy:31.731,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:25.433,cy:29.797,r:1.45}),i.createElement("path",{d:"M34.197 53.033c0 9.825-6.934 18.017-16.172 19.987a22.44 22.44 0 0 0 4.45.448c12.34 0 22.344-10.004 22.344-22.345C44.82 38.783 34.815.847 22.475.847c8.947 14.03 11.722 40.891 11.722 52.186Z",fill:"#FBBE47"})))),_f=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-busy-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-busy-b",cx:34.857,cy:34.857,r:34.857})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M157.964 243.667H0L3.806 99.134a4.572 4.572 0 0 1 4.353-4.446l.217-.005h45.588V67.205a4.572 4.572 0 0 1 4.356-4.566l.216-.005 65.498-.001 2.554-58.688a4.571 4.571 0 0 1 4.779-4.368l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.213 3.146 69.652 74.976-17.906a4.571 4.571 0 0 1 5.628 4.23l.005.216v43.955h56.162v130.265l-56.163-.001v.002h-82.383v-.004h-66.919v1.098Zm-68.461-84.631h-9.968v8.435h9.968v-8.435Zm0-14.508h-9.968v8.436h9.968v-8.436Zm197.985-5.149h-9.967v8.432h9.967v-8.432Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.435h9.967v-8.435Zm-84.643-3.29h-30.8v8.435h30.8v-8.435Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 51.286)",fill:"url(#error-block-image-busy-a)"}),i.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l.958-.01c-.376 7.363 3.679 59.93 34.894 62.659 4.203.367 7.432.39 7.475 4.609.042 4.218-3.176 4.307-7.37 4.76-34.593 3.737-34.136 56.004-33.61 63.357l-.957.01c-5.276.053-9.51 4.373-9.455 9.649.053 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.054 9.508-4.374 9.455-9.648-.055-5.276-4.374-9.51-9.65-9.455l-.958.01c.377-7.363-.729-59.672-34.894-62.66-4.202-.367-7.432-.39-7.474-4.608-.043-4.219 3.175-4.308 7.369-4.76 31.276-3.377 34.136-56.004 33.61-63.357l.958-.01c5.276-.053 9.508-4.373 9.455-9.649-.055-5.276-4.374-9.509-9.65-9.454Z",fill:"#377EFF"}),i.createElement("path",{d:"M233.524 314.422c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.894-5.644c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.149 17.865c.108.684.773 1.147 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm-2.144-8.182c.109.684.773 1.148 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-1.586-4.694c.108.684.772 1.148 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.013-5.88c.109.685.773 1.148 1.484 1.036.71-.113 1.2-.759 1.09-1.443-.107-.684-.772-1.148-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm.236 15.575c.108.685.772 1.148 1.483 1.035.71-.112 1.2-.758 1.09-1.442-.107-.685-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.442Zm-.4 4.494c.108.684.772 1.147 1.483 1.035.71-.113 1.2-.759 1.091-1.443-.108-.684-.773-1.148-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-3.88-8.601c.108.684.772 1.147 1.483 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-.524-7.186c.065.41.463.688.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-2.265-4.102c.109.684.773 1.148 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.147-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm-.545-6.518c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm2.098 23.629c.109.684.773 1.147 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.443Zm-.756-9.65c.043.274.309.46.593.414a.512.512 0 0 0 .437-.577.512.512 0 0 0-.594-.414.512.512 0 0 0-.436.577Zm-.808 20.96c.109.684.773 1.147 1.484 1.034.71-.112 1.2-.758 1.09-1.442-.108-.685-.772-1.148-1.483-1.036-.71.113-1.199.759-1.09 1.443Zm-4.691-31.966c.065.41.463.689.89.621.426-.068.72-.455.654-.866-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm2.098 23.628c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.967-12.416c.109.684.773 1.147 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm1.073 6.772c.108.685.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.036-.711.113-1.2.759-1.091 1.443Zm-.009-3.131c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.43-9.03c.065.41.463.688.89.62.426-.067.72-.454.655-.865-.065-.41-.464-.689-.89-.62-.427.067-.72.454-.655.865ZM214.5 333.38c.108.685.772 1.148 1.483 1.036.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.711.112-1.2.758-1.091 1.442Zm-.156-7.178c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm-1.871-4.72c.108.684.773 1.147 1.483 1.034.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.035-.71.112-1.2.758-1.091 1.442Zm-1.614-6.857c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-.894-5.644c.065.41.464.689.89.621.427-.067.72-.455.655-.866-.065-.41-.463-.688-.89-.62-.427.067-.72.455-.655.865Zm-1.43-9.03c.065.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.958 14.225c.065.41.463.689.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-.703 12.81c.065.41.464.688.89.62.427-.067.72-.455.655-.865-.065-.41-.463-.689-.89-.621-.427.067-.72.455-.655.866Zm-4.543-22.536c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm2.806 30.138c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm-5.694-17.996c.065.41.463.688.89.62.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.866Zm-2.935-13.343c.066.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.463-.689-.89-.621-.426.068-.72.455-.655.866Z",fill:"#003CFF",fillRule:"nonzero"}),i.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l101.963-1.04c5.276-.052 9.508-4.372 9.455-9.648-.055-5.276-4.374-9.509-9.65-9.454ZM252.64 331.241l-101.964 1.038c-5.275.054-9.508 4.374-9.454 9.65.054 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.053 9.507-4.373 9.454-9.649-.054-5.275-4.374-9.508-9.649-9.454Z",fill:"#7EACFF"}),i.createElement("path",{stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"m196.824 197.298 52.216-.506M193.329 330.5h52.215"}),i.createElement("path",{d:"M167.367 228.041c-4.091-10.787-6.086-20.934-5.985-30.44",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("circle",{cx:14.857,cy:14.857,r:14.857,transform:"translate(106.857 248.571)",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(236.571 284.571)"},i.createElement("mask",{id:"error-block-image-busy-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-busy-b"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-busy-b"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:25.714,cy:28,r:34.857}),i.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:22.286,cy:18.857,r:3.429})))),Pf=kf({default:Ef,disconnected:If,empty:$f,busy:_f});let Xt=null,Qt=null;Tt&&(Xt=document.createElement("div"),Xt.className="adm-px-tester",Xt.style.setProperty("--size","10"),document.body.appendChild(Xt),Qt=document.createElement("div"),Qt.className="adm-px-tester",document.body.appendChild(Qt));function Mf(e){return Xt===null||Qt===null||Xt.getBoundingClientRect().height===10?e:(Qt.style.setProperty("--size",e.toString()),Qt.getBoundingClientRect().height)}const nl="adm-grid",et=we(e=>{const t={"--columns":e.columns.toString()},{gap:n}=e;return n!==void 0&&(Array.isArray(n)?(t["--gap-horizontal"]=Et(n[0]),t["--gap-vertical"]=Et(n[1])):t["--gap"]=Et(n)),Y(e,i.createElement("div",{className:nl,style:t},e.children))},{Item:e=>{const t=oe({span:1},e),n={"--item-span":t.span};return Y(t,i.createElement("div",{className:`${nl}-item`,style:n,onClick:t.onClick},t.children))}}),Ff=v1([sa,o1]),Oo=()=>[1,0,0,1,0,0],ol=e=>e[4],rl=e=>e[5],In=e=>e[0],$n=(e,t,n)=>sl([1,0,0,1,t,n],e),Nf=(e,t,n=t)=>sl([t,0,0,n,0,0],e),Of=(e,[t,n])=>[e[0]*t+e[2]*n+e[4],e[1]*t+e[3]*n+e[5]],sl=(e,t)=>[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]],es="adm-image-viewer",il=e=>{const{dragLockRef:t,maxZoom:n}=e,o=i.useRef([]),r=i.useRef(null),s=i.useRef(null),[{matrix:a},l]=Ve(()=>({matrix:Oo(),config:{tension:200}})),c=te.useSize(r),u=te.useSize(s),d=i.useRef(!1),m=p=>{if(!c||!u)return{x:{position:0,minX:0,maxX:0},y:{position:0,minY:0,maxY:0}};const y=-c.width/2,b=-c.height/2,C=-u.width/2,w=-u.height/2,x=In(p),S=x*u.width,k=x*u.height,I=y-(S-c.width),M=y,O=b-(k-c.height),L=b,[F,N]=Of(p,[C,w]);return{x:{position:F,minX:I,maxX:M},y:{position:N,minY:O,maxY:L}}},g=(p,y,b,C=0)=>[p<=y-C,p>=b+C],v=(p,y,b=!1)=>{if(!c||!u)return p;const C=In(p),w=C*u.width,x=C*u.height,{x:{position:S,minX:k,maxX:I},y:{position:M,minY:O,maxY:L}}=m(p);if(y==="translate"){let F=S,N=M;return w>c.width?F=b?ye(S,k,I):Eo(S,k,I,C*50):F=-w/2,x>c.height?N=b?ye(M,O,L):Eo(M,O,L,C*50):N=-x/2,$n(p,F-S,N-M)}if(y==="scale"&&b){const[F,N]=[w>c.width?ye(S,k,I):-w/2,x>c.height?ye(M,O,L):-x/2];return $n(p,F-S,N-M)}return p};return Ff({onDrag:p=>{var y;if(p.first){const{x:{position:C,minX:w,maxX:x}}=m(a.get());o.current=g(C,w,x);return}if(p.pinching)return p.cancel();if(p.tap&&p.elapsedTime>0&&p.elapsedTime<1e3){(y=e.onTap)===null||y===void 0||y.call(e);return}const b=In(a.get());if(t&&(t.current=b!==1),!d.current&&b<=1)l.start({matrix:Oo()});else{const C=a.get(),w=[p.offset[0]-ol(C),p.offset[1]-rl(C)],x=$n(C,...p.last?[w[0]+p.velocity[0]*p.direction[0]*200,w[1]+p.velocity[1]*p.direction[1]*200]:w);l.start({matrix:v(x,"translate",p.last),immediate:!p.last});const{x:{position:S,minX:k,maxX:I}}=m(x);p.last&&o.current.some(M=>M)&&g(S,k,I).some(M=>M)&&(t&&(t.current=!1),l.start({matrix:Oo()}))}},onPinch:p=>{var y;d.current=!p.last;const[b]=p.offset;if(b<0)return;let C;n==="auto"?C=c&&u?Math.max(c.height/u.height,c.width/u.width):1:C=n;const w=p.last?ye(b,1,C):b;if((y=e.onZoomChange)===null||y===void 0||y.call(e,w),p.last&&w<=1)l.start({matrix:Oo()}),t&&(t.current=!1);else{if(!c)return;const x=a.get(),S=In(x),k=p.origin[0]-c.width/2,I=p.origin[1]-c.height/2;let M=$n(x,-k,-I);M=Nf(M,w/S),M=$n(M,k,I),l.start({matrix:v(M,"scale",p.last),immediate:!p.last}),t&&(t.current=!0)}}},{target:r,drag:{from:()=>[ol(a.get()),rl(a.get())],pointer:{touch:!0}},pinch:{from:()=>[In(a.get()),0],pointer:{touch:!0}}}),i.createElement("div",{className:`${es}-slide`},i.createElement("div",{className:`${es}-control`,ref:r},i.createElement(ke.div,{className:`${es}-image-wrapper`,style:{matrix:a}},i.createElement("img",{ref:s,src:e.image,draggable:!1,alt:e.image}))))},ts="adm-image-viewer",Tf=i.forwardRef((e,t)=>{const n=window.innerWidth+Mf(16),[{x:o},r]=Ve(()=>({x:e.defaultIndex*n,config:{tension:250,clamp:!0}})),s=e.images.length;function a(u,d=!1){var m;const g=ye(u,0,s-1);(m=e.onIndexChange)===null||m===void 0||m.call(e,g),r.start({x:g*n,immediate:d})}i.useImperativeHandle(t,()=>({swipeTo:a}));const l=i.useRef(!1),c=io(u=>{if(l.current)return;const[d]=u.offset;if(u.last){const m=Math.floor(d/n),g=m+1,v=Math.min(u.velocity[0]*2e3,n)*u.direction[0];a(ye(Math.round((d+v)/n),m,g))}else r.start({x:d,immediate:!0})},{transform:([u,d])=>[-u,d],from:()=>[o.get(),0],bounds:()=>({left:0,right:(s-1)*n}),rubberband:!0,axis:"x",pointer:{touch:!0}});return i.createElement("div",Object.assign({className:`${ts}-slides`},c()),i.createElement(ke.div,{className:`${ts}-indicator`},o.to(u=>`${ye(Math.round(u/n),0,s-1)+1} / ${s}`)),i.createElement(ke.div,{className:`${ts}-slides-inner`,style:{x:o.to(u=>-u)}},e.images.map((u,d)=>i.createElement(il,{key:d,image:u,onTap:e.onTap,maxZoom:e.maxZoom,onZoomChange:m=>{if(m!==1){const g=Math.round(o.get()/n);r.start({x:g*n})}},dragLockRef:l}))))}),To="adm-image-viewer",al={maxZoom:3,getContainer:null,visible:!1},ll=e=>{var t,n,o;const r=oe(al,e),s=i.createElement(to,{visible:r.visible,disableBodyScroll:!1,opacity:"thick",afterClose:r.afterClose,destroyOnClose:!0,className:(t=r==null?void 0:r.classNames)===null||t===void 0?void 0:t.mask},i.createElement("div",{className:K(`${To}-content`,(n=r==null?void 0:r.classNames)===null||n===void 0?void 0:n.body)},r.image&&i.createElement(il,{image:r.image,onTap:r.onClose,maxZoom:r.maxZoom})),r.image&&i.createElement("div",{className:`${To}-footer`},(o=r.renderFooter)===null||o===void 0?void 0:o.call(r,r.image),i.createElement(Cn,{position:"bottom"})));return Rn(r.getContainer,s)},Df=Object.assign(Object.assign({},al),{defaultIndex:0}),cl=i.forwardRef((e,t)=>{var n,o,r;const s=oe(Df,e),[a,l]=i.useState(s.defaultIndex),c=i.useRef(null);i.useImperativeHandle(t,()=>({swipeTo:(m,g)=>{var v;l(m),(v=c.current)===null||v===void 0||v.swipeTo(m,g)}}));const u=i.useCallback(m=>{var g;m!==a&&(l(m),(g=s.onIndexChange)===null||g===void 0||g.call(s,m))},[s.onIndexChange,a]),d=i.createElement(to,{visible:s.visible,disableBodyScroll:!1,opacity:"thick",afterClose:s.afterClose,destroyOnClose:!0,className:(n=s==null?void 0:s.classNames)===null||n===void 0?void 0:n.mask},i.createElement("div",{className:K(`${To}-content`,(o=s==null?void 0:s.classNames)===null||o===void 0?void 0:o.body)},s.images&&i.createElement(Tf,{ref:c,defaultIndex:a,onIndexChange:u,images:s.images,onTap:s.onClose,maxZoom:s.maxZoom})),s.images&&i.createElement("div",{className:`${To}-footer`},(r=s.renderFooter)===null||r===void 0?void 0:r.call(s,s.images[a],a),i.createElement(Cn,{position:"bottom"})));return Rn(s.getContainer,d)}),Jt=new Set;function Af(e){ns();const t=xn(i.createElement(ll,Object.assign({},e,{afterClose:()=>{var n;Jt.delete(t),(n=e.afterClose)===null||n===void 0||n.call(e)}})));return Jt.add(t),t}function Lf(e){ns();const t=xn(i.createElement(cl,Object.assign({},e,{afterClose:()=>{var n;Jt.delete(t),(n=e.afterClose)===null||n===void 0||n.call(e)}})));return Jt.add(t),t}function ns(){Jt.forEach(e=>{e.close()}),Jt.clear()}const Bf=we(cl,{show:Lf}),Vf=we(ll,{Multi:Bf,show:Af,clear:ns}),_t="adm-image-uploader",ul=e=>{const{locale:t}=Pe(),{url:n,file:o,deletable:r,deleteIcon:s,onDelete:a,imageFit:l}=e,c=i.useMemo(()=>n||(o?URL.createObjectURL(o):""),[n,o]);i.useEffect(()=>()=>{o&&URL.revokeObjectURL(c)},[c,o]);function u(){return e.status==="pending"&&i.createElement("div",{className:`${_t}-cell-mask`},i.createElement("span",{className:`${_t}-cell-loading`},i.createElement(Ur,{color:"white"}),i.createElement("span",{className:`${_t}-cell-mask-message`},t.ImageUploader.uploading)))}function d(){return r&&i.createElement("span",{className:`${_t}-cell-delete`,onClick:a},s)}return i.createElement("div",{className:K(`${_t}-cell`,e.status==="fail"&&`${_t}-cell-fail`)},i.createElement(ma,{className:`${_t}-cell-image`,src:c,fit:l,onClick:e.onClick}),u(),d())},Pt="adm-space",zf={direction:"horizontal"},_n=e=>{const t=oe(zf,e),{direction:n,onClick:o}=t;return Y(t,i.createElement("div",{className:K(Pt,{[`${Pt}-wrap`]:t.wrap,[`${Pt}-block`]:t.block,[`${Pt}-${n}`]:!0,[`${Pt}-align-${t.align}`]:!!t.align,[`${Pt}-justify-${t.justify}`]:!!t.justify}),onClick:o},i.Children.map(t.children,r=>r!=null&&i.createElement("div",{className:`${Pt}-item`},r))))},tt="adm-image-uploader",Zf={disableUpload:!1,deletable:!0,deleteIcon:i.createElement(no,{className:`${tt}-cell-delete-icon`}),showUpload:!0,multiple:!1,maxCount:0,defaultValue:[],accept:"image/*",preview:!0,showFailed:!0,imageFit:"cover"},dl=i.forwardRef((e,t)=>{const{locale:n}=Pe(),o=oe(Zf,e),{columns:r}=o,[s,a]=Ie(o),[l,c]=i.useState([]),u=i.useRef(null),d=te.useSize(u),m=i.useRef(null),[g,v]=i.useState(80),p=i.useRef(null);te.useIsomorphicLayoutEffect(()=>{const V=m.current;if(r&&d&&V){const _=d.width,P=Ia(window.getComputedStyle(V).getPropertyValue("height"));v((_-P*(r-1))/r)}},[d==null?void 0:d.width]);const y={"--cell-size":g+"px"};te.useIsomorphicLayoutEffect(()=>{c(V=>V.filter(_=>_.url===void 0?!0:!s.some(P=>P.url===_.url)))},[s]),te.useIsomorphicLayoutEffect(()=>{var V;(V=o.onUploadQueueChange)===null||V===void 0||V.call(o,l.map(_=>({id:_.id,status:_.status})))},[l]);const b=i.useRef(0),{maxCount:C,onPreview:w,renderItem:x}=o;function S(V,_){return yt(this,void 0,void 0,function*(){const{beforeUpload:P}=o;let E=V;return E=yield P==null?void 0:P(V,_),E})}function k(V){return o.showFailed?V:V.filter(_=>_.status!=="fail")}function I(V){var _;return yt(this,void 0,void 0,function*(){V.persist();const{files:P}=V.target;if(!P)return;let E=[].slice.call(P);if(V.target.value="",o.beforeUpload){const z=E.map(j=>S(j,E));yield Promise.all(z).then(j=>{E=j.filter(Boolean)})}if(E.length===0)return;if(C>0){const z=s.length+E.length-C;z>0&&(E=E.slice(0,E.length-z),(_=o.onCountExceed)===null||_===void 0||_.call(o,z))}const D=E.map(z=>({id:b.current++,status:"pending",file:z}));c(z=>[...k(z),...D]);const T=[];yield Promise.all(D.map((z,j)=>yt(this,void 0,void 0,function*(){try{const H=yield o.upload(z.file);T[j]=H,c(U=>U.map(J=>J.id===z.id?Object.assign(Object.assign({},J),{status:"success",url:H.url}):J))}catch(H){throw c(U=>U.map(J=>J.id===z.id?Object.assign(Object.assign({},J),{status:"fail"}):J)),H}}))).catch(z=>console.error(z)),a(z=>z.concat(T))})}const M=i.useRef(null);function O(V){M.current=Vf.Multi.show({images:s.map(_=>_.url),defaultIndex:V,onClose:()=>{M.current=null}})}te.useUnmount(()=>{var V;(V=M.current)===null||V===void 0||V.close()});const L=k(l),F=o.showUpload&&(C===0||s.length+L.length<C),N=()=>s.map((V,_)=>{var P,E;const D=i.createElement(ul,{key:(P=V.key)!==null&&P!==void 0?P:_,url:(E=V.thumbnailUrl)!==null&&E!==void 0?E:V.url,deletable:o.deletable,deleteIcon:o.deleteIcon,imageFit:o.imageFit,onClick:()=>{o.preview&&O(_),w&&w(_,V)},onDelete:()=>yt(void 0,void 0,void 0,function*(){var T;(yield(T=o.onDelete)===null||T===void 0?void 0:T.call(o,V))!==!1&&a(s.filter((j,H)=>H!==_))})});return x?x(D,V,s):D}),W=i.createElement(i.Fragment,null,N(),l.map(V=>!o.showFailed&&V.status==="fail"?null:i.createElement(ul,{key:V.id,file:V.file,deletable:V.status!=="pending",deleteIcon:o.deleteIcon,status:V.status,imageFit:o.imageFit,onDelete:()=>{c(l.filter(_=>_.id!==V.id))}})),i.createElement("div",{className:`${tt}-upload-button-wrap`,style:F?void 0:{display:"none"}},o.children||i.createElement("span",{className:`${tt}-cell ${tt}-upload-button`,role:"button","aria-label":n.ImageUploader.upload},i.createElement("span",{className:`${tt}-upload-button-icon`},i.createElement(ud,null))),!o.disableUpload&&i.createElement("input",{"aria-label":n.ImageUploader.upload,ref:p,capture:o.capture,accept:o.accept,multiple:o.multiple,type:"file",className:`${tt}-input`,onChange:I})));return i.useImperativeHandle(t,()=>({get nativeElement(){return p.current}})),Y(o,i.createElement("div",{className:tt,ref:u},r?i.createElement(et,{className:`${tt}-grid`,columns:r,style:y},i.createElement("div",{className:`${tt}-gap-measure`,ref:m}),W.props.children):i.createElement(_n,{className:`${tt}-space`,wrap:!0,block:!0},W.props.children)))});function fl({onEnterPress:e,onKeyDown:t,nativeInputRef:n,enterKeyHint:o}){const r=s=>{e&&(s.code==="Enter"||s.keyCode===13)&&e(s),t==null||t(s)};return te.useIsomorphicLayoutEffect(()=>{const s=n.current;if(!(!o||!s))return s.setAttribute("enterkeyhint",o),()=>{s.removeAttribute("enterkeyhint")}},[o]),r}const Do="adm-input",jf={defaultValue:"",clearIcon:i.createElement(dd,null),onlyShowClearWhenFocus:!0},os=i.forwardRef((e,t)=>{const{locale:n,input:o={}}=Pe(),r=oe(jf,o,e),[s,a]=Ie(r),[l,c]=i.useState(!1),u=i.useRef(!1),d=i.useRef(null),m=fl({onEnterPress:r.onEnterPress,onKeyDown:r.onKeyDown,nativeInputRef:d,enterKeyHint:r.enterKeyHint});i.useImperativeHandle(t,()=>({clear:()=>{a("")},focus:()=>{var p;(p=d.current)===null||p===void 0||p.focus()},blur:()=>{var p;(p=d.current)===null||p===void 0||p.blur()},get nativeElement(){return d.current}}));function g(){let p=s;if(r.type==="number"){const y=p&&ye(parseFloat(p),r.min,r.max).toString();Number(p)!==Number(y)&&(p=y)}p!==s&&a(p)}const v=!r.clearable||!s||r.readOnly?!1:r.onlyShowClearWhenFocus?l:!0;return Y(r,i.createElement("div",{className:K(`${Do}`,r.disabled&&`${Do}-disabled`)},i.createElement("input",{ref:d,className:`${Do}-element`,value:s,onChange:p=>{a(p.target.value)},onFocus:p=>{var y;c(!0),(y=r.onFocus)===null||y===void 0||y.call(r,p)},onBlur:p=>{var y;c(!1),g(),(y=r.onBlur)===null||y===void 0||y.call(r,p)},onPaste:r.onPaste,id:r.id,placeholder:r.placeholder,disabled:r.disabled,readOnly:r.readOnly,maxLength:r.maxLength,minLength:r.minLength,max:r.max,min:r.min,autoComplete:r.autoComplete,enterKeyHint:r.enterKeyHint,autoFocus:r.autoFocus,pattern:r.pattern,inputMode:r.inputMode,type:r.type,name:r.name,autoCapitalize:r.autoCapitalize,autoCorrect:r.autoCorrect,onKeyDown:m,onKeyUp:r.onKeyUp,onCompositionStart:p=>{var y;u.current=!0,(y=r.onCompositionStart)===null||y===void 0||y.call(r,p)},onCompositionEnd:p=>{var y;u.current=!1,(y=r.onCompositionEnd)===null||y===void 0||y.call(r,p)},onClick:r.onClick,step:r.step,role:r.role,"aria-valuenow":r["aria-valuenow"],"aria-valuemax":r["aria-valuemax"],"aria-valuemin":r["aria-valuemin"],"aria-label":r["aria-label"]}),v&&i.createElement("div",{className:`${Do}-clear`,onMouseDown:p=>{p.preventDefault()},onClick:()=>{var p,y;a(""),(p=r.onClear)===null||p===void 0||p.call(r),H1()&&u.current&&(u.current=!1,(y=d.current)===null||y===void 0||y.blur())},"aria-label":n.Input.clear},r.clearIcon)))}),nt="adm-jumbo-tabs",ml=we(e=>{var t;const n=i.useRef(null),o=i.useRef(null),r={};let s=null;const a=[];jr(e.children,(m,g)=>{if(!i.isValidElement(m))return;const v=m.key;if(typeof v!="string")return;g===0&&(s=v);const p=a.push(m);r[v]=p-1});const[l,c]=Ie({value:e.activeKey,defaultValue:(t=e.defaultActiveKey)!==null&&t!==void 0?t:s,onChange:m=>{var g;m!==null&&((g=e.onChange)===null||g===void 0||g.call(e,m))}}),{scrollLeft:u,animate:d}=o0(n,r[l]);return wa(()=>{d(!0)},o),Y(e,i.createElement("div",{className:nt,ref:o},i.createElement("div",{className:`${nt}-header`},i.createElement(r0,{scrollTrackRef:n}),i.createElement(ke.div,{className:`${nt}-tab-list`,ref:n,scrollLeft:u},a.map(m=>Y(m.props,i.createElement("div",{key:m.key,className:`${nt}-tab-wrapper`},i.createElement("div",{onClick:()=>{const{key:g}=m;m.props.disabled||g!=null&&c(g.toString())},className:K(`${nt}-tab`,{[`${nt}-tab-active`]:m.key===l,[`${nt}-tab-disabled`]:m.props.disabled})},i.createElement("div",{className:`${nt}-tab-title`},m.props.title),i.createElement("div",{className:`${nt}-tab-description`},m.props.description))))))),a.map(m=>{if(m.props.children===void 0)return null;const g=m.key===l;return i.createElement(eo,{key:m.key,active:g,forceRender:m.props.forceRender,destroyOnClose:m.props.destroyOnClose},i.createElement("div",{className:`${nt}-content`,style:{display:g?"block":"none"}},m.props.children))})))},{Tab:()=>null}),Rt="adm-nav-bar",hl=i.createElement(md,null),Kf=e=>{const{navBar:t={}}=Pe(),n=oe(t,e),{back:o,backIcon:r,backArrow:s}=n,a=t.backIcon||hl,l=Uo(hl,t.backIcon,s===!0?a:s,r===!0?a:r);return Y(n,i.createElement("div",{className:K(Rt)},i.createElement("div",{className:`${Rt}-left`,role:"button"},o!==null&&i.createElement("div",{className:`${Rt}-back`,onClick:n.onBack},l&&i.createElement("span",{className:`${Rt}-back-arrow`},l),i.createElement("span",{"aria-hidden":"true"},o)),n.left),i.createElement("div",{className:`${Rt}-title`},n.children),i.createElement("div",{className:`${Rt}-right`},n.right)))},Pn="adm-page-indicator",Wf={color:"primary",direction:"horizontal"},Hf=i.memo(e=>{const t=oe(Wf,e),n=[];for(let o=0;o<t.total;o++)n.push(i.createElement("div",{key:o,className:K(`${Pn}-dot`,{[`${Pn}-dot-active`]:t.current===o})}));return Y(t,i.createElement("div",{className:K(Pn,`${Pn}-${t.direction}`,`${Pn}-color-${t.color}`)},n))}),pl=i.createContext(null),Uf={disabled:!1,defaultValue:null},Yf=e=>{const t=oe(Uf,e),[n,o]=Ie({value:t.value,defaultValue:t.defaultValue,onChange:r=>{var s;r!==null&&((s=t.onChange)===null||s===void 0||s.call(t,r))}});return i.createElement(pl.Provider,{value:{value:n===null?[]:[n],check:r=>{o(r)},uncheck:()=>{},disabled:t.disabled}},t.children)},Mt="adm-radio",Gf={defaultChecked:!1},rs=we(e=>{const t=oe(Gf,e),n=i.useContext(pl);let[o,r]=Ie({value:t.checked,defaultValue:t.defaultChecked,onChange:t.onChange}),s=t.disabled;const{value:a}=t;n&&a!==void 0&&(o=n.value.includes(a),r=c=>{var u;c?n.check(a):n.uncheck(a),(u=t.onChange)===null||u===void 0||u.call(t,c)},s=s||n.disabled);const l=()=>t.icon?i.createElement("div",{className:`${Mt}-custom-icon`},t.icon(o)):i.createElement("div",{className:`${Mt}-icon`},o&&i.createElement(Za,null));return Y(t,i.createElement("label",{onClick:t.onClick,className:K(Mt,{[`${Mt}-checked`]:o,[`${Mt}-disabled`]:s,[`${Mt}-block`]:t.block})},i.createElement(ja,{type:"radio",checked:o,onChange:r,disabled:s,id:t.id}),l(),t.children&&i.createElement("div",{className:`${Mt}-content`},t.children)))},{Group:Yf}),bt="adm-search-bar",qf={clearable:!0,onlyShowClearWhenFocus:!1,showCancelButton:!1,defaultValue:"",clearOnCancel:!0},gl=i.forwardRef((e,t)=>{const{locale:n,searchBar:o={}}=Pe(),r=oe(qf,o,{cancelText:n.common.cancel},e),s=Uo(i.createElement(pd,null),o.searchIcon,e.icon,e.searchIcon),[a,l]=Ie(r),[c,u]=i.useState(!1),d=i.useRef(null),m=i.useRef(!1);i.useImperativeHandle(t,()=>({clear:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.clear()},focus:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.focus()},blur:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.blur()},get nativeElement(){var v,p;return(p=(v=d.current)===null||v===void 0?void 0:v.nativeElement)!==null&&p!==void 0?p:null}}));const g=()=>{let v;return typeof r.showCancelButton=="function"?v=r.showCancelButton(c,a):v=r.showCancelButton&&c,v&&i.createElement("div",{className:`${bt}-suffix`},i.createElement(st,{fill:"none",className:`${bt}-cancel-button`,onClick:()=>{var p,y,b;r.clearOnCancel&&((p=d.current)===null||p===void 0||p.clear()),(y=d.current)===null||y===void 0||y.blur(),(b=r.onCancel)===null||b===void 0||b.call(r)},onMouseDown:p=>{p.preventDefault()}},r.cancelText))};return Y(r,i.createElement("div",{className:K(bt,{[`${bt}-active`]:c})},i.createElement("div",{className:`${bt}-input-box`},s&&i.createElement("div",{className:`${bt}-input-box-icon`},s),i.createElement(os,{ref:d,className:K(`${bt}-input`,{[`${bt}-input-without-icon`]:!s}),value:a,onChange:l,maxLength:r.maxLength,autoFocus:r.autoFocus,placeholder:r.placeholder,clearable:r.clearable,onlyShowClearWhenFocus:r.onlyShowClearWhenFocus,onFocus:v=>{var p;u(!0),(p=r.onFocus)===null||p===void 0||p.call(r,v)},onBlur:v=>{var p;u(!1),(p=r.onBlur)===null||p===void 0||p.call(r,v)},onClear:r.onClear,type:"search",enterKeyHint:"search",onEnterPress:()=>{var v,p;m.current||((v=d.current)===null||v===void 0||v.blur(),(p=r.onSearch)===null||p===void 0||p.call(r,a))},"aria-label":n.SearchBar.name,onCompositionStart:v=>{var p;m.current=!0,(p=r.onCompositionStart)===null||p===void 0||p.call(r,v)},onCompositionEnd:v=>{var p;m.current=!1,(p=r.onCompositionEnd)===null||p===void 0||p.call(r,v)}})),g()))}),vl=e=>Y(e,i.createElement("div",{className:"adm-swiper-item",onClick:e.onClick},e.children));function Xf(e){const[t,n]=i.useState(e),o=i.useRef(t);return i.useEffect(()=>{o.current=t},[t]),[t,n,o]}function Qf(e,t){const n=Object.keys(e),o=Object.keys(t),r=new Set([...n,...o]),s={};return r.forEach(a=>{const l=e[a],c=t[a];typeof l=="function"&&typeof c=="function"?s[a]=function(...u){l(...u),c(...u)}:s[a]=l||c}),s}const ot="adm-swiper",Jf={mousedown:"onMouseDown",mousemove:"onMouseMove",mouseup:"onMouseUp"},Rf={defaultIndex:0,allowTouchMove:!0,autoplay:!1,autoplayInterval:3e3,loop:!1,direction:"horizontal",slideSize:100,trackOffset:0,stuckAtBoundary:!0,rubberband:!0,stopPropagation:[]};let Ao;const em=i.forwardRef(Dr((e,t)=>{const n=oe(Rf,e),{direction:o,total:r,children:s,indicator:a}=n,[l]=i.useState({}),c=i.useRef(null),u=o==="vertical",d=n.slideSize/100,m=n.trackOffset/100,{validChildren:g,count:v,renderChildren:p}=i.useMemo(()=>{let b=0,C,w;return typeof s=="function"?C=s:w=i.Children.map(s,x=>!i.isValidElement(x)||x.type!==vl?null:(b++,x)),{renderChildren:C,validChildren:w,count:b}},[s]),y=r!=null?r:v;return y===0||!g&&!p?null:()=>{let b=n.loop;d*(y-1)<1&&(b=!1);const C=i.useRef(null);function w(){const Z=C.current;return Z?(u?Z.offsetHeight:Z.offsetWidth)*n.slideSize/100:0}const[x,S,k]=te.useGetState(n.defaultIndex),[I,M,O]=Xf(!1);function L(Z){let G=0,re=y-1;return n.stuckAtBoundary&&(G+=m/d,re-=(1-d-m)/d),ye(Z,G,re)}const[{position:F},N]=Ve(()=>({position:L(x)*100,config:{tension:200,friction:30},onRest:()=>{if(O.current||!b)return;const Z=F.get(),G=100*y,re=ss(Z,G);re!==Z&&N.start({position:re,immediate:!0})}}),[y]),W=i.useRef(null);function V(){var Z;(Z=W.current)===null||Z===void 0||Z.call(W),O.current=!1}const _=io(Z=>{if(W.current=Z.cancel,!Z.intentional||(Z.first&&!Ao&&(Ao=l),Ao!==l))return;Ao=Z.last?void 0:l;const G=w();if(!G)return;const re=u?1:0,ge=Z.offset[re],Ce=Z.direction[re],Ko=Z.velocity[re];if(M(!0),!Z.last)N.start({position:ge*100/G,immediate:!0});else{const Nn=Math.floor(ge/G),b2=Nn+1,y2=Math.round((ge+Ko*2e3*Ce)/G);P(ye(y2,Nn,b2)),window.setTimeout(()=>{M(!1)})}},{transform:([Z,G])=>[-Z,-G],from:()=>{const Z=w();return[F.get()/100*Z,F.get()/100*Z]},triggerAllEvents:!0,bounds:()=>{if(b)return{};const Z=w(),G=L(0)*Z,re=L(y-1)*Z;return u?{top:G,bottom:re}:{left:G,right:re}},rubberband:n.rubberband,axis:u?"y":"x",preventScroll:!u,pointer:{touch:!0}});function P(Z,G=!1){var re;const ge=Math.round(Z),Ce=b?ss(ge,y):ye(ge,0,y-1);Ce!==k()&&((re=n.onIndexChange)===null||re===void 0||re.call(n,Ce)),S(Ce),N.start({position:(b?ge:L(ge))*100,immediate:G})}function E(){P(Math.round(F.get()/100)+1)}function D(){P(Math.round(F.get()/100)-1)}i.useImperativeHandle(t,()=>({swipeTo:P,swipeNext:E,swipePrev:D})),te.useIsomorphicLayoutEffect(()=>{const Z=y-1;x>Z&&P(Z,!0)});const{autoplay:T,autoplayInterval:z}=n,j=()=>{c.current=window.setTimeout(()=>{T==="reverse"?D():E(),j()},z)};i.useEffect(()=>{if(!(!T||I))return j(),()=>{c.current&&window.clearTimeout(c.current)}},[T,z,I,y]);function H(Z,G){let re={};return b&&(re={[u?"y":"x"]:F.to(ge=>{let Ce=-ge+Z*100;const Ko=y*100,Nn=Ko/2;return Ce=ss(Ce+Nn,Ko)-Nn,`${Ce}%`}),[u?"top":"left"]:`-${Z*100}%`}),i.createElement(ke.div,{className:K(`${ot}-slide`,{[`${ot}-slide-active`]:x===Z}),style:re,key:Z},G)}function U(){if(p&&r){const G=Math.max(x-2,0),re=Math.min(x+2,r-1),ge=[];for(let Ce=G;Ce<=re;Ce+=1)ge.push(H(Ce,p(Ce)));return i.createElement(i.Fragment,null,i.createElement("div",{className:`${ot}-slide-placeholder`,style:{width:`${G*100}%`}}),ge)}return i.Children.map(g,(Z,G)=>H(G,Z))}function J(){return b?i.createElement("div",{className:`${ot}-track-inner`},U()):i.createElement(ke.div,{className:`${ot}-track-inner`,style:{[u?"y":"x"]:F.to(Z=>`${-Z}%`)}},U())}const ne={"--slide-size":`${n.slideSize}%`,"--track-offset":`${n.trackOffset}%`},ee=Object.assign({},n.allowTouchMove?_():{}),Ne={};for(const Z of n.stopPropagation){const G=Jf[Z];Ne[G]=function(re){re.stopPropagation()}}const q=Qf(ee,Ne);let ue=null;return typeof a=="function"?ue=a(y,x):a!==!1&&(ue=i.createElement("div",{className:`${ot}-indicator`},i.createElement(Hf,Object.assign({},n.indicatorProps,{total:y,current:x,direction:o})))),Y(n,i.createElement("div",{className:K(ot,`${ot}-${o}`),style:ne},i.createElement("div",Object.assign({ref:C,className:K(`${ot}-track`,{[`${ot}-track-allow-touch-move`]:n.allowTouchMove}),onClickCapture:Z=>{O.current&&Z.stopPropagation(),V()}},q),J()),ue))}}));function ss(e,t){const n=e%t;return n<0?n+t:n}const Lo=we(em,{Item:vl}),tm=()=>null,at="adm-tab-bar",nm={safeArea:!1},is=we(e=>{var t;const n=oe(nm,e);let o=null;const r=[];jr(n.children,(l,c)=>{if(!i.isValidElement(l))return;const u=l.key;typeof u=="string"&&(c===0&&(o=u),r.push(l))});const[s,a]=Ie({value:n.activeKey,defaultValue:(t=n.defaultActiveKey)!==null&&t!==void 0?t:o,onChange:l=>{var c;l!==null&&((c=n.onChange)===null||c===void 0||c.call(n,l))}});return Y(n,i.createElement("div",{className:at},i.createElement("div",{className:`${at}-wrap`},r.map(l=>{const c=l.key===s;function u(){const d=l.props.icon&&i.createElement("div",{className:`${at}-item-icon`},typeof l.props.icon=="function"?l.props.icon(c):l.props.icon),m=l.props.title&&i.createElement("div",{className:K(`${at}-item-title`,!!d&&`${at}-item-title-with-icon`)},typeof l.props.title=="function"?l.props.title(c):l.props.title);return d?i.createElement(i.Fragment,null,i.createElement(pa,{content:l.props.badge,className:`${at}-icon-badge`},d),m):m?i.createElement(pa,{content:l.props.badge,className:`${at}-title-badge`},m):null}return Y(l.props,i.createElement("div",{key:l.key,onClick:()=>{var d,m;const{key:g}=l;g!=null&&(a(g.toString()),(m=(d=l.props).onClick)===null||m===void 0||m.call(d))},className:K(`${at}-item`,{[`${at}-item-active`]:c})},u()))})),n.safeArea&&i.createElement(Cn,{position:"bottom"})))},{Item:tm}),bl="adm-tag",om={default:"var(--adm-color-text-secondary, #666666)",primary:"var(--adm-color-primary, #1677ff)",success:"var(--adm-color-success, #00b578)",warning:"var(--adm-color-warning, #ff8f1f)",danger:"var(--adm-color-danger, #ff3141)"},rm={color:"default",fill:"solid",round:!1},as=e=>{var t;const n=oe(rm,e),o=(t=om[n.color])!==null&&t!==void 0?t:n.color,r={"--border-color":o,"--text-color":n.fill==="outline"?o:"#ffffff","--background-color":n.fill==="outline"?"transparent":o};return Y(n,i.createElement("span",{style:r,onClick:n.onClick,className:K(bl,{[`${bl}-round`]:n.round})},n.children))},Mn="adm-text-area",yl={rows:2,showCount:!1,autoSize:!1,defaultValue:""},Cl=i.forwardRef((e,t)=>{const n=oe(yl,e),{autoSize:o,showCount:r,maxLength:s}=n,[a,l]=Ie(Object.assign(Object.assign({},n),{value:n.value===null?"":n.value}));n.value;const c=i.useRef(null),u=i.useRef("auto"),d=i.useRef(null),m=fl({onEnterPress:n.onEnterPress,onKeyDown:n.onKeyDown,nativeInputRef:c,enterKeyHint:n.enterKeyHint});i.useImperativeHandle(t,()=>({clear:()=>{l("")},focus:()=>{var b;(b=c.current)===null||b===void 0||b.focus()},blur:()=>{var b;(b=c.current)===null||b===void 0||b.blur()},get nativeElement(){return c.current}})),te.useIsomorphicLayoutEffect(()=>{if(!o)return;const b=c.current,C=d.current;if(!b||(b.style.height=u.current,!C))return;let w=C.scrollHeight;if(typeof o=="object"){const x=window.getComputedStyle(b),S=parseFloat(x.lineHeight);o.minRows&&(w=Math.max(w,o.minRows*S)),o.maxRows&&(w=Math.min(w,o.maxRows*S))}u.current=`${w}px`,b.style.height=`${w}px`},[a,o]);const g=i.useRef(!1);let v;const p=Jr(a).length;typeof r=="function"?v=r(p,s):r&&(v=i.createElement("div",{className:`${Mn}-count`},s===void 0?p:p+"/"+s));let y=n.rows;return typeof o=="object"&&(o.maxRows&&y>o.maxRows&&(y=o.maxRows),o.minRows&&y<o.minRows&&(y=o.minRows)),Y(n,i.createElement("div",{className:Mn},i.createElement("textarea",{ref:c,className:`${Mn}-element`,rows:y,value:a,placeholder:n.placeholder,onChange:b=>{let C=b.target.value;s&&!g.current&&(C=Jr(C).slice(0,s).join("")),l(C)},id:n.id,onCompositionStart:b=>{var C;g.current=!0,(C=n.onCompositionStart)===null||C===void 0||C.call(n,b)},onCompositionEnd:b=>{var C;if(g.current=!1,s){const w=b.target.value;l(Jr(w).slice(0,s).join(""))}(C=n.onCompositionEnd)===null||C===void 0||C.call(n,b)},autoComplete:n.autoComplete,autoFocus:n.autoFocus,disabled:n.disabled,readOnly:n.readOnly,name:n.name,onFocus:n.onFocus,onBlur:n.onBlur,onClick:n.onClick,onKeyDown:m}),v,o&&i.createElement("textarea",{ref:d,className:`${Mn}-element ${Mn}-element-hidden`,value:a,rows:y,"aria-hidden":!0,readOnly:!0})))});Cl.defaultProps=yl;const lt="adm-toast",sm={maskClickable:!0,stopPropagation:["click"]},im=e=>{const t=oe(sm,e),{maskClickable:n,content:o,icon:r,position:s}=t,a=i.useMemo(()=>{if(r==null)return null;switch(r){case"success":return i.createElement(Li,{className:`${lt}-icon-success`});case"fail":return i.createElement(no,{className:`${lt}-icon-fail`});case"loading":return i.createElement(Ur,{color:"white",className:`${lt}-loading`});default:return r}},[r]),l=i.useMemo(()=>{switch(s){case"top":return"20%";case"bottom":return"80%";default:return"50%"}},[s]);return i.createElement(to,{visible:t.visible,destroyOnClose:!0,opacity:0,disableBodyScroll:!n,getContainer:t.getContainer,afterClose:t.afterClose,style:Object.assign({pointerEvents:n?"none":"auto"},t.maskStyle),className:K(`${lt}-mask`,t.maskClassName),stopPropagation:t.stopPropagation},i.createElement("div",{className:K(`${lt}-wrap`)},i.createElement("div",{style:{top:l},className:K(`${lt}-main`,r?`${lt}-main-icon`:`${lt}-main-text`)},a&&i.createElement("div",{className:`${lt}-icon`},a),i.createElement(F1,null,o))))};let De=null,ls=null;const Bo={duration:2e3,position:"center",maskClickable:!0},am=e=>i.createElement(im,Object.assign({},e));function lm(e){var t;const n=oe(Bo,typeof e=="string"?{content:e}:e),o=i.createElement(am,Object.assign({},n,{onClose:()=>{De=null}}));return De?!((t=De.isRendered)===null||t===void 0)&&t.call(De)?De.replace(o):(De.close(),De=xn(o)):De=xn(o),ls&&window.clearTimeout(ls),n.duration!==0&&(ls=window.setTimeout(()=>{xl()},n.duration)),De}function xl(){De==null||De.close(),De=null}function cm(e){e.duration!==void 0&&(Bo.duration=e.duration),e.position!==void 0&&(Bo.position=e.position),e.maskClickable!==void 0&&(Bo.maskClickable=e.maskClickable)}const cs={show:lm,clear:xl,config:cm},Sl={type:"void","x-component":"MPage","x-designer":"MPage.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"mobilePage:addBlock","x-component-props":{showDivider:!1}}}},um=e=>{const{t}=le(),n=$.useFieldSchema(),{dn:o}=h.useDesignable(),r=$.useField(),s={dn:o,field:r,fieldSchema:n};return f.jsx(h.SchemaSettingsDropdown,ae(B({title:f.jsx(de.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)"},icon:f.jsx(Ke.MenuOutlined,{}),type:"dashed",children:t("Menu configuration")})},s),{children:f.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete menu block")},breakRemoveOn:{"x-component":"Grid"}},"remove")}))},Fn=()=>{const{dn:e}=h.useDesignable(),t=$.useFieldSchema(),n=$.useField();return{onUpdateComponentProps:te.useMemoizedFn(r=>me(this,null,function*(){Ae.set(t,"x-component-props",r),n.componentProps=B(B({},n.componentProps),r),yield e.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"],"x-server-hooks":[{type:"onSelfSave",method:"extractTextToLocale"}]}}),yield e.refresh()}))}},wl={properties:{name:{type:"string",title:ut("Menu name"),required:!0,"x-component":"Input","x-decorator":"FormItem"},icon:{"x-decorator":"FormItem","x-component":"IconPicker",title:ut("Icon"),"x-component-props":{}}}},dm=e=>{const{icon:t,name:n}=e,o=h.useDesigner(),r=ie.useNavigate(),s=ie.useLocation(),a=$.useFieldSchema(),l=h.useCompile(),c=ie.useParams(),u=()=>{const d=s.pathname.endsWith("/")?s.pathname.slice(0,-1):s.pathname;r(c.name?`/mobile/${a["x-uid"]}`:`${d}/${a["x-uid"]}`)};return f.jsxs(h.SortableItem,{className:h.cx("tb-mobile-menu-item",h.css`
|
|
142
142
|
width: 100%;
|
|
143
143
|
background: var(--adm-color-background);
|
|
144
144
|
> .adm-list-item {
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
background: ${e.colorBgContainer};
|
|
156
156
|
width: 100%;
|
|
157
157
|
margin-bottom: var(--tb-spacing);
|
|
158
|
-
`})),us=e=>{const{styles:t}=mm(),n=h.useDesigner(),o=$.useFieldSchema(),{insertBeforeEnd:r,designable:s}=h.useDesignable(),{t:a}=le(),l=c=>{const u={page:Sl};return r({type:"void",title:c.name,"x-component":"MMenu.Item","x-component-props":c,"x-designer":"MMenu.Item.Designer",properties:u})};return f.jsx(h.SortableItem,{className:h.cx("tb-mobile-menu",t.mobileMenu),children:f.jsxs(qt,{children:[s&&f.jsx(qt.Item,{children:f.jsx(n,{})}),f.jsx(h.DndContext,{children:f.jsx(h.SchemaComponent,{onlyRenderProperties:!0,schema:o})}),s?f.jsx(qt.Item,{children:f.jsx(h.SchemaInitializerActionModal,{buttonText:a("Add menu item"),title:a("Add menu item"),schema:wl,onSubmit:l})}):null]})})};us.Item=kl,us.Designer=um;const
|
|
158
|
+
`})),us=e=>{const{styles:t}=mm(),n=h.useDesigner(),o=$.useFieldSchema(),{insertBeforeEnd:r,designable:s}=h.useDesignable(),{t:a}=le(),l=c=>{const u={page:Sl};return r({type:"void",title:c.name,"x-component":"MMenu.Item","x-component-props":c,"x-designer":"MMenu.Item.Designer",properties:u})};return f.jsx(h.SortableItem,{className:h.cx("tb-mobile-menu",t.mobileMenu),children:f.jsxs(qt,{children:[s&&f.jsx(qt.Item,{children:f.jsx(n,{})}),f.jsx(h.DndContext,{children:f.jsx(h.SchemaComponent,{onlyRenderProperties:!0,schema:o})}),s?f.jsx(qt.Item,{children:f.jsx(h.SchemaInitializerActionModal,{buttonText:a("Add menu item"),title:a("Add menu item"),schema:wl,onSubmit:l})}):null]})})};us.Item=kl,us.Designer=um;const Vo=(e,t)=>e.reduceProperties((o,r)=>o||r["x-component"]===t&&r),hm=e=>Vo(e,"Grid"),pm=["Grid","Grid.Row"],gm=["Grid.Col"],ds=(e,t)=>{if(!e)return 0;let n=0;return gm.includes(e["x-component"])&&(n+=1),n>=t||pm.includes(e["x-component"])&&e.mapProperties(o=>{n+=ds(o,t)}),n},vm=()=>{const{t:e}=le(),t=$.useFieldSchema(),{onUpdateComponentProps:n}=Fn(),o=$.useField(),{dn:r}=h.useDesignable(),s=ie.useNavigate(),a=Vo(t,"MTabBar"),l=a&&o.componentProps.tabBarEnabled!==!1,c={dn:r,field:o,fieldSchema:t};return f.jsx(h.SchemaSettingsDropdown,ae(B({title:f.jsx(de.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:f.jsx(Ke.MenuOutlined,{}),type:"dashed",children:e("App level Configuration")})},c),{children:f.jsx(h.SchemaSettingsSwitchItem,{checked:l,title:e("Enable TabBar"),onChange:u=>me(this,null,function*(){if(u&&!a){const d=Vo(t,"MPage");yield r.remove(d),yield r.insertBeforeEnd({type:"void","x-component":"MTabBar","x-component-props":{},name:"tabBar",properties:{[$.uid()]:{type:"void","x-component":"MTabBar.Item","x-designer":"MTabBar.Item.Designer","x-component-props":{icon:"HomeOutlined",title:ut("Untitled")},properties:{page:d.toJSON()}}}})}yield n({tabBarEnabled:u}),u===!1&&s("../")})})}))},bm=h.createStyles(({token:e,css:t})=>({mobileContainer:t`
|
|
159
159
|
--adm-color-primary: ${e.colorPrimary};
|
|
160
160
|
|
|
161
161
|
& > .general-schema-designer > .general-schema-designer-icons {
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
.adm-tab-bar-item-icon {
|
|
197
197
|
height: auto;
|
|
198
198
|
}
|
|
199
|
-
`,icon:f.jsx(h.SchemaInitializerActionModal,{title:o("Add tab"),onSubmit:c,schema:Il})},"add-tab"):null]})})})};ms.Item=$l,ms.displayName="MTabBar";const Sm=e=>{var g,v,p,y;const{showBack:t}=e,{t:n}=le(),o=$.useField(),r=$.useFieldSchema(),{dn:s}=h.useDesignable(),{onUpdateComponentProps:a}=Fn(),l=(g=r==null?void 0:r.properties)==null?void 0:g.header,c=!!l&&((v=o.componentProps)==null?void 0:v.headerEnabled)!==!1,u=(p=r==null?void 0:r.properties)==null?void 0:p.tabs,d=!!u&&((y=o.componentProps)==null?void 0:y.tabsEnabled)!==!1,m={dn:s,field:o,fieldSchema:r};return f.jsxs(h.SchemaSettingsDropdown,ae(B({title:f.jsx(de.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:f.jsx(Ke.MenuOutlined,{}),type:"dashed",children:n("Page configuration")})},m),{children:[f.jsx(h.SchemaSettingsSwitchItem,{checked:c,title:n("Enable Header"),onChange:b=>me(this,null,function*(){var C;l||(yield s.insertAfterBegin({type:"void",name:"header","x-component":"MHeader","x-designer":"MHeader.Designer","x-component-props":{title:(C=r.parent["x-component-props"])==null?void 0:C.name,showBack:t}})),yield a({headerEnabled:b})})}),f.jsx(h.SchemaSettingsSwitchItem,{checked:d,title:n("Enable Tabs"),onChange:b=>me(this,null,function*(){if(!u){const C=hm(r);return yield s.remove(C),s.insertBeforeEnd({type:"void",name:"tabs","x-component":"Tabs","x-component-props":{},"x-initializer":"
|
|
199
|
+
`,icon:f.jsx(h.SchemaInitializerActionModal,{title:o("Add tab"),onSubmit:c,schema:Il})},"add-tab"):null]})})})};ms.Item=$l,ms.displayName="MTabBar";const Sm=e=>{var g,v,p,y;const{showBack:t}=e,{t:n}=le(),o=$.useField(),r=$.useFieldSchema(),{dn:s}=h.useDesignable(),{onUpdateComponentProps:a}=Fn(),l=(g=r==null?void 0:r.properties)==null?void 0:g.header,c=!!l&&((v=o.componentProps)==null?void 0:v.headerEnabled)!==!1,u=(p=r==null?void 0:r.properties)==null?void 0:p.tabs,d=!!u&&((y=o.componentProps)==null?void 0:y.tabsEnabled)!==!1,m={dn:s,field:o,fieldSchema:r};return f.jsxs(h.SchemaSettingsDropdown,ae(B({title:f.jsx(de.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:f.jsx(Ke.MenuOutlined,{}),type:"dashed",children:n("Page configuration")})},m),{children:[f.jsx(h.SchemaSettingsSwitchItem,{checked:c,title:n("Enable Header"),onChange:b=>me(this,null,function*(){var C;l||(yield s.insertAfterBegin({type:"void",name:"header","x-component":"MHeader","x-designer":"MHeader.Designer","x-component-props":{title:(C=r.parent["x-component-props"])==null?void 0:C.name,showBack:t}})),yield a({headerEnabled:b})})}),f.jsx(h.SchemaSettingsSwitchItem,{checked:d,title:n("Enable Tabs"),onChange:b=>me(this,null,function*(){if(!u){const C=hm(r);return yield s.remove(C),s.insertBeforeEnd({type:"void",name:"tabs","x-component":"Tabs","x-component-props":{},"x-initializer":"popup:addTab","x-initializer-props":{gridInitializer:"mobilePage:addBlock"},properties:{tab1:{type:"void",title:ut("Untitled"),"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:ae(B({},C),{"x-uid":$.uid()})}}}})}yield a({tabsEnabled:b})})})]}))},wm=h.createStyles(({token:e,css:t})=>({globalActionCSS:t`
|
|
200
200
|
#tb-position-container > & {
|
|
201
201
|
height: ${e.sizeXXL}px;
|
|
202
202
|
border-top: 1px solid var(--tb-box-bg);
|
|
@@ -226,13 +226,13 @@
|
|
|
226
226
|
}
|
|
227
227
|
display: flex;
|
|
228
228
|
flex-direction: column;
|
|
229
|
-
`})),km=e=>{var y,b,C,w;const{styles:t}=wm(),n=h.useDesigner(),o=$.useField(),r=$.useFieldSchema(),[s,a]=ie.useSearchParams(),l=(y=r.properties)==null?void 0:y.tabs,c=o.componentProps.headerEnabled!==!1,u=o.componentProps.tabsEnabled!==!1&&l;let d=
|
|
229
|
+
`})),km=e=>{var y,b,C,w;const{styles:t}=wm(),n=h.useDesigner(),o=$.useField(),r=$.useFieldSchema(),[s,a]=ie.useSearchParams(),l=(y=r.properties)==null?void 0:y.tabs,c=o.componentProps.headerEnabled!==!1,u=o.componentProps.tabsEnabled!==!1&&l;let d=Vo(r,"MPage");if(!u&&!d&&l){const x=Object.values(l.properties||{}).sort((S,k)=>S["x-index"]-k["x-index"]);x.length!==0&&(d=x[0])}const m=r.root===r.parent;let g=!1;if(!l&&r.properties)g=ds(r.properties.grid,2)===1;else if(s.has("tab")&&((b=l==null?void 0:l.properties)!=null&&b[s.get("tab")]))g=ds((w=(C=l.properties[s.get("tab")])==null?void 0:C.properties)==null?void 0:w.grid,2)===1;else if(l!=null&&l.properties){const x=Object.values(l.properties).sort((S,k)=>S["x-index"]-k["x-index"])[0];x&&setTimeout(()=>{a([["tab",x.name.toString()]],{replace:!0})})}const v=i.useCallback(x=>{a([["tab",x]],{replace:!0})},[a]),p=i.useCallback(x=>f.jsx(h.TabsContextProvider,{children:g?f.jsx(h.ActionBarProvider,{container:(typeof x.active=="undefined"||x.active)&&m?document.getElementById("tb-position-container"):null,forceProps:{layout:"one-column",className:t.globalActionCSS},children:x.children}):x.children}),[g,m,t.globalActionCSS]);return f.jsxs(h.SortableItem,{eid:"tb-mobile-scroll-wrapper",className:h.cx("tb-mobile-page",t.mobilePage),children:[f.jsx(n,B({},r==null?void 0:r["x-designer-props"])),f.jsxs("div",{style:{paddingBottom:l?null:"var(--tb-spacing)"},className:h.cx("tb-mobile-page-header",t.mobilePageHeader,{[h.css`
|
|
230
230
|
& > .ant-tb-grid {
|
|
231
231
|
margin-top: 14px;
|
|
232
232
|
}
|
|
233
233
|
`]:l&&!u||!l}),children:[c&&f.jsx($.RecursionField,{schema:r,filterProperties:x=>x["x-component"]==="MHeader"}),f.jsx(h.TabsContextProvider,{PaneRoot:p,activeKey:s.get("tab"),onChange:v,children:f.jsx($.RecursionField,{schema:u?r:d,filterProperties:x=>x["x-component"]==="Tabs"||x["x-component"]==="Grid"||x["x-component"]==="Grid.Row"})})]}),f.jsx(p,{children:!l&&f.jsx($.RecursionField,{schema:r,filterProperties:x=>x["x-component"]!=="MHeader"})})]})},hs=e=>f.jsx(h.FilterBlockProvider,{children:f.jsx(km,B({},e))});hs.Designer=Sm,hs.displayName="MPage";const Em=()=>{const e=$.useField(),{onUpdateComponentProps:t}=Fn(),{t:n}=le();return f.jsx(h.GeneralSchemaDesigner,{draggable:!1,children:f.jsx(h.SchemaSettingsModalItem,{title:n("Edit info"),components:{Switch:ks.Switch},initialValues:e.componentProps,schema:{properties:{title:{type:"string",title:n("Title"),required:!0,"x-component":"Input","x-decorator":"FormItem"},showBack:{type:"boolean",title:n("Display back button"),"x-component":"Switch","x-decorator":"FormItem"}}},onSubmit:t})})},_l=e=>{const t=$.useField(),{title:n=ut("Untitled"),showBack:o=!1}=B(B({},e),t==null?void 0:t.componentProps),r=h.useDesigner(),a=h.useCompile()(n),l=ie.useNavigate(),{setTitle:c}=h.useDocumentTitle(),{token:u}=h.useToken();i.useEffect(()=>{c(a)},[a]);const d=i.useMemo(()=>({width:"100%",background:u.colorBgContainer}),[u.colorBgContainer]);return f.jsxs(h.SortableItem,{className:h.cx("tb-mobile-header"),style:d,children:[f.jsx(Kf,{backArrow:o,onBack:()=>l(-1),children:a}),f.jsx(r,{})]})};_l.Designer=Em;const Im=()=>{const{t:e}=le();return f.jsx(h.GeneralSchemaDesigner,{children:f.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:e("Delete settings block")},breakRemoveOn:{"x-component":"Grid"}},"remove")})},Pl=()=>{const e=h.useDesigner();return f.jsxs(h.SortableItem,{className:h.cx("tb-mobile-setting",h.css`
|
|
234
234
|
margin-bottom: var(--tb-spacing);
|
|
235
|
-
`),children:[f.jsx(e,{}),f.jsx(h.SettingsMenu,{redirectUrl:"/mobile"})]})};Pl.Designer=Im;const $m=()=>{const e=h.useSchemaInitializerItem(),{insert:t}=h.useSchemaInitializer();return f.jsx(h.SchemaInitializerItem,B({icon:f.jsx(Ke.SettingOutlined,{}),onClick:()=>me(this,null,function*(){t({type:"void","x-component":"MSettings","x-designer":"MSettings.Designer","x-component-props":{}})})},e))},_m=["select","multipleSelect","radioGroup","checkboxGroup"],Pm=["oho","obo","o2m","m2o","m2m"],Mm=["datetime"],Fm=["input","textarea","phone","email","url","percent","password","color","icon","formula","sequence"],Nm=["integer","number"],Ge=e=>e==="TabSearchCollapsibleInputItem"||e==="TabSearchCollapsibleInputMItem",ct=e=>_m.includes(e),$e=e=>Pm.includes(e),Ft=e=>Mm.includes(e),Ml=e=>Fm.includes(e),Om=e=>Nm.includes(e),Fl=e=>Se.dayjs(e).format("YYYY-MM-DD"),
|
|
235
|
+
`),children:[f.jsx(e,{}),f.jsx(h.SettingsMenu,{redirectUrl:"/mobile"})]})};Pl.Designer=Im;const $m=()=>{const e=h.useSchemaInitializerItem(),{insert:t}=h.useSchemaInitializer();return f.jsx(h.SchemaInitializerItem,B({icon:f.jsx(Ke.SettingOutlined,{}),onClick:()=>me(this,null,function*(){t({type:"void","x-component":"MSettings","x-designer":"MSettings.Designer","x-component-props":{}})})},e))},_m=["select","multipleSelect","radioGroup","checkboxGroup"],Pm=["oho","obo","o2m","m2o","m2m"],Mm=["datetime"],Fm=["input","textarea","phone","email","url","percent","password","color","icon","formula","sequence"],Nm=["integer","number"],Ge=e=>e==="TabSearchCollapsibleInputItem"||e==="TabSearchCollapsibleInputMItem",ct=e=>_m.includes(e),$e=e=>Pm.includes(e),Ft=e=>Mm.includes(e),Ml=e=>Fm.includes(e),Om=e=>Nm.includes(e),Fl=e=>Se.dayjs(e).format("YYYY-MM-DD"),zo=e=>JSON.stringify(Se.dayjs(e));function Tm(e){const{field:t,isMobile:n,label:o,isCanBeOptional:r,isCanBeRelated:s,collection:a}=e,{key:l,name:c,uiSchema:u,interface:d}=t,m=u==null?void 0:u.title,g=[r,s].indexOf(!0);return{name:l,title:m,Component:"ImageSearchItemIntializer",schema:{name:`${c}-choice`,fieldName:c,title:m,type:"void","x-toolbar":"ImageSearchItemToolbar","x-settings":"fieldSettings:component:ImageSearchItem","x-component":"ImageSearchItemView","x-component-props":{fieldNames:{label:o,imageShow:"image_show"},interface:d,collectionName:a==null?void 0:a.name,correlation:c},"x-use-component-props":["usePropsOptionalImageSearchItemField","usePropsRelatedImageSearchItemField"][g],properties:{}}}}const Dm=new h.SchemaInitializer({name:"ImageSearchView:configureFields",title:'{{t("Configure fields")}}',style:{marginTop:16},icon:"SettingOutlined",items:[{name:"choicesFields",type:"itemGroup",title:'{{t("Choices fields")}}',useChildren:Am}]});function Am(){const e=h.useCollection(),t=e==null?void 0:e.fields,n=h.useCollectionManager(),o=h.useIsMobile();return t.map(s=>{var m,g;const{interface:a,target:l}=s,c=(g=(m=n.getCollection(l))==null?void 0:m.getPrimaryKey())!=null?g:"id",u=ct(a),d=$e(a);return u||d?Tm({collection:e,field:s,isMobile:o,label:c,isCanBeOptional:u,isCanBeRelated:d}):null}).filter(Boolean)}function Lm(e){const{collection:t,dataSource:n,blockType:o}=e;return{type:"void","x-decorator":"ImageSearchProvider","x-decorator-props":{collection:t,dataSource:n,blockType:o},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:filterCollapse","x-component":"CardItem","x-filter-targets":[],properties:{[Se.uid()]:{type:"void","x-action":"imageSearch","x-initializer":"ImageSearchView:configureFields","x-component":"ImageSearchView"}}}}function Bm(e){const{filterCollections:t}=e,n=h.useSchemaInitializerItem(),{insert:o}=h.useSchemaInitializer(),r=a=>me(this,[a],function*({item:s}){const{dataSource:l,collectionName:c,name:u}=s,d=Lm({dataSource:l,collection:c||u,blockType:"filter"});o(d)});return f.jsx(h.DataBlockInitializer,ae(B({},n),{componentType:"ImageSearch",filter:t,onCreateBlockSchema:r}))}const Vm=({collection:e,children:t})=>f.jsx(h.DataBlockProvider,{collection:e,children:t}),zm=()=>{const e=h.useDesigner(),t=$.useFieldSchema(),{render:n}=h.useSchemaInitializerRender(t["x-initializer"],t["x-initializer-props"]);return f.jsxs(f.Fragment,{children:[f.jsx(e,{}),f.jsx($.RecursionField,{schema:t,onlyRenderProperties:!0}),f.jsx(i.Fragment,{children:n()})]})},Zm=()=>{const e=$.useFieldSchema(),t=h.useCollection(),{getDataBlocks:n}=h.useFilterBlock();return i.useMemo(()=>t==null?void 0:t.getField(e.name),[t,e.name]),{onSelected:(r,s)=>{const{targets:a,uid:l}=h.findFilterTargets(e);n().forEach(c=>{var p,y,b;if(!a.find(C=>C.uid===c.uid))return;const d=`${l}${e.name}`,m=((p=c.service.params)==null?void 0:p[0])||{};let g=((b=(y=c.service.params)==null?void 0:y[1])==null?void 0:b.filters)||{};if(r.length)g[d]={[s]:r};else{if(c.dataLoadingMode==="manual")return c.clearData();delete g[d]}const v=h.mergeFilter([...Object.values(g),c.defaultFilter]);if(r.length===1&&r[0]==="all"){const C=Object.keys(g[d]);v.$and?(C.forEach(w=>{v.$and.forEach((x,S)=>{x[w]&&v.$and.splice(S,1)})}),v.$and=v.$and.filter(Boolean)):delete v[C[0]],g[d]={}}return g=Ae.omitBy(g,C=>C==null||Ae.isObject(C)&&Ae.isEmpty(C)),c.doFilter(ae(B({},m),{page:1,filter:v}),{filters:g})})}}},jm=()=>{const e=h.useSchemaInitializerItem(),{insert:t}=h.useSchemaInitializer(),{schema:n,title:o}=e,{exists:r,remove:s}=h.useCurrentSchema(n.name,"name",e.find,e.remove),a=()=>{if(r)return s();const{schema:l}=e,c=$.merge(n||{},l||{});t(c)};return f.jsx(h.SchemaInitializerSwitch,{checked:r,title:o,onClick:a})},Km=new h.SchemaSettings({name:"fieldSettings:component:ImageSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t:e}=le();return{title:e("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var l,c;const e=$.useFieldSchema(),{form:t}=h.useFormBlockContext(),n=$.useField(),o=h.useCollectionManager(),s=h.useCollection().getField(e.name)||o.getCollectionField(e["x-collection-field"]),{dn:a}=h.useDesignable();return{collectionName:s==null?void 0:s.target,defaultFilter:((c=(l=e==null?void 0:e["x-component-props"])==null?void 0:l.params)==null?void 0:c.filter)||{},form:t,onSubmit:({filter:u})=>{var d;Ae.set(n.componentProps,"params",ae(B({},(d=n.componentProps)==null?void 0:d.params),{filter:u})),e["x-component-props"].params=n.componentProps.params,a.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"]}})}}},useVisible(){const e=$.useFieldSchema();return!Ge(e["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var g,v,p,y;const e=$.useFieldSchema(),{t}=le(),n=h.useCollectionManager(),o=h.useCollection(),r=(g=e["x-component-props"])==null?void 0:g.collectionName,s=(v=e["x-component-props"])==null?void 0:v.correlation,a=o.getField(e.fieldName)||n.getCollectionField(e["x-collection-field"])||n.getCollection(r+"."+s),l=h.useCompile(),{dn:c}=h.useDesignable(),d=(a!=null&&a.target?n.getCollectionFields(a==null?void 0:a.target):[]).filter(b=>!(b!=null&&b.target)&&b.type!=="boolean").map(b=>{var C;return{value:b==null?void 0:b.name,label:l((C=b==null?void 0:b.uiSchema)==null?void 0:C.title)||(b==null?void 0:b.name)}}),m=b=>{var x,S,k;const C={"x-uid":e["x-uid"]},w=ae(B(B({},(S=(x=a==null?void 0:a.uiSchema)==null?void 0:x["x-component-props"])==null?void 0:S.fieldNames),(k=e["x-component-props"])==null?void 0:k.fieldNames),{label:b});e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=w,C["x-component-props"]=e["x-component-props"],c.emit("patch",{schema:C}),c.refresh()};return{key:"title-field",title:t("Title field"),options:d,value:(y=(p=e["x-component-props"])==null?void 0:p.fieldNames)==null?void 0:y.label,onChange:m}},useVisible(){var t;const e=$.useFieldSchema();return Ge(e["x-component"])||((t=e["x-component-props"])==null?void 0:t.correlation)}}]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t:e}=le(),t=$.useFieldSchema(),{dn:n}=h.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:e("Delete field")},breakRemoveOn:o=>(Ge(t["x-component"])&&(Object.values(o.properties).forEach(r=>{Ge(r["x-component"])&&r.name!==t.name&&delete o.properties[r.name]}),n.emit("patch",{schema:o})),o["x-component"]==="TabSearch")}}}]}),Wm=e=>f.jsx(h.SchemaToolbar,B({draggable:!0,showBorder:!0,showBackground:!0,initializer:!1},e)),Hm=h.withDynamicSchemaProps(e=>{const{collectionField:t,Designer:n,items:o,onSelect:r}=Um(e);return t?f.jsxs(h.SortableItem,{children:[f.jsx(n,{}),f.jsx(ml,{onChange:r,children:o.map(({key:s,label:a,imageUrl:l})=>f.jsx(ml.Tab,{title:"",description:f.jsx(Ym,{srcUrl:l,label:a})},s))})]}):null},{displayName:"ImageSearchItemView"});function Um(e){var b,C;const{list:t,onSelected:n,valueKey:o,labelKey:r,filterKey:s}=e,a=$.useFieldSchema(),l=h.useCollection(),{t:c}=le(),u=i.useMemo(()=>l==null?void 0:l.getField(a.fieldName),[l,a.fieldName]),d=h.useDesigner(),m=o||(u==null?void 0:u.targetKey)||"id",g=r||((C=(b=a["x-component-props"])==null?void 0:b.fieldNames)==null?void 0:C.label)||m,v=w=>{var S;const x=((S=w.keyPath)==null?void 0:S[0])||w;n([x],s)},p={title:g||m,key:m},y=(t||[]).map(w=>{var F;const{type:x,["image_show"]:S,[p.title]:k,[p.key]:I}=w,M=(location==null?void 0:location.origin)||"",O=(F=S==null?void 0:S[0])==null?void 0:F.url;let L=O!=null?O:"";return L.includes("http")||(L=`${M}${O}`),x==="all"?{label:c("AllProducts"),key:"all",imageUrl:L}:{label:k,key:I,imageUrl:L}});return{collectionField:u,Designer:d,items:y,onSelect:v}}const Ym=e=>{const{srcUrl:t,label:n}=e;return f.jsxs("div",{className:h.css`
|
|
236
236
|
display: 'flex';
|
|
237
237
|
flex-direction: 'column';
|
|
238
238
|
width: '100%';
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
align-items: center;
|
|
253
253
|
font-size: 25px;
|
|
254
254
|
user-select: none;
|
|
255
|
-
`,Rm=()=>{const{insert:e}=h.useSchemaInitializer(),t=h.useCollectionManager(),n=h.useSchemaInitializerItem(),o=s=>me(this,[s],function*({item:r}){const a=t.getCollection(r.name),l=a.fields.find(u=>u.interface==="attachment");if(!l){cs.show({content:"当前数据源暂无可加载数据"});return}const c={type:"void",name:r.name,title:a.title,"x-decorator":"DataBlockProvider","x-decorator-props":{collection:r.name,dataSource:"main"},"x-toolbar":"BlockSchemaToolbar","x-settings":"SwiperFieldSettings","x-component":"SwiperBlock","x-use-component-props":"useSwiperBlockProps","x-component-props":{resourceName:r.name,fieldValue:l.name}};e(c)});return f.jsx(h.DataBlockInitializer,ae(B({},n),{icon:"swiper-block",componentType:"Swiper",onCreateBlockSchema:o}))},eh=new h.SchemaSettings({name:"SwiperFieldSettings",items:[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var s,a;const e=$.useFieldSchema(),{form:t}=h.useFormBlockContext(),n=$.useField(),o=h.useCollection(),{dn:r}=h.useDesignable();return{collectionName:o.getOptions().name,defaultFilter:((a=(s=e==null?void 0:e["x-component-props"])==null?void 0:s.params)==null?void 0:a.filter)||{},form:t,onSubmit:({filter:l})=>{var c;Ae.set(n.componentProps,"params",ae(B({},(c=n.componentProps)==null?void 0:c.params),{filter:l})),e["x-component-props"].params=n.componentProps.params,r.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"]}})}}}},{name:"setShowField",type:"select",useComponentProps(){const e=$.useFieldSchema(),{t}=le(),n=h.useCollection(),o=h.useCompile(),{dn:r}=h.useDesignable(),s=n.fields.map(l=>{var c;if((l==null?void 0:l.interface)==="attachment")return{label:o((c=l.uiSchema)==null?void 0:c.title)||l.name,value:l.name}}).filter(Boolean),a=l=>{const c={"x-uid":e["x-uid"]};e["x-component-props"].fieldValue=l,c["x-component-props"]=e["x-component-props"],r.emit("patch",{schema:c}),r.refresh()};return{title:t("Set show field"),options:s,value:e["x-component-props"].fieldValue,onChange:a}}},{name:"setFieldCount",type:"select",useComponentProps(){const e=$.useFieldSchema(),{dn:t}=h.useDesignable(),{t:n}=le(),o=[];for(let s=1;s<=20;s++)o.push({label:s,value:s});const r=s=>{e["x-component-props"].pageSize=s,t.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"]}}),t.refresh()};return{title:n("Set field count"),options:o,value:e["x-component-props"].pageSize||5,onChange:r}}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100}]}),Nl=()=>{const e=ie.useParams(),{name:t,collection:n,field:o,fieldParams:r}=e,s={};return s[o]=r,f.jsx(h.DataBlockProvider,{collection:n,dataSource:"main",children:f.jsx(h.CollectionRecordProvider,{record:s,parentRecord:null,children:f.jsx(h.RemoteSchemaComponent,{uid:t})})})},th=()=>{const e=$.useFieldSchema(),t=ie.useNavigate(),n=e.properties?Object.values(e.properties):null,{insertAdjacent:o}=h.useDesignable(),s=h.useCollection().targetKey||"id",{filter:a,pageSize:l,fieldValue:c,resourceName:u}=e["x-component-props"],{data:d,run:m}=h.useRequest({resource:u+":list",params:{filter:a,pageSize:l||5,appends:c?[c]:[]}});return i.useEffect(()=>{m()},[a,l,c]),{data:d,fieldValue:c,changeNav:v=>{if(v.isIdentical){const p=n==null?void 0:n.find(y=>y["x-component-props"].fixedComponent);p?t(`/mobile/${p["x-uid"]}/image/${u}/${s}/${v[s]}`):o("beforeEnd",Ol(v,"fixedComponent"),{onSuccess(y){y&&t(`/mobile/${y["x-uid"]}`)}})}else{const p=n==null?void 0:n.find(y=>y.name===String(v.id));p?t(`/mobile/${p["x-uid"]}`):o("beforeEnd",Ol(v),{onSuccess(y){y&&t(`/mobile/${y["x-uid"]}`)}})}}}},Ol=(e,t)=>({type:"void",title:e.title,name:e.id,"x-component":"MMenu.Item","x-component-props":{imgItem:e,fixedComponent:t},"x-designer":"MMenu.Item.Designer",properties:{page:{type:"void","x-component":"MPage","x-designer":"MPage.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"mobilePage:addBlock"}}}}}),nh=()=>{const{fieldSchema:e,Designer:t,render:n,filterProperties:o}=oh();return f.jsxs(f.Fragment,{children:[f.jsx(t,{}),f.jsx($.RecursionField,{schema:e,onlyRenderProperties:!0,filterProperties:o}),f.jsx(i.Fragment,{children:n()})]})},oh=()=>{const e=h.useDesigner(),t=$.useFieldSchema(),{render:n}=h.useSchemaInitializerRender(t["x-initializer"],t["x-initializer-props"]);return{fieldSchema:t,Designer:e,render:n,filterProperties:r=>Ge(r["x-component"])?r===Object.values(r.parent.properties).filter(s=>Ge(s["x-component"]))[0]:!0}},Tl=e=>{const{onSelected:t}=Zo(),n=$.useFieldSchema(),o=h.useCollection(),r=h.useCollectionManager(),{dn:s}=h.useDesignable(),[a,l]=i.useState(!1),c=i.useMemo(()=>o==null?void 0:o.getField(n.fieldName),[o,n.fieldName]),u=n.parent.properties,d=h.useDesigner(),[m,g]=i.useState(n.fieldName),[v,p]=i.useState(n["x-component-props"].interface),y=Ft(v)?
|
|
255
|
+
`,Rm=()=>{const{insert:e}=h.useSchemaInitializer(),t=h.useCollectionManager(),n=h.useSchemaInitializerItem(),o=s=>me(this,[s],function*({item:r}){const a=t.getCollection(r.name),l=a.fields.find(u=>u.interface==="attachment");if(!l){cs.show({content:"当前数据源暂无可加载数据"});return}const c={type:"void",name:r.name,title:a.title,"x-decorator":"DataBlockProvider","x-decorator-props":{collection:r.name,dataSource:"main"},"x-toolbar":"BlockSchemaToolbar","x-settings":"SwiperFieldSettings","x-component":"SwiperBlock","x-use-component-props":"useSwiperBlockProps","x-component-props":{resourceName:r.name,fieldValue:l.name}};e(c)});return f.jsx(h.DataBlockInitializer,ae(B({},n),{icon:"swiper-block",componentType:"Swiper",onCreateBlockSchema:o}))},eh=new h.SchemaSettings({name:"SwiperFieldSettings",items:[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var s,a;const e=$.useFieldSchema(),{form:t}=h.useFormBlockContext(),n=$.useField(),o=h.useCollection(),{dn:r}=h.useDesignable();return{collectionName:o.getOptions().name,defaultFilter:((a=(s=e==null?void 0:e["x-component-props"])==null?void 0:s.params)==null?void 0:a.filter)||{},form:t,onSubmit:({filter:l})=>{var c;Ae.set(n.componentProps,"params",ae(B({},(c=n.componentProps)==null?void 0:c.params),{filter:l})),e["x-component-props"].params=n.componentProps.params,r.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"]}})}}}},{name:"setShowField",type:"select",useComponentProps(){const e=$.useFieldSchema(),{t}=le(),n=h.useCollection(),o=h.useCompile(),{dn:r}=h.useDesignable(),s=n.fields.map(l=>{var c;if((l==null?void 0:l.interface)==="attachment")return{label:o((c=l.uiSchema)==null?void 0:c.title)||l.name,value:l.name}}).filter(Boolean),a=l=>{const c={"x-uid":e["x-uid"]};e["x-component-props"].fieldValue=l,c["x-component-props"]=e["x-component-props"],r.emit("patch",{schema:c}),r.refresh()};return{title:t("Set show field"),options:s,value:e["x-component-props"].fieldValue,onChange:a}}},{name:"setFieldCount",type:"select",useComponentProps(){const e=$.useFieldSchema(),{dn:t}=h.useDesignable(),{t:n}=le(),o=[];for(let s=1;s<=20;s++)o.push({label:s,value:s});const r=s=>{e["x-component-props"].pageSize=s,t.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"]}}),t.refresh()};return{title:n("Set field count"),options:o,value:e["x-component-props"].pageSize||5,onChange:r}}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100}]}),Nl=()=>{const e=ie.useParams(),{name:t,collection:n,field:o,fieldParams:r}=e,s={};return s[o]=r,f.jsx(h.DataBlockProvider,{collection:n,dataSource:"main",children:f.jsx(h.CollectionRecordProvider,{record:s,parentRecord:null,children:f.jsx(h.RemoteSchemaComponent,{uid:t})})})},th=()=>{const e=$.useFieldSchema(),t=ie.useNavigate(),n=e.properties?Object.values(e.properties):null,{insertAdjacent:o}=h.useDesignable(),s=h.useCollection().targetKey||"id",{filter:a,pageSize:l,fieldValue:c,resourceName:u}=e["x-component-props"],{data:d,run:m}=h.useRequest({resource:u+":list",params:{filter:a,pageSize:l||5,appends:c?[c]:[]}});return i.useEffect(()=>{m()},[a,l,c]),{data:d,fieldValue:c,changeNav:v=>{if(v.isIdentical){const p=n==null?void 0:n.find(y=>y["x-component-props"].fixedComponent);p?t(`/mobile/${p["x-uid"]}/image/${u}/${s}/${v[s]}`):o("beforeEnd",Ol(v,"fixedComponent"),{onSuccess(y){y&&t(`/mobile/${y["x-uid"]}`)}})}else{const p=n==null?void 0:n.find(y=>y.name===String(v.id));p?t(`/mobile/${p["x-uid"]}`):o("beforeEnd",Ol(v),{onSuccess(y){y&&t(`/mobile/${y["x-uid"]}`)}})}}}},Ol=(e,t)=>({type:"void",title:e.title,name:e.id,"x-component":"MMenu.Item","x-component-props":{imgItem:e,fixedComponent:t},"x-designer":"MMenu.Item.Designer",properties:{page:{type:"void","x-component":"MPage","x-designer":"MPage.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"mobilePage:addBlock"}}}}}),nh=()=>{const{fieldSchema:e,Designer:t,render:n,filterProperties:o}=oh();return f.jsxs(f.Fragment,{children:[f.jsx(t,{}),f.jsx($.RecursionField,{schema:e,onlyRenderProperties:!0,filterProperties:o}),f.jsx(i.Fragment,{children:n()})]})},oh=()=>{const e=h.useDesigner(),t=$.useFieldSchema(),{render:n}=h.useSchemaInitializerRender(t["x-initializer"],t["x-initializer-props"]);return{fieldSchema:t,Designer:e,render:n,filterProperties:r=>Ge(r["x-component"])?r===Object.values(r.parent.properties).filter(s=>Ge(s["x-component"]))[0]:!0}},Tl=e=>{const{onSelected:t}=Zo(),n=$.useFieldSchema(),o=h.useCollection(),r=h.useCollectionManager(),{dn:s}=h.useDesignable(),[a,l]=i.useState(!1),c=i.useMemo(()=>o==null?void 0:o.getField(n.fieldName),[o,n.fieldName]),u=n.parent.properties,d=h.useDesigner(),[m,g]=i.useState(n.fieldName),[v,p]=i.useState(n["x-component-props"].interface),y=Ft(v)?zo(Se.dayjs(new Date).startOf("date"))+"&"+zo(Se.dayjs(new Date).endOf("date")):"",[b,C]=i.useState(y),w=Object.values(u).map(O=>{if(Ge(O["x-component"]))return{label:O.title,value:O.fieldName,interface:O["x-component-props"].interface}}).filter(Boolean),x=O=>{let L,F=`${m}.$includes`;const N=Om(v);if(N&&(F=`${m}.$notEmpty`),Ft(v)&&(L=O.split("&").map(W=>JSON.parse(W)),F=`${m}.$dateBetween`),$e(v)){const W=n["x-component-props"].fieldNames.label;F=`${n["x-component-props"].correlation}.${W}.$includes`}t(L||[O],F,{canBeCalculatedField:N,customLabelKey:m,needSort:a})};return{collectionField:c,Designer:d,options:w,value:b,onSelectChange:O=>{const L=Object.values(u).find(F=>F.fieldName===O)["x-component-props"].interface;if($e(L)){const F=r.getCollection(o.name+"."+O).titleField;n["x-component-props"].correlation=O,n["x-component-props"].fieldNames={label:F},s.emit("patch",{schema:{"u-id":n["u-id"],"x-component-props":n["x-component-props"]}}),s.refresh()}p(L),Ft(L)?C(zo(new Date)+"&"+zo(new Date)):C(""),g(O)},onInputChange:O=>{var N,W;const L={current:null};clearTimeout(L.current);const F=(W=(N=O.target)==null?void 0:N.value)!=null?W:O;C(F),F===""&&(L.current=setTimeout(()=>{x(F)},2e3))},onButtonClick:()=>{x(b)},customLabelKey:m,fieldInterface:v,onDateClick:O=>{x(O)},needSort:a,setNeedSort:l}},rh=e=>{const{options:t,onChange:n}=e;return t.length>1?f.jsxs(de.Col,{flex:1,style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[f.jsx(de.Select,{style:{width:"100%"},options:t,defaultValue:t[0].value,onChange:n}),f.jsx(de.Divider,{type:"vertical",style:{height:"70%"}})]}):null},sh=e=>{const{options:t,value:n,onChange:o}=e,{t:r}=le();return f.jsx(de.Col,{flex:t.length>1?3:4,children:f.jsx(de.Input,{placeholder:r("Please enter search content"),value:n,onChange:o})})},ih=e=>{const{options:t,value:n,onInputChange:o}=e,r=n.split("&"),s=a=>{const l=`"${a[0]}"&"${a[1]}"`;o(l)};return f.jsx(de.Col,{flex:t.length>1?3:4,children:f.jsx(ks.DatePicker.RangePicker,{className:h.css`
|
|
256
256
|
width: 100%;
|
|
257
257
|
border: none;
|
|
258
258
|
input {
|
|
@@ -262,7 +262,7 @@
|
|
|
262
262
|
display: flex;
|
|
263
263
|
flex-direction: row;
|
|
264
264
|
align-items: center;
|
|
265
|
-
`,children:f.jsxs(et,{columns:4,style:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-start",padding:"10px",backgroundColor:"#f9f9f9",borderRadius:"5px",margin:"5px 0 0 0"},children:[f.jsx(ch,{options:o,onChange:a,customLabelKey:u}),Ft(d)?f.jsx(uh,{value:r,onChange:m,onInputChange:l,options:o}):f.jsxs(f.Fragment,{children:[f.jsx(dh,{options:o,value:r,onChange:l}),f.jsx(fh,{onClick:c})]})]})})]}):null},{displayName:"TabSearchCollapsibleInputItem"}),hh=h.withDynamicSchemaProps(e=>{const{collectionField:t,Designer:n,items:o,onSelect:r}=Dl(e);return t?f.jsxs(h.SortableItem,{children:[f.jsx(n,{}),f.jsx($o,{style:{"--title-font-size":"12px",color:"#a5a5a5"},onChange:r,children:o.map(s=>f.jsx($o.Tab,{title:s.label},s.key))})]}):null},{displayName:"TabSearchFieldItem"}),Dl=e=>{var b,C;const{list:t,onSelected:n,valueKey:o,labelKey:r,filterKey:s}=e,{t:a}=le(),l=$.useFieldSchema(),c=h.useCollection(),u=i.useMemo(()=>c==null?void 0:c.getField(l.fieldName),[c,l.fieldName]),d=h.useDesigner(),m=o||(u==null?void 0:u.targetKey)||"id",g=r||((C=(b=l["x-component-props"])==null?void 0:b.fieldNames)==null?void 0:C.label)||m,v=w=>{var S;const x=((S=w.keyPath)==null?void 0:S[0])||w;n([x],s)},p={title:g||m,key:m},y=[];return t!=null&&t.length&&t.forEach(w=>{y.push({label:w[p.title],key:w[p.key]})}),y==null||y.unshift({label:a("all"),key:"all"}),{collectionField:u,Designer:d,items:y,onSelect:v}},ph=h.withDynamicSchemaProps(e=>{const{collectionField:t,Designer:n,items:o,onSelect:r}=Dl(e);return t?f.jsxs(h.SortableItem,{children:[f.jsx(n,{}),f.jsx(de.ConfigProvider,{theme:{components:{Menu:{itemColor:"#a5a5a5",itemHoverColor:"#1d2ffff18"}}},children:f.jsx(de.Menu,{items:o,mode:"horizontal",onSelect:r,defaultSelectedKeys:["all"]})})]}):null},{displayName:"TabSearchFieldItem"}),gh=()=>{var u,d,m,g,v,p;const e=$.useFieldSchema(),t=h.useCollection(),n=((u=e["x-component-props"])==null?void 0:u.currentCollection)||(t==null?void 0:t.name),o=vh(n),r=h.useCollectionManager(),s=i.useMemo(()=>t==null?void 0:t.getField(e.fieldName),[t,e.fieldName]),{onSelected:a}=Zo(),l={list:null,valueKey:"",labelKey:"",filterKey:""};if(!t)return;l.valueKey=s!=null&&s.target?(d=r.getCollection(s.target))==null?void 0:d.getPrimaryKey():"id",l.labelKey=((g=(m=e["x-component-props"])==null?void 0:m.fieldNames)==null?void 0:g.label)||l.valueKey;const c=(v=e["x-component-props"])==null?void 0:v.interface;if(ct(c)){const y=o.find(w=>w.name===e.fieldName.split(".").findLast(Boolean)),b={select:"$in",multipleSelect:"$anyOf",checkboxGroup:"$anyOf",radioGroup:"$in"};e.fieldName;const C=((p=y==null?void 0:y.uiSchema)==null?void 0:p.enum)||[];l.valueKey="value",l.labelKey="label",l.list=C,l.filterKey=`${e.fieldName}.${b[y==null?void 0:y.interface]}`}return{list:l.list,valueKey:l.valueKey,labelKey:l.labelKey,onSelected:a,filterKey:l.filterKey}},vh=e=>{var r;const n=h.useCollectionManager().getCollection(e);return((r=n==null?void 0:n.fields)!=null?r:[]).filter(s=>ct(s.interface)&&s.uiSchema.enum)},bh=()=>{var p,y,b,C,w;const e=$.useFieldSchema(),t=h.useCollection(),n=$.useField(),o={dataSource:"main"},r=h.useDataSourceHeaders(o==null?void 0:o.dataSource),s=h.useCollectionManager(),a=i.useMemo(()=>t==null?void 0:t.getField(e.fieldName),[t,e.fieldName]),c=e["x-component-props"].currentCollection===(t==null?void 0:t.name)?a==null?void 0:a.name:e.fieldName,u=e["x-component-props"].interface,d={list:null,valueKey:"",labelKey:"",filterKey:""},{onSelected:m}=Zo();d.valueKey=a!=null&&a.target?(p=s.getCollection(a.target))==null?void 0:p.getPrimaryKey():"id",d.labelKey=((b=(y=e["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:b.label)||d.valueKey;const{data:g,run:v}=h.useRequest({headers:r,resource:a==null?void 0:a.target,action:"list",params:B({fields:[d.labelKey,d.valueKey],pageSize:200,page:1},(C=n.componentProps)==null?void 0:C.params)},{manual:!0,debounceWait:300});return i.useEffect(()=>{$e(u)&&(a!=null&&a.target)&&v()},[d.labelKey,d.valueKey,JSON.stringify(((w=n.componentProps)==null?void 0:w.params)||{}),$e(u)]),a?(d.filterKey=`${c}.${d.valueKey}.$in`,d.list=(g==null?void 0:g.data)||[],{list:d.list,valueKey:d.valueKey,labelKey:d.labelKey,onSelected:m,filterKey:d.filterKey}):{}},yh=e=>{const{collectionName:t,dataSource:n,blockType:o}=e;return{type:"void","x-decorator":"TabSearchProvider","x-decorator-props":{collection:t,dataSource:n,blockType:o},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:filterCollapse","x-component":"CardItem","x-filter-targets":[],properties:{[Se.uid()]:{type:"void","x-action":"tabSearch","x-initializer":"tabSearch:configureFields","x-component":"TabSearch"}}}},Ch=e=>{const{filterCollections:t,onlyCurrentDataSource:n,hideChildrenIfSingleCollection:o}=e,r=h.useSchemaInitializerItem(),{insert:s}=h.useSchemaInitializer(),a=c=>me(this,[c],function*({item:l}){const u=yh({dataSource:l.dataSource,collectionName:l.collectionName||l.name,blockType:"filter"});s(u)});return f.jsx(h.DataBlockInitializer,ae(B({},r),{onlyCurrentDataSource:n,icon:"tab-search",componentType:"TabSearch",filter:t,hideChildrenIfSingleCollection:o,onCreateBlockSchema:a}))},gs=e=>{var l,c;const{field:t,itemComponent:n,label:o,itemUseProps:r,collection:s,type:a}=e;return{name:t.key,title:(l=t.uiSchema)==null?void 0:l.title,Component:"TabSearchFieldSchemaInitializerGadget",schema:{name:t.name+a,fieldName:t.name,title:(c=t.uiSchema)==null?void 0:c.title,type:"void","x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-component":n,"x-use-component-props":r,"x-component-props":{fieldNames:{label:o},interface:t.interface,collectionName:s==null?void 0:s.name,correlation:t.name},properties:{}}}},xh={TabSearchCollapsibleInputItem:"TabSearchCollapsibleInputMItem",useTabSearchFieldItemProps:"useTabSearchFieldItemRelatedProps",TabSearchFieldItem:"TabSearchFieldMItem"};function Al(e){return xh[e]}const Sh=()=>{const e=Ll("textField"),t=Ll("choiceField"),n=[{type:"itemGroup",title:qe("Display association Textfields",!1),children:e},{type:"itemGroup",title:qe("Display association Choicefields",!1),children:t}];return f.jsx(h.SchemaInitializerChildren,{children:n})};function Ll(e){const t=h.useCollection(),{name:n,allFields:o}=t||{},{getCollectionFields:r}=wh();h.useIsMobile();const s=h.useCollectionManager(),a=o==null?void 0:o.filter(({interface:d})=>$e(d)),l={collectionName:n,getCollectionFields:r,processedCollections:[],collectionManager:s};let c=[];return e==="textField"?c=a.map(d=>{var v;const m=$e(d.interface)?(v=s.getCollection(`${n}.${d.name}`))==null?void 0:v.titleField:d.name;return Bl(ae(B({},l),{field:d,label:m,schemaName:d.name}))}):e==="choiceField"&&(c=a.map(d=>{var v;const m=((v=s.getCollection(d.target))==null?void 0:v.getPrimaryKey())||"id";return zl(ae(B({},l),{field:d,label:m,schemaName:d.name}))})),c.filter(Boolean)}function Bl(e,t){var g,v,p,y,b;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c}=e,{interface:u}=n,d=ct(u),m=$e(u);if(["m2o","obo"].includes(u)){if(l.includes(n.target))return null;const C=a(n.target);return{type:"subMenu",name:(g=n.uiSchema)==null?void 0:g.title,title:(v=n.uiSchema)==null?void 0:v.title,children:C.toSorted((w,x)=>+Object.hasOwn(w,"target")-+Object.hasOwn(x,"target")).map(w=>{var S;const x=$e(n.interface)?(S=c.getCollection(`${name}.${n.name}`))==null?void 0:S.titleField:n.name;return Bl({field:w,label:x,schemaName:`${r}.${w.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c})}).filter(Boolean)}}return h.isAssocField(n)||!Ml(u)&&!$e(u)&&!Ft(u)?null:{name:((p=n.uiSchema)==null?void 0:p.title)||n.name,title:((y=n.uiSchema)==null?void 0:y.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(b=n.uiSchema)==null?void 0:b.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":Al("TabSearchCollapsibleInputItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name},"x-use-component-props":Vl({useTabSearchFieldItemProps:d,useTabSearchFieldItemRelatedProps:m})}}}function zl(e,t){var v,p,y,b,C;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c,currentCollection:u}=e,{interface:d}=n,m=ct(d),g=$e(d);if(["m2o","obo"].includes(d)&&!n.choiceTag){if(l.includes(n.target))return null;const w=a(n.target);return{type:"subMenu",name:(v=n.uiSchema)==null?void 0:v.title,title:(p=n.uiSchema)==null?void 0:p.title,children:w.reduce((x,S)=>(Object.hasOwn(S,"target")&&["m2o","obo"].includes(S.interface)&&x.push(ae(B({},S),{choiceTag:!0})),[...x,S]),[]).toSorted((x,S)=>+Object.hasOwn(x,"target")*2-+Object.hasOwn(x,"choiceTag")-+Object.hasOwn(S,"target")*2-+Object.hasOwn(S,"choiceTag")).map(x=>{var k;const S=((k=c.getCollection(n.target))==null?void 0:k.getPrimaryKey())||"id";return zl({field:x,label:S,schemaName:`${r}.${x.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c,currentCollection:n.target})}).filter(Boolean)}}return h.isAssocField(n)&&!n.choiceTag||!ct(d)&&!$e(d)?null:{type:"item",name:((y=n.uiSchema)==null?void 0:y.title)||n.name,title:((b=n.uiSchema)==null?void 0:b.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(C=n.uiSchema)==null?void 0:C.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":Al("TabSearchFieldItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name,currentCollection:u},"x-use-component-props":Vl({useTabSearchFieldItemProps:m,useTabSearchFieldItemRelatedProps:g})}}}function wh(e){const t=h.useDataSourceManager(),n=h.useCollectionManager(),o=h.useDataSource(),r=(o==null?void 0:o.key)||void 0,s=i.useCallback(l=>{var c;return n&&!l?n:(c=t==null?void 0:t.getDataSource(l||r))==null?void 0:c.collectionManager},[n,t,r]);return{getCollectionFields:i.useCallback((l,c)=>{var d,m;if(!l)return[];const u=(d=s(c))==null?void 0:d.getCollection(l);return((m=u==null?void 0:u.getAllFields)==null?void 0:m.call(u))||(u==null?void 0:u.getFields())||[]},[t,s])}}function Vl(e){const t=Object.entries(e).find(([,o])=>o),[n]=t||[];return n}const kh=new h.SchemaInitializer({name:"tabSearch:configureFields",style:{marginTop:16},icon:"SettingOutlined",title:qe("Configure fields"),items:[{name:"textFields",type:"itemGroup",title:qe("Text fields"),useChildren:Eh},{name:"choicesFields",type:"itemGroup",title:qe("Choices fields"),useChildren:Ih},{name:"divider",type:"divider"},{name:"associationFields",Component:Sh},{name:"divider",type:"divider"},{title:qe("Add text",!1),Component:"MarkdownFormItemInitializer",name:"addText"}]});function Eh(){const e=h.useCollection(),t=e.fields,n=h.useCollectionManager(),r=h.useIsMobile()?"TabSearchCollapsibleInputMItem":"TabSearchCollapsibleInputItem";return t.map(a=>{if(!a.isForeignKey&&(Ml(a.interface)||$e(a.interface)||Ft(a.interface))){const l=$e(a.interface)?n.getCollection(`${e.name}.${a.name}`).titleField:a.name;return gs({field:a,itemComponent:r,label:l,collection:e,type:"text"})}}).filter(Boolean)}function Ih(){const t=h.useCollection().fields,n=h.useCollectionManager(),r=h.useIsMobile()?"TabSearchFieldMItem":"TabSearchFieldItem";return t.map(a=>{var c;const l=((c=n.getCollection(a.target))==null?void 0:c.getPrimaryKey())||"id";if(ct(a.interface))return gs({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemProps",type:"choices"});if($e(a.interface))return gs({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemRelatedProps",type:"choices"})}).filter(Boolean)}const $h=()=>{const e=h.useSchemaInitializerItem(),{schema:t}=e,{exists:n,remove:o}=h.useCurrentSchema(t.name,"name",e.find,e.remove),{insert:r}=h.useSchemaInitializer(),s=()=>{var l;if(n)return o();const a=$.merge(t||{},e.schema||{});(l=e==null?void 0:e.schemaInitialize)==null||l.call(e,a),r(a)};return f.jsx(h.SchemaInitializerSwitch,{checked:n,title:e.title,onClick:s})},_h=e=>f.jsx(h.DataBlockProvider,{collection:e.collection,children:e.children}),Ph=new h.SchemaSettings({name:"fieldSettings:TabSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t:e}=le();return{title:e("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var l,c;const e=$.useFieldSchema(),{form:t}=h.useFormBlockContext(),n=$.useField(),o=h.useCollectionManager(),s=h.useCollection().getField(e.fieldName)||o.getCollectionField(e["x-collection-field"]),{dn:a}=h.useDesignable();return{collectionName:s==null?void 0:s.target,defaultFilter:((c=(l=e==null?void 0:e["x-component-props"])==null?void 0:l.params)==null?void 0:c.filter)||{},form:t,onSubmit:({filter:u})=>{var d;Ae.set(n.componentProps,"params",ae(B({},(d=n.componentProps)==null?void 0:d.params),{filter:u})),e["x-component-props"].params=n.componentProps.params,a.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"]}})}}},useVisible(){const e=$.useFieldSchema();return!Ge(e["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var y,b;const e=$.useFieldSchema(),{t}=le(),n=h.useCollectionManager(),o=h.useCollection(),r=e["x-component-props"]||{},{collectionName:s,currentCollection:a,correlation:l}=r,c=a||s||o.name,u=o.getField(e.fieldName)||n.getCollectionField(e["x-collection-field"])||n.getCollection(c+"."+l),d=h.useCompile(),{dn:m}=h.useDesignable(),v=(u!=null&&u.target?n.getCollectionFields(u==null?void 0:u.target):[]).filter(C=>!(C!=null&&C.target)&&C.type!=="boolean").map(C=>{var w;return{value:C==null?void 0:C.name,label:d((w=C==null?void 0:C.uiSchema)==null?void 0:w.title)||(C==null?void 0:C.name)}}),p=C=>{var S,k,I;const w={"x-uid":e["x-uid"]},x=ae(B(B({},(k=(S=u==null?void 0:u.uiSchema)==null?void 0:S["x-component-props"])==null?void 0:k.fieldNames),(I=e["x-component-props"])==null?void 0:I.fieldNames),{label:C});e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=x,w["x-component-props"]=e["x-component-props"],m.emit("patch",{schema:w}),m.refresh()};return{key:"title-field",title:t("Title field"),options:v,value:(b=(y=e["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:b.label,onChange:p}},useVisible(){var t;const e=$.useFieldSchema();return Ge(e["x-component"])||((t=e["x-component-props"])==null?void 0:t.correlation)}}]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t:e}=le(),t=$.useFieldSchema(),{dn:n}=h.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:e("Delete field")},breakRemoveOn:o=>(Ge(t["x-component"])&&(Object.values(o.properties).forEach(r=>{Ge(r["x-component"])&&r.name!==t.name&&delete o.properties[r.name]}),n.emit("patch",{schema:o})),o["x-component"]==="TabSearch")}}}]}),Nt=$.connect(os,$.mapProps(e=>ae(B({placeholder:"请输入内容",clearable:!0},e),{style:B({"--font-size":"12px"},e==null?void 0:e.style)})),$.mapReadPretty(e=>f.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:e.value}))),Mh=$.connect(Cl,$.mapProps(e=>ae(B({},e),{placeholder:"请输入内容",clearable:!0,style:B({"--font-size":"12px"},e==null?void 0:e.style)})),$.mapReadPretty(e=>f.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:e.value})));Nt.TextArea=Mh;const Fh={red:"#fc9792",magenta:"#ffa3cc",volcano:"#ffb38b",orange:"#ffcf86",gold:"#ffe184",lime:"#e7ff84",green:"#aee884",cyan:"#7ce5d9",blue:"#86c3ff",geekblue:"#a3bfff",purple:"#cda3f6",default:"#d4d4d4"},vs=e=>Fh[e],bs=$.connect(Xr,$.mapProps(e=>B({},e)));bs.Group=$.connect(e=>{const t=h.useCollectionField(),n=(t==null?void 0:t.uiSchema.enum)||[],o=e.value||[];return f.jsx(Xr.Group,{value:o,children:n.map((r,s)=>f.jsx(Xr,ae(B({value:r.value,style:{"--icon-size":"12px","--font-size":"12px"},onChange:a=>{if(a)o.push(r.value);else{const l=o.findIndex(c=>{var u;return((u=r.value)==null?void 0:u.toString())===c});o.splice(l,1)}e.onChange(o)}},e),{children:r.label}),s))})},$.mapProps((e,t)=>B({},e)),$.mapReadPretty(e=>{if(!$.isValid(e.value))return f.jsx("div",{});const{value:t}=e,n=$.useField(),o=h.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return f.jsx("div",{children:r.filter(s=>s.value===t).map((s,a)=>f.jsx(as,{color:vs(s.color),children:s.label},a))})}));const Zl=$.connect(e=>{const{t}=h.useTranslation(),{value:n,onChange:o}=e,[r,s]=i.useState(!1),[a,l]=i.useState(n),c=a?Se.dayjs(a).format("YYYY-MM-DD"):t("please enter the date"),u=()=>s(!0),d=()=>s(!1),m=g=>{l(g),o(g),s(!1)};return f.jsxs(f.Fragment,{children:[f.jsx(st,{onClick:u,children:c}),f.jsx(ff,{visible:r,value:a,onClose:d,onConfirm:m})]})},$.mapProps(e=>B({},e)),$.mapReadPretty(e=>{const t=B({},e);return t.value=e.value?Se.dayjs(e.value).format("YYYY-MM-DD"):"",f.jsx("div",{children:t.value})})),Nh=$.connect(e=>{const[t,n]=i.useState([]),[o,r]=i.useState(!1),s=e.value||[];i.useEffect(()=>{if(!o&&e.value){const l=e.value.map(c=>({url:c.url,key:c.id,thumbnailUrl:c.url}));n(l)}},[e.value]);const a=h.useAPIClient();return f.jsx(dl,{value:t,upload:l=>me(this,null,function*(){const{name:c}=l;if(Oh(c)){const d=new FormData;d.append("file",l);let m;return yield a.request({url:e.action,method:"post",data:d}).then(g=>{var v;m=(v=g==null?void 0:g.data)==null?void 0:v.data,s.push(m)}).catch(()=>{}),{url:m==null?void 0:m.url,key:m==null?void 0:m.id,thumbnailUrl:m==null?void 0:m.url}}}),onChange:l=>{n(l),r(!0),e.onChange(s)},onDelete:l=>{const c=s.findIndex(u=>u.id===l.key);s.splice(c,1),e.onChange(s)}})},$.mapProps(e=>B({},e)),$.mapReadPretty(e=>{const{showCount:t,value:n=[]}=e,o=n.slice(0,t);return f.jsx(dl,ae(B({},e),{value:o,disableUpload:!0,showUpload:!1,upload:()=>me(this,null,function*(){return{url:""}})}))})),Oh=e=>/\.(png|jpg|jpeg|gif|webp)$/i.test(e),ys=$.connect(rs,$.mapProps({value:"checked",onInput:"onChange"}));ys.Group=$.connect(e=>{const t=h.useCollectionField(),n=(t==null?void 0:t.uiSchema.enum)||[];return f.jsx(rs.Group,ae(B({},e),{children:n.map((o,r)=>f.jsx(rs,{value:o.value,style:{"--font-size":"12px","--icon-size":"18px",marginLeft:"10px"},children:o.label},r))}))},$.mapProps((e,t)=>(i.useEffect(()=>{var o;const n=(o=t.dataSource)==null?void 0:o.find(r=>r.value===e.value);n&&t.setValue(n.value)},[e.value,t.dataSource]),B({},e))),$.mapReadPretty(e=>{if(!$.isValid(e.value))return f.jsx("div",{});const{value:t}=e,n=$.useField(),o=h.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return f.jsx("div",{children:r.filter(s=>s.value===t).map((s,a)=>f.jsx(as,{color:vs(s.color),children:s.label},a))})}));const Th=h.createStyles(({css:e})=>({PopupStyle:e`
|
|
265
|
+
`,children:f.jsxs(et,{columns:4,style:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-start",padding:"10px",backgroundColor:"#f9f9f9",borderRadius:"5px",margin:"5px 0 0 0"},children:[f.jsx(ch,{options:o,onChange:a,customLabelKey:u}),Ft(d)?f.jsx(uh,{value:r,onChange:m,onInputChange:l,options:o}):f.jsxs(f.Fragment,{children:[f.jsx(dh,{options:o,value:r,onChange:l}),f.jsx(fh,{onClick:c})]})]})})]}):null},{displayName:"TabSearchCollapsibleInputItem"}),hh=h.withDynamicSchemaProps(e=>{const{collectionField:t,Designer:n,items:o,onSelect:r}=Dl(e);return t?f.jsxs(h.SortableItem,{children:[f.jsx(n,{}),f.jsx($o,{style:{"--title-font-size":"12px",color:"#a5a5a5"},onChange:r,children:o.map(s=>f.jsx($o.Tab,{title:s.label},s.key))})]}):null},{displayName:"TabSearchFieldItem"}),Dl=e=>{var b,C;const{list:t,onSelected:n,valueKey:o,labelKey:r,filterKey:s}=e,{t:a}=le(),l=$.useFieldSchema(),c=h.useCollection(),u=i.useMemo(()=>c==null?void 0:c.getField(l.fieldName),[c,l.fieldName]),d=h.useDesigner(),m=o||(u==null?void 0:u.targetKey)||"id",g=r||((C=(b=l["x-component-props"])==null?void 0:b.fieldNames)==null?void 0:C.label)||m,v=w=>{var S;const x=((S=w.keyPath)==null?void 0:S[0])||w;n([x],s)},p={title:g||m,key:m},y=[];return t!=null&&t.length&&t.forEach(w=>{y.push({label:w[p.title],key:w[p.key]})}),y==null||y.unshift({label:a("all"),key:"all"}),{collectionField:u,Designer:d,items:y,onSelect:v}},ph=h.withDynamicSchemaProps(e=>{const{collectionField:t,Designer:n,items:o,onSelect:r}=Dl(e);return t?f.jsxs(h.SortableItem,{children:[f.jsx(n,{}),f.jsx(de.ConfigProvider,{theme:{components:{Menu:{itemColor:"#a5a5a5",itemHoverColor:"#1d2ffff18"}}},children:f.jsx(de.Menu,{items:o,mode:"horizontal",onSelect:r,defaultSelectedKeys:["all"]})})]}):null},{displayName:"TabSearchFieldItem"}),gh=()=>{var u,d,m,g,v,p;const e=$.useFieldSchema(),t=h.useCollection(),n=((u=e["x-component-props"])==null?void 0:u.currentCollection)||(t==null?void 0:t.name),o=vh(n),r=h.useCollectionManager(),s=i.useMemo(()=>t==null?void 0:t.getField(e.fieldName),[t,e.fieldName]),{onSelected:a}=Zo(),l={list:null,valueKey:"",labelKey:"",filterKey:""};if(!t)return;l.valueKey=s!=null&&s.target?(d=r.getCollection(s.target))==null?void 0:d.getPrimaryKey():"id",l.labelKey=((g=(m=e["x-component-props"])==null?void 0:m.fieldNames)==null?void 0:g.label)||l.valueKey;const c=(v=e["x-component-props"])==null?void 0:v.interface;if(ct(c)){const y=o.find(w=>w.name===e.fieldName.split(".").findLast(Boolean)),b={select:"$in",multipleSelect:"$anyOf",checkboxGroup:"$anyOf",radioGroup:"$in"};e.fieldName;const C=((p=y==null?void 0:y.uiSchema)==null?void 0:p.enum)||[];l.valueKey="value",l.labelKey="label",l.list=C,l.filterKey=`${e.fieldName}.${b[y==null?void 0:y.interface]}`}return{list:l.list,valueKey:l.valueKey,labelKey:l.labelKey,onSelected:a,filterKey:l.filterKey}},vh=e=>{var r;const n=h.useCollectionManager().getCollection(e);return((r=n==null?void 0:n.fields)!=null?r:[]).filter(s=>ct(s.interface)&&s.uiSchema.enum)},bh=()=>{var p,y,b,C,w;const e=$.useFieldSchema(),t=h.useCollection(),n=$.useField(),o={dataSource:"main"},r=h.useDataSourceHeaders(o==null?void 0:o.dataSource),s=h.useCollectionManager(),a=i.useMemo(()=>t==null?void 0:t.getField(e.fieldName),[t,e.fieldName]),c=e["x-component-props"].currentCollection===(t==null?void 0:t.name)?a==null?void 0:a.name:e.fieldName,u=e["x-component-props"].interface,d={list:null,valueKey:"",labelKey:"",filterKey:""},{onSelected:m}=Zo();d.valueKey=a!=null&&a.target?(p=s.getCollection(a.target))==null?void 0:p.getPrimaryKey():"id",d.labelKey=((b=(y=e["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:b.label)||d.valueKey;const{data:g,run:v}=h.useRequest({headers:r,resource:a==null?void 0:a.target,action:"list",params:B({fields:[d.labelKey,d.valueKey],pageSize:200,page:1},(C=n.componentProps)==null?void 0:C.params)},{manual:!0,debounceWait:300});return i.useEffect(()=>{$e(u)&&(a!=null&&a.target)&&v()},[d.labelKey,d.valueKey,JSON.stringify(((w=n.componentProps)==null?void 0:w.params)||{}),$e(u)]),a?(d.filterKey=`${c}.${d.valueKey}.$in`,d.list=(g==null?void 0:g.data)||[],{list:d.list,valueKey:d.valueKey,labelKey:d.labelKey,onSelected:m,filterKey:d.filterKey}):{}},yh=e=>{const{collectionName:t,dataSource:n,blockType:o}=e;return{type:"void","x-decorator":"TabSearchProvider","x-decorator-props":{collection:t,dataSource:n,blockType:o},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:filterCollapse","x-component":"CardItem","x-filter-targets":[],properties:{[Se.uid()]:{type:"void","x-action":"tabSearch","x-initializer":"tabSearch:configureFields","x-component":"TabSearch"}}}},Ch=e=>{const{filterCollections:t,onlyCurrentDataSource:n,hideChildrenIfSingleCollection:o}=e,r=h.useSchemaInitializerItem(),{insert:s}=h.useSchemaInitializer(),a=c=>me(this,[c],function*({item:l}){const u=yh({dataSource:l.dataSource,collectionName:l.collectionName||l.name,blockType:"filter"});s(u)});return f.jsx(h.DataBlockInitializer,ae(B({},r),{onlyCurrentDataSource:n,icon:"tab-search",componentType:"TabSearch",filter:t,hideChildrenIfSingleCollection:o,onCreateBlockSchema:a}))},gs=e=>{var l,c;const{field:t,itemComponent:n,label:o,itemUseProps:r,collection:s,type:a}=e;return{name:t.key,title:(l=t.uiSchema)==null?void 0:l.title,Component:"TabSearchFieldSchemaInitializerGadget",schema:{name:t.name+a,fieldName:t.name,title:(c=t.uiSchema)==null?void 0:c.title,type:"void","x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-component":n,"x-use-component-props":r,"x-component-props":{fieldNames:{label:o},interface:t.interface,collectionName:s==null?void 0:s.name,correlation:t.name},properties:{}}}},xh={TabSearchCollapsibleInputItem:"TabSearchCollapsibleInputMItem",useTabSearchFieldItemProps:"useTabSearchFieldItemRelatedProps",TabSearchFieldItem:"TabSearchFieldMItem"};function Al(e){return xh[e]}const Sh=()=>{const e=Ll("textField"),t=Ll("choiceField"),n=[{type:"itemGroup",title:qe("Display association Textfields",!1),children:e},{type:"itemGroup",title:qe("Display association Choicefields",!1),children:t}];return f.jsx(h.SchemaInitializerChildren,{children:n})};function Ll(e){const t=h.useCollection(),{name:n,allFields:o}=t||{},{getCollectionFields:r}=wh();h.useIsMobile();const s=h.useCollectionManager(),a=o==null?void 0:o.filter(({interface:d})=>$e(d)),l={collectionName:n,getCollectionFields:r,processedCollections:[],collectionManager:s};let c=[];return e==="textField"?c=a.map(d=>{var v;const m=$e(d.interface)?(v=s.getCollection(`${n}.${d.name}`))==null?void 0:v.titleField:d.name;return Bl(ae(B({},l),{field:d,label:m,schemaName:d.name}))}):e==="choiceField"&&(c=a.map(d=>{var v;const m=((v=s.getCollection(d.target))==null?void 0:v.getPrimaryKey())||"id";return Vl(ae(B({},l),{field:d,label:m,schemaName:d.name}))})),c.filter(Boolean)}function Bl(e,t){var g,v,p,y,b;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c}=e,{interface:u}=n,d=ct(u),m=$e(u);if(["m2o","obo"].includes(u)){if(l.includes(n.target))return null;const C=a(n.target);return{type:"subMenu",name:(g=n.uiSchema)==null?void 0:g.title,title:(v=n.uiSchema)==null?void 0:v.title,children:C.toSorted((w,x)=>+Object.hasOwn(w,"target")-+Object.hasOwn(x,"target")).map(w=>{var S;const x=$e(n.interface)?(S=c.getCollection(`${name}.${n.name}`))==null?void 0:S.titleField:n.name;return Bl({field:w,label:x,schemaName:`${r}.${w.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c})}).filter(Boolean)}}return h.isAssocField(n)||!Ml(u)&&!$e(u)&&!Ft(u)?null:{name:((p=n.uiSchema)==null?void 0:p.title)||n.name,title:((y=n.uiSchema)==null?void 0:y.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(b=n.uiSchema)==null?void 0:b.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":Al("TabSearchCollapsibleInputItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name},"x-use-component-props":zl({useTabSearchFieldItemProps:d,useTabSearchFieldItemRelatedProps:m})}}}function Vl(e,t){var v,p,y,b,C;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c,currentCollection:u}=e,{interface:d}=n,m=ct(d),g=$e(d);if(["m2o","obo"].includes(d)&&!n.choiceTag){if(l.includes(n.target))return null;const w=a(n.target);return{type:"subMenu",name:(v=n.uiSchema)==null?void 0:v.title,title:(p=n.uiSchema)==null?void 0:p.title,children:w.reduce((x,S)=>(Object.hasOwn(S,"target")&&["m2o","obo"].includes(S.interface)&&x.push(ae(B({},S),{choiceTag:!0})),[...x,S]),[]).toSorted((x,S)=>+Object.hasOwn(x,"target")*2-+Object.hasOwn(x,"choiceTag")-+Object.hasOwn(S,"target")*2-+Object.hasOwn(S,"choiceTag")).map(x=>{var k;const S=((k=c.getCollection(n.target))==null?void 0:k.getPrimaryKey())||"id";return Vl({field:x,label:S,schemaName:`${r}.${x.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c,currentCollection:n.target})}).filter(Boolean)}}return h.isAssocField(n)&&!n.choiceTag||!ct(d)&&!$e(d)?null:{type:"item",name:((y=n.uiSchema)==null?void 0:y.title)||n.name,title:((b=n.uiSchema)==null?void 0:b.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(C=n.uiSchema)==null?void 0:C.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":Al("TabSearchFieldItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name,currentCollection:u},"x-use-component-props":zl({useTabSearchFieldItemProps:m,useTabSearchFieldItemRelatedProps:g})}}}function wh(e){const t=h.useDataSourceManager(),n=h.useCollectionManager(),o=h.useDataSource(),r=(o==null?void 0:o.key)||void 0,s=i.useCallback(l=>{var c;return n&&!l?n:(c=t==null?void 0:t.getDataSource(l||r))==null?void 0:c.collectionManager},[n,t,r]);return{getCollectionFields:i.useCallback((l,c)=>{var d,m;if(!l)return[];const u=(d=s(c))==null?void 0:d.getCollection(l);return((m=u==null?void 0:u.getAllFields)==null?void 0:m.call(u))||(u==null?void 0:u.getFields())||[]},[t,s])}}function zl(e){const t=Object.entries(e).find(([,o])=>o),[n]=t||[];return n}const kh=new h.SchemaInitializer({name:"tabSearch:configureFields",style:{marginTop:16},icon:"SettingOutlined",title:qe("Configure fields"),items:[{name:"textFields",type:"itemGroup",title:qe("Text fields"),useChildren:Eh},{name:"choicesFields",type:"itemGroup",title:qe("Choices fields"),useChildren:Ih},{name:"divider",type:"divider"},{name:"associationFields",Component:Sh},{name:"divider",type:"divider"},{title:qe("Add text",!1),Component:"MarkdownFormItemInitializer",name:"addText"}]});function Eh(){const e=h.useCollection(),t=e.fields,n=h.useCollectionManager(),r=h.useIsMobile()?"TabSearchCollapsibleInputMItem":"TabSearchCollapsibleInputItem";return t.map(a=>{if(!a.isForeignKey&&(Ml(a.interface)||$e(a.interface)||Ft(a.interface))){const l=$e(a.interface)?n.getCollection(`${e.name}.${a.name}`).titleField:a.name;return gs({field:a,itemComponent:r,label:l,collection:e,type:"text"})}}).filter(Boolean)}function Ih(){const t=h.useCollection().fields,n=h.useCollectionManager(),r=h.useIsMobile()?"TabSearchFieldMItem":"TabSearchFieldItem";return t.map(a=>{var c;const l=((c=n.getCollection(a.target))==null?void 0:c.getPrimaryKey())||"id";if(ct(a.interface))return gs({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemProps",type:"choices"});if($e(a.interface))return gs({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemRelatedProps",type:"choices"})}).filter(Boolean)}const $h=()=>{const e=h.useSchemaInitializerItem(),{schema:t}=e,{exists:n,remove:o}=h.useCurrentSchema(t.name,"name",e.find,e.remove),{insert:r}=h.useSchemaInitializer(),s=()=>{var l;if(n)return o();const a=$.merge(t||{},e.schema||{});(l=e==null?void 0:e.schemaInitialize)==null||l.call(e,a),r(a)};return f.jsx(h.SchemaInitializerSwitch,{checked:n,title:e.title,onClick:s})},_h=e=>f.jsx(h.DataBlockProvider,{collection:e.collection,children:e.children}),Ph=new h.SchemaSettings({name:"fieldSettings:TabSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t:e}=le();return{title:e("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var l,c;const e=$.useFieldSchema(),{form:t}=h.useFormBlockContext(),n=$.useField(),o=h.useCollectionManager(),s=h.useCollection().getField(e.fieldName)||o.getCollectionField(e["x-collection-field"]),{dn:a}=h.useDesignable();return{collectionName:s==null?void 0:s.target,defaultFilter:((c=(l=e==null?void 0:e["x-component-props"])==null?void 0:l.params)==null?void 0:c.filter)||{},form:t,onSubmit:({filter:u})=>{var d;Ae.set(n.componentProps,"params",ae(B({},(d=n.componentProps)==null?void 0:d.params),{filter:u})),e["x-component-props"].params=n.componentProps.params,a.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"]}})}}},useVisible(){const e=$.useFieldSchema();return!Ge(e["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var y,b;const e=$.useFieldSchema(),{t}=le(),n=h.useCollectionManager(),o=h.useCollection(),r=e["x-component-props"]||{},{collectionName:s,currentCollection:a,correlation:l}=r,c=a||s||o.name,u=o.getField(e.fieldName)||n.getCollectionField(e["x-collection-field"])||n.getCollection(c+"."+l),d=h.useCompile(),{dn:m}=h.useDesignable(),v=(u!=null&&u.target?n.getCollectionFields(u==null?void 0:u.target):[]).filter(C=>!(C!=null&&C.target)&&C.type!=="boolean").map(C=>{var w;return{value:C==null?void 0:C.name,label:d((w=C==null?void 0:C.uiSchema)==null?void 0:w.title)||(C==null?void 0:C.name)}}),p=C=>{var S,k,I;const w={"x-uid":e["x-uid"]},x=ae(B(B({},(k=(S=u==null?void 0:u.uiSchema)==null?void 0:S["x-component-props"])==null?void 0:k.fieldNames),(I=e["x-component-props"])==null?void 0:I.fieldNames),{label:C});e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=x,w["x-component-props"]=e["x-component-props"],m.emit("patch",{schema:w}),m.refresh()};return{key:"title-field",title:t("Title field"),options:v,value:(b=(y=e["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:b.label,onChange:p}},useVisible(){var t;const e=$.useFieldSchema();return Ge(e["x-component"])||((t=e["x-component-props"])==null?void 0:t.correlation)}}]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t:e}=le(),t=$.useFieldSchema(),{dn:n}=h.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:e("Delete field")},breakRemoveOn:o=>(Ge(t["x-component"])&&(Object.values(o.properties).forEach(r=>{Ge(r["x-component"])&&r.name!==t.name&&delete o.properties[r.name]}),n.emit("patch",{schema:o})),o["x-component"]==="TabSearch")}}}]}),Nt=$.connect(os,$.mapProps(e=>ae(B({placeholder:"请输入内容",clearable:!0},e),{style:B({"--font-size":"12px"},e==null?void 0:e.style)})),$.mapReadPretty(e=>f.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:e.value}))),Mh=$.connect(Cl,$.mapProps(e=>ae(B({},e),{placeholder:"请输入内容",clearable:!0,style:B({"--font-size":"12px"},e==null?void 0:e.style)})),$.mapReadPretty(e=>f.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:e.value})));Nt.TextArea=Mh;const Fh={red:"#fc9792",magenta:"#ffa3cc",volcano:"#ffb38b",orange:"#ffcf86",gold:"#ffe184",lime:"#e7ff84",green:"#aee884",cyan:"#7ce5d9",blue:"#86c3ff",geekblue:"#a3bfff",purple:"#cda3f6",default:"#d4d4d4"},vs=e=>Fh[e],bs=$.connect(Xr,$.mapProps(e=>B({},e)));bs.Group=$.connect(e=>{const t=h.useCollectionField(),n=(t==null?void 0:t.uiSchema.enum)||[],o=e.value||[];return f.jsx(Xr.Group,{value:o,children:n.map((r,s)=>f.jsx(Xr,ae(B({value:r.value,style:{"--icon-size":"12px","--font-size":"12px"},onChange:a=>{if(a)o.push(r.value);else{const l=o.findIndex(c=>{var u;return((u=r.value)==null?void 0:u.toString())===c});o.splice(l,1)}e.onChange(o)}},e),{children:r.label}),s))})},$.mapProps((e,t)=>B({},e)),$.mapReadPretty(e=>{if(!$.isValid(e.value))return f.jsx("div",{});const{value:t}=e,n=$.useField(),o=h.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return f.jsx("div",{children:r.filter(s=>s.value===t).map((s,a)=>f.jsx(as,{color:vs(s.color),children:s.label},a))})}));const Zl=$.connect(e=>{const{t}=h.useTranslation(),{value:n,onChange:o}=e,[r,s]=i.useState(!1),[a,l]=i.useState(n),c=a?Se.dayjs(a).format("YYYY-MM-DD"):t("please enter the date"),u=()=>s(!0),d=()=>s(!1),m=g=>{l(g),o(g),s(!1)};return f.jsxs(f.Fragment,{children:[f.jsx(st,{onClick:u,children:c}),f.jsx(ff,{visible:r,value:a,onClose:d,onConfirm:m})]})},$.mapProps(e=>B({},e)),$.mapReadPretty(e=>{const t=B({},e);return t.value=e.value?Se.dayjs(e.value).format("YYYY-MM-DD"):"",f.jsx("div",{children:t.value})})),Nh=$.connect(e=>{const[t,n]=i.useState([]),[o,r]=i.useState(!1),s=e.value||[];i.useEffect(()=>{if(!o&&e.value){const l=e.value.map(c=>({url:c.url,key:c.id,thumbnailUrl:c.url}));n(l)}},[e.value]);const a=h.useAPIClient();return f.jsx(dl,{value:t,upload:l=>me(this,null,function*(){const{name:c}=l;if(Oh(c)){const d=new FormData;d.append("file",l);let m;return yield a.request({url:e.action,method:"post",data:d}).then(g=>{var v;m=(v=g==null?void 0:g.data)==null?void 0:v.data,s.push(m)}).catch(()=>{}),{url:m==null?void 0:m.url,key:m==null?void 0:m.id,thumbnailUrl:m==null?void 0:m.url}}}),onChange:l=>{n(l),r(!0),e.onChange(s)},onDelete:l=>{const c=s.findIndex(u=>u.id===l.key);s.splice(c,1),e.onChange(s)}})},$.mapProps(e=>B({},e)),$.mapReadPretty(e=>{const{showCount:t,value:n=[]}=e,o=n.slice(0,t);return f.jsx(dl,ae(B({},e),{value:o,disableUpload:!0,showUpload:!1,upload:()=>me(this,null,function*(){return{url:""}})}))})),Oh=e=>/\.(png|jpg|jpeg|gif|webp)$/i.test(e),ys=$.connect(rs,$.mapProps({value:"checked",onInput:"onChange"}));ys.Group=$.connect(e=>{const t=h.useCollectionField(),n=(t==null?void 0:t.uiSchema.enum)||[];return f.jsx(rs.Group,ae(B({},e),{children:n.map((o,r)=>f.jsx(rs,{value:o.value,style:{"--font-size":"12px","--icon-size":"18px",marginLeft:"10px"},children:o.label},r))}))},$.mapProps((e,t)=>(i.useEffect(()=>{var o;const n=(o=t.dataSource)==null?void 0:o.find(r=>r.value===e.value);n&&t.setValue(n.value)},[e.value,t.dataSource]),B({},e))),$.mapReadPretty(e=>{if(!$.isValid(e.value))return f.jsx("div",{});const{value:t}=e,n=$.useField(),o=h.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return f.jsx("div",{children:r.filter(s=>s.value===t).map((s,a)=>f.jsx(as,{color:vs(s.color),children:s.label},a))})}));const Th=h.createStyles(({css:e})=>({PopupStyle:e`
|
|
266
266
|
.adm-popup-body {
|
|
267
267
|
padding: 10px;
|
|
268
268
|
.adm-space {
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
height: 80vh;
|
|
288
288
|
overflow: auto;
|
|
289
289
|
}
|
|
290
|
-
`,children:f.jsx(h.MobileProvider,{children:f.jsx(h.ActionContextProvider,{visible:n,setVisible:o,children:f.jsx($.RecursionField,{schema:r,onlyRenderProperties:!0})})})})]})},{displayName:"CreateRecordAction"}),Ah=$.observer(e=>{const{value:t,collectionName:n,service:o,fieldNames:r,addMode:s,onChange:a,multiple:l,mode:c}=e,[u,d]=i.useState(!1),[m,g]=i.useState(""),{styles:v}=Th(),[p,y]=i.useState([]),b=$.useFieldSchema(),C=h.useCollectionManager(),w=h.useCollection(),[x]=h.useFieldServiceFilter(o==null?void 0:o.params),[S,k]=i.useState({}),I=h.useAPIClient(),[M,O]=i.useState(t),L=(r==null?void 0:r.label)||"label",F=(r==null?void 0:r.value)||"value";let N="";Se.isArray(t)?t.forEach((E,D)=>{N+=`${E[L]}${t.length-1===D?"":", "}`}):t&&typeof t=="object"&&(N=t[L]);const{run:W}=h.useRequest({resource:n,action:"list",params:{filter:B(B({},x==null?void 0:x.filter),S)}},{manual:!0,onSuccess(E){var D;if(E){const T=(D=E.data)==null?void 0:D.map(
|
|
290
|
+
`,children:f.jsx(h.MobileProvider,{children:f.jsx(h.ActionContextProvider,{visible:n,setVisible:o,children:f.jsx($.RecursionField,{schema:r,onlyRenderProperties:!0})})})})]})},{displayName:"CreateRecordAction"}),Ah=$.observer(e=>{const{value:t,collectionName:n,service:o,fieldNames:r,addMode:s,onChange:a,multiple:l,mode:c}=e,[u,d]=i.useState(!1),[m,g]=i.useState(""),{styles:v}=Th(),[p,y]=i.useState([]),b=$.useFieldSchema(),C=h.useCollectionManager(),w=h.useCollection(),[x]=h.useFieldServiceFilter(o==null?void 0:o.params),[S,k]=i.useState({}),I=h.useAPIClient(),[M,O]=i.useState(t),L=(r==null?void 0:r.label)||"label",F=(r==null?void 0:r.value)||"value";let N="";Se.isArray(t)?t.forEach((E,D)=>{N+=`${E[L]}${t.length-1===D?"":", "}`}):t&&typeof t=="object"&&(N=t[L]);const{run:W}=h.useRequest({resource:n,action:"list",params:{filter:B(B({},x==null?void 0:x.filter),S)}},{manual:!0,onSuccess(E){var D;if(E){const T=(D=E.data)==null?void 0:D.map(z=>ae(B({},z),{label:z[L],value:z[F]}));y(T)}}});i.useEffect(()=>{V()},[S,u]);const V=()=>{var E;if(n)W();else if(b["x-collection-field"]){const T=(E=C.getCollectionField(b["x-collection-field"]).uiSchema)==null?void 0:E.enum;y(T)}else y(b.enum)},_=E=>{E[L]=I.request({url:n+":create",method:"post",data:E}).then(D=>{D.status===200?cs.show({icon:"success",content:"添加成功"}):cs.show({icon:"fail",content:"失败成功"});const T=B({},S);delete T[L],k(T),g(""),d(!1)}).catch(()=>{})},P=()=>{const E={};E[L]=m,_(E)};return f.jsx(h.CollectionProvider,{name:n||(w==null?void 0:w.name),children:f.jsxs(h.BlockItem,{children:[f.jsx("div",{onClick:()=>{b["x-disabled"]||(d(!0),V())},style:{color:"#c5c5c5"},children:t!=null&&t.length||t&&!Se.isArray(t)?f.jsx(Nt,{style:{"--color":"#1e8bf1"},value:N,disabled:b["x-disabled"]}):f.jsx(_n,{children:b["x-disabled"]?"":"请选择内容"})}),f.jsx(Ht,{visible:u,className:`${v.PopupStyle}`,onMaskClick:()=>{d(!1)},children:f.jsxs(h.MobileProvider,{children:[f.jsx(gl,{placeholder:"请输入内容",value:m,onChange:E=>{const D=B({},S);D[L]={$includes:E},k(D),g(E)}}),m&&s==="quickAdd"?f.jsxs(_n,{justify:"center",align:"center",onClick:P,children:["+ 创建",m]}):null,f.jsx(Zr,{}),l||c==="multiple"?f.jsx(Mo,{multiple:!0,className:`${v.checkListStyle}`,onChange:E=>{if(!E.length){O(null);return}const D=p.filter(T=>E.includes(T.value));O(D)},children:p.map((E,D)=>f.jsx(Mo.Item,{value:E.value,children:E.label},D))}):f.jsx(Yr,{columns:[p],onChange:E=>{const D=p.find(T=>T.value===E[0]);O(D)}}),f.jsxs(_n,{justify:"evenly",align:"center",children:[s==="modalAdd"?f.jsx(h.SchemaComponent,{components:{CreateRecordAction:Dh},schema:{type:"void",name:"CreateRecord","x-component":"CreateRecordAction","x-component-props":{fieldSchema:b}}}):null,f.jsx(st,{color:"primary",onClick:()=>{d(!1);const E=B({},S);E[L]&&delete E[L],g(""),k(E)},children:"取消"}),f.jsx(st,{color:"primary",onClick:()=>{a(M),d(!1);const E=B({},S);E[L]&&delete E[L],g(""),k(E)},children:"确定"})]})]})})]})})}),Cs=$.connect(Ah,$.mapProps(e=>{const t=B({},e),n=$.useFieldSchema(),r=h.useCollectionManager().getCollection(n["x-collection-field"]),s=$.useField(),a=h.useCollectionField(),l=s.dataSource||(a==null?void 0:a.uiSchema.enum)||[];return r&&(t.collectionName=r.name),typeof t.value!="object"&&(t.value=l.filter(c=>c.value.toString()===(t==null?void 0:t.value))),B({},t)}),$.mapReadPretty(e=>{var n,o;const t=h.useCollectionField();if(typeof e.value=="object")return f.jsx(h.AssociationField.ReadPretty,B({},e));{const r=(o=(n=t==null?void 0:t.uiSchema)==null?void 0:n.enum)==null?void 0:o.find(s=>s.value===e.value);return f.jsx(as,{color:vs(r==null?void 0:r.color),children:r==null?void 0:r.label})}})),Lh=h.createStyles(({css:e})=>({PopupStyle:e`
|
|
291
291
|
.adm-popup-body {
|
|
292
292
|
padding: 10px;
|
|
293
293
|
.adm-space {
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
text-align: center;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
`})),jl=$.observer(e=>{var ee,Ne;const{service:t,fieldNames:n,disabled:o,useLoadData:r,useDataSource:s,multiple:a,onChange:l,value:c,formCascaderValues:u,index:d}=e,m=$.useFieldSchema(),g=h.useCollectionManager(),{styles:v}=Lh(),p=g.getCollectionField(m["x-collection-field"]),y=((ee=m["x-component-props"])==null?void 0:ee.changOnSelect)||!1,b=g.getCollection(m["x-collection-field"]),C=p.interface==="chinaRegion",[w,x]=i.useState([]),[S,k]=i.useState(!1),[I]=h.useFieldServiceFilter(t==null?void 0:t.params),[M,O]=i.useState(I),[L,F]=i.useState(""),[N,W]=i.useState(c),[
|
|
310
|
+
`})),jl=$.observer(e=>{var ee,Ne;const{service:t,fieldNames:n,disabled:o,useLoadData:r,useDataSource:s,multiple:a,onChange:l,value:c,formCascaderValues:u,index:d}=e,m=$.useFieldSchema(),g=h.useCollectionManager(),{styles:v}=Lh(),p=g.getCollectionField(m["x-collection-field"]),y=((ee=m["x-component-props"])==null?void 0:ee.changOnSelect)||!1,b=g.getCollection(m["x-collection-field"]),C=p.interface==="chinaRegion",[w,x]=i.useState([]),[S,k]=i.useState(!1),[I]=h.useFieldServiceFilter(t==null?void 0:t.params),[M,O]=i.useState(I),[L,F]=i.useState(""),[N,W]=i.useState(c),[V,_]=i.useState(""),[P,E]=i.useState([]),D=$.useField(),{loading:T,run:z}=h.useRequest({resource:b==null?void 0:b.name,action:"list",params:{filter:M,tree:!0}},{manual:!0,onSuccess({data:q}){if(q){x(q),D.dataSource=q||[];const ue=Bh(q);E(ue),c&&_(jo(ue,c,"",n.label))}}}),j=r==null?void 0:r(e),{loading:H,run:U}=(s==null?void 0:s({onSuccess(q){D.dataSource=(q==null?void 0:q.data)||[],x(q==null?void 0:q.data)}}))||{loading:!0,run:null};!V&&c&&C&&_(Kl(c,n)),i.useEffect(()=>{!C&&(b!=null&&b.name)&&ne()},[M]),i.useEffect(()=>{!C&&P.length&&_(jo(P,c,"",n.label))},[(Ne=m["x-component-props"])==null?void 0:Ne.fieldNames]);const J=q=>me(this,null,function*(){W(q?C?q:q[q.length-1]:{})}),ne=()=>{C?U():z()};return f.jsxs(h.CollectionProvider,{name:p.collectionName,children:[f.jsxs("div",{onClick:()=>{o||(k(!0),ne())},style:{display:"flex",alignItems:"center"},children:[c&&Object.keys(c).length?f.jsx(Nt,{style:{"--color":"#1e8bf1"},value:V,disabled:o,clearable:!1}):f.jsx(Nt,{value:V?"":"请选择",style:{"--color":"#c5c5c5"}}),c&&Object.keys(c).length||u&&d!==0?f.jsx(no,{style:{margin:"5px 10px 5px 20px"},onClick:()=>{if(d){const q=[...u];u.length===1&&d===0?q[d]={}:q.splice(d,1),l(q)}else l({})}}):null]}),f.jsx(Ht,{visible:S,className:`${v.PopupStyle}`,onMaskClick:()=>{k(!1)},children:f.jsxs(h.MobileProvider,{children:[C?null:f.jsxs(f.Fragment,{children:[f.jsx(gl,{placeholder:"请输入内容",value:L,onChange:q=>{const ue=B({},M);ue[n.label]={$includes:q},O(ue),F(q)}}),f.jsx(Zr,{})]}),f.jsx(K0,{loading:C?H:T,fieldNames:n,options:w,onChange:(q,ue)=>{if(C){const Z=D.componentProps.maxLevel,G=ue.items[ue.items.length-1];Z>G.level&&(G.children=[]),j(ue.items,re=>{re!=null&&re.data.length&&(G.children=re.data.map(ge=>(Z>ge.level&&(ge.isLeaf=!1),ge)),x([...w]))})}J(ue.items)}}),f.jsxs(_n,{justify:"evenly",align:"center",children:[f.jsx(st,{color:"primary",onClick:()=>{k(!1);const q=B({},M);q[n.label]&&delete q[n.label],F(""),O(q)},children:"取消"}),f.jsx(st,{color:"primary",onClick:()=>{const q=a?Vh(u,N,d):N;l(q);const ue=C?Kl(N,n):jo(P,N,"",n.label);if(_(ue),k(!1),!C){const Z=B({},M);delete Z[n.label],F(""),O(Z)}},disabled:y?!(N&&N!=="{}"):!(N&&N!=="{}"&&(!(N!=null&&N.children)||!(N!=null&&N.children.length))),children:"确定"})]})]})})]})}),jo=(e,t,n,o)=>{const r=`${(t==null?void 0:t[o])||""}${n}`;if(t!=null&&t.parentId){const s=e.find(l=>l.id===t.parentId),a=`/${r}`;return jo(e,s,a,o)}return r},Bh=e=>{const t=(o,r)=>(r.push(o),o!=null&&o.children&&o.children.forEach(s=>t(s,r)),r),n=[];return e.forEach(o=>{const r=t(o,[]);n.push(...r)}),n},Vh=(e,t,n)=>{const o=[];return e&&(n||n===0)?(e[n]=t,o.push(...e)):o.push(t),o},Kl=(e,t)=>e==null?void 0:e.reduce((n,o,r)=>n+`${o[t.label]}${e.length-1===r?"":"/"}`,""),zh=$.observer(e=>{const{value:t,onChange:n,multiple:o}=e,{t:r}=le();return f.jsxs(f.Fragment,{children:[Se.isArray(t)&&o?f.jsx(f.Fragment,{children:t.map((s,a)=>{const l=ae(B({},e),{value:s,formCascaderValues:t||[],index:a});return i.createElement(jl,ae(B({},l),{key:a}))})}):f.jsx(jl,B({},e)),o?f.jsx(f.Fragment,{children:f.jsxs(st,{style:{textAlign:"center",width:"100%",border:"1px dashed #c5c5c5",color:"#c5c5c5",fontSize:"12px",height:"5vh",lineHeight:"2vh"},onClick:()=>{const s=t?[...t,{}]:[{},{}];n(s)},children:["+ ",r("Add new")]})}):null]})}),Zh={label:"label",value:"value",children:"children"},jh=e=>{const{fieldNames:t=Zh}=e,n=$.toArr(e.value),o=n.length;let s=$.useField().dataSource;const a=[];for(const l of n)if(typeof l=="object")a.push(l);else{const c=s==null?void 0:s.find(u=>u[t.value]===l);s=(c==null?void 0:c[t.children])||[],a.push(c||{label:l,value:l})}return f.jsx("div",{children:a.map((l,c)=>f.jsxs("span",{children:[typeof l=="object"?l[t.label]:l,o>c+1&&" / "]},c))})},Wl=$.connect(zh,$.mapProps(e=>B({},e)),$.mapReadPretty(e=>{const t=$.useFieldSchema();return h.useCollectionManager().getCollectionField(t["x-collection-field"]).interface==="chinaRegion"?f.jsx(jh,B({},e)):f.jsx(h.AssociationField.ReadPretty,B({},e))})),Kh=i.createContext(null),Hl=()=>i.useContext(Kh),Wh=h.css`
|
|
311
311
|
padding: 0 var(--tb-spacing);
|
|
312
312
|
& > .tb-action-bar {
|
|
313
313
|
padding: unset !important;
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
height: 3.5vh;
|
|
329
329
|
font-size: 50px;
|
|
330
330
|
}
|
|
331
|
-
`}):f.jsx(h.AppNotFound,{})},Ul=()=>window.JsBridge,qh=(e,t)=>Ul().invoke(e,t),Xh=()=>!!Ul(),Yl={onBackPressed:()=>{history.length===1?qh({action:"moveTaskToBack"}):history.back()}};Object.keys(Yl).forEach(e=>{window[e]=Yl[e]});const Gl=i.memo(e=>{const t=ie.useLocation(),n=ie.useNavigate();return i.useEffect(()=>{Xh()&&t.pathname==="/admin"&&n("/mobile",{replace:!0})},[t.pathname,n]),f.jsx(f.Fragment,{children:e.children})});Gl.displayName="MobileClientProvider";const Qh=()=>{const e=ie.useNavigate(),{token:t}=h.useToken(),{t:n}=le();return f.jsx(de.Tooltip,{title:n("Mobile UI"),children:f.jsx(de.Button,{icon:f.jsx(Ke.MobileOutlined,{style:{color:t.colorTextHeaderMenu}}),title:n("Mobile UI"),onClick:()=>{e("/mobile")}})})},Jh=e=>f.jsx(h.PinnedPluginListProvider,{items:{me:{order:210,component:"MobileLink",pin:!0,isPublic:!0,belongTo:"pinnedmenu"}},children:f.jsx(h.SchemaComponentOptions,{components:{MobileLink:Qh},children:e.children})}),ql=()=>{const e=$.useFieldSchema(),{t}=We.useTranslation(),{duplicateData:n}=h.useFormBlockContext(),o=h.useCollectionManager();if(n)return n;const{items:r=[],display:s=!0}=e2(e);r.forEach(c=>{var u;try{c.fields=(u=c.fields)==null?void 0:u.map(d=>o.getCollectionField(`${c.collection}.${d}`)?d:"").filter(Boolean)}catch(d){Se.error(d),c.fields=[]}});const a=[{key:"none",title:t("None")}].concat(r.map((c,u)=>ae(B({key:u},c),{isLeaf:c.dataId!==null&&c.dataId!==void 0,titleCollectionField:(c==null?void 0:c.titleField)&&o.getCollectionField(`${c.collection}.${c.titleField}`)}))),l=r.find(c=>c.default);return{templates:a,display:s,defaultTemplate:l,enabled:r.length>0&&r.every(c=>c.dataId||c.dataScope)}},Rh=({style:e={},templateKey:t="none",collection:n})=>{const o=$.useForm(),{templates:r,enabled:s,defaultTemplate:a}=ql(),l=h.useCollectionManager(),c=h.compatibleDataId(r),u=t,[d,m]=i.useState(null),g=h.useAPIClient();We.useTranslation(),i.useEffect(()=>{s&&a&&(o.__template=!0,a.key==="duplicate"&&p(a.dataId,a))},[]),i.useEffect(()=>{c!=null&&c.some(b=>b.key===u)||v("none")},[c]);const v=i.useCallback(b=>me(this,null,function*(){m(null),o==null||o.reset()}),[]),p=i.useCallback((b,C)=>me(this,null,function*(){const w=ae(B({},C),{dataId:b});m(C),t2(g,w).then(x=>(o&&x&&(o.reset(),o.__template=!0,Se.forEach(x,(S,k)=>{var I;S&&(o.values[k]=S,(I=o==null?void 0:o.setInitialValuesIn)==null||I.call(o,k,S))})),x)).catch(x=>{console.error(x)})}),[]);if(!s)return null;const y=c==null?void 0:c.find(b=>b.key===u);return y&&n&&(y.collection=n),u!=="none"&&y&&f.jsx(h.RemoteSelect,{fieldNames:{label:y==null?void 0:y.titleField,value:"id"},target:y==null?void 0:y.collection,value:d,objectValue:!0,service:{resource:y==null?void 0:y.collection,params:{filter:y==null?void 0:y.dataScope}},onChange:b=>p(b==null?void 0:b.id,B(B({},b),y)),targetField:l.getCollectionField(`${y==null?void 0:y.collection}.${y.titleField}`)})};function e2(e){const t=h.findFormBlock(e);return t?Ae.cloneDeep(t["x-data-templates"])||{}:{}}function t2(e,t,n){return me(this,null,function*(){if(!(t.fields.length===0||!t.dataId))return e.resource(t.collection).get({filterByTk:t.dataId,fields:t.fields,isTemplate:!0}).then(o=>{var r;return(r=o.data)==null?void 0:r.data})})}const n2=new h.SchemaSettings({name:"fieldSettings:component:DataSelect",items:[{name:"templateSelect",type:"select",useComponentProps(){var a;const{templates:e}=ql(),t=h.compatibleDataId(e),{t:n}=le(),o=$.useField(),r=$.useFieldSchema(),{dn:s}=h.useDesignable();return{title:n("Template Select"),value:((a=o.componentProps)==null?void 0:a.templateKey)||"none",fieldNames:{label:"title",value:"key"},options:t,onChange(l){const c={"x-uid":r["x-uid"]};r["x-component-props"].templateKey=l,r["x-acl-ignore"]=!0,c["x-component-props"]=r["x-component-props"],c["x-acl-ignore"]=!0,o.componentProps.templateKey=l,s.emit("patch",{schema:c})}}}},{name:"collectionSelect",type:"select",useComponentProps(){var l;const e=h.useCollectionManager(),t=h.useCompile(),n=e.getCollections().map(c=>({label:t(c.title),value:c.name})),{t:o}=le(),r=$.useField(),s=$.useFieldSchema(),{dn:a}=h.useDesignable();return{title:o("Collection Select"),value:(l=r.componentProps)==null?void 0:l.collection,options:n,onChange(c){const u={"x-uid":s["x-uid"]};s["x-component-props"].collection=c,s["x-acl-ignore"]=!0,u["x-component-props"]=s["x-component-props"],u["x-acl-ignore"]=!0,r.componentProps.collection=c,a.emit("patch",{schema:u})}}}}]});class o2 extends h.Plugin{load(){return me(this,null,function*(){this.app.addComponents({DataSelect:Rh}),this.app.schemaSettingsManager.add(n2);const t={name:"SelectData",title:this.t("Select Data"),Component:"BlockItemInitializer",schema:{type:"void","x-decorator":"FormItem","x-settings":"fieldSettings:FormItem","x-component":"DataSelect","x-component-props":{mode:"DataSelect"}}};this.app.schemaInitializerManager.addItem("form:configureFields",t.name,t),this.app.schemaInitializerManager.addItem("details:configureFields",t.name,t)})}}const r2="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M338.773333%20362.666667H170.666667v298.666666h105.578666l45.013334%200.021334%2017.258666%200.426666L682.666667%20809.258667V214.890667L338.773333%20362.666667z%20m-17.578666-85.333334L768%2085.333333v853.333334l-448-191.978667L85.333333%20746.666667V277.333333h235.861334zM170.666667%20661.333333v85.333334h85.333333v-85.333334H170.666667zM853.333333%20298.666667h85.333334v426.666666h-85.333334z'%20fill='%23000000'%20%3e%3c/path%3e%3c/svg%3e",s2="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M0%20219.428571h73.142857v585.142858H0V219.428571z%20m950.857143%200h73.142857v585.142858h-73.142857V219.428571z%20m-146.285714-146.285714a73.142857%2073.142857%200%200%201%2073.142857%2073.142857v731.428572a73.142857%2073.142857%200%200%201-73.142857%2073.142857H219.428571a73.142857%2073.142857%200%200%201-73.142857-73.142857V146.285714a73.142857%2073.142857%200%200%201%2073.142857-73.142857h585.142858z%20m0%2073.142857H219.428571v731.428572h585.142858V146.285714zM365.714286%20694.857143a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z%20m146.285714%200a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z%20m146.285714%200a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z'%3e%3c/path%3e%3c/svg%3e",i2="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M1263.243636%20908.939636l-156.485818-156.392727c25.6-37.050182%2039.842909-79.685818%2039.842909-128.093091%200-125.114182-102.4-227.514182-227.607272-227.514182a228.258909%20228.258909%200%200%200-227.514182%20227.514182c0%20125.207273%20102.4%20227.607273%20227.514182%20227.607273%2048.407273%200%2091.042909-14.242909%20128-39.842909l156.392727%20156.392727a41.239273%2041.239273%200%200%200%2059.764363%200c19.921455-17.035636%2019.921455-45.428364%200-59.671273zM921.786182%20766.696727a140.846545%20140.846545%200%200%201-142.242909-142.242909c0-79.592727%2062.557091-142.149818%20142.242909-142.149818%2079.592727%200%20142.242909%2062.557091%20142.242909%20142.149818%200%2079.685818-62.650182%20142.242909-142.242909%20142.242909z'%3e%3c/path%3e%3cpath%20d='M694.272%20894.696727H111.150545v-512h583.121455a43.752727%2043.752727%200%200%200%2042.728727-42.635636%2043.752727%2043.752727%200%200%200-42.728727-42.728727H111.150545V98.304h853.364364v156.392727a43.752727%2043.752727%200%200%200%2042.635636%2042.635637%2043.752727%2043.752727%200%200%200%2042.728728-42.635637V69.818182a57.064727%2057.064727%200%200%200-56.878546-56.878546H82.757818A57.064727%2057.064727%200%200%200%2025.879273%2069.818182v853.364363c0%2031.278545%2025.6%2056.785455%2056.785454%2056.785455h611.607273a43.752727%2043.752727%200%200%200%2042.728727-42.635636%2043.752727%2043.752727%200%200%200-42.728727-42.635637z'%3e%3c/path%3e%3cpath%20d='M637.393455%20155.182545c-22.714182%200-42.635636%2021.690182-42.635637%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635637%2046.545455h28.485818c22.714182%200%2042.635636-21.783273%2042.635636-46.545455%200-24.855273-19.921455-46.545455-42.635636-46.545455h-28.485818z%20m-199.121455%200c-22.714182%200-42.635636%2021.690182-42.635636%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635636%2046.545455h28.485818c22.714182%200%2042.635636-21.783273%2042.635637-46.545455%200-24.855273-19.921455-46.545455-42.635637-46.545455h-28.485818z%20m-199.121455%200c-22.714182%200-42.635636%2021.690182-42.635636%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635636%2046.545455h28.485819c22.714182%200%2042.635636-21.783273%2042.635636-46.545455%200-24.855273-19.921455-46.545455-42.635636-46.545455h-28.485819z'%3e%3c/path%3e%3c/svg%3e";let a2=e=>decodeURI(e).replace("data:image/svg+xml,","");const xs=e=>()=>f.jsx("div",{dangerouslySetInnerHTML:{__html:a2(e)}}),l2=e=>f.jsx(h.Icon,B({component:xs(r2)},e)),c2=e=>f.jsx(h.Icon,B({component:xs(s2)},e)),u2=e=>f.jsx(h.Icon,B({component:xs(i2)},e));h.Icon.register({"notice-block":l2,"swiper-block":c2,"tab-search":u2});const d2=e=>f.jsx(h.MobileProvider,{children:f.jsx(h.SchemaComponentOptions,{components:{MMenuBlockInitializer:wc,MSettingsBlockInitializer:$m,MContainer:fs,MMenu:us,MTabBar:ms,MPage:hs,MHeader:_l,MSettings:Pl,SwiperBlockInitializer:Rm,SwiperBlock:Jm,SwiperPage:Nl,TabSearch:nh,TabSearchProvider:_h,TabSearchBlockInitializer:Ch,TabSearchFieldItem:ph,TabSearchFieldMItem:hh,TabSearchCollapsibleInputItem:lh,TabSearchCollapsibleInputMItem:mh,TabSearchFieldSchemaInitializerGadget:$h,ImageSearchView:Vm,ImageSearchInitializer:Bm,ImageSearchProvider:zm,ImageSearchItemIntializer:jm,ImageSearchItemToolbar:Wm,ImageSearchItemView:Hm,MInput:Nt,MCheckbox:bs,MDatePicker:Zl,MRadio:ys,MImageUploader:Nh,MCascader:Wl,MSelect:Cs,Input:Nt,"Input.TextArea":Nt.TextArea,"Radio.Group":ys.Group,"Checkbox.Group":bs.Group,DatePicker:Zl,Select:Cs,AlternativeAssociationSelect:Cs,Cascader:Wl},scope:{useGridCardBlockItemProps:Hh,useGridCardBlockProps:Yh,useSwiperBlockProps:th,usePropsOptionalImageSearchItemField:Gm,usePropsRelatedImageSearchItemField:Xm,useTabSearchFieldItemProps:gh,useTabSearchFieldItemRelatedProps:bh},children:e.children})}),f2=()=>{const{t:e}=le(),t=h.useApp(),n=()=>{const o=window.location,r=o.hash.slice(o.hash.indexOf("/"));window.open(t.getRouteUrl(r))};return f.jsx("div",{className:h.css`
|
|
331
|
+
`}):f.jsx(h.AppNotFound,{})},Ul=()=>window.JsBridge,qh=(e,t)=>Ul().invoke(e,t),Xh=()=>!!Ul(),Yl={onBackPressed:()=>{history.length===1?qh({action:"moveTaskToBack"}):history.back()}};Object.keys(Yl).forEach(e=>{window[e]=Yl[e]});const Gl=i.memo(e=>{const t=ie.useLocation(),n=ie.useNavigate();return i.useEffect(()=>{Xh()&&t.pathname==="/admin"&&n("/mobile",{replace:!0})},[t.pathname,n]),f.jsx(f.Fragment,{children:e.children})});Gl.displayName="MobileClientProvider";const Qh=()=>{const e=ie.useNavigate(),{token:t}=h.useToken(),{t:n}=le();return f.jsx(de.Tooltip,{title:n("Mobile UI"),children:f.jsx(de.Button,{icon:f.jsx(Ke.MobileOutlined,{style:{color:t.colorTextHeaderMenu}}),title:n("Mobile UI"),onClick:()=>{e("/mobile")}})})},Jh=e=>f.jsx(h.PinnedPluginListProvider,{items:{me:{order:210,component:"MobileLink",pin:!0,isPublic:!0,belongTo:"pinnedmenu"}},children:f.jsx(h.SchemaComponentOptions,{components:{MobileLink:Qh},children:e.children})}),ql=()=>{const e=$.useFieldSchema(),{t}=We.useTranslation(),{duplicateData:n}=h.useFormBlockContext(),o=h.useCollectionManager();if(n)return n;const{items:r=[],display:s=!0}=e2(e);r.forEach(c=>{var u;try{c.fields=(u=c.fields)==null?void 0:u.map(d=>o.getCollectionField(`${c.collection}.${d}`)?d:"").filter(Boolean)}catch(d){Se.error(d),c.fields=[]}});const a=[{key:"none",title:t("None")}].concat(r.map((c,u)=>ae(B({key:u},c),{isLeaf:c.dataId!==null&&c.dataId!==void 0,titleCollectionField:(c==null?void 0:c.titleField)&&o.getCollectionField(`${c.collection}.${c.titleField}`)}))),l=r.find(c=>c.default);return{templates:a,display:s,defaultTemplate:l,enabled:r.length>0&&r.every(c=>c.dataId||c.dataScope)}},Rh=({style:e={},templateKey:t="none",collection:n})=>{const o=$.useForm(),{templates:r,enabled:s,defaultTemplate:a}=ql(),l=h.useCollectionManager(),c=h.compatibleDataId(r),u=t,[d,m]=i.useState(null),g=h.useAPIClient();We.useTranslation(),i.useEffect(()=>{s&&a&&(o.__template=!0,a.key==="duplicate"&&p(a.dataId,a))},[]),i.useEffect(()=>{c!=null&&c.some(b=>b.key===u)||v("none")},[c]);const v=i.useCallback(b=>me(this,null,function*(){m(null),o==null||o.reset()}),[]),p=i.useCallback((b,C)=>me(this,null,function*(){const w=ae(B({},C),{dataId:b});m(C),t2(g,w).then(x=>(o&&x&&(o.reset(),o.__template=!0,Se.forEach(x,(S,k)=>{var I;S&&(o.values[k]=S,(I=o==null?void 0:o.setInitialValuesIn)==null||I.call(o,k,S))})),x)).catch(x=>{console.error(x)})}),[]);if(!s)return null;const y=c==null?void 0:c.find(b=>b.key===u);return y&&n&&(y.collection=n),u!=="none"&&y&&f.jsx(h.RemoteSelect,{fieldNames:{label:y==null?void 0:y.titleField,value:"id"},target:y==null?void 0:y.collection,value:d,objectValue:!0,service:{resource:y==null?void 0:y.collection,params:{filter:y==null?void 0:y.dataScope}},onChange:b=>p(b==null?void 0:b.id,B(B({},b),y)),targetField:l.getCollectionField(`${y==null?void 0:y.collection}.${y.titleField}`)})};function e2(e){const t=h.findFormBlock(e);return t?Ae.cloneDeep(t["x-data-templates"])||{}:{}}function t2(e,t,n){return me(this,null,function*(){if(!(t.fields.length===0||!t.dataId))return e.resource(t.collection).get({filterByTk:t.dataId,fields:t.fields,isTemplate:!0}).then(o=>{var r;return(r=o.data)==null?void 0:r.data})})}const n2=new h.SchemaSettings({name:"fieldSettings:component:DataSelect",items:[{name:"templateSelect",type:"select",useComponentProps(){var a;const{templates:e}=ql(),t=h.compatibleDataId(e),{t:n}=le(),o=$.useField(),r=$.useFieldSchema(),{dn:s}=h.useDesignable();return{title:n("Template Select"),value:((a=o.componentProps)==null?void 0:a.templateKey)||"none",fieldNames:{label:"title",value:"key"},options:t,onChange(l){const c={"x-uid":r["x-uid"]};r["x-component-props"].templateKey=l,r["x-acl-ignore"]=!0,c["x-component-props"]=r["x-component-props"],c["x-acl-ignore"]=!0,o.componentProps.templateKey=l,s.emit("patch",{schema:c})}}}},{name:"collectionSelect",type:"select",useComponentProps(){var l;const e=h.useCollectionManager(),t=h.useCompile(),n=e.getCollections().map(c=>({label:t(c.title),value:c.name})),{t:o}=le(),r=$.useField(),s=$.useFieldSchema(),{dn:a}=h.useDesignable();return{title:o("Collection Select"),value:(l=r.componentProps)==null?void 0:l.collection,options:n,onChange(c){const u={"x-uid":s["x-uid"]};s["x-component-props"].collection=c,s["x-acl-ignore"]=!0,u["x-component-props"]=s["x-component-props"],u["x-acl-ignore"]=!0,r.componentProps.collection=c,a.emit("patch",{schema:u})}}}}]});class o2 extends h.Plugin{load(){return me(this,null,function*(){this.app.addComponents({DataSelect:Rh}),this.app.schemaSettingsManager.add(n2);const t={name:"SelectData",title:this.t("Select Data"),Component:"BlockItemInitializer",schema:{type:"void","x-decorator":"FormItem","x-settings":"fieldSettings:FormItem","x-component":"DataSelect","x-component-props":{mode:"DataSelect"}}};this.app.schemaInitializerManager.addItem("form:configureFields",t.name,t),this.app.schemaInitializerManager.addItem("details:configureFields",t.name,t)})}}const r2="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M338.773333%20362.666667H170.666667v298.666666h105.578666l45.013334%200.021334%2017.258666%200.426666L682.666667%20809.258667V214.890667L338.773333%20362.666667z%20m-17.578666-85.333334L768%2085.333333v853.333334l-448-191.978667L85.333333%20746.666667V277.333333h235.861334zM170.666667%20661.333333v85.333334h85.333333v-85.333334H170.666667zM853.333333%20298.666667h85.333334v426.666666h-85.333334z'%20fill='%23000000'%20%3e%3c/path%3e%3c/svg%3e",s2="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M0%20219.428571h73.142857v585.142858H0V219.428571z%20m950.857143%200h73.142857v585.142858h-73.142857V219.428571z%20m-146.285714-146.285714a73.142857%2073.142857%200%200%201%2073.142857%2073.142857v731.428572a73.142857%2073.142857%200%200%201-73.142857%2073.142857H219.428571a73.142857%2073.142857%200%200%201-73.142857-73.142857V146.285714a73.142857%2073.142857%200%200%201%2073.142857-73.142857h585.142858z%20m0%2073.142857H219.428571v731.428572h585.142858V146.285714zM365.714286%20694.857143a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z%20m146.285714%200a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z%20m146.285714%200a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z'%3e%3c/path%3e%3c/svg%3e",i2="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M1263.243636%20908.939636l-156.485818-156.392727c25.6-37.050182%2039.842909-79.685818%2039.842909-128.093091%200-125.114182-102.4-227.514182-227.607272-227.514182a228.258909%20228.258909%200%200%200-227.514182%20227.514182c0%20125.207273%20102.4%20227.607273%20227.514182%20227.607273%2048.407273%200%2091.042909-14.242909%20128-39.842909l156.392727%20156.392727a41.239273%2041.239273%200%200%200%2059.764363%200c19.921455-17.035636%2019.921455-45.428364%200-59.671273zM921.786182%20766.696727a140.846545%20140.846545%200%200%201-142.242909-142.242909c0-79.592727%2062.557091-142.149818%20142.242909-142.149818%2079.592727%200%20142.242909%2062.557091%20142.242909%20142.149818%200%2079.685818-62.650182%20142.242909-142.242909%20142.242909z'%3e%3c/path%3e%3cpath%20d='M694.272%20894.696727H111.150545v-512h583.121455a43.752727%2043.752727%200%200%200%2042.728727-42.635636%2043.752727%2043.752727%200%200%200-42.728727-42.728727H111.150545V98.304h853.364364v156.392727a43.752727%2043.752727%200%200%200%2042.635636%2042.635637%2043.752727%2043.752727%200%200%200%2042.728728-42.635637V69.818182a57.064727%2057.064727%200%200%200-56.878546-56.878546H82.757818A57.064727%2057.064727%200%200%200%2025.879273%2069.818182v853.364363c0%2031.278545%2025.6%2056.785455%2056.785454%2056.785455h611.607273a43.752727%2043.752727%200%200%200%2042.728727-42.635636%2043.752727%2043.752727%200%200%200-42.728727-42.635637z'%3e%3c/path%3e%3cpath%20d='M637.393455%20155.182545c-22.714182%200-42.635636%2021.690182-42.635637%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635637%2046.545455h28.485818c22.714182%200%2042.635636-21.783273%2042.635636-46.545455%200-24.855273-19.921455-46.545455-42.635636-46.545455h-28.485818z%20m-199.121455%200c-22.714182%200-42.635636%2021.690182-42.635636%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635636%2046.545455h28.485818c22.714182%200%2042.635636-21.783273%2042.635637-46.545455%200-24.855273-19.921455-46.545455-42.635637-46.545455h-28.485818z%20m-199.121455%200c-22.714182%200-42.635636%2021.690182-42.635636%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635636%2046.545455h28.485819c22.714182%200%2042.635636-21.783273%2042.635636-46.545455%200-24.855273-19.921455-46.545455-42.635636-46.545455h-28.485819z'%3e%3c/path%3e%3c/svg%3e";let a2=e=>decodeURI(e).replace("data:image/svg+xml,","");const xs=e=>()=>f.jsx("div",{dangerouslySetInnerHTML:{__html:a2(e)}}),l2=e=>f.jsx(h.Icon,B({component:xs(r2)},e)),c2=e=>f.jsx(h.Icon,B({component:xs(s2)},e)),u2=e=>f.jsx(h.Icon,B({component:xs(i2)},e));h.Icon.register({"notice-block":l2,"swiper-block":c2,"tab-search":u2});const d2=e=>f.jsx(h.MobileProvider,{children:f.jsx(h.SchemaComponentOptions,{components:{MMenuBlockInitializer:wc,MSettingsBlockInitializer:$m,MContainer:fs,MMenu:us,MTabBar:ms,MPage:hs,MHeader:_l,MSettings:Pl,SwiperBlockInitializer:Rm,SwiperBlock:Jm,SwiperPage:Nl,TabSearch:nh,TabSearchProvider:_h,TabSearchBlockInitializer:Ch,TabSearchFieldItem:ph,TabSearchFieldMItem:hh,TabSearchCollapsibleInputItem:lh,TabSearchCollapsibleInputMItem:mh,TabSearchFieldSchemaInitializerGadget:$h,ImageSearchView:zm,ImageSearchInitializer:Bm,ImageSearchProvider:Vm,ImageSearchItemIntializer:jm,ImageSearchItemToolbar:Wm,ImageSearchItemView:Hm,MInput:Nt,MCheckbox:bs,MDatePicker:Zl,MRadio:ys,MImageUploader:Nh,MCascader:Wl,MSelect:Cs,Input:Nt,"Input.TextArea":Nt.TextArea,"Radio.Group":ys.Group,"Checkbox.Group":bs.Group,DatePicker:Zl,Select:Cs,AlternativeAssociationSelect:Cs,Cascader:Wl},scope:{useGridCardBlockItemProps:Hh,useGridCardBlockProps:Yh,useSwiperBlockProps:th,usePropsOptionalImageSearchItemField:Gm,usePropsRelatedImageSearchItemField:Xm,useTabSearchFieldItemProps:gh,useTabSearchFieldItemRelatedProps:bh},children:e.children})}),f2=()=>{const{t:e}=le(),t=h.useApp(),n=()=>{const o=window.location,r=o.hash.slice(o.hash.indexOf("/"));window.open(t.getRouteUrl(r))};return f.jsx("div",{className:h.css`
|
|
332
332
|
position: absolute;
|
|
333
333
|
top: -40px;
|
|
334
334
|
right: 0;
|