antd-mobile
Version:
<div align="center">
5 lines • 444 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),yo=require("react-dom");function hu(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 T=hu(o),g1=hu(yo),ir=!!(typeof window<"u"&&typeof document<"u"&&window.document&&window.document.createElement);ir&&document.addEventListener("touchstart",()=>{},!0);var Ui=function(){return Ui=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ui.apply(this,arguments)};function or(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(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function l(f){try{u(r.next(f))}catch(d){s(d)}}function c(f){try{u(r.throw(f))}catch(d){s(d)}}function u(f){f.done?a(f.value):i(f.value).then(l,c)}u((r=r.apply(t,e||[])).next())})}function y1(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(f){return c([u,f])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=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(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1],a=u;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(u);break}a[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(f){u=[6,f],i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function b1(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 vt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return a}function hs(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))}const je="${label}不是一个有效的${type}",E1={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:je,method:je,array:je,object:je,number:je,date:je,boolean:je,integer:je,float:je,regexp:je,email:je,url:je,hex:je},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:"选择组"}},w1=E1,vu={current:{locale:w1}};function C1(t){vu.current=t}function ri(){return vu.current}const pu=o.createContext(null),x1=t=>{const{children:e}=t,n=or(t,["children"]),r=te();return o.createElement(pu.Provider,{value:Object.assign(Object.assign({},r),n)},e)};function te(){var t;return(t=o.useContext(pu))!==null&&t!==void 0?t:ri()}function se(t,e){const n=t;for(const r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}var it=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var gu={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 a=arguments[i];if(a){var s=typeof a;if(s==="string"||s==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var l=n.apply(null,a);l&&r.push(l)}}else if(s==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var c in a)e.call(a,c)&&a[c]&&r.push(c)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(gu);var k1=gu.exports;const V=bt(k1);function B(t,e){const n=Object.assign({},e.props);t.className&&(n.className=V(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 H(...t){const e={};return t.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(e[r]=n[r])})}),e}function en(t,...e){for(let n=e.length-1;n>=0;n-=1)if(e[n]!==void 0)return e[n];return t}var yu=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)}},ar=function(t){return typeof t=="function"},$1=function(t){return typeof t=="number"},_1=!1;const ii=_1;function Nt(t){ii&&(ar(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 vs=yu(o.useEffect);function xl(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 bo(t){var e=o.useRef(t);return e.current=t,e}var S1=function(t){ii&&(ar(t)||console.error("useUnmount expected parameter is a function, got ".concat(typeof t)));var e=bo(t);o.useEffect(function(){return function(){e.current()}},[])};const oi=S1;function O1(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var ps=O1,R1=typeof it=="object"&&it&&it.Object===Object&&it,F1=R1,N1=F1,P1=typeof self=="object"&&self&&self.Object===Object&&self,M1=N1||P1||Function("return this")(),bu=M1,I1=bu,A1=function(){return I1.Date.now()},T1=A1,L1=/\s/;function D1(t){for(var e=t.length;e--&&L1.test(t.charAt(e)););return e}var V1=D1,j1=V1,B1=/^\s+/;function W1(t){return t&&t.slice(0,j1(t)+1).replace(B1,"")}var Z1=W1,H1=bu,z1=H1.Symbol,Eu=z1,kl=Eu,wu=Object.prototype,q1=wu.hasOwnProperty,U1=wu.toString,pr=kl?kl.toStringTag:void 0;function K1(t){var e=q1.call(t,pr),n=t[pr];try{t[pr]=void 0;var r=!0}catch{}var i=U1.call(t);return r&&(e?t[pr]=n:delete t[pr]),i}var Y1=K1,G1=Object.prototype,X1=G1.toString;function Q1(t){return X1.call(t)}var J1=Q1,$l=Eu,e0=Y1,t0=J1,n0="[object Null]",r0="[object Undefined]",_l=$l?$l.toStringTag:void 0;function i0(t){return t==null?t===void 0?r0:n0:_l&&_l in Object(t)?e0(t):t0(t)}var o0=i0;function a0(t){return t!=null&&typeof t=="object"}var s0=a0,l0=o0,c0=s0,u0="[object Symbol]";function f0(t){return typeof t=="symbol"||c0(t)&&l0(t)==u0}var d0=f0,m0=Z1,Sl=ps,h0=d0,Ol=NaN,v0=/^[-+]0x[0-9a-f]+$/i,p0=/^0b[01]+$/i,g0=/^0o[0-7]+$/i,y0=parseInt;function b0(t){if(typeof t=="number")return t;if(h0(t))return Ol;if(Sl(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Sl(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=m0(t);var n=p0.test(t);return n||g0.test(t)?y0(t.slice(2),n?2:8):v0.test(t)?Ol:+t}var E0=b0,w0=ps,Jo=T1,Rl=E0,C0="Expected a function",x0=Math.max,k0=Math.min;function $0(t,e,n){var r,i,a,s,l,c,u=0,f=!1,d=!1,m=!0;if(typeof t!="function")throw new TypeError(C0);e=Rl(e)||0,w0(n)&&(f=!!n.leading,d="maxWait"in n,a=d?x0(Rl(n.maxWait)||0,e):a,m="trailing"in n?!!n.trailing:m);function b(x){var k=r,$=i;return r=i=void 0,u=x,s=t.apply($,k),s}function g(x){return u=x,l=setTimeout(h,e),f?b(x):s}function y(x){var k=x-c,$=x-u,F=e-k;return d?k0(F,a-$):F}function v(x){var k=x-c,$=x-u;return c===void 0||k>=e||k<0||d&&$>=a}function h(){var x=Jo();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,s)}function p(){l!==void 0&&clearTimeout(l),u=0,r=c=i=l=void 0}function E(){return l===void 0?s:C(Jo())}function w(){var x=Jo(),k=v(x);if(r=arguments,i=this,c=x,k){if(l===void 0)return g(c);if(d)return clearTimeout(l),l=setTimeout(h,e),b(c)}return l===void 0&&(l=setTimeout(h,e)),s}return w.cancel=p,w.flush=E,w}var Cu=$0;const _0=bt(Cu);var S0=!!(typeof window<"u"&&window.document&&window.document.createElement);const gs=S0;var O0=Cu,R0=ps,F0="Expected a function";function N0(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(F0);return R0(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),O0(t,e,{leading:r,maxWait:e,trailing:i})}var P0=N0;const M0=bt(P0);var I0=function(t){ii&&(ar(t)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof t,'".'))),o.useEffect(function(){t==null||t()},[])};const A0=I0;var T0=function(){var t=vt(o.useState({}),2),e=t[1];return o.useCallback(function(){return e({})},[])};const xu=T0;function Ut(t,e){if(gs){if(!t)return e;var n;return ar(t)?n=t():"current"in t?n=t.current:n=t,n}}var L0=function(t){return t.every(function(e){var n=Ut(e);if(!n)return!1;if(n.getRootNode()instanceof ShadowRoot)return!0})},D0=function(t){return t?t.getRootNode():document},V0=function(t){if(!t||!document.getRootNode)return document;var e=Array.isArray(t)?t:[t];return L0(e)?D0(Ut(e[0])):document};const j0=V0;var B0=function(t){var e=function(n,r,i){var a=o.useRef(!1),s=o.useRef([]),l=o.useRef([]),c=o.useRef();t(function(){var u,f=Array.isArray(i)?i:[i],d=f.map(function(m){return Ut(m)});if(!a.current){a.current=!0,s.current=d,l.current=r,c.current=n();return}(d.length!==s.current.length||!xl(d,s.current)||!xl(r,l.current))&&((u=c.current)===null||u===void 0||u.call(c),s.current=d,l.current=r,c.current=n())}),oi(function(){var u;(u=c.current)===null||u===void 0||u.call(c),a.current=!1})};return e};const ku=B0;var W0=ku(o.useEffect);const ys=W0;function $u(t,e,n){n===void 0&&(n="click");var r=bo(t);ys(function(){var i=function(l){var c=Array.isArray(e)?e:[e];c.some(function(u){var f=Ut(u);return!f||f.contains(l.target)})||r.current(l)},a=j0(e),s=Array.isArray(n)?n:[n];return s.forEach(function(l){return a.addEventListener(l,i)}),function(){s.forEach(function(l){return a.removeEventListener(l,i)})}},Array.isArray(n)?n:[n],e)}var _u={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(it,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",l="minute",c="hour",u="day",f="week",d="month",m="quarter",b="year",g="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(M){var _=["th","st","nd","rd"],I=M%100;return"["+M+(_[(I-20)%10]||_[I]||_[0])+"]"}},p=function(M,_,I){var R=String(M);return!R||R.length>=_?M:""+Array(_+1-R.length).join(I)+M},E={s:p,z:function(M){var _=-M.utcOffset(),I=Math.abs(_),R=Math.floor(I/60),O=I%60;return(_<=0?"+":"-")+p(R,2,"0")+":"+p(O,2,"0")},m:function M(_,I){if(_.date()<I.date())return-M(I,_);var R=12*(I.year()-_.year())+(I.month()-_.month()),O=_.clone().add(R,d),P=I-O<0,N=_.clone().add(R+(P?-1:1),d);return+(-(R+(I-O)/(P?O-N:N-O))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:d,y:b,w:f,d:u,D:g,h:c,m:l,s,ms:a,Q:m}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},w="en",x={};x[w]=C;var k=function(M){return M instanceof L},$=function M(_,I,R){var O;if(!_)return w;if(typeof _=="string"){var P=_.toLowerCase();x[P]&&(O=P),I&&(x[P]=I,O=P);var N=_.split("-");if(!O&&N.length>1)return M(N[0])}else{var A=_.name;x[A]=_,O=A}return!R&&O&&(w=O),O||!R&&w},F=function(M,_){if(k(M))return M.clone();var I=typeof _=="object"?_:{};return I.date=M,I.args=arguments,new L(I)},S=E;S.l=$,S.i=k,S.w=function(M,_){return F(M,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var L=function(){function M(I){this.$L=$(I.locale,null,!0),this.parse(I)}var _=M.prototype;return _.parse=function(I){this.$d=function(R){var O=R.date,P=R.utc;if(O===null)return new Date(NaN);if(S.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var N=O.match(v);if(N){var A=N[2]-1||0,j=(N[7]||"0").substring(0,3);return P?new Date(Date.UTC(N[1],A,N[3]||1,N[4]||0,N[5]||0,N[6]||0,j)):new Date(N[1],A,N[3]||1,N[4]||0,N[5]||0,N[6]||0,j)}}return new Date(O)}(I),this.$x=I.x||{},this.init()},_.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},_.$utils=function(){return S},_.isValid=function(){return this.$d.toString()!==y},_.isSame=function(I,R){var O=F(I);return this.startOf(R)<=O&&O<=this.endOf(R)},_.isAfter=function(I,R){return F(I)<this.startOf(R)},_.isBefore=function(I,R){return this.endOf(R)<F(I)},_.$g=function(I,R,O){return S.u(I)?this[R]:this.set(O,I)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(I,R){var O=this,P=!!S.u(R)||R,N=S.p(I),A=function(oe,z){var Q=S.w(O.$u?Date.UTC(O.$y,z,oe):new Date(O.$y,z,oe),O);return P?Q:Q.endOf(u)},j=function(oe,z){return S.w(O.toDate()[oe].apply(O.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(z)),O)},Z=this.$W,q=this.$M,U=this.$D,K="set"+(this.$u?"UTC":"");switch(N){case b:return P?A(1,0):A(31,11);case d:return P?A(1,q):A(0,q+1);case f:var Y=this.$locale().weekStart||0,J=(Z<Y?Z+7:Z)-Y;return A(P?U-J:U+(6-J),q);case u:case g:return j(K+"Hours",0);case c:return j(K+"Minutes",1);case l:return j(K+"Seconds",2);case s:return j(K+"Milliseconds",3);default:return this.clone()}},_.endOf=function(I){return this.startOf(I,!1)},_.$set=function(I,R){var O,P=S.p(I),N="set"+(this.$u?"UTC":""),A=(O={},O[u]=N+"Date",O[g]=N+"Date",O[d]=N+"Month",O[b]=N+"FullYear",O[c]=N+"Hours",O[l]=N+"Minutes",O[s]=N+"Seconds",O[a]=N+"Milliseconds",O)[P],j=P===u?this.$D+(R-this.$W):R;if(P===d||P===b){var Z=this.clone().set(g,1);Z.$d[A](j),Z.init(),this.$d=Z.set(g,Math.min(this.$D,Z.daysInMonth())).$d}else A&&this.$d[A](j);return this.init(),this},_.set=function(I,R){return this.clone().$set(I,R)},_.get=function(I){return this[S.p(I)]()},_.add=function(I,R){var O,P=this;I=Number(I);var N=S.p(R),A=function(q){var U=F(P);return S.w(U.date(U.date()+Math.round(q*I)),P)};if(N===d)return this.set(d,this.$M+I);if(N===b)return this.set(b,this.$y+I);if(N===u)return A(1);if(N===f)return A(7);var j=(O={},O[l]=r,O[c]=i,O[s]=n,O)[N]||1,Z=this.$d.getTime()+I*j;return S.w(Z,this)},_.subtract=function(I,R){return this.add(-1*I,R)},_.format=function(I){var R=this,O=this.$locale();if(!this.isValid())return O.invalidDate||y;var P=I||"YYYY-MM-DDTHH:mm:ssZ",N=S.z(this),A=this.$H,j=this.$m,Z=this.$M,q=O.weekdays,U=O.months,K=O.meridiem,Y=function(z,Q,X,ge){return z&&(z[Q]||z(R,P))||X[Q].slice(0,ge)},J=function(z){return S.s(A%12||12,z,"0")},oe=K||function(z,Q,X){var ge=z<12?"AM":"PM";return X?ge.toLowerCase():ge};return P.replace(h,function(z,Q){return Q||function(X){switch(X){case"YY":return String(R.$y).slice(-2);case"YYYY":return S.s(R.$y,4,"0");case"M":return Z+1;case"MM":return S.s(Z+1,2,"0");case"MMM":return Y(O.monthsShort,Z,U,3);case"MMMM":return Y(U,Z);case"D":return R.$D;case"DD":return S.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return Y(O.weekdaysMin,R.$W,q,2);case"ddd":return Y(O.weekdaysShort,R.$W,q,3);case"dddd":return q[R.$W];case"H":return String(A);case"HH":return S.s(A,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return oe(A,j,!0);case"A":return oe(A,j,!1);case"m":return String(j);case"mm":return S.s(j,2,"0");case"s":return String(R.$s);case"ss":return S.s(R.$s,2,"0");case"SSS":return S.s(R.$ms,3,"0");case"Z":return N}return null}(z)||N.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(I,R,O){var P,N=this,A=S.p(R),j=F(I),Z=(j.utcOffset()-this.utcOffset())*r,q=this-j,U=function(){return S.m(N,j)};switch(A){case b:P=U()/12;break;case d:P=U();break;case m:P=U()/3;break;case f:P=(q-Z)/6048e5;break;case u:P=(q-Z)/864e5;break;case c:P=q/i;break;case l:P=q/r;break;case s:P=q/n;break;default:P=q}return O?P:S.a(P)},_.daysInMonth=function(){return this.endOf(d).$D},_.$locale=function(){return x[this.$L]},_.locale=function(I,R){if(!I)return this.$L;var O=this.clone(),P=$(I,R,!0);return P&&(O.$L=P),O},_.clone=function(){return S.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},M}(),D=L.prototype;return F.prototype=D,[["$ms",a],["$s",s],["$m",l],["$H",c],["$W",u],["$M",d],["$y",b],["$D",g]].forEach(function(M){D[M[1]]=function(_){return this.$g(_,M[0],M[1])}}),F.extend=function(M,_){return M.$i||(M(_,L,F),M.$i=!0),F},F.locale=$,F.isDayjs=k,F.unix=function(M){return F(1e3*M)},F.en=x[w],F.Ls=x,F.p={},F})})(_u);var Z0=_u.exports;const fe=bt(Z0);function H0(t,e){var n;ii&&(ar(t)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof t)));var r=bo(t),i=(n=e==null?void 0:e.wait)!==null&&n!==void 0?n:1e3,a=o.useMemo(function(){return _0(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return r.current.apply(r,hs([],vt(s),!1))},i,e)},[]);return oi(function(){a.cancel()}),{run:a,cancel:a.cancel,flush:a.flush}}function z0(t,e,n){var r=vt(o.useState({}),2),i=r[0],a=r[1],s=H0(function(){a({})},n).run;o.useEffect(function(){return s()},e),vs(t,[i])}function q0(t){var e=vt(o.useState(t),2),n=e[0],r=e[1],i=o.useRef(n);i.current=n;var a=o.useCallback(function(){return i.current},[]);return[n,r,a]}(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 a(p){this.time=p.time,this.target=p.target,this.rootBounds=g(p.rootBounds),this.boundingClientRect=g(p.boundingClientRect),this.intersectionRect=g(p.intersectionRect||b()),this.isIntersecting=!!p.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 s(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(x){return x.value+x.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return r||(r=function(p,E){!p||!E?i=b():i=y(p,E),n.forEach(function(w){w._checkForIntersections()})}),r},s._resetCrossOriginUpdater=function(){r=null,i=null},s.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()}},s.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()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var p=this._queuedEntries.slice();return this._queuedEntries=[],p},s.prototype._initThresholds=function(p){var E=p||[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]})},s.prototype._parseRootMargin=function(p){var E=p||"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},s.prototype._monitorIntersections=function(p){var E=p.defaultView;if(E&&this._monitoringDocuments.indexOf(p)==-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(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 S=p.defaultView;S&&(x&&S.clearInterval(x),f(S,"resize",w,!0)),f(p,"scroll",w,!0),k&&k.disconnect()});var $=this.root&&(this.root.ownerDocument||this.root)||e;if(p!=$){var F=t(p);F&&this._monitorIntersections(F.ownerDocument)}}},s.prototype._unmonitorIntersections=function(p){var E=this._monitoringDocuments.indexOf(p);if(E!=-1){var w=this.root&&(this.root.ownerDocument||this.root)||e,x=this._observationTargets.some(function(F){var S=F.element.ownerDocument;if(S==p)return!0;for(;S&&S!=w;){var L=t(S);if(S=L&&L.ownerDocument,S==p)return!0}return!1});if(!x){var k=this._monitoringUnsubscribes[E];if(this._monitoringDocuments.splice(E,1),this._monitoringUnsubscribes.splice(E,1),k(),p!=w){var $=t(p);$&&this._unmonitorIntersections($.ownerDocument)}}}},s.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]()},s.prototype._checkForIntersections=function(){if(!(!this.root&&r&&!i)){var p=this._rootIsInDom(),E=p?this._getRootRect():b();this._observationTargets.forEach(function(w){var x=w.element,k=m(x),$=this._rootContainsTarget(x),F=w.entry,S=p&&$&&this._computeTargetAndRootIntersection(x,k,E),L=null;this._rootContainsTarget(x)?(!r||this.root)&&(L=E):L=b();var D=w.entry=new a({time:l(),target:x,boundingClientRect:k,rootBounds:L,intersectionRect:S});F?p&&$?this._hasCrossedThreshold(F,D)&&this._queuedEntries.push(D):F&&F.isIntersecting&&this._queuedEntries.push(D):this._queuedEntries.push(D)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(p,E,w){if(window.getComputedStyle(p).display!="none"){for(var x=E,k=h(p),$=!1;!$&&k;){var F=null,S=k.nodeType==1?window.getComputedStyle(k):{};if(S.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,F=null,x=null):F=i:F=w;else{var L=h(k),D=L&&m(L),M=L&&this._computeTargetAndRootIntersection(L,D,w);D&&M?(k=L,F=y(D,M)):(k=null,x=null)}else{var _=k.ownerDocument;k!=_.body&&k!=_.documentElement&&S.overflow!="visible"&&(F=m(k))}if(F&&(x=d(F,x)),!x)break;k=k&&h(k)}return x}},s.prototype._getRootRect=function(){var p;if(this.root&&!C(this.root))p=m(this.root);else{var E=C(this.root)?this.root:e,w=E.documentElement,x=E.body;p={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(p)},s.prototype._expandRectByRootMargin=function(p){var E=this._rootMarginValues.map(function(x,k){return x.unit=="px"?x.value:x.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},s.prototype._hasCrossedThreshold=function(p,E){var w=p&&p.isIntersecting?p.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}},s.prototype._rootIsInDom=function(){return!this.root||v(e,this.root)},s.prototype._rootContainsTarget=function(p){var E=this.root&&(this.root.ownerDocument||this.root)||e;return v(E,p)&&(!this.root||E==p.ownerDocument)},s.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},s.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,x){typeof p.addEventListener=="function"?p.addEventListener(E,w,x||!1):typeof p.attachEvent=="function"&&p.attachEvent("on"+E,w)}function f(p,E,w,x){typeof p.removeEventListener=="function"?p.removeEventListener(E,w,x||!1):typeof p.detachEvent=="function"&&p.detachEvent("on"+E,w)}function d(p,E){var w=Math.max(p.top,E.top),x=Math.min(p.bottom,E.bottom),k=Math.max(p.left,E.left),$=Math.min(p.right,E.right),F=$-k,S=x-w;return F>=0&&S>=0&&{top:w,bottom:x,left:k,right:$,width:F,height:S}||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):b()}function b(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function g(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,x=E.left-p.left;return{top:w,left:x,height:E.height,width:E.width,bottom:w+E.height,right:x+E.width}}function v(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 C(p){return p&&p.nodeType===9}window.IntersectionObserver=s,window.IntersectionObserverEntry=a})();function U0(t,e){var n=vt(o.useState(),2),r=n[0],i=n[1],a=vt(o.useState(),2),s=a[0],l=a[1];return ys(function(){var c=Ut(t);if(c){var u=new IntersectionObserver(function(f){var d,m;try{for(var b=b1(f),g=b.next();!g.done;g=b.next()){var y=g.value;l(y.intersectionRatio),i(y.isIntersecting)}}catch(v){d={error:v}}finally{try{g&&!g.done&&(m=b.return)&&m.call(b)}finally{if(d)throw d.error}}},Ui(Ui({},e),{root:Ut(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,s]}var K0=gs?o.useLayoutEffect:o.useEffect;const ke=K0;function Y0(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 a,s;return y1(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,hs([],vt(r),!1))];case 2:return a=l.sent(),n.current=!1,[2,a];case 3:throw s=l.sent(),n.current=!1,s;case 4:return[2]}})})},[t])}function G0(t){var e=o.useRef(0),n=vt(o.useState(t),2),r=n[0],i=n[1],a=o.useCallback(function(s){cancelAnimationFrame(e.current),e.current=requestAnimationFrame(function(){i(s)})},[]);return oi(function(){cancelAnimationFrame(e.current)}),[r,a]}var X0=function(){var t=o.useRef(!1);return o.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),t};const bs=X0;var Su=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(i,a){return i[0]===n?(r=a,!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,a=this.__entries__;i<a.length;i++){var s=a[i];n.call(r,s[1],s[0])}},e}()}(),ka=typeof window<"u"&&typeof document<"u"&&window.document===document,Ki=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")()}(),Q0=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ki):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),J0=2;function em(t,e){var n=!1,r=!1,i=0;function a(){n&&(n=!1,t()),r&&l()}function s(){Q0(a)}function l(){var c=Date.now();if(n){if(c-i<J0)return;r=!0}else n=!0,r=!1,setTimeout(s,e);i=c}return l}var tm=20,nm=["top","right","bottom","left","width","height","size","weight"],rm=typeof MutationObserver<"u",im=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=em(this.refresh.bind(this),tm)}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(){!ka||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),rm?(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(){!ka||!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=nm.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Ou=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},Kn=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||Ki},Ru=Eo(0,0,0,0);function Yi(t){return parseFloat(t)||0}function Fl(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,i){var a=t["border-"+i+"-width"];return r+Yi(a)},0)}function om(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var a=i[r],s=t["padding-"+a];n[a]=Yi(s)}return n}function am(t){var e=t.getBBox();return Eo(0,0,e.width,e.height)}function sm(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return Ru;var r=Kn(t).getComputedStyle(t),i=om(r),a=i.left+i.right,s=i.top+i.bottom,l=Yi(r.width),c=Yi(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+a)!==e&&(l-=Fl(r,"left","right")+a),Math.round(c+s)!==n&&(c-=Fl(r,"top","bottom")+s)),!cm(t)){var u=Math.round(l+a)-e,f=Math.round(c+s)-n;Math.abs(u)!==1&&(l-=u),Math.abs(f)!==1&&(c-=f)}return Eo(i.left,i.top,l,c)}var lm=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof Kn(t).SVGGraphicsElement}:function(t){return t instanceof Kn(t).SVGElement&&typeof t.getBBox=="function"}}();function cm(t){return t===Kn(t).document.documentElement}function um(t){return ka?lm(t)?am(t):sm(t):Ru}function fm(t){var e=t.x,n=t.y,r=t.width,i=t.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(a.prototype);return Ou(s,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),s}function Eo(t,e,n,r){return{x:t,y:e,width:n,height:r}}var dm=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Eo(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=um(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}(),mm=function(){function t(e,n){var r=fm(n);Ou(this,{target:e,contentRect:r})}return t}(),hm=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new Su,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 Kn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new dm(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 Kn(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 mm(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}(),Fu=typeof WeakMap<"u"?new WeakMap:new Su,Nu=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=im.getInstance(),r=new hm(e,n,this);Fu.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){Nu.prototype[t]=function(){var e;return(e=Fu.get(this))[t].apply(e,arguments)}});var vm=function(){return typeof Ki.ResizeObserver<"u"?Ki.ResizeObserver:Nu}(),pm=ku(o.useLayoutEffect);const gm=pm;var ym=gs?gm:ys;const bm=ym;function $a(t){var e=vt(G0(function(){var i=Ut(t);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),n=e[0],r=e[1];return bm(function(){var i=Ut(t);if(i){var a=new vm(function(s){s.forEach(function(l){var c=l.target,u=c.clientWidth,f=c.clientHeight;r({width:u,height:f})})});return a.observe(i),function(){a.disconnect()}}},[],t),n}function wo(t,e){var n;ii&&(ar(t)||console.error("useThrottleFn expected parameter is a function, got ".concat(typeof t)));var r=bo(t),i=(n=e==null?void 0:e.wait)!==null&&n!==void 0?n:1e3,a=o.useMemo(function(){return M0(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return r.current.apply(r,hs([],vt(s),!1))},i,e)},[]);return oi(function(){a.cancel()}),{run:a,cancel:a.cancel,flush:a.flush}}var Em=function(t,e){var n=Nt(t),r=o.useRef(null),i=o.useCallback(function(){r.current&&clearTimeout(r.current)},[]);return o.useEffect(function(){if(!(!$1(e)||e<0))return r.current=setTimeout(n,e),i},[e]),i};const wm=Em,Nl=10;function Cm(t,e){return t>e&&t>Nl?"horizontal":e>t&&e>Nl?"vertical":""}function xm(){const t=o.useRef(0),e=o.useRef(0),n=o.useRef(0),r=o.useRef(0),i=o.useRef(0),a=o.useRef(0),s=o.useRef(""),l=()=>s.current==="vertical",c=()=>s.current==="horizontal",u=()=>{n.current=0,r.current=0,i.current=0,a.current=0,s.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),a.current=Math.abs(r.current),s.current||(s.current=Cm(i.current,a.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:a,direction:s,isVertical:l,isHorizontal:c}}const km=ir?window:void 0,$m=["scroll","auto","overlay"];function _m(t){return t.nodeType===1}function Gi(t,e=km){let n=t;for(;n&&n!==e&&_m(n);){if(n===document.body)return e;const{overflowY:r}=window.getComputedStyle(n);if($m.includes(r)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return e}let wn=!1;if(ir)try{const t={};Object.defineProperty(t,"passive",{get(){wn=!0}}),window.addEventListener("test-passive",null,t)}catch{}let gr=0;const Pl="adm-overflow-hidden";function Sm(t){let e=t==null?void 0:t.parentElement;for(;e;){if(e.clientHeight<e.scrollHeight)return e;e=e.parentElement}return null}function Co(t,e){const n=xm(),r=s=>{n.move(s);const l=n.deltaY.current>0?"10":"01",c=Gi(s.target,t.current);if(!c)return;if(e==="strict"){const g=Sm(s.target);if(g===document.body||g===document.documentElement){s.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))&&s.cancelable&&wn&&s.preventDefault()},i=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",r,wn?{passive:!1}:!1),gr||document.body.classList.add(Pl),gr++},a=()=>{gr&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",r),gr--,gr||document.body.classList.remove(Pl))};o.useEffect(()=>{if(e)return i(),()=>{a()}},[e])}let Es=si();const G=t=>ai(t,Es);let ws=si();G.write=t=>ai(t,ws);let xo=si();G.onStart=t=>ai(t,xo);let Cs=si();G.onFrame=t=>ai(t,Cs);let xs=si();G.onFinish=t=>ai(t,xs);let Hn=[];G.setTimeout=(t,e)=>{let n=G.now()+e,r=()=>{let a=Hn.findIndex(s=>s.cancel==r);~a&&Hn.splice(a,1),Zt-=~a?1:0},i={time:n,handler:t,cancel:r};return Hn.splice(Pu(n),0,i),Zt+=1,Mu(),i};let Pu=t=>~(~Hn.findIndex(e=>e.time>t)||~Hn.length);G.cancel=t=>{xo.delete(t),Cs.delete(t),xs.delete(t),Es.delete(t),ws.delete(t)};G.sync=t=>{_a=!0,G.batchedUpdates(t),_a=!1};G.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function r(...i){e=i,G.onStart(n)}return r.handler=t,r.cancel=()=>{xo.delete(n),e=null},r};let ks=typeof window<"u"?window.requestAnimationFrame:()=>{};G.use=t=>ks=t;G.now=typeof performance<"u"?()=>performance.now():Date.now;G.batchedUpdates=t=>t();G.catch=console.error;G.frameLoop="always";G.advance=()=>{G.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Au()};let Wt=-1,Zt=0,_a=!1;function ai(t,e){_a?(e.delete(t),t(0)):(e.add(t),Mu())}function Mu(){Wt<0&&(Wt=0,G.frameLoop!=="demand"&&ks(Iu))}function Om(){Wt=-1}function Iu(){~Wt&&(ks(Iu),G.batchedUpdates(Au))}function Au(){let t=Wt;Wt=G.now();let e=Pu(Wt);if(e&&(Tu(Hn.splice(0,e),n=>n.handler()),Zt-=e),!Zt){Om();return}xo.flush(),Es.flush(t?Math.min(64,Wt-t):16.667),Cs.flush(),ws.flush(),xs.flush()}function si(){let t=new Set,e=t;return{add(n){Zt+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return Zt-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,Zt-=e.size,Tu(e,r=>r(n)&&t.add(r)),Zt+=t.size,e=t)}}}function Tu(t,e){t.forEach(n=>{try{e(n)}catch(r){G.catch(r)}})}function Sa(){}const Rm=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),W={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 _t(t,e){if(W.arr(t)){if(!W.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 ne=(t,e)=>t.forEach(e);function pt(t,e,n){if(W.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=>W.und(t)?[]:W.arr(t)?t:[t];function Lr(t,e){if(t.size){const n=Array.from(t);t.clear(),ne(n,e)}}const Mr=(t,...e)=>Lr(t,n=>n(...e)),$s=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let _s,Lu,qt=null,Du=!1,Ss=Sa;const Fm=t=>{t.to&&(Lu=t.to),t.now&&(G.now=t.now),t.colors!==void 0&&(qt=t.colors),t.skipAnimation!=null&&(Du=t.skipAnimation),t.createStringInterpolator&&(_s=t.createStringInterpolator),t.requestAnimationFrame&&G.use(t.requestAnimationFrame),t.batchedUpdates&&(G.batchedUpdates=t.batchedUpdates),t.willAdvance&&(Ss=t.willAdvance),t.frameLoop&&(G.frameLoop=t.frameLoop)};var Qe=Object.freeze({__proto__:null,get createStringInterpolator(){return _s},get to(){return Lu},get colors(){return qt},get skipAnimation(){return Du},get willAdvance(){return Ss},assign:Fm});const Dr=new Set;let Xe=[],ea=[],Xi=0;const ko={get idle(){return!Dr.size&&!Xe.length},start(t){Xi>t.priority?(Dr.add(t),G.onStart(Nm)):(Vu(t),G(Oa))},advance:Oa,sort(t){if(Xi)G.onFrame(()=>ko.sort(t));else{const e=Xe.indexOf(t);~e&&(Xe.splice(e,1),ju(t))}},clear(){Xe=[],Dr.clear()}};function Nm(){Dr.forEach(Vu),Dr.clear(),G(Oa)}function Vu(t){Xe.includes(t)||ju(t)}function ju(t){Xe.splice(Pm(Xe,e=>e.priority>t.priority),0,t)}function Oa(t){const e=ea;for(let n=0;n<Xe.length;n++){const r=Xe[n];Xi=r.priority,r.idle||(Ss(r),r.advance(t),r.idle||e.push(r))}return Xi=0,ea=Xe,ea.length=0,Xe=e,Xe.length>0}function Pm(t,e){const n=t.findIndex(e);return n<0?t.length:n}const Mm=(t,e,n)=>Math.min(Math.max(n,t),e),Im={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},ot="[-+]?\\d*\\.?\\d+",Qi=ot+"%";function $o(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const Am=new RegExp("rgb"+$o(ot,ot,ot)),Tm=new RegExp("rgba"+$o(ot,ot,ot,ot)),Lm=new RegExp("hsl"+$o(ot,Qi,Qi)),Dm=new RegExp("hsla"+$o(ot,Qi,Qi,ot)),Vm=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,jm=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Bm=/^#([0-9a-fA-F]{6})$/,Wm=/^#([0-9a-fA-F]{8})$/;function Zm(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Bm.exec(t))?parseInt(e[1]+"ff",16)>>>0:qt&&qt[t]!==void 0?qt[t]:(e=Am.exec(t))?(Rn(e[1])<<24|Rn(e[2])<<16|Rn(e[3])<<8|255)>>>0:(e=Tm.exec(t))?(Rn(e[1])<<24|Rn(e[2])<<16|Rn(e[3])<<8|Al(e[4]))>>>0:(e=Vm.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Wm.exec(t))?parseInt(e[1],16)>>>0:(e=jm.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=Lm.exec(t))?(Ml(Il(e[1]),Ci(e[2]),Ci(e[3]))|255)>>>0:(e=Dm.exec(t))?(Ml(Il(e[1]),Ci(e[2]),Ci(e[3]))|Al(e[4]))>>>0:null}function ta(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 Ml(t,e,n){const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,a=ta(i,r,t+1/3),s=ta(i,r,t),l=ta(i,r,t-1/3);return Math.round(a*255)<<24|Math.round(s*255)<<16|Math.round(l*255)<<8}function Rn(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function Il(t){return(parseFloat(t)%360+360)%360/360}function Al(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Ci(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function Tl(t){let e=Zm(t);if(e===null)return t;e=e||0;let n=(e&4278190080)>>>24,r=(e&16711680)>>>16,i=(e&65280)>>>8,a=(e&255)/255;return`rgba(${n}, ${r}, ${i}, ${a})`}const Hr=(t,e,n)=>{if(W.fun(t