mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-05 19:42:07 +08:00
2 lines
20 KiB
JavaScript
2 lines
20 KiB
JavaScript
var qt=typeof global=="object"&&global&&global.Object===Object&&global,$r=typeof self=="object"&&self&&self.Object===Object&&self,b=qt||$r||Function("return this")(),v=b.Symbol,Vt=Object.prototype,Or=Vt.hasOwnProperty,wr=Vt.toString,L=v?v.toStringTag:void 0;function Sr(t){var r=Or.call(t,L),e=t[L];try{t[L]=void 0;var n=!0}catch{}var a=wr.call(t);return n&&(r?t[L]=e:delete t[L]),a}var Ar=Object.prototype,jr=Ar.toString;function xr(t){return jr.call(t)}var Pr="[object Null]",Ir="[object Undefined]",mt=v?v.toStringTag:void 0;function A(t){return t==null?t===void 0?Ir:Pr:mt&&mt in Object(t)?Sr(t):xr(t)}function y(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}var Er="[object AsyncFunction]",Cr="[object Function]",Fr="[object GeneratorFunction]",Mr="[object Proxy]";function Zt(t){if(!y(t))return!1;var r=A(t);return r==Cr||r==Fr||r==Er||r==Mr}var k=b["__core-js_shared__"],$t=function(){var t=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Nr(t){return!!$t&&$t in t}var Lr=Function.prototype,Dr=Lr.toString;function j(t){if(t!=null){try{return Dr.call(t)}catch{}try{return t+""}catch{}}return""}var Br=/[\\^$.*+?()[\]{}|]/g,Ur=/^\[object .+?Constructor\]$/,Rr=Function.prototype,zr=Object.prototype,Gr=Rr.toString,Hr=zr.hasOwnProperty,Kr=RegExp("^"+Gr.call(Hr).replace(Br,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wr(t){if(!y(t)||Nr(t))return!1;var r=Zt(t)?Kr:Ur;return r.test(j(t))}function Xr(t,r){return t==null?void 0:t[r]}function x(t,r){var e=Xr(t,r);return Wr(e)?e:void 0}var H=function(){try{var t=x(Object,"defineProperty");return t({},"",{}),t}catch{}}();function Jt(t,r,e){r=="__proto__"&&H?H(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}function Qt(t,r){return t===r||t!==t&&r!==r}var Yr=Object.prototype,qr=Yr.hasOwnProperty;function ot(t,r,e){var n=t[r];(!(qr.call(t,r)&&Qt(n,e))||e===void 0&&!(r in t))&&Jt(t,r,e)}var _=Array.isArray;function P(t){return t!=null&&typeof t=="object"}var Vr="[object Symbol]";function K(t){return typeof t=="symbol"||P(t)&&A(t)==Vr}var Zr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jr=/^\w*$/;function Qr(t,r){if(_(t))return!1;var e=typeof t;return e=="number"||e=="symbol"||e=="boolean"||t==null||K(t)?!0:Jr.test(t)||!Zr.test(t)||r!=null&&t in Object(r)}var U=x(Object,"create");function kr(){this.__data__=U?U(null):{},this.size=0}function te(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}var re="__lodash_hash_undefined__",ee=Object.prototype,ne=ee.hasOwnProperty;function ae(t){var r=this.__data__;if(U){var e=r[t];return e===re?void 0:e}return ne.call(r,t)?r[t]:void 0}var ie=Object.prototype,oe=ie.hasOwnProperty;function ue(t){var r=this.__data__;return U?r[t]!==void 0:oe.call(r,t)}var se="__lodash_hash_undefined__";function ce(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=U&&r===void 0?se:r,this}function S(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}S.prototype.clear=kr;S.prototype.delete=te;S.prototype.get=ae;S.prototype.has=ue;S.prototype.set=ce;function fe(){this.__data__=[],this.size=0}function W(t,r){for(var e=t.length;e--;)if(Qt(t[e][0],r))return e;return-1}var le=Array.prototype,pe=le.splice;function ge(t){var r=this.__data__,e=W(r,t);if(e<0)return!1;var n=r.length-1;return e==n?r.pop():pe.call(r,e,1),--this.size,!0}function de(t){var r=this.__data__,e=W(r,t);return e<0?void 0:r[e][1]}function he(t){return W(this.__data__,t)>-1}function ye(t,r){var e=this.__data__,n=W(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}function m(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}m.prototype.clear=fe;m.prototype.delete=ge;m.prototype.get=de;m.prototype.has=he;m.prototype.set=ye;var R=x(b,"Map");function be(){this.size=0,this.__data__={hash:new S,map:new(R||m),string:new S}}function Te(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function X(t,r){var e=t.__data__;return Te(r)?e[typeof r=="string"?"string":"hash"]:e.map}function ve(t){var r=X(this,t).delete(t);return this.size-=r?1:0,r}function _e(t){return X(this,t).get(t)}function me(t){return X(this,t).has(t)}function $e(t,r){var e=X(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this}function w(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}w.prototype.clear=be;w.prototype.delete=ve;w.prototype.get=_e;w.prototype.has=me;w.prototype.set=$e;var Oe="Expected a function";function ut(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new TypeError(Oe);var e=function(){var n=arguments,a=r?r.apply(this,n):n[0],i=e.cache;if(i.has(a))return i.get(a);var o=t.apply(this,n);return e.cache=i.set(a,o)||i,o};return e.cache=new(ut.Cache||w),e}ut.Cache=w;var we=500;function Se(t){var r=ut(t,function(n){return e.size===we&&e.clear(),n}),e=r.cache;return r}var Ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,je=/\\(\\)?/g,xe=Se(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(Ae,function(e,n,a,i){r.push(a?i.replace(je,"$1"):n||e)}),r});function kt(t,r){for(var e=-1,n=t==null?0:t.length,a=Array(n);++e<n;)a[e]=r(t[e],e,t);return a}var Pe=1/0,Ot=v?v.prototype:void 0,wt=Ot?Ot.toString:void 0;function tr(t){if(typeof t=="string")return t;if(_(t))return kt(t,tr)+"";if(K(t))return wt?wt.call(t):"";var r=t+"";return r=="0"&&1/t==-Pe?"-0":r}function Ie(t){return t==null?"":tr(t)}function F(t,r){return _(t)?t:Qr(t,r)?[t]:xe(Ie(t))}var Ee=9007199254740991,Ce=/^(?:0|[1-9]\d*)$/;function st(t,r){var e=typeof t;return r=r??Ee,!!r&&(e=="number"||e!="symbol"&&Ce.test(t))&&t>-1&&t%1==0&&t<r}var Fe=1/0;function Y(t){if(typeof t=="string"||K(t))return t;var r=t+"";return r=="0"&&1/t==-Fe?"-0":r}function rr(t,r,e,n){if(!y(t))return t;r=F(r,t);for(var a=-1,i=r.length,o=i-1,u=t;u!=null&&++a<i;){var s=Y(r[a]),l=e;if(s==="__proto__"||s==="constructor"||s==="prototype")return t;if(a!=o){var $=u[s];l=void 0,l===void 0&&(l=y($)?$:st(r[a+1])?[]:{})}ot(u,s,l),u=u[s]}return t}function no(t,r,e){return t==null?t:rr(t,r,e)}function Me(){this.__data__=new m,this.size=0}function Ne(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}function Le(t){return this.__data__.get(t)}function De(t){return this.__data__.has(t)}var Be=200;function Ue(t,r){var e=this.__data__;if(e instanceof m){var n=e.__data__;if(!R||n.length<Be-1)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new w(n)}return e.set(t,r),this.size=e.size,this}function M(t){var r=this.__data__=new m(t);this.size=r.size}M.prototype.clear=Me;M.prototype.delete=Ne;M.prototype.get=Le;M.prototype.has=De;M.prototype.set=Ue;function Re(t,r){for(var e=-1,n=t==null?0:t.length;++e<n&&r(t[e],e,t)!==!1;);return t}function z(t,r,e,n){var a=!e;e||(e={});for(var i=-1,o=r.length;++i<o;){var u=r[i],s=void 0;s===void 0&&(s=t[u]),a?Jt(e,u,s):ot(e,u,s)}return e}function ze(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}var Ge="[object Arguments]";function St(t){return P(t)&&A(t)==Ge}var er=Object.prototype,He=er.hasOwnProperty,Ke=er.propertyIsEnumerable,q=St(function(){return arguments}())?St:function(t){return P(t)&&He.call(t,"callee")&&!Ke.call(t,"callee")};function We(){return!1}var nr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,At=nr&&typeof module=="object"&&module&&!module.nodeType&&module,Xe=At&&At.exports===nr,jt=Xe?b.Buffer:void 0,Ye=jt?jt.isBuffer:void 0,ct=Ye||We,qe=9007199254740991;function ft(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=qe}var Ve="[object Arguments]",Ze="[object Array]",Je="[object Boolean]",Qe="[object Date]",ke="[object Error]",tn="[object Function]",rn="[object Map]",en="[object Number]",nn="[object Object]",an="[object RegExp]",on="[object Set]",un="[object String]",sn="[object WeakMap]",cn="[object ArrayBuffer]",fn="[object DataView]",ln="[object Float32Array]",pn="[object Float64Array]",gn="[object Int8Array]",dn="[object Int16Array]",hn="[object Int32Array]",yn="[object Uint8Array]",bn="[object Uint8ClampedArray]",Tn="[object Uint16Array]",vn="[object Uint32Array]",f={};f[ln]=f[pn]=f[gn]=f[dn]=f[hn]=f[yn]=f[bn]=f[Tn]=f[vn]=!0;f[Ve]=f[Ze]=f[cn]=f[Je]=f[fn]=f[Qe]=f[ke]=f[tn]=f[rn]=f[en]=f[nn]=f[an]=f[on]=f[un]=f[sn]=!1;function _n(t){return P(t)&&ft(t.length)&&!!f[A(t)]}function lt(t){return function(r){return t(r)}}var ar=typeof exports=="object"&&exports&&!exports.nodeType&&exports,D=ar&&typeof module=="object"&&module&&!module.nodeType&&module,mn=D&&D.exports===ar,tt=mn&&qt.process,C=function(){try{var t=D&&D.require&&D.require("util").types;return t||tt&&tt.binding&&tt.binding("util")}catch{}}(),xt=C&&C.isTypedArray,ir=xt?lt(xt):_n,$n=Object.prototype,On=$n.hasOwnProperty;function or(t,r){var e=_(t),n=!e&&q(t),a=!e&&!n&&ct(t),i=!e&&!n&&!a&&ir(t),o=e||n||a||i,u=o?ze(t.length,String):[],s=u.length;for(var l in t)(r||On.call(t,l))&&!(o&&(l=="length"||a&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||st(l,s)))&&u.push(l);return u}var wn=Object.prototype;function V(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||wn;return t===e}function ur(t,r){return function(e){return t(r(e))}}var Sn=ur(Object.keys,Object),An=Object.prototype,jn=An.hasOwnProperty;function sr(t){if(!V(t))return Sn(t);var r=[];for(var e in Object(t))jn.call(t,e)&&e!="constructor"&&r.push(e);return r}function pt(t){return t!=null&&ft(t.length)&&!Zt(t)}function gt(t){return pt(t)?or(t):sr(t)}function xn(t,r){return t&&z(r,gt(r),t)}function Pn(t){var r=[];if(t!=null)for(var e in Object(t))r.push(e);return r}var In=Object.prototype,En=In.hasOwnProperty;function Cn(t){if(!y(t))return Pn(t);var r=V(t),e=[];for(var n in t)n=="constructor"&&(r||!En.call(t,n))||e.push(n);return e}function Z(t){return pt(t)?or(t,!0):Cn(t)}function Fn(t,r){return t&&z(r,Z(r),t)}var cr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pt=cr&&typeof module=="object"&&module&&!module.nodeType&&module,Mn=Pt&&Pt.exports===cr,It=Mn?b.Buffer:void 0,Et=It?It.allocUnsafe:void 0;function Nn(t,r){if(r)return t.slice();var e=t.length,n=Et?Et(e):new t.constructor(e);return t.copy(n),n}function Ln(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e<n;)r[e]=t[e];return r}function Dn(t,r){for(var e=-1,n=t==null?0:t.length,a=0,i=[];++e<n;){var o=t[e];r(o,e,t)&&(i[a++]=o)}return i}function fr(){return[]}var Bn=Object.prototype,Un=Bn.propertyIsEnumerable,Ct=Object.getOwnPropertySymbols,dt=Ct?function(t){return t==null?[]:(t=Object(t),Dn(Ct(t),function(r){return Un.call(t,r)}))}:fr;function Rn(t,r){return z(t,dt(t),r)}function ht(t,r){for(var e=-1,n=r.length,a=t.length;++e<n;)t[a+e]=r[e];return t}var yt=ur(Object.getPrototypeOf,Object),zn=Object.getOwnPropertySymbols,lr=zn?function(t){for(var r=[];t;)ht(r,dt(t)),t=yt(t);return r}:fr;function Gn(t,r){return z(t,lr(t),r)}function pr(t,r,e){var n=r(t);return _(t)?n:ht(n,e(t))}function Hn(t){return pr(t,gt,dt)}function gr(t){return pr(t,Z,lr)}var et=x(b,"DataView"),nt=x(b,"Promise"),at=x(b,"Set"),it=x(b,"WeakMap"),Ft="[object Map]",Kn="[object Object]",Mt="[object Promise]",Nt="[object Set]",Lt="[object WeakMap]",Dt="[object DataView]",Wn=j(et),Xn=j(R),Yn=j(nt),qn=j(at),Vn=j(it),T=A;(et&&T(new et(new ArrayBuffer(1)))!=Dt||R&&T(new R)!=Ft||nt&&T(nt.resolve())!=Mt||at&&T(new at)!=Nt||it&&T(new it)!=Lt)&&(T=function(t){var r=A(t),e=r==Kn?t.constructor:void 0,n=e?j(e):"";if(n)switch(n){case Wn:return Dt;case Xn:return Ft;case Yn:return Mt;case qn:return Nt;case Vn:return Lt}return r});var Zn=Object.prototype,Jn=Zn.hasOwnProperty;function Qn(t){var r=t.length,e=new t.constructor(r);return r&&typeof t[0]=="string"&&Jn.call(t,"index")&&(e.index=t.index,e.input=t.input),e}var Bt=b.Uint8Array;function bt(t){var r=new t.constructor(t.byteLength);return new Bt(r).set(new Bt(t)),r}function kn(t,r){var e=r?bt(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}var ta=/\w*$/;function ra(t){var r=new t.constructor(t.source,ta.exec(t));return r.lastIndex=t.lastIndex,r}var Ut=v?v.prototype:void 0,Rt=Ut?Ut.valueOf:void 0;function ea(t){return Rt?Object(Rt.call(t)):{}}function na(t,r){var e=r?bt(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}var aa="[object Boolean]",ia="[object Date]",oa="[object Map]",ua="[object Number]",sa="[object RegExp]",ca="[object Set]",fa="[object String]",la="[object Symbol]",pa="[object ArrayBuffer]",ga="[object DataView]",da="[object Float32Array]",ha="[object Float64Array]",ya="[object Int8Array]",ba="[object Int16Array]",Ta="[object Int32Array]",va="[object Uint8Array]",_a="[object Uint8ClampedArray]",ma="[object Uint16Array]",$a="[object Uint32Array]";function Oa(t,r,e){var n=t.constructor;switch(r){case pa:return bt(t);case aa:case ia:return new n(+t);case ga:return kn(t,e);case da:case ha:case ya:case ba:case Ta:case va:case _a:case ma:case $a:return na(t,e);case oa:return new n;case ua:case fa:return new n(t);case sa:return ra(t);case ca:return new n;case la:return ea(t)}}var zt=Object.create,wa=function(){function t(){}return function(r){if(!y(r))return{};if(zt)return zt(r);t.prototype=r;var e=new t;return t.prototype=void 0,e}}();function Sa(t){return typeof t.constructor=="function"&&!V(t)?wa(yt(t)):{}}var Aa="[object Map]";function ja(t){return P(t)&&T(t)==Aa}var Gt=C&&C.isMap,xa=Gt?lt(Gt):ja,Pa="[object Set]";function Ia(t){return P(t)&&T(t)==Pa}var Ht=C&&C.isSet,Ea=Ht?lt(Ht):Ia,Ca=1,Fa=2,Ma=4,dr="[object Arguments]",Na="[object Array]",La="[object Boolean]",Da="[object Date]",Ba="[object Error]",hr="[object Function]",Ua="[object GeneratorFunction]",Ra="[object Map]",za="[object Number]",yr="[object Object]",Ga="[object RegExp]",Ha="[object Set]",Ka="[object String]",Wa="[object Symbol]",Xa="[object WeakMap]",Ya="[object ArrayBuffer]",qa="[object DataView]",Va="[object Float32Array]",Za="[object Float64Array]",Ja="[object Int8Array]",Qa="[object Int16Array]",ka="[object Int32Array]",ti="[object Uint8Array]",ri="[object Uint8ClampedArray]",ei="[object Uint16Array]",ni="[object Uint32Array]",c={};c[dr]=c[Na]=c[Ya]=c[qa]=c[La]=c[Da]=c[Va]=c[Za]=c[Ja]=c[Qa]=c[ka]=c[Ra]=c[za]=c[yr]=c[Ga]=c[Ha]=c[Ka]=c[Wa]=c[ti]=c[ri]=c[ei]=c[ni]=!0;c[Ba]=c[hr]=c[Xa]=!1;function B(t,r,e,n,a,i){var o,u=r&Ca,s=r&Fa,l=r&Ma;if(e&&(o=a?e(t,n,a,i):e(t)),o!==void 0)return o;if(!y(t))return t;var $=_(t);if($){if(o=Qn(t),!u)return Ln(t,o)}else{var g=T(t),I=g==hr||g==Ua;if(ct(t))return Nn(t,u);if(g==yr||g==dr||I&&!a){if(o=s||I?{}:Sa(t),!u)return s?Gn(t,Fn(o,t)):Rn(t,xn(o,t))}else{if(!c[g])return a?t:{};o=Oa(t,g,u)}}i||(i=new M);var E=i.get(t);if(E)return E;i.set(t,o),Ea(t)?t.forEach(function(h){o.add(B(h,r,e,h,t,i))}):xa(t)&&t.forEach(function(h,d){o.set(d,B(h,r,e,d,t,i))});var J=l?s?gr:Hn:s?Z:gt,G=$?void 0:J(t);return Re(G||t,function(h,d){G&&(d=h,h=t[d]),ot(o,d,B(h,r,e,d,t,i))}),o}var ai=1,ii=4;function ao(t){return B(t,ai|ii)}function Tt(t,r){r=F(r,t);for(var e=0,n=r.length;t!=null&&e<n;)t=t[Y(r[e++])];return e&&e==n?t:void 0}function oi(t,r,e){for(var n=-1,a=r.length,i={};++n<a;){var o=r[n],u=Tt(t,o);e(u,o)&&rr(i,F(o,t),u)}return i}function ui(t,r){return t!=null&&r in Object(t)}function si(t,r,e){r=F(r,t);for(var n=-1,a=r.length,i=!1;++n<a;){var o=Y(r[n]);if(!(i=t!=null&&e(t,o)))break;t=t[o]}return i||++n!=a?i:(a=t==null?0:t.length,!!a&&ft(a)&&st(o,a)&&(_(t)||q(t)))}function ci(t,r){return t!=null&&si(t,r,ui)}function fi(t,r){return oi(t,r,function(e,n){return ci(t,n)})}var Kt=v?v.isConcatSpreadable:void 0;function li(t){return _(t)||q(t)||!!(Kt&&t&&t[Kt])}function pi(t,r,e,n,a){var i=-1,o=t.length;for(e||(e=li),a||(a=[]);++i<o;){var u=t[i];e(u)?ht(a,u):a[a.length]=u}return a}function gi(t){var r=t==null?0:t.length;return r?pi(t):[]}function di(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}var Wt=Math.max;function hi(t,r,e){return r=Wt(r===void 0?t.length-1:r,0),function(){for(var n=arguments,a=-1,i=Wt(n.length-r,0),o=Array(i);++a<i;)o[a]=n[r+a];a=-1;for(var u=Array(r+1);++a<r;)u[a]=n[a];return u[r]=e(o),di(t,this,u)}}function yi(t){return function(){return t}}function br(t){return t}var bi=H?function(t,r){return H(t,"toString",{configurable:!0,enumerable:!1,value:yi(r),writable:!0})}:br,Ti=800,vi=16,_i=Date.now;function mi(t){var r=0,e=0;return function(){var n=_i(),a=vi-(n-e);if(e=n,a>0){if(++r>=Ti)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}var $i=mi(bi);function Tr(t){return $i(hi(t,void 0,gi),t+"")}var io=Tr(function(t,r){return t==null?{}:fi(t,r)}),rt=function(){return b.Date.now()},Oi=/\s/;function wi(t){for(var r=t.length;r--&&Oi.test(t.charAt(r)););return r}var Si=/^\s+/;function Ai(t){return t&&t.slice(0,wi(t)+1).replace(Si,"")}var Xt=NaN,ji=/^[-+]0x[0-9a-f]+$/i,xi=/^0b[01]+$/i,Pi=/^0o[0-7]+$/i,Ii=parseInt;function Yt(t){if(typeof t=="number")return t;if(K(t))return Xt;if(y(t)){var r=typeof t.valueOf=="function"?t.valueOf():t;t=y(r)?r+"":r}if(typeof t!="string")return t===0?t:+t;t=Ai(t);var e=xi.test(t);return e||Pi.test(t)?Ii(t.slice(2),e?2:8):ji.test(t)?Xt:+t}var Ei="Expected a function",Ci=Math.max,Fi=Math.min;function Mi(t,r,e){var n,a,i,o,u,s,l=0,$=!1,g=!1,I=!0;if(typeof t!="function")throw new TypeError(Ei);r=Yt(r)||0,y(e)&&($=!!e.leading,g="maxWait"in e,i=g?Ci(Yt(e.maxWait)||0,r):i,I="trailing"in e?!!e.trailing:I);function E(p){var O=n,N=a;return n=a=void 0,l=p,o=t.apply(N,O),o}function J(p){return l=p,u=setTimeout(d,r),$?E(p):o}function G(p){var O=p-s,N=p-l,_t=r-O;return g?Fi(_t,i-N):_t}function h(p){var O=p-s,N=p-l;return s===void 0||O>=r||O<0||g&&N>=i}function d(){var p=rt();if(h(p))return vt(p);u=setTimeout(d,G(p))}function vt(p){return u=void 0,I&&n?E(p):(n=a=void 0,o)}function _r(){u!==void 0&&clearTimeout(u),l=0,n=s=a=u=void 0}function mr(){return u===void 0?o:vt(rt())}function Q(){var p=rt(),O=h(p);if(n=arguments,a=this,s=p,O){if(u===void 0)return J(s);if(g)return clearTimeout(u),u=setTimeout(d,r),E(s)}return u===void 0&&(u=setTimeout(d,r)),o}return Q.cancel=_r,Q.flush=mr,Q}var Ni="Expected a function";function oo(t,r,e){var n=!0,a=!0;if(typeof t!="function")throw new TypeError(Ni);return y(e)&&(n="leading"in e?!!e.leading:n,a="trailing"in e?!!e.trailing:a),Mi(t,r,{leading:n,maxWait:r,trailing:a})}var Li="[object Map]",Di="[object Set]",Bi=Object.prototype,Ui=Bi.hasOwnProperty;function uo(t){if(t==null)return!0;if(pt(t)&&(_(t)||typeof t=="string"||typeof t.splice=="function"||ct(t)||ir(t)||q(t)))return!t.length;var r=T(t);if(r==Li||r==Di)return!t.size;if(V(t))return!sr(t).length;for(var e in t)if(Ui.call(t,e))return!1;return!0}function Ri(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}function zi(t,r,e){var n=-1,a=t.length;r<0&&(r=-r>a?0:a+r),e=e>a?a:e,e<0&&(e+=a),a=r>e?0:e-r>>>0,r>>>=0;for(var i=Array(a);++n<a;)i[n]=t[n+r];return i}function Gi(t,r){return r.length<2?t:Tt(t,zi(r,0,-1))}function Hi(t,r){return r=F(r,t),t=Gi(t,r),t==null||delete t[Y(Ri(r))]}var Ki="[object Object]",Wi=Function.prototype,Xi=Object.prototype,vr=Wi.toString,Yi=Xi.hasOwnProperty,qi=vr.call(Object);function Vi(t){if(!P(t)||A(t)!=Ki)return!1;var r=yt(t);if(r===null)return!0;var e=Yi.call(r,"constructor")&&r.constructor;return typeof e=="function"&&e instanceof e&&vr.call(e)==qi}function Zi(t){return Vi(t)?void 0:t}var Ji=1,Qi=2,ki=4,so=Tr(function(t,r){var e={};if(t==null)return e;var n=!1;r=kt(r,function(i){return i=F(i,t),n||(n=i.length>1),i}),z(t,gr(t),e),n&&(e=B(e,Ji|Qi|ki,Zi));for(var a=r.length;a--;)Hi(e,r[a]);return e});function co(t,r,e){var n=t==null?void 0:Tt(t,r);return n===void 0?e:n}function to(t){return function(r,e,n){for(var a=-1,i=Object(r),o=n(r),u=o.length;u--;){var s=o[++a];if(e(i[s],s,i)===!1)break}return r}}var ro=to();function eo(t){return typeof t=="function"?t:br}function fo(t,r){return t==null?t:ro(t,eo(r),Z)}export{ao as c,Mi as d,fo as f,co as g,uo as i,so as o,io as p,no as s,oo as t};
|