码桶
发现社区成员的开源项目
object-DkPZvw8u.js1.5 KB
import{bL as c,ag as a,al as v,c8 as h,bE as m,bv as d,bK as A,c9 as P,bW as p,c0 as b,ca as E,an as _,ba as u,_ as S,a0 as N}from"./index-GWuvg2UH.js";var O=c;function T(e,r){return O(r,function(n){return e[n]})}var $=T,k=$,w=v;function H(e){return e==null?[]:k(e,w(e))}var K=H;const g=a(K);var M=h;function V(e,r){return e==null?!0:M(e,r)}var x=V;const i=a(x);var U=c,C=A,D=m,F=d,I=P,L=b,W=p;function q(e){return D(e)?U(e,L):F(e)?[e]:C(I(W(e)))}var z=q;const f=a(z);var B=Object.prototype,G=B.hasOwnProperty;function J(e,r){return e!=null&&G.call(e,r)}var Q=J,R=Q,X=E;function Y(e,r){return e!=null&&X(e,r,R)}var Z=Y;const j=a(Z),l=e=>{const r=f(e);return S(e)&&r.length===1?!1:Number.isInteger(+r[r.length-1])};function ee(e){if(N(e)){const r=g(e);return r.length?r.every(n=>typeof n>"u"):!0}else return!1}function o(e,r){if(r.length===0)return;const n=_(e,r);(Array.isArray(n)&&n.length>0&&n.every(s=>s==null)||ee(n))&&i(e,r),o(e,r.slice(0,r.length-1))}function te(e){return g(e).length===0}function y(e,r){return _(e,r)}function re(e,r){i(e,r);let n=f(r);n=n.slice(0,n.length-1),o(e,n)}function se(e,r,n,s){if(s)return u(e,r,n);if(n!==void 0)return u(e,r,n);if(l(r)&&y(e,r)!==void 0){u(e,r,void 0);let t=f(r);t=t.slice(0,t.length-1),o(e,t)}else!l(r)&&y(e,r)!==void 0&&re(e,r)}function ae(e,r){return j(e,r)}function ue(e,r){return e&&(typeof e=="function"||typeof e=="object")&&r&&(typeof r=="function"||typeof r=="object")&&Object.entries(r).forEach(n=>{let[s,t]=n;e[s]=t}),e}export{f as _,te as e,ue as f,y as g,ae as h,re as r,se as s,K as v};