antd-mobile
Version:
<div align="center">
5 lines • 443 kB
JavaScript
(function(H,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],o):(H=typeof globalThis<"u"?globalThis:H||self,o(H.antdMobile={},H.React,H.ReactDOM))})(this,function(H,o,xi){"use strict";function kl(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 D=kl(o),y0=kl(xi),Pn=!!(typeof window<"u"&&typeof document<"u"&&window.document&&window.document.createElement);Pn&&document.addEventListener("touchstart",()=>{},!0);var ki=function(){return ki=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},ki.apply(this,arguments)};function Mn(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 Ce(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,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?s(f.value):i(f.value).then(l,c)}u((r=r.apply(t,e||[])).next())})}function b0(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,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&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=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(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){n.label=u[1];break}if(u[0]===6&&n.label<s[1]){n.label=s[1],s=u;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(u);break}s[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(f){u=[6,f],i=0}finally{r=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function E0(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 ct(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,s=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.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 s}function es(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;const Be="${label}不是一个有效的${type}",_l={current:{locale:{locale:"zh-CH",common:{confirm:"确定",cancel:"取消",loading:"加载中",close:"关闭"},Calendar:{title:"日期选择",confirm:"确认",start:"开始",end:"结束",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:Be,method:Be,array:Be,object:Be,number:Be,date:Be,boolean:Be,integer:Be,float:Be,regexp:Be,email:Be,url:Be,hex:Be},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 w0(t){_l.current=t}function gr(){return _l.current}const Sl=o.createContext(null),C0=t=>{const{children:e}=t,n=Mn(t,["children"]),r=te();return o.createElement(Sl.Provider,{value:Object.assign(Object.assign({},r),n)},e)};function te(){var t;return(t=o.useContext(Sl))!==null&&t!==void 0?t:gr()}function le(t,e){const n=t;for(const r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}var rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ut(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ol={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 s=arguments[i];if(s){var a=typeof s;if(a==="string"||a==="number")r.push(s);else if(Array.isArray(s)){if(s.length){var l=n.apply(null,s);l&&r.push(l)}}else if(a==="object"){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){r.push(s.toString());continue}for(var c in s)e.call(s,c)&&s[c]&&r.push(c)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Ol);var x0=Ol.exports;const B=ut(x0);function Z(t,e){const n=Object.assign({},e.props);t.className&&(n.className=B(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 o.cloneElement(e,n)}function U(...t){const e={};return t.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(e[r]=n[r])})}),e}function At(t,...e){for(let n=e.length-1;n>=0;n-=1)if(e[n]!==void 0)return e[n];return t}var Fl=function(t){return function(e,n){var r=o.useRef(!1);t(function(){return function(){r.current=!1}},[]),t(function(){if(!r.current)r.current=!0;else return e()},n)}},In=function(t){return typeof t=="function"},k0=function(t){return typeof t=="number"},_0=!1;const pr=_0;function Ct(t){pr&&(In(t)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof t)));var e=o.useRef(t);e.current=o.useMemo(function(){return t},[t]);var n=o.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=Fl(o.useEffect);function Nl(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 _i(t){var e=o.useRef(t);return e.current=t,e}var S0=function(t){pr&&(In(t)||console.error("useUnmount expected parameter is a function, got ".concat(typeof t)));var e=_i(t);o.useEffect(function(){return function(){e.current()}},[])};const yr=S0;function O0(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var ns=O0,F0=typeof rt=="object"&&rt&&rt.Object===Object&&rt,N0=F0,P0=N0,M0=typeof self=="object"&&self&&self.Object===Object&&self,I0=P0||M0||Function("return this")(),Pl=I0,T0=Pl,A0=function(){return T0.Date.now()},L0=A0,D0=/\s/;function V0(t){for(var e=t.length;e--&&D0.test(t.charAt(e)););return e}var j0=V0,B0=j0,W0=/^\s+/;function Z0(t){return t&&t.slice(0,B0(t)+1).replace(W0,"")}var H0=Z0,z0=Pl,q0=z0.Symbol,Ml=q0,Il=Ml,Tl=Object.prototype,U0=Tl.hasOwnProperty,K0=Tl.toString,br=Il?Il.toStringTag:void 0;function Y0(t){var e=U0.call(t,br),n=t[br];try{t[br]=void 0;var r=!0}catch{}var i=K0.call(t);return r&&(e?t[br]=n:delete t[br]),i}var G0=Y0,X0=Object.prototype,Q0=X0.toString;function J0(t){return Q0.call(t)}var $0=J0,Al=Ml,R0=G0,em=$0,tm="[object Null]",nm="[object Undefined]",Ll=Al?Al.toStringTag:void 0;function rm(t){return t==null?t===void 0?nm:tm:Ll&&Ll in Object(t)?R0(t):em(t)}var im=rm;function om(t){return t!=null&&typeof t=="object"}var sm=om,am=im,lm=sm,cm="[object Symbol]";function um(t){return typeof t=="symbol"||lm(t)&&am(t)==cm}var fm=um,dm=H0,Dl=ns,mm=fm,Vl=NaN,hm=/^[-+]0x[0-9a-f]+$/i,vm=/^0b[01]+$/i,gm=/^0o[0-7]+$/i,pm=parseInt;function ym(t){if(typeof t=="number")return t;if(mm(t))return Vl;if(Dl(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Dl(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=dm(t);var n=vm.test(t);return n||gm.test(t)?pm(t.slice(2),n?2:8):hm.test(t)?Vl:+t}var bm=ym,Em=ns,rs=L0,jl=bm,wm="Expected a function",Cm=Math.max,xm=Math.min;function km(t,e,n){var r,i,s,a,l,c,u=0,f=!1,d=!1,m=!0;if(typeof t!="function")throw new TypeError(wm);e=jl(e)||0,Em(n)&&(f=!!n.leading,d="maxWait"in n,s=d?Cm(jl(n.maxWait)||0,e):s,m="trailing"in n?!!n.trailing:m);function b(x){var k=r,_=i;return r=i=void 0,u=x,a=t.apply(_,k),a}function p(x){return u=x,l=setTimeout(h,e),f?b(x):a}function y(x){var k=x-c,_=x-u,P=e-k;return d?xm(P,s-_):P}function v(x){var k=x-c,_=x-u;return c===void 0||k>=e||k<0||d&&_>=s}function h(){var x=rs();if(v(x))return C(x);l=setTimeout(h,y(x))}function C(x){return l=void 0,m&&r?b(x):(r=i=void 0,a)}function g(){l!==void 0&&clearTimeout(l),u=0,r=c=i=l=void 0}function E(){return l===void 0?a:C(rs())}function w(){var x=rs(),k=v(x);if(r=arguments,i=this,c=x,k){if(l===void 0)return p(c);if(d)return clearTimeout(l),l=setTimeout(h,e),b(c)}return l===void 0&&(l=setTimeout(h,e)),a}return w.cancel=g,w.flush=E,w}var Bl=km;const _m=ut(Bl);var Sm=!!(typeof window<"u"&&window.document&&window.document.createElement);const is=Sm;var Om=Bl,Fm=ns,Nm="Expected a function";function Pm(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(Nm);return Fm(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Om(t,e,{leading:r,maxWait:e,trailing:i})}var Mm=Pm;const Im=ut(Mm);var Tm=function(t){pr&&(In(t)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof t,'".'))),o.useEffect(function(){t==null||t()},[])};const Am=Tm;var Lm=function(){var t=ct(o.useState({}),2),e=t[1];return o.useCallback(function(){return e({})},[])};const Wl=Lm;function Lt(t,e){if(is){if(!t)return e;var n;return In(t)?n=t():"current"in t?n=t.current:n=t,n}}var Dm=function(t){return t.every(function(e){var n=Lt(e);if(!n)return!1;if(n.getRootNode()instanceof ShadowRoot)return!0})},Vm=function(t){return t?t.getRootNode():document},jm=function(t){if(!t||!document.getRootNode)return document;var e=Array.isArray(t)?t:[t];return Dm(e)?Vm(Lt(e[0])):document};const Bm=jm;var Wm=function(t){var e=function(n,r,i){var s=o.useRef(!1),a=o.useRef([]),l=o.useRef([]),c=o.useRef();t(function(){var u,f=Array.isArray(i)?i:[i],d=f.map(function(m){return Lt(m)});if(!s.current){s.current=!0,a.current=d,l.current=r,c.current=n();return}(d.length!==a.current.length||!Nl(d,a.current)||!Nl(r,l.current))&&((u=c.current)===null||u===void 0||u.call(c),a.current=d,l.current=r,c.current=n())}),yr(function(){var u;(u=c.current)===null||u===void 0||u.call(c),s.current=!1})};return e};const Zl=Wm;var Zm=Zl(o.useEffect);const os=Zm;function Hl(t,e,n){n===void 0&&(n="click");var r=_i(t);os(function(){var i=function(l){var c=Array.isArray(e)?e:[e];c.some(function(u){var f=Lt(u);return!f||f.contains(l.target)})||r.current(l)},s=Bm(e),a=Array.isArray(n)?n:[n];return a.forEach(function(l){return s.addEventListener(l,i)}),function(){a.forEach(function(l){return s.removeEventListener(l,i)})}},Array.isArray(n)?n:[n],e)}var zl={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(rt,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",l="minute",c="hour",u="day",f="week",d="month",m="quarter",b="year",p="date",y="Invalid Date",v=/^(\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,C={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(T){var S=["th","st","nd","rd"],A=T%100;return"["+T+(S[(A-20)%10]||S[A]||S[0])+"]"}},g=function(T,S,A){var N=String(T);return!N||N.length>=S?T:""+Array(S+1-N.length).join(A)+T},E={s:g,z:function(T){var S=-T.utcOffset(),A=Math.abs(S),N=Math.floor(A/60),F=A%60;return(S<=0?"+":"-")+g(N,2,"0")+":"+g(F,2,"0")},m:function T(S,A){if(S.date()<A.date())return-T(A,S);var N=12*(A.year()-S.year())+(A.month()-S.month()),F=S.clone().add(N,d),I=A-F<0,M=S.clone().add(N+(I?-1:1),d);return+(-(N+(A-F)/(I?F-M:M-F))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:d,y:b,w:f,d:u,D:p,h:c,m:l,s:a,ms:s,Q:m}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},w="en",x={};x[w]=C;var k=function(T){return T instanceof V},_=function T(S,A,N){var F;if(!S)return w;if(typeof S=="string"){var I=S.toLowerCase();x[I]&&(F=I),A&&(x[I]=A,F=I);var M=S.split("-");if(!F&&M.length>1)return T(M[0])}else{var L=S.name;x[L]=S,F=L}return!N&&F&&(w=F),F||!N&&w},P=function(T,S){if(k(T))return T.clone();var A=typeof S=="object"?S:{};return A.date=T,A.args=arguments,new V(A)},O=E;O.l=_,O.i=k,O.w=function(T,S){return P(T,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var V=function(){function T(A){this.$L=_(A.locale,null,!0),this.parse(A)}var S=T.prototype;return S.parse=function(A){this.$d=function(N){var F=N.date,I=N.utc;if(F===null)return new Date(NaN);if(O.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var M=F.match(v);if(M){var L=M[2]-1||0,W=(M[7]||"0").substring(0,3);return I?new Date(Date.UTC(M[1],L,M[3]||1,M[4]||0,M[5]||0,M[6]||0,W)):new Date(M[1],L,M[3]||1,M[4]||0,M[5]||0,M[6]||0,W)}}return new Date(F)}(A),this.$x=A.x||{},this.init()},S.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},S.$utils=function(){return O},S.isValid=function(){return this.$d.toString()!==y},S.isSame=function(A,N){var F=P(A);return this.startOf(N)<=F&&F<=this.endOf(N)},S.isAfter=function(A,N){return P(A)<this.startOf(N)},S.isBefore=function(A,N){return this.endOf(N)<P(A)},S.$g=function(A,N,F){return O.u(A)?this[N]:this.set(F,A)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(A,N){var F=this,I=!!O.u(N)||N,M=O.p(A),L=function(ae,K){var R=O.w(F.$u?Date.UTC(F.$y,K,ae):new Date(F.$y,K,ae),F);return I?R:R.endOf(u)},W=function(ae,K){return O.w(F.toDate()[ae].apply(F.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(K)),F)},q=this.$W,Y=this.$M,G=this.$D,X="set"+(this.$u?"UTC":"");switch(M){case b:return I?L(1,0):L(31,11);case d:return I?L(1,Y):L(0,Y+1);case f:var Q=this.$locale().weekStart||0,ee=(q<Q?q+7:q)-Q;return L(I?G-ee:G+(6-ee),Y);case u:case p:return W(X+"Hours",0);case c:return W(X+"Minutes",1);case l:return W(X+"Seconds",2);case a:return W(X+"Milliseconds",3);default:return this.clone()}},S.endOf=function(A){return this.startOf(A,!1)},S.$set=function(A,N){var F,I=O.p(A),M="set"+(this.$u?"UTC":""),L=(F={},F[u]=M+"Date",F[p]=M+"Date",F[d]=M+"Month",F[b]=M+"FullYear",F[c]=M+"Hours",F[l]=M+"Minutes",F[a]=M+"Seconds",F[s]=M+"Milliseconds",F)[I],W=I===u?this.$D+(N-this.$W):N;if(I===d||I===b){var q=this.clone().set(p,1);q.$d[L](W),q.init(),this.$d=q.set(p,Math.min(this.$D,q.daysInMonth())).$d}else L&&this.$d[L](W);return this.init(),this},S.set=function(A,N){return this.clone().$set(A,N)},S.get=function(A){return this[O.p(A)]()},S.add=function(A,N){var F,I=this;A=Number(A);var M=O.p(N),L=function(Y){var G=P(I);return O.w(G.date(G.date()+Math.round(Y*A)),I)};if(M===d)return this.set(d,this.$M+A);if(M===b)return this.set(b,this.$y+A);if(M===u)return L(1);if(M===f)return L(7);var W=(F={},F[l]=r,F[c]=i,F[a]=n,F)[M]||1,q=this.$d.getTime()+A*W;return O.w(q,this)},S.subtract=function(A,N){return this.add(-1*A,N)},S.format=function(A){var N=this,F=this.$locale();if(!this.isValid())return F.invalidDate||y;var I=A||"YYYY-MM-DDTHH:mm:ssZ",M=O.z(this),L=this.$H,W=this.$m,q=this.$M,Y=F.weekdays,G=F.months,X=F.meridiem,Q=function(K,R,$,we){return K&&(K[R]||K(N,I))||$[R].slice(0,we)},ee=function(K){return O.s(L%12||12,K,"0")},ae=X||function(K,R,$){var we=K<12?"AM":"PM";return $?we.toLowerCase():we};return I.replace(h,function(K,R){return R||function($){switch($){case"YY":return String(N.$y).slice(-2);case"YYYY":return O.s(N.$y,4,"0");case"M":return q+1;case"MM":return O.s(q+1,2,"0");case"MMM":return Q(F.monthsShort,q,G,3);case"MMMM":return Q(G,q);case"D":return N.$D;case"DD":return O.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return Q(F.weekdaysMin,N.$W,Y,2);case"ddd":return Q(F.weekdaysShort,N.$W,Y,3);case"dddd":return Y[N.$W];case"H":return String(L);case"HH":return O.s(L,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return ae(L,W,!0);case"A":return ae(L,W,!1);case"m":return String(W);case"mm":return O.s(W,2,"0");case"s":return String(N.$s);case"ss":return O.s(N.$s,2,"0");case"SSS":return O.s(N.$ms,3,"0");case"Z":return M}return null}(K)||M.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(A,N,F){var I,M=this,L=O.p(N),W=P(A),q=(W.utcOffset()-this.utcOffset())*r,Y=this-W,G=function(){return O.m(M,W)};switch(L){case b:I=G()/12;break;case d:I=G();break;case m:I=G()/3;break;case f:I=(Y-q)/6048e5;break;case u:I=(Y-q)/864e5;break;case c:I=Y/i;break;case l:I=Y/r;break;case a:I=Y/n;break;default:I=Y}return F?I:O.a(I)},S.daysInMonth=function(){return this.endOf(d).$D},S.$locale=function(){return x[this.$L]},S.locale=function(A,N){if(!A)return this.$L;var F=this.clone(),I=_(A,N,!0);return I&&(F.$L=I),F},S.clone=function(){return O.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},T}(),j=V.prototype;return P.prototype=j,[["$ms",s],["$s",a],["$m",l],["$H",c],["$W",u],["$M",d],["$y",b],["$D",p]].forEach(function(T){j[T[1]]=function(S){return this.$g(S,T[0],T[1])}}),P.extend=function(T,S){return T.$i||(T(S,V,P),T.$i=!0),P},P.locale=_,P.isDayjs=k,P.unix=function(T){return P(1e3*T)},P.en=x[w],P.Ls=x,P.p={},P})})(zl);var Hm=zl.exports;const de=ut(Hm);function zm(t,e){var n;pr&&(In(t)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof t)));var r=_i(t),i=(n=e==null?void 0:e.wait)!==null&&n!==void 0?n:1e3,s=o.useMemo(function(){return _m(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return r.current.apply(r,es([],ct(a),!1))},i,e)},[]);return yr(function(){s.cancel()}),{run:s,cancel:s.cancel,flush:s.flush}}function qm(t,e,n){var r=ct(o.useState({}),2),i=r[0],s=r[1],a=zm(function(){s({})},n).run;o.useEffect(function(){return a()},e),ts(t,[i])}function Um(t){var e=ct(o.useState(t),2),n=e[0],r=e[1],i=o.useRef(n);i.current=n;var s=o.useCallback(function(){return i.current},[]);return[n,r,s]}(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(g){try{return g.defaultView&&g.defaultView.frameElement||null}catch{return null}}var e=function(g){for(var E=g,w=t(E);w;)E=w.ownerDocument,w=t(E);return E}(window.document),n=[],r=null,i=null;function s(g){this.time=g.time,this.target=g.target,this.rootBounds=p(g.rootBounds),this.boundingClientRect=p(g.boundingClientRect),this.intersectionRect=p(g.intersectionRect||b()),this.isIntersecting=!!g.intersectionRect;var E=this.boundingClientRect,w=E.width*E.height,x=this.intersectionRect,k=x.width*x.height;w?this.intersectionRatio=Number((k/w).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function a(g,E){var w=E||{};if(typeof g!="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=g,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(x){return x.value+x.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(g,E){!g||!E?i=b():i=y(g,E),n.forEach(function(w){w._checkForIntersections()})}),r},a._resetCrossOriginUpdater=function(){r=null,i=null},a.prototype.observe=function(g){var E=this._observationTargets.some(function(w){return w.element==g});if(!E){if(!(g&&g.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:g,entry:null}),this._monitorIntersections(g.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(g){this._observationTargets=this._observationTargets.filter(function(E){return E.element!=g}),this._unmonitorIntersections(g.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var g=this._queuedEntries.slice();return this._queuedEntries=[],g},a.prototype._initThresholds=function(g){var E=g||[0];return Array.isArray(E)||(E=[E]),E.sort().filter(function(w,x,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[x-1]})},a.prototype._parseRootMargin=function(g){var E=g||"0px",w=E.split(/\s+/).map(function(x){var k=/^(-?\d*\.?\d+)(px|%)$/.exec(x);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(g){var E=g.defaultView;if(E&&this._monitoringDocuments.indexOf(g)==-1){var w=this._checkForIntersections,x=null,k=null;this.POLL_INTERVAL?x=E.setInterval(w,this.POLL_INTERVAL):(u(E,"resize",w,!0),u(g,"scroll",w,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in E&&(k=new E.MutationObserver(w),k.observe(g,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(g),this._monitoringUnsubscribes.push(function(){var O=g.defaultView;O&&(x&&O.clearInterval(x),f(O,"resize",w,!0)),f(g,"scroll",w,!0),k&&k.disconnect()});var _=this.root&&(this.root.ownerDocument||this.root)||e;if(g!=_){var P=t(g);P&&this._monitorIntersections(P.ownerDocument)}}},a.prototype._unmonitorIntersections=function(g){var E=this._monitoringDocuments.indexOf(g);if(E!=-1){var w=this.root&&(this.root.ownerDocument||this.root)||e,x=this._observationTargets.some(function(P){var O=P.element.ownerDocument;if(O==g)return!0;for(;O&&O!=w;){var V=t(O);if(O=V&&V.ownerDocument,O==g)return!0}return!1});if(!x){var k=this._monitoringUnsubscribes[E];if(this._monitoringDocuments.splice(E,1),this._monitoringUnsubscribes.splice(E,1),k(),g!=w){var _=t(g);_&&this._unmonitorIntersections(_.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var g=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var E=0;E<g.length;E++)g[E]()},a.prototype._checkForIntersections=function(){if(!(!this.root&&r&&!i)){var g=this._rootIsInDom(),E=g?this._getRootRect():b();this._observationTargets.forEach(function(w){var x=w.element,k=m(x),_=this._rootContainsTarget(x),P=w.entry,O=g&&_&&this._computeTargetAndRootIntersection(x,k,E),V=null;this._rootContainsTarget(x)?(!r||this.root)&&(V=E):V=b();var j=w.entry=new s({time:l(),target:x,boundingClientRect:k,rootBounds:V,intersectionRect:O});P?g&&_?this._hasCrossedThreshold(P,j)&&this._queuedEntries.push(j):P&&P.isIntersecting&&this._queuedEntries.push(j):this._queuedEntries.push(j)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(g,E,w){if(window.getComputedStyle(g).display!="none"){for(var x=E,k=h(g),_=!1;!_&&k;){var P=null,O=k.nodeType==1?window.getComputedStyle(k):{};if(O.display=="none")return null;if(k==this.root||k.nodeType==9)if(_=!0,k==this.root||k==e)r&&!this.root?!i||i.width==0&&i.height==0?(k=null,P=null,x=null):P=i:P=w;else{var V=h(k),j=V&&m(V),T=V&&this._computeTargetAndRootIntersection(V,j,w);j&&T?(k=V,P=y(j,T)):(k=null,x=null)}else{var S=k.ownerDocument;k!=S.body&&k!=S.documentElement&&O.overflow!="visible"&&(P=m(k))}if(P&&(x=d(P,x)),!x)break;k=k&&h(k)}return x}},a.prototype._getRootRect=function(){var g;if(this.root&&!C(this.root))g=m(this.root);else{var E=C(this.root)?this.root:e,w=E.documentElement,x=E.body;g={top:0,left:0,right:w.clientWidth||x.clientWidth,width:w.clientWidth||x.clientWidth,bottom:w.clientHeight||x.clientHeight,height:w.clientHeight||x.clientHeight}}return this._expandRectByRootMargin(g)},a.prototype._expandRectByRootMargin=function(g){var E=this._rootMarginValues.map(function(x,k){return x.unit=="px"?x.value:x.value*(k%2?g.width:g.height)/100}),w={top:g.top-E[0],right:g.right+E[1],bottom:g.bottom+E[2],left:g.left-E[3]};return w.width=w.right-w.left,w.height=w.bottom-w.top,w},a.prototype._hasCrossedThreshold=function(g,E){var w=g&&g.isIntersecting?g.intersectionRatio||0:-1,x=E.isIntersecting?E.intersectionRatio||0:-1;if(w!==x)for(var k=0;k<this.thresholds.length;k++){var _=this.thresholds[k];if(_==w||_==x||_<w!=_<x)return!0}},a.prototype._rootIsInDom=function(){return!this.root||v(e,this.root)},a.prototype._rootContainsTarget=function(g){var E=this.root&&(this.root.ownerDocument||this.root)||e;return v(E,g)&&(!this.root||E==g.ownerDocument)},a.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},a.prototype._unregisterInstance=function(){var g=n.indexOf(this);g!=-1&&n.splice(g,1)};function l(){return window.performance&&performance.now&&performance.now()}function c(g,E){var w=null;return function(){w||(w=setTimeout(function(){g(),w=null},E))}}function u(g,E,w,x){typeof g.addEventListener=="function"?g.addEventListener(E,w,x||!1):typeof g.attachEvent=="function"&&g.attachEvent("on"+E,w)}function f(g,E,w,x){typeof g.removeEventListener=="function"?g.removeEventListener(E,w,x||!1):typeof g.detachEvent=="function"&&g.detachEvent("on"+E,w)}function d(g,E){var w=Math.max(g.top,E.top),x=Math.min(g.bottom,E.bottom),k=Math.max(g.left,E.left),_=Math.min(g.right,E.right),P=_-k,O=x-w;return P>=0&&O>=0&&{top:w,bottom:x,left:k,right:_,width:P,height:O}||null}function m(g){var E;try{E=g.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):b()}function b(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function p(g){return!g||"x"in g?g:{top:g.top,y:g.top,bottom:g.bottom,left:g.left,x:g.left,right:g.right,width:g.width,height:g.height}}function y(g,E){var w=E.top-g.top,x=E.left-g.left;return{top:w,left:x,height:E.height,width:E.width,bottom:w+E.height,right:x+E.width}}function v(g,E){for(var w=E;w;){if(w==g)return!0;w=h(w)}return!1}function h(g){var E=g.parentNode;return g.nodeType==9&&g!=e?t(g):(E&&E.assignedSlot&&(E=E.assignedSlot.parentNode),E&&E.nodeType==11&&E.host?E.host:E)}function C(g){return g&&g.nodeType===9}window.IntersectionObserver=a,window.IntersectionObserverEntry=s})();function Km(t,e){var n=ct(o.useState(),2),r=n[0],i=n[1],s=ct(o.useState(),2),a=s[0],l=s[1];return os(function(){var c=Lt(t);if(c){var u=new IntersectionObserver(function(f){var d,m;try{for(var b=E0(f),p=b.next();!p.done;p=b.next()){var y=p.value;l(y.intersectionRatio),i(y.isIntersecting)}}catch(v){d={error:v}}finally{try{p&&!p.done&&(m=b.return)&&m.call(b)}finally{if(d)throw d.error}}},ki(ki({},e),{root:Lt(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 Ym=is?o.useLayoutEffect:o.useEffect;const xe=Ym;function Gm(t){var e=this,n=o.useRef(!1);return o.useCallback(function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Ce(e,void 0,void 0,function(){var s,a;return b0(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,es([],ct(r),!1))];case 2:return s=l.sent(),n.current=!1,[2,s];case 3:throw a=l.sent(),n.current=!1,a;case 4:return[2]}})})},[t])}function Xm(t){var e=o.useRef(0),n=ct(o.useState(t),2),r=n[0],i=n[1],s=o.useCallback(function(a){cancelAnimationFrame(e.current),e.current=requestAnimationFrame(function(){i(a)})},[]);return yr(function(){cancelAnimationFrame(e.current)}),[r,s]}var Qm=function(){var t=o.useRef(!1);return o.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),t};const ss=Qm;var ql=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(i,s){return i[0]===n?(r=s,!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,s=this.__entries__;i<s.length;i++){var a=s[i];n.call(r,a[1],a[0])}},e}()}(),as=typeof window<"u"&&typeof document<"u"&&window.document===document,Si=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")()}(),Jm=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Si):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),$m=2;function Rm(t,e){var n=!1,r=!1,i=0;function s(){n&&(n=!1,t()),r&&l()}function a(){Jm(s)}function l(){var c=Date.now();if(n){if(c-i<$m)return;r=!0}else n=!0,r=!1,setTimeout(a,e);i=c}return l}var e1=20,t1=["top","right","bottom","left","width","height","size","weight"],n1=typeof MutationObserver<"u",r1=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Rm(this.refresh.bind(this),e1)}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(){!as||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),n1?(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(){!as||!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=t1.some(function(s){return!!~r.indexOf(s)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Ul=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},Tn=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||Si},Kl=Fi(0,0,0,0);function Oi(t){return parseFloat(t)||0}function Yl(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,i){var s=t["border-"+i+"-width"];return r+Oi(s)},0)}function i1(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var s=i[r],a=t["padding-"+s];n[s]=Oi(a)}return n}function o1(t){var e=t.getBBox();return Fi(0,0,e.width,e.height)}function s1(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return Kl;var r=Tn(t).getComputedStyle(t),i=i1(r),s=i.left+i.right,a=i.top+i.bottom,l=Oi(r.width),c=Oi(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+s)!==e&&(l-=Yl(r,"left","right")+s),Math.round(c+a)!==n&&(c-=Yl(r,"top","bottom")+a)),!l1(t)){var u=Math.round(l+s)-e,f=Math.round(c+a)-n;Math.abs(u)!==1&&(l-=u),Math.abs(f)!==1&&(c-=f)}return Fi(i.left,i.top,l,c)}var a1=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof Tn(t).SVGGraphicsElement}:function(t){return t instanceof Tn(t).SVGElement&&typeof t.getBBox=="function"}}();function l1(t){return t===Tn(t).document.documentElement}function c1(t){return as?a1(t)?o1(t):s1(t):Kl}function u1(t){var e=t.x,n=t.y,r=t.width,i=t.height,s=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(s.prototype);return Ul(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function Fi(t,e,n,r){return{x:t,y:e,width:n,height:r}}var f1=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Fi(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=c1(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}(),d1=function(){function t(e,n){var r=u1(n);Ul(this,{target:e,contentRect:r})}return t}(),m1=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new ql,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 Tn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new f1(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 Tn(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 d1(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}(),Gl=typeof WeakMap<"u"?new WeakMap:new ql,Xl=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=r1.getInstance(),r=new m1(e,n,this);Gl.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){Xl.prototype[t]=function(){var e;return(e=Gl.get(this))[t].apply(e,arguments)}});var h1=function(){return typeof Si.ResizeObserver<"u"?Si.ResizeObserver:Xl}(),v1=Zl(o.useLayoutEffect),g1=is?v1:os;const p1=g1;function ls(t){var e=ct(Xm(function(){var i=Lt(t);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),n=e[0],r=e[1];return p1(function(){var i=Lt(t);if(i){var s=new h1(function(a){a.forEach(function(l){var c=l.target,u=c.clientWidth,f=c.clientHeight;r({width:u,height:f})})});return s.observe(i),function(){s.disconnect()}}},[],t),n}function Ni(t,e){var n;pr&&(In(t)||console.error("useThrottleFn expected parameter is a function, got ".concat(typeof t)));var r=_i(t),i=(n=e==null?void 0:e.wait)!==null&&n!==void 0?n:1e3,s=o.useMemo(function(){return Im(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return r.current.apply(r,es([],ct(a),!1))},i,e)},[]);return yr(function(){s.cancel()}),{run:s,cancel:s.cancel,flush:s.flush}}var y1=function(t,e){var n=Ct(t),r=o.useRef(null),i=o.useCallback(function(){r.current&&clearTimeout(r.current)},[]);return o.useEffect(function(){if(!(!k0(e)||e<0))return r.current=setTimeout(n,e),i},[e]),i};const b1=y1,Ql=10;function E1(t,e){return t>e&&t>Ql?"horizontal":e>t&&e>Ql?"vertical":""}function w1(){const t=o.useRef(0),e=o.useRef(0),n=o.useRef(0),r=o.useRef(0),i=o.useRef(0),s=o.useRef(0),a=o.useRef(""),l=()=>a.current==="vertical",c=()=>a.current==="horizontal",u=()=>{n.current=0,r.current=0,i.current=0,s.current=0,a.current=""};return{move:m=>{const b=m.touches[0];n.current=b.clientX<0?0:b.clientX-t.current,r.current=b.clientY-e.current,i.current=Math.abs(n.current),s.current=Math.abs(r.current),a.current||(a.current=E1(i.current,s.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:s,direction:a,isVertical:l,isHorizontal:c}}const C1=Pn?window:void 0,x1=["scroll","auto","overlay"];function k1(t){return t.nodeType===1}function Pi(t,e=C1){let n=t;for(;n&&n!==e&&k1(n);){if(n===document.body)return e;const{overflowY:r}=window.getComputedStyle(n);if(x1.includes(r)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return e}let rn=!1;if(Pn)try{const t={};Object.defineProperty(t,"passive",{get(){rn=!0}}),window.addEventListener("test-passive",null,t)}catch{}let Er=0;const Jl="adm-overflow-hidden";function _1(t){let e=t==null?void 0:t.parentElement;for(;e;){if(e.clientHeight<e.scrollHeight)return e;e=e.parentElement}return null}function Mi(t,e){const n=w1(),r=a=>{n.move(a);const l=n.deltaY.current>0?"10":"01",c=Pi(a.target,t.current);if(!c)return;if(e==="strict"){const p=_1(a.target);if(p===document.body||p===document.documentElement){a.preventDefault();return}}const{scrollHeight:u,offsetHeight:f,scrollTop:d}=c,{height:m}=c.getBoundingClientRect();let b="11";d===0?b=f>=u?"00":"01":u<=Math.round(m+d)&&(b="10"),b!=="11"&&n.isVertical()&&!(parseInt(b,2)&parseInt(l,2))&&a.cancelable&&rn&&a.preventDefault()},i=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",r,rn?{passive:!1}:!1),Er||document.body.classList.add(Jl),Er++},s=()=>{Er&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",r),Er--,Er||document.body.classList.remove(Jl))};o.useEffect(()=>{if(e)return i(),()=>{s()}},[e])}let cs=Cr();const J=t=>wr(t,cs);let us=Cr();J.write=t=>wr(t,us);let Ii=Cr();J.onStart=t=>wr(t,Ii);let fs=Cr();J.onFrame=t=>wr(t,fs);let ds=Cr();J.onFinish=t=>wr(t,ds);let An=[];J.setTimeout=(t,e)=>{let n=J.now()+e,r=()=>{let s=An.findIndex(a=>a.cancel==r);~s&&An.splice(s,1),Vt-=~s?1:0},i={time:n,handler:t,cancel:r};return An.splice($l(n),0,i),Vt+=1,Rl(),i};let $l=t=>~(~An.findIndex(e=>e.time>t)||~An.length);J.cancel=t=>{Ii.delete(t),fs.delete(t),ds.delete(t),cs.delete(t),us.delete(t)},J.sync=t=>{hs=!0,J.batchedUpdates(t),hs=!1},J.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function r(...i){e=i,J.onStart(n)}return r.handler=t,r.cancel=()=>{Ii.delete(n),e=null},r};let ms=typeof window<"u"?window.requestAnimationFrame:()=>{};J.use=t=>ms=t,J.now=typeof performance<"u"?()=>performance.now():Date.now,J.batchedUpdates=t=>t(),J.catch=console.error,J.frameLoop="always",J.advance=()=>{J.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):tc()};let Dt=-1,Vt=0,hs=!1;function wr(t,e){hs?(e.delete(t),t(0)):(e.add(t),Rl())}function Rl(){Dt<0&&(Dt=0,J.frameLoop!=="demand"&&ms(ec))}function S1(){Dt=-1}function ec(){~Dt&&(ms(ec),J.batchedUpdates(tc))}function tc(){let t=Dt;Dt=J.now();let e=$l(Dt);if(e&&(nc(An.splice(0,e),n=>n.handler()),Vt-=e),!Vt){S1();return}Ii.flush(),cs.flush(t?Math.min(64,Dt-t):16.667),fs.flush(),us.flush(),ds.flush()}function Cr(){let t=new Set,e=t;return{add(n){Vt+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return Vt-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,Vt-=e.size,nc(e,r=>r(n)&&t.add(r)),Vt+=t.size,e=t)}}}function nc(t,e){t.forEach(n=>{try{e(n)}catch(r){J.catch(r)}})}function vs(){}const O1=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),z={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 xt(t,e){if(z.arr(t)){if(!z.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 re=(t,e)=>t.forEach(e);function ft(t,e,n){if(z.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 We=t=>z.und(t)?[]:z.arr(t)?t:[t];function xr(t,e){if(t.size){const n=Array.from(t);t.clear(),re(n,e)}}const kr=(t,...e)=>xr(t,n=>n(...e)),gs=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let ps,rc,jt=null,ic=!1,ys=vs;var Ke=Object.freeze({__proto__:null,get createStringInterpolator(){return ps},get to(){return rc},get colors(){return jt},get skipAnimation(){return ic},get willAdvance(){return ys},assign:t=>{t.to&&(rc=t.to),t.now&&(J.now=t.now),t.colors!==void 0&&(jt=t.colors),t.skipAnimation!=null&&(ic=t.skipAnimation),t.createStringInterpolator&&(ps=t.createStringInterpolator),t.requestAnimationFrame&&J.use(t.requestAnimationFrame),t.batchedUpdates&&(J.batchedUpdates=t.batchedUpdates),t.willAdvance&&(ys=t.willAdvance),t.frameLoop&&(J.frameLoop=t.frameLoop)}});const _r=new Set;let Ye=[],bs=[],Ti=0;const Ai={get idle(){return!_r.size&&!Ye.length},start(t){Ti>t.priority?(_r.add(t),J.onStart(F1)):(oc(t),J(Es))},advance:Es,sort(t){if(Ti)J.onFrame(()=>Ai.sort(t));else{const e=Ye.indexOf(t);~e&&(Ye.splice(e,1),sc(t))}},clear(){Ye=[],_r.clear()}};function F1(){_r.forEach(oc),_r.clear(),J(Es)}function oc(t){Ye.includes(t)||sc(t)}function sc(t){Ye.splice(N1(Ye,e=>e.priority>t.priority),0,t)}function Es(t){const e=bs;for(let n=0;n<Ye.length;n++){const r=Ye[n];Ti=r.priority,r.idle||(ys(r),r.advance(t),r.idle||e.push(r))}return Ti=0,bs=Ye,bs.length=0,Ye=e,Ye.length>0}function N1(t,e){const n=t.findIndex(e);return n<0?t.length:n}const P1=(t,e,n)=>Math.min(Math.max(n,t),e),M1={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},it="[-+]?\\d*\\.?\\d+",Li=it+"%";function Di(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const I1=new RegExp("rgb"+Di(it,it,it)),T1=new RegExp("rgba"+Di(it,it,it,it)),A1=new RegExp("hsl"+Di(it,Li,Li)),L1=new RegExp("hsla"+Di(it,Li,Li,it)),D1=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,V1=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,j1=/^#([0-9a-fA-F]{6})$/,B1=/^#([0-9a-fA-F]{8})$/;function W1(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=j1.exec(t))?parseInt(e[1]+"ff",16)>>>0:jt&&jt[t]!==void 0?jt[t]:(e=I1.exec(t))?(Ln(e[1])<<24|Ln(e[2])<<16|Ln(e[3])<<8|255)>>>0:(e=T1.exec(t))?(Ln(e[1])<<24|Ln(e[2])<<16|Ln(e[3])<<8|cc(e[4]))>>>0:(e=D1.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=B1.exec(t))?parseInt(e[1],16)>>>0:(e=V1.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=A1.exec(t))?(ac(lc(e[1]),Vi(e[2]),Vi(e[3]))|255)>>>0:(e=L1.exec(t))?(ac(lc(e[1]),Vi(e[2]),Vi(e[3]))|cc(e[4]))>>>0:null}function ws(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 ac(t,e,n){const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,s=ws(i,r,t+1/3),a=ws(i,r,t),l=ws(i,r,t-1/3);return Math.round(s*255)<<24|Math.round(a*255)<<16|Math.round(l*255)<<8}function Ln(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function lc(t){return(parseFloat(t)%360+360)%360/360}function cc(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Vi(t){const e=parseFloat(t);return e<0?0:e>100?1:e/10