UNPKG

antd-mobile

Version:
5 lines 478 kB
(function(U,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],s):(U=typeof globalThis<"u"?globalThis:U||self,s(U.antdMobile={},U.React,U.ReactDOM))})(this,function(U,s,hn){"use strict";function sm(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const j=sm(s),Gn=!!(typeof window<"u"&&typeof document<"u"&&window.document&&window.document.createElement);Gn&&document.addEventListener("touchstart",()=>{},!0);var Yi=function(){return Yi=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Yi.apply(this,arguments)};function zt(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Ne(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(f){try{u(r.next(f))}catch(d){a(d)}}function c(f){try{u(r.throw(f))}catch(d){a(d)}}function u(f){f.done?o(f.value):i(f.value).then(l,c)}u((r=r.apply(t,e||[])).next())})}function am(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(f){return c([u,f])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(f){u=[6,f],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function lm(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function wt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){a={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function Is(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;const Ke="${label}不是一个有效的${type}",Sc={current:{locale:{locale:"zh-CH",common:{confirm:"确定",cancel:"取消",loading:"加载中",close:"关闭"},Calendar:{title:"日期选择",confirm:"确认",start:"开始",end:"结束",startAndEnd:"开始/结束",today:"今日",markItems:["一","二","三","四","五","六","日"],yearAndMonth:"${year}年${month}月"},Cascader:{placeholder:"请选择"},Dialog:{ok:"我知道了"},DatePicker:{tillNow:"至今"},ErrorBlock:{default:{title:"页面遇到一些小问题",description:"待会来试试"},busy:{title:"前方拥堵",description:"刷新试试"},disconnected:{title:"网络有点忙",description:"动动手指帮忙修复"},empty:{title:"没有找到你需要的东西",description:"找找其他的吧"}},Form:{required:"必填",optional:"选填",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Ke,method:Ke,array:Ke,object:Ke,number:Ke,date:Ke,boolean:Ke,integer:Ke,float:Ke,regexp:Ke,email:Ke,url:Ke,hex:Ke},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},ImageUploader:{uploading:"上传中...",upload:"上传"},InfiniteScroll:{noMore:"没有更多了",failedToLoad:"加载失败",retry:"重新加载"},Input:{clear:"清除"},Mask:{name:"背景蒙层"},Modal:{ok:"我知道了"},PasscodeInput:{name:"密码输入框"},PullToRefresh:{pulling:"下拉刷新",canRelease:"释放立即刷新",complete:"刷新成功"},SearchBar:{name:"搜索框"},Slider:{name:"滑动输入条"},Stepper:{decrease:"减少",increase:"增加"},Switch:{name:"开关"},Selector:{name:"选择组"}}}};function cm(t){Sc.current=t}function jr(){return Sc.current}const Oc=s.createContext(null),um=t=>{const{children:e}=t,n=zt(t,["children"]),r=se();return s.createElement(Oc.Provider,{value:Object.assign(Object.assign({},r),n)},e)};function se(){var t;return(t=s.useContext(Oc))!==null&&t!==void 0?t:jr()}function me(t,e){const n=t;for(const r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}var Re=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Fc={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var l=n.apply(null,o);l&&r.push(l)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var c in o)e.call(o,c)&&o[c]&&r.push(c)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Fc);var fm=Fc.exports;const H=dt(fm);function z(t,e){const n=Object.assign({},e.props);t.className&&(n.className=H(e.props.className,t.className)),t.style&&(n.style=Object.assign(Object.assign({},n.style),t.style)),t.tabIndex!==void 0&&(n.tabIndex=t.tabIndex);for(const r in t)t.hasOwnProperty(r)&&(r.startsWith("data-")||r.startsWith("aria-"))&&(n[r]=t[r]);return s.cloneElement(e,n)}function X(...t){const e={};return t.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(e[r]=n[r])})}),e}function Ut(t,...e){for(let n=e.length-1;n>=0;n-=1)if(e[n]!==void 0)return e[n];return t}var Nc=function(t){return function(e,n){var r=s.useRef(!1);t(function(){return function(){r.current=!1}},[]),t(function(){if(!r.current)r.current=!0;else return e()},n)}},Xn=function(t){return typeof t=="function"},dm=function(t){return typeof t=="number"},mm=!1;const Br=mm;function Tt(t){Br&&(Xn(t)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof t)));var e=s.useRef(t);e.current=s.useMemo(function(){return t},[t]);var n=s.useRef();return n.current||(n.current=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.current.apply(this,r)}),n.current}const Ts=Nc(s.useEffect);function Pc(t,e){if(t===e)return!0;for(var n=0;n<t.length;n++)if(!Object.is(t[n],e[n]))return!1;return!0}function Gi(t){var e=s.useRef(t);return e.current=t,e}var hm=function(t){Br&&(Xn(t)||console.error("useUnmount expected parameter is a function, got ".concat(typeof t)));var e=Gi(t);s.useEffect(function(){return function(){e.current()}},[])};const Wr=hm;function vm(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Ls=vm,pm=typeof Re=="object"&&Re&&Re.Object===Object&&Re,gm=pm,ym=gm,bm=typeof self=="object"&&self&&self.Object===Object&&self,Em=ym||bm||Function("return this")(),Mc=Em,wm=Mc,Cm=function(){return wm.Date.now()},xm=Cm,km=/\s/;function _m(t){for(var e=t.length;e--&&km.test(t.charAt(e)););return e}var Sm=_m,Om=Sm,Fm=/^\s+/;function Nm(t){return t&&t.slice(0,Om(t)+1).replace(Fm,"")}var Pm=Nm,Mm=Mc,Am=Mm.Symbol,Ac=Am,Ic=Ac,Tc=Object.prototype,Im=Tc.hasOwnProperty,Tm=Tc.toString,Zr=Ic?Ic.toStringTag:void 0;function Lm(t){var e=Im.call(t,Zr),n=t[Zr];try{t[Zr]=void 0;var r=!0}catch{}var i=Tm.call(t);return r&&(e?t[Zr]=n:delete t[Zr]),i}var Dm=Lm,Vm=Object.prototype,jm=Vm.toString;function Bm(t){return jm.call(t)}var Wm=Bm,Lc=Ac,Zm=Dm,Hm=Wm,qm="[object Null]",zm="[object Undefined]",Dc=Lc?Lc.toStringTag:void 0;function Um(t){return t==null?t===void 0?zm:qm:Dc&&Dc in Object(t)?Zm(t):Hm(t)}var Km=Um;function Ym(t){return t!=null&&typeof t=="object"}var Gm=Ym,Xm=Km,$m=Gm,Qm="[object Symbol]";function Jm(t){return typeof t=="symbol"||$m(t)&&Xm(t)==Qm}var Rm=Jm,eh=Pm,Vc=Ls,th=Rm,jc=NaN,nh=/^[-+]0x[0-9a-f]+$/i,rh=/^0b[01]+$/i,ih=/^0o[0-7]+$/i,oh=parseInt;function sh(t){if(typeof t=="number")return t;if(th(t))return jc;if(Vc(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Vc(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=eh(t);var n=rh.test(t);return n||ih.test(t)?oh(t.slice(2),n?2:8):nh.test(t)?jc:+t}var ah=sh,lh=Ls,Ds=xm,Bc=ah,ch="Expected a function",uh=Math.max,fh=Math.min;function dh(t,e,n){var r,i,o,a,l,c,u=0,f=!1,d=!1,m=!0;if(typeof t!="function")throw new TypeError(ch);e=Bc(e)||0,lh(n)&&(f=!!n.leading,d="maxWait"in n,o=d?uh(Bc(n.maxWait)||0,e):o,m="trailing"in n?!!n.trailing:m);function v(C){var k=r,F=i;return r=i=void 0,u=C,a=t.apply(F,k),a}function b(C){return u=C,l=setTimeout(h,e),f?v(C):a}function y(C){var k=C-c,F=C-u,A=e-k;return d?fh(A,o-F):A}function g(C){var k=C-c,F=C-u;return c===void 0||k>=e||k<0||d&&F>=o}function h(){var C=Ds();if(g(C))return x(C);l=setTimeout(h,y(C))}function x(C){return l=void 0,m&&r?v(C):(r=i=void 0,a)}function p(){l!==void 0&&clearTimeout(l),u=0,r=c=i=l=void 0}function E(){return l===void 0?a:x(Ds())}function w(){var C=Ds(),k=g(C);if(r=arguments,i=this,c=C,k){if(l===void 0)return b(c);if(d)return clearTimeout(l),l=setTimeout(h,e),v(c)}return l===void 0&&(l=setTimeout(h,e)),a}return w.cancel=p,w.flush=E,w}var Wc=dh;const mh=dt(Wc);var hh=!!(typeof window<"u"&&window.document&&window.document.createElement);const Vs=hh;var vh=Wc,ph=Ls,gh="Expected a function";function yh(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(gh);return ph(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),vh(t,e,{leading:r,maxWait:e,trailing:i})}var bh=yh;const Eh=dt(bh);var wh=function(t){Br&&(Xn(t)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof t,'".'))),s.useEffect(function(){t==null||t()},[])};const Ch=wh;var xh=function(){var t=wt(s.useState({}),2),e=t[1];return s.useCallback(function(){return e({})},[])};const Zc=xh;function Kt(t,e){if(Vs){if(!t)return e;var n;return Xn(t)?n=t():"current"in t?n=t.current:n=t,n}}var kh=function(t){return t.every(function(e){var n=Kt(e);if(!n)return!1;if(n.getRootNode()instanceof ShadowRoot)return!0})},_h=function(t){return t?t.getRootNode():document},Sh=function(t){if(!t||!document.getRootNode)return document;var e=Array.isArray(t)?t:[t];return kh(e)?_h(Kt(e[0])):document};const Oh=Sh;var Fh=function(t){var e=function(n,r,i){var o=s.useRef(!1),a=s.useRef([]),l=s.useRef([]),c=s.useRef();t(function(){var u,f=Array.isArray(i)?i:[i],d=f.map(function(m){return Kt(m)});if(!o.current){o.current=!0,a.current=d,l.current=r,c.current=n();return}(d.length!==a.current.length||!Pc(d,a.current)||!Pc(r,l.current))&&((u=c.current)===null||u===void 0||u.call(c),a.current=d,l.current=r,c.current=n())}),Wr(function(){var u;(u=c.current)===null||u===void 0||u.call(c),o.current=!1})};return e};const Hc=Fh;var Nh=Hc(s.useEffect);const js=Nh;function qc(t,e,n){n===void 0&&(n="click");var r=Gi(t);js(function(){var i=function(l){var c=Array.isArray(e)?e:[e];c.some(function(u){var f=Kt(u);return!f||f.contains(l.target)})||r.current(l)},o=Oh(e),a=Array.isArray(n)?n:[n];return a.forEach(function(l){return o.addEventListener(l,i)}),function(){a.forEach(function(l){return o.removeEventListener(l,i)})}},Array.isArray(n)?n:[n],e)}var zc={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Re,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",l="minute",c="hour",u="day",f="week",d="month",m="quarter",v="year",b="date",y="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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,x={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(I){var P=["th","st","nd","rd"],L=I%100;return"["+I+(P[(L-20)%10]||P[L]||P[0])+"]"}},p=function(I,P,L){var M=String(I);return!M||M.length>=P?I:""+Array(P+1-M.length).join(L)+I},E={s:p,z:function(I){var P=-I.utcOffset(),L=Math.abs(P),M=Math.floor(L/60),S=L%60;return(P<=0?"+":"-")+p(M,2,"0")+":"+p(S,2,"0")},m:function I(P,L){if(P.date()<L.date())return-I(L,P);var M=12*(L.year()-P.year())+(L.month()-P.month()),S=P.clone().add(M,d),T=L-S<0,_=P.clone().add(M+(T?-1:1),d);return+(-(M+(L-S)/(T?S-_:_-S))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:d,y:v,w:f,d:u,D:b,h:c,m:l,s:a,ms:o,Q:m}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},w="en",C={};C[w]=x;var k=function(I){return I instanceof B},F=function I(P,L,M){var S;if(!P)return w;if(typeof P=="string"){var T=P.toLowerCase();C[T]&&(S=T),L&&(C[T]=L,S=T);var _=P.split("-");if(!S&&_.length>1)return I(_[0])}else{var N=P.name;C[N]=P,S=N}return!M&&S&&(w=S),S||!M&&w},A=function(I,P){if(k(I))return I.clone();var L=typeof P=="object"?P:{};return L.date=I,L.args=arguments,new B(L)},O=E;O.l=F,O.i=k,O.w=function(I,P){return A(I,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var B=function(){function I(L){this.$L=F(L.locale,null,!0),this.parse(L)}var P=I.prototype;return P.parse=function(L){this.$d=function(M){var S=M.date,T=M.utc;if(S===null)return new Date(NaN);if(O.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var _=S.match(g);if(_){var N=_[2]-1||0,V=(_[7]||"0").substring(0,3);return T?new Date(Date.UTC(_[1],N,_[3]||1,_[4]||0,_[5]||0,_[6]||0,V)):new Date(_[1],N,_[3]||1,_[4]||0,_[5]||0,_[6]||0,V)}}return new Date(S)}(L),this.$x=L.x||{},this.init()},P.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},P.$utils=function(){return O},P.isValid=function(){return this.$d.toString()!==y},P.isSame=function(L,M){var S=A(L);return this.startOf(M)<=S&&S<=this.endOf(M)},P.isAfter=function(L,M){return A(L)<this.startOf(M)},P.isBefore=function(L,M){return this.endOf(M)<A(L)},P.$g=function(L,M,S){return O.u(L)?this[M]:this.set(S,L)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(L,M){var S=this,T=!!O.u(M)||M,_=O.p(L),N=function(ue,te){var $=O.w(S.$u?Date.UTC(S.$y,te,ue):new Date(S.$y,te,ue),S);return T?$:$.endOf(u)},V=function(ue,te){return O.w(S.toDate()[ue].apply(S.toDate("s"),(T?[0,0,0,0]:[23,59,59,999]).slice(te)),S)},Z=this.$W,W=this.$M,q=this.$D,Y="set"+(this.$u?"UTC":"");switch(_){case v:return T?N(1,0):N(31,11);case d:return T?N(1,W):N(0,W+1);case f:var K=this.$locale().weekStart||0,ee=(Z<K?Z+7:Z)-K;return N(T?q-ee:q+(6-ee),W);case u:case b:return V(Y+"Hours",0);case c:return V(Y+"Minutes",1);case l:return V(Y+"Seconds",2);case a:return V(Y+"Milliseconds",3);default:return this.clone()}},P.endOf=function(L){return this.startOf(L,!1)},P.$set=function(L,M){var S,T=O.p(L),_="set"+(this.$u?"UTC":""),N=(S={},S[u]=_+"Date",S[b]=_+"Date",S[d]=_+"Month",S[v]=_+"FullYear",S[c]=_+"Hours",S[l]=_+"Minutes",S[a]=_+"Seconds",S[o]=_+"Milliseconds",S)[T],V=T===u?this.$D+(M-this.$W):M;if(T===d||T===v){var Z=this.clone().set(b,1);Z.$d[N](V),Z.init(),this.$d=Z.set(b,Math.min(this.$D,Z.daysInMonth())).$d}else N&&this.$d[N](V);return this.init(),this},P.set=function(L,M){return this.clone().$set(L,M)},P.get=function(L){return this[O.p(L)]()},P.add=function(L,M){var S,T=this;L=Number(L);var _=O.p(M),N=function(W){var q=A(T);return O.w(q.date(q.date()+Math.round(W*L)),T)};if(_===d)return this.set(d,this.$M+L);if(_===v)return this.set(v,this.$y+L);if(_===u)return N(1);if(_===f)return N(7);var V=(S={},S[l]=r,S[c]=i,S[a]=n,S)[_]||1,Z=this.$d.getTime()+L*V;return O.w(Z,this)},P.subtract=function(L,M){return this.add(-1*L,M)},P.format=function(L){var M=this,S=this.$locale();if(!this.isValid())return S.invalidDate||y;var T=L||"YYYY-MM-DDTHH:mm:ssZ",_=O.z(this),N=this.$H,V=this.$m,Z=this.$M,W=S.weekdays,q=S.months,Y=S.meridiem,K=function(te,$,R,J){return te&&(te[$]||te(M,T))||R[$].slice(0,J)},ee=function(te){return O.s(N%12||12,te,"0")},ue=Y||function(te,$,R){var J=te<12?"AM":"PM";return R?J.toLowerCase():J};return T.replace(h,function(te,$){return $||function(R){switch(R){case"YY":return String(M.$y).slice(-2);case"YYYY":return O.s(M.$y,4,"0");case"M":return Z+1;case"MM":return O.s(Z+1,2,"0");case"MMM":return K(S.monthsShort,Z,q,3);case"MMMM":return K(q,Z);case"D":return M.$D;case"DD":return O.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return K(S.weekdaysMin,M.$W,W,2);case"ddd":return K(S.weekdaysShort,M.$W,W,3);case"dddd":return W[M.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return ue(N,V,!0);case"A":return ue(N,V,!1);case"m":return String(V);case"mm":return O.s(V,2,"0");case"s":return String(M.$s);case"ss":return O.s(M.$s,2,"0");case"SSS":return O.s(M.$ms,3,"0");case"Z":return _}return null}(te)||_.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(L,M,S){var T,_=this,N=O.p(M),V=A(L),Z=(V.utcOffset()-this.utcOffset())*r,W=this-V,q=function(){return O.m(_,V)};switch(N){case v:T=q()/12;break;case d:T=q();break;case m:T=q()/3;break;case f:T=(W-Z)/6048e5;break;case u:T=(W-Z)/864e5;break;case c:T=W/i;break;case l:T=W/r;break;case a:T=W/n;break;default:T=W}return S?T:O.a(T)},P.daysInMonth=function(){return this.endOf(d).$D},P.$locale=function(){return C[this.$L]},P.locale=function(L,M){if(!L)return this.$L;var S=this.clone(),T=F(L,M,!0);return T&&(S.$L=T),S},P.clone=function(){return O.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()},I}(),D=B.prototype;return A.prototype=D,[["$ms",o],["$s",a],["$m",l],["$H",c],["$W",u],["$M",d],["$y",v],["$D",b]].forEach(function(I){D[I[1]]=function(P){return this.$g(P,I[0],I[1])}}),A.extend=function(I,P){return I.$i||(I(P,B,A),I.$i=!0),A},A.locale=F,A.isDayjs=k,A.unix=function(I){return A(1e3*I)},A.en=C[w],A.Ls=C,A.p={},A})})(zc);var Ph=zc.exports;const oe=dt(Ph);function Mh(t,e){var n;Br&&(Xn(t)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof t)));var r=Gi(t),i=(n=e==null?void 0:e.wait)!==null&&n!==void 0?n:1e3,o=s.useMemo(function(){return mh(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return r.current.apply(r,Is([],wt(a),!1))},i,e)},[]);return Wr(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}function Ah(t,e,n){var r=wt(s.useState({}),2),i=r[0],o=r[1],a=Mh(function(){o({})},n).run;s.useEffect(function(){return a()},e),Ts(t,[i])}function Ih(t){var e=wt(s.useState(t),2),n=e[0],r=e[1],i=s.useRef(n);i.current=n;var o=s.useCallback(function(){return i.current},[]);return[n,r,o]}(function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function t(p){try{return p.defaultView&&p.defaultView.frameElement||null}catch{return null}}var e=function(p){for(var E=p,w=t(E);w;)E=w.ownerDocument,w=t(E);return E}(window.document),n=[],r=null,i=null;function o(p){this.time=p.time,this.target=p.target,this.rootBounds=b(p.rootBounds),this.boundingClientRect=b(p.boundingClientRect),this.intersectionRect=b(p.intersectionRect||v()),this.isIntersecting=!!p.intersectionRect;var E=this.boundingClientRect,w=E.width*E.height,C=this.intersectionRect,k=C.width*C.height;w?this.intersectionRatio=Number((k/w).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function a(p,E){var w=E||{};if(typeof p!="function")throw new Error("callback must be a function");if(w.root&&w.root.nodeType!=1&&w.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=c(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=p,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(w.rootMargin),this.thresholds=this._initThresholds(w.threshold),this.root=w.root||null,this.rootMargin=this._rootMarginValues.map(function(C){return C.value+C.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return r||(r=function(p,E){!p||!E?i=v():i=y(p,E),n.forEach(function(w){w._checkForIntersections()})}),r},a._resetCrossOriginUpdater=function(){r=null,i=null},a.prototype.observe=function(p){var E=this._observationTargets.some(function(w){return w.element==p});if(!E){if(!(p&&p.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:p,entry:null}),this._monitorIntersections(p.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(p){this._observationTargets=this._observationTargets.filter(function(E){return E.element!=p}),this._unmonitorIntersections(p.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var p=this._queuedEntries.slice();return this._queuedEntries=[],p},a.prototype._initThresholds=function(p){var E=p||[0];return Array.isArray(E)||(E=[E]),E.sort().filter(function(w,C,k){if(typeof w!="number"||isNaN(w)||w<0||w>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return w!==k[C-1]})},a.prototype._parseRootMargin=function(p){var E=p||"0px",w=E.split(/\s+/).map(function(C){var k=/^(-?\d*\.?\d+)(px|%)$/.exec(C);if(!k)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(k[1]),unit:k[2]}});return w[1]=w[1]||w[0],w[2]=w[2]||w[0],w[3]=w[3]||w[1],w},a.prototype._monitorIntersections=function(p){var E=p.defaultView;if(E&&this._monitoringDocuments.indexOf(p)==-1){var w=this._checkForIntersections,C=null,k=null;this.POLL_INTERVAL?C=E.setInterval(w,this.POLL_INTERVAL):(u(E,"resize",w,!0),u(p,"scroll",w,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in E&&(k=new E.MutationObserver(w),k.observe(p,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(p),this._monitoringUnsubscribes.push(function(){var O=p.defaultView;O&&(C&&O.clearInterval(C),f(O,"resize",w,!0)),f(p,"scroll",w,!0),k&&k.disconnect()});var F=this.root&&(this.root.ownerDocument||this.root)||e;if(p!=F){var A=t(p);A&&this._monitorIntersections(A.ownerDocument)}}},a.prototype._unmonitorIntersections=function(p){var E=this._monitoringDocuments.indexOf(p);if(E!=-1){var w=this.root&&(this.root.ownerDocument||this.root)||e,C=this._observationTargets.some(function(A){var O=A.element.ownerDocument;if(O==p)return!0;for(;O&&O!=w;){var B=t(O);if(O=B&&B.ownerDocument,O==p)return!0}return!1});if(!C){var k=this._monitoringUnsubscribes[E];if(this._monitoringDocuments.splice(E,1),this._monitoringUnsubscribes.splice(E,1),k(),p!=w){var F=t(p);F&&this._unmonitorIntersections(F.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var p=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var E=0;E<p.length;E++)p[E]()},a.prototype._checkForIntersections=function(){if(!(!this.root&&r&&!i)){var p=this._rootIsInDom(),E=p?this._getRootRect():v();this._observationTargets.forEach(function(w){var C=w.element,k=m(C),F=this._rootContainsTarget(C),A=w.entry,O=p&&F&&this._computeTargetAndRootIntersection(C,k,E),B=null;this._rootContainsTarget(C)?(!r||this.root)&&(B=E):B=v();var D=w.entry=new o({time:l(),target:C,boundingClientRect:k,rootBounds:B,intersectionRect:O});A?p&&F?this._hasCrossedThreshold(A,D)&&this._queuedEntries.push(D):A&&A.isIntersecting&&this._queuedEntries.push(D):this._queuedEntries.push(D)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(p,E,w){if(window.getComputedStyle(p).display!="none"){for(var C=E,k=h(p),F=!1;!F&&k;){var A=null,O=k.nodeType==1?window.getComputedStyle(k):{};if(O.display=="none")return null;if(k==this.root||k.nodeType==9)if(F=!0,k==this.root||k==e)r&&!this.root?!i||i.width==0&&i.height==0?(k=null,A=null,C=null):A=i:A=w;else{var B=h(k),D=B&&m(B),I=B&&this._computeTargetAndRootIntersection(B,D,w);D&&I?(k=B,A=y(D,I)):(k=null,C=null)}else{var P=k.ownerDocument;k!=P.body&&k!=P.documentElement&&O.overflow!="visible"&&(A=m(k))}if(A&&(C=d(A,C)),!C)break;k=k&&h(k)}return C}},a.prototype._getRootRect=function(){var p;if(this.root&&!x(this.root))p=m(this.root);else{var E=x(this.root)?this.root:e,w=E.documentElement,C=E.body;p={top:0,left:0,right:w.clientWidth||C.clientWidth,width:w.clientWidth||C.clientWidth,bottom:w.clientHeight||C.clientHeight,height:w.clientHeight||C.clientHeight}}return this._expandRectByRootMargin(p)},a.prototype._expandRectByRootMargin=function(p){var E=this._rootMarginValues.map(function(C,k){return C.unit=="px"?C.value:C.value*(k%2?p.width:p.height)/100}),w={top:p.top-E[0],right:p.right+E[1],bottom:p.bottom+E[2],left:p.left-E[3]};return w.width=w.right-w.left,w.height=w.bottom-w.top,w},a.prototype._hasCrossedThreshold=function(p,E){var w=p&&p.isIntersecting?p.intersectionRatio||0:-1,C=E.isIntersecting?E.intersectionRatio||0:-1;if(w!==C)for(var k=0;k<this.thresholds.length;k++){var F=this.thresholds[k];if(F==w||F==C||F<w!=F<C)return!0}},a.prototype._rootIsInDom=function(){return!this.root||g(e,this.root)},a.prototype._rootContainsTarget=function(p){var E=this.root&&(this.root.ownerDocument||this.root)||e;return g(E,p)&&(!this.root||E==p.ownerDocument)},a.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},a.prototype._unregisterInstance=function(){var p=n.indexOf(this);p!=-1&&n.splice(p,1)};function l(){return window.performance&&performance.now&&performance.now()}function c(p,E){var w=null;return function(){w||(w=setTimeout(function(){p(),w=null},E))}}function u(p,E,w,C){typeof p.addEventListener=="function"?p.addEventListener(E,w,C||!1):typeof p.attachEvent=="function"&&p.attachEvent("on"+E,w)}function f(p,E,w,C){typeof p.removeEventListener=="function"?p.removeEventListener(E,w,C||!1):typeof p.detachEvent=="function"&&p.detachEvent("on"+E,w)}function d(p,E){var w=Math.max(p.top,E.top),C=Math.min(p.bottom,E.bottom),k=Math.max(p.left,E.left),F=Math.min(p.right,E.right),A=F-k,O=C-w;return A>=0&&O>=0&&{top:w,bottom:C,left:k,right:F,width:A,height:O}||null}function m(p){var E;try{E=p.getBoundingClientRect()}catch{}return E?(E.width&&E.height||(E={top:E.top,right:E.right,bottom:E.bottom,left:E.left,width:E.right-E.left,height:E.bottom-E.top}),E):v()}function v(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function b(p){return!p||"x"in p?p:{top:p.top,y:p.top,bottom:p.bottom,left:p.left,x:p.left,right:p.right,width:p.width,height:p.height}}function y(p,E){var w=E.top-p.top,C=E.left-p.left;return{top:w,left:C,height:E.height,width:E.width,bottom:w+E.height,right:C+E.width}}function g(p,E){for(var w=E;w;){if(w==p)return!0;w=h(w)}return!1}function h(p){var E=p.parentNode;return p.nodeType==9&&p!=e?t(p):(E&&E.assignedSlot&&(E=E.assignedSlot.parentNode),E&&E.nodeType==11&&E.host?E.host:E)}function x(p){return p&&p.nodeType===9}window.IntersectionObserver=a,window.IntersectionObserverEntry=o})();function Th(t,e){var n=wt(s.useState(),2),r=n[0],i=n[1],o=wt(s.useState(),2),a=o[0],l=o[1];return js(function(){var c=Kt(t);if(c){var u=new IntersectionObserver(function(f){var d,m;try{for(var v=lm(f),b=v.next();!b.done;b=v.next()){var y=b.value;l(y.intersectionRatio),i(y.isIntersecting)}}catch(g){d={error:g}}finally{try{b&&!b.done&&(m=v.return)&&m.call(v)}finally{if(d)throw d.error}}},Yi(Yi({},e),{root:Kt(e==null?void 0:e.root)}));return u.observe(c),function(){u.disconnect()}}},[e==null?void 0:e.rootMargin,e==null?void 0:e.threshold],t),[r,a]}var Lh=Vs?s.useLayoutEffect:s.useEffect;const Me=Lh;function Dh(t){var e=this,n=s.useRef(!1);return s.useCallback(function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Ne(e,void 0,void 0,function(){var o,a;return am(this,function(l){switch(l.label){case 0:if(n.current)return[2];n.current=!0,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,t.apply(void 0,Is([],wt(r),!1))];case 2:return o=l.sent(),n.current=!1,[2,o];case 3:throw a=l.sent(),n.current=!1,a;case 4:return[2]}})})},[t])}function Vh(t){var e=s.useRef(0),n=wt(s.useState(t),2),r=n[0],i=n[1],o=s.useCallback(function(a){cancelAnimationFrame(e.current),e.current=requestAnimationFrame(function(){i(a)})},[]);return Wr(function(){cancelAnimationFrame(e.current)}),[r,o]}var jh=function(){var t=s.useRef(!1);return s.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),t};const Bs=jh;var Uc=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var r=t(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},e.prototype.set=function(n,r){var i=t(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},e.prototype.delete=function(n){var r=this.__entries__,i=t(r,n);~i&&r.splice(i,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];n.call(r,a[1],a[0])}},e}()}(),Ws=typeof window<"u"&&typeof document<"u"&&window.document===document,Xi=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Bh=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Xi):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),Wh=2;function Zh(t,e){var n=!1,r=!1,i=0;function o(){n&&(n=!1,t()),r&&l()}function a(){Bh(o)}function l(){var c=Date.now();if(n){if(c-i<Wh)return;r=!0}else n=!0,r=!1,setTimeout(a,e);i=c}return l}var Hh=20,qh=["top","right","bottom","left","width","height","size","weight"],zh=typeof MutationObserver<"u",Uh=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Zh(this.refresh.bind(this),Hh)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!Ws||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),zh?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!Ws||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,i=qh.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Kc=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},$n=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||Xi},Yc=Qi(0,0,0,0);function $i(t){return parseFloat(t)||0}function Gc(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,i){var o=t["border-"+i+"-width"];return r+$i(o)},0)}function Kh(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var o=i[r],a=t["padding-"+o];n[o]=$i(a)}return n}function Yh(t){var e=t.getBBox();return Qi(0,0,e.width,e.height)}function Gh(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return Yc;var r=$n(t).getComputedStyle(t),i=Kh(r),o=i.left+i.right,a=i.top+i.bottom,l=$i(r.width),c=$i(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+o)!==e&&(l-=Gc(r,"left","right")+o),Math.round(c+a)!==n&&(c-=Gc(r,"top","bottom")+a)),!$h(t)){var u=Math.round(l+o)-e,f=Math.round(c+a)-n;Math.abs(u)!==1&&(l-=u),Math.abs(f)!==1&&(c-=f)}return Qi(i.left,i.top,l,c)}var Xh=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof $n(t).SVGGraphicsElement}:function(t){return t instanceof $n(t).SVGElement&&typeof t.getBBox=="function"}}();function $h(t){return t===$n(t).document.documentElement}function Qh(t){return Ws?Xh(t)?Yh(t):Gh(t):Yc}function Jh(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Kc(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function Qi(t,e,n,r){return{x:t,y:e,width:n,height:r}}var Rh=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Qi(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=Qh(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),ev=function(){function t(e,n){var r=Jh(n);Kc(this,{target:e,contentRect:r})}return t}(),tv=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new Uc,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof $n(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new Rh(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof $n(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new ev(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Xc=typeof WeakMap<"u"?new WeakMap:new Uc,$c=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Uh.getInstance(),r=new tv(e,n,this);Xc.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){$c.prototype[t]=function(){var e;return(e=Xc.get(this))[t].apply(e,arguments)}});var nv=function(){return typeof Xi.ResizeObserver<"u"?Xi.ResizeObserver:$c}(),rv=Hc(s.useLayoutEffect),iv=Vs?rv:js;const ov=iv;function Zs(t){var e=wt(Vh(function(){var i=Kt(t);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),n=e[0],r=e[1];return ov(function(){var i=Kt(t);if(i){var o=new nv(function(a){a.forEach(function(l){var c=l.target,u=c.clientWidth,f=c.clientHeight;r({width:u,height:f})})});return o.observe(i),function(){o.disconnect()}}},[],t),n}function Ji(t,e){var n;Br&&(Xn(t)||console.error("useThrottleFn expected parameter is a function, got ".concat(typeof t)));var r=Gi(t),i=(n=e==null?void 0:e.wait)!==null&&n!==void 0?n:1e3,o=s.useMemo(function(){return Eh(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return r.current.apply(r,Is([],wt(a),!1))},i,e)},[]);return Wr(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}var sv=function(t,e){var n=Tt(t),r=s.useRef(null),i=s.useCallback(function(){r.current&&clearTimeout(r.current)},[]);return s.useEffect(function(){if(!(!dm(e)||e<0))return r.current=setTimeout(n,e),i},[e]),i};const av=sv,Qc=10;function lv(t,e){return t>e&&t>Qc?"horizontal":e>t&&e>Qc?"vertical":""}function cv(){const t=s.useRef(0),e=s.useRef(0),n=s.useRef(0),r=s.useRef(0),i=s.useRef(0),o=s.useRef(0),a=s.useRef(""),l=()=>a.current==="vertical",c=()=>a.current==="horizontal",u=()=>{n.current=0,r.current=0,i.current=0,o.current=0,a.current=""};return{move:m=>{const v=m.touches[0];n.current=v.clientX<0?0:v.clientX-t.current,r.current=v.clientY-e.current,i.current=Math.abs(n.current),o.current=Math.abs(r.current),a.current||(a.current=lv(i.current,o.current))},start:m=>{u(),t.current=m.touches[0].clientX,e.current=m.touches[0].clientY},reset:u,startX:t,startY:e,deltaX:n,deltaY:r,offsetX:i,offsetY:o,direction:a,isVertical:l,isHorizontal:c}}const uv=Gn?window:void 0,fv=["scroll","auto","overlay"];function dv(t){return t.nodeType===1}function Ri(t,e=uv){let n=t;for(;n&&n!==e&&dv(n);){if(n===document.body)return e;const{overflowY:r}=window.getComputedStyle(n);if(fv.includes(r)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return e}let vn=!1;if(Gn)try{const t={};Object.defineProperty(t,"passive",{get(){vn=!0}}),window.addEventListener("test-passive",null,t)}catch{}let Hr=0;const Jc="adm-overflow-hidden";function mv(t){let e=t==null?void 0:t.parentElement;for(;e;){if(e.clientHeight<e.scrollHeight)return e;e=e.parentElement}return null}function eo(t,e){const n=cv(),r=a=>{n.move(a);const l=n.deltaY.current>0?"10":"01",c=Ri(a.target,t.current);if(!c)return;if(e==="strict"){const b=mv(a.target);if(b===document.body||b===document.documentElement){a.preventDefault();return}}const{scrollHeight:u,offsetHeight:f,scrollTop:d}=c,{height:m}=c.getBoundingClientRect();let v="11";d===0?v=f>=u?"00":"01":u<=Math.round(m+d)&&(v="10"),v!=="11"&&n.isVertical()&&!(parseInt(v,2)&parseInt(l,2))&&a.cancelable&&vn&&a.preventDefault()},i=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",r,vn?{passive:!1}:!1),Hr||document.body.classList.add(Jc),Hr++},o=()=>{Hr&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",r),Hr--,Hr||document.body.classList.remove(Jc))};s.useEffect(()=>{if(e)return i(),()=>{o()}},[e])}let Hs=zr();const ne=t=>qr(t,Hs);let qs=zr();ne.write=t=>qr(t,qs);let to=zr();ne.onStart=t=>qr(t,to);let zs=zr();ne.onFrame=t=>qr(t,zs);let Us=zr();ne.onFinish=t=>qr(t,Us);let Qn=[];ne.setTimeout=(t,e)=>{let n=ne.now()+e,r=()=>{let o=Qn.findIndex(a=>a.cancel==r);~o&&Qn.splice(o,1),Gt-=~o?1:0},i={time:n,handler:t,cancel:r};return Qn.splice(Rc(n),0,i),Gt+=1,eu(),i};let Rc=t=>~(~Qn.findIndex(e=>e.time>t)||~Qn.length);ne.cancel=t=>{to.delete(t),zs.delete(t),Us.delete(t),Hs.delete(t),qs.delete(t)},ne.sync=t=>{Ys=!0,ne.batchedUpdates(t),Ys=!1},ne.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function r(...i){e=i,ne.onStart(n)}return r.handler=t,r.cancel=()=>{to.delete(n),e=null},r};let Ks=typeof window<"u"?window.requestAnimationFrame:()=>{};ne.use=t=>Ks=t,ne.now=typeof performance<"u"?()=>performance.now():Date.now,ne.batchedUpdates=t=>t(),ne.catch=console.error,ne.frameLoop="always",ne.advance=()=>{ne.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):nu()};let Yt=-1,Gt=0,Ys=!1;function qr(t,e){Ys?(e.delete(t),t(0)):(e.add(t),eu())}function eu(){Yt<0&&(Yt=0,ne.frameLoop!=="demand"&&Ks(tu))}function hv(){Yt=-1}function tu(){~Yt&&(Ks(tu),ne.batchedUpdates(nu))}function nu(){let t=Yt;Yt=ne.now();let e=Rc(Yt);if(e&&(ru(Qn.splice(0,e),n=>n.handler()),Gt-=e),!Gt){hv();return}to.flush(),Hs.flush(t?Math.min(64,Yt-t):16.667),zs.flush(),qs.flush(),Us.flush()}function zr(){let t=new Set,e=t;return{add(n){Gt+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return Gt-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,Gt-=e.size,ru(e,r=>r(n)&&t.add(r)),Gt+=t.size,e=t)}}}function ru(t,e){t.forEach(n=>{try{e(n)}catch(r){ne.catch(r)}})}function Gs(){}const vv=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),G={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function Lt(t,e){if(G.arr(t)){if(!G.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}const le=(t,e)=>t.forEach(e);function Ct(t,e,n){if(G.arr(t)){for(let r=0;r<t.length;r++)e.call(n,t[r],`${r}`);return}for(const r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r)}const Ye=t=>G.und(t)?[]:G.arr(t)?t:[t];function Ur(t,e){if(t.size){const n=Array.from(t);t.clear(),le(n,e)}}const Kr=(t,...e)=>Ur(t,n=>n(...e)),Xs=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let $s,iu,Xt=null,ou=!1,Qs=Gs;var et=Object.freeze({__proto__:null,get createStringInterpolator(){return $s},get to(){return iu},get colors(){return Xt},get skipAnimation(){return ou},get willAdvance(){return Qs},assign:t=>{t.to&&(iu=t.to),t.now&&(ne.now=t.now),t.colors!==void 0&&(Xt=t.colors),t.skipAnimation!=null&&(ou=t.skipAnimation),t.createStringInterpolator&&($s=t.createStringInterpolator),t.requestAnimationFrame&&ne.use(t.requestAnimationFrame),t.batchedUpdates&&(ne.batchedUpdates=t.batchedUpdates),t.willAdvance&&(Qs=t.willAdvance),t.frameLoop&&(ne.frameLoop=t.frameLoop)}});const Yr=new Set;let tt=[],Js=[],no=0;const ro={get idle(){return!Yr.size&&!tt.length},start(t){no>t.priority?(Yr.add(t),ne.onStart(pv)):(su(t),ne(Rs))},advance:Rs,sort(t){if(no)ne.onFrame(()=>ro.sort(t));else{const e=tt.indexOf(t);~e&&(tt.splice(e,1),au(t))}},clear(){tt=[],Yr.clear()}};function pv(){Yr.forEach(su),Yr.clear(),ne(Rs)}function su(t){tt.includes(t)||au(t)}function au(t){tt.splice(gv(tt,e=>e.priority>t.priority),0,t)}function Rs(t){const e=Js;for(let n=0;n<tt.length;n++){const r=tt[n];no=r.priority,r.idle||(Qs(r),r.advance(t),r.idle||e.push(r))}return no=0,Js=tt,Js.length=0,tt=e,tt.length>0}function gv(t,e){const n=t.findIndex(e);return n<0?t.length:n}const yv=(t,e,n)=>Math.min(Math.max(n,t),e),bv={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},mt="[-+]?\\d*\\.?\\d+",io=mt+"%";function oo(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const Ev=new RegExp("rgb"+oo(mt,mt,mt)),wv=new RegExp("rgba"+oo(mt,mt,mt,mt)),Cv=new RegExp("hsl"+oo(mt,io,io)),xv=new RegExp("hsla"+oo(mt,io,io,mt)),kv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,_v=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Sv=/^#([0-9a-fA-F]{6})$/,Ov=/^#([0-9a-fA-F]{8})$/;function Fv(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Sv.exec(t))?parseInt(e[1]+"ff",16)>>>0:Xt&&Xt[t]!==void 0?Xt[t]:(e=Ev.exec(t))?(Jn(e[1])<<24|Jn(e[2])<<16|Jn(e[3])<<8|255)>>>0:(e=wv.exec(t))?(Jn(e[1])<<24|Jn(e[2])<<16|Jn(e[3])<<8|uu(e[4]))>>>0:(e=kv.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Ov.exec(t))?parseInt(e[1],16)>>>0:(e=_v.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=Cv.exec(t))?(lu(cu(e[1]),so(e[2]),so(e[3]))|255)>>>0:(e=xv.exec(t))?(lu(cu(e[1]),so(e[2]),so(e[3]))|uu(e[4]))>>>0:null}function ea(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function lu(t,e,n){const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,o=ea(i,r,t+1/3),a=ea(i,r,t),l=ea(i,r,t-1/3);return Math.round(o*255)<<24|Math.round(a*255)<<16|Math.round(l*255)<<8}function Jn(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function cu(t){return(parseFloat(t)%360+360)%360/360}function uu(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function so