import{S as a}from"./_Uint8Array-BGESiCQL.js";import{t as u}from"./isSymbol-BGkTcW3U.js";import{t as l}from"./toString-DlRqgfqz.js";import{t as p}from"./memoize-BCOZVFBt.js";var m=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/;function h(r,t){if(a(r))return!1;var n=typeof r;return n=="number"||n=="symbol"||n=="boolean"||r==null||u(r)?!0:d.test(r)||!m.test(r)||t!=null&&r in Object(t)}var i=h,b=500;function g(r){var t=p(r,function(o){return n.size===b&&n.clear(),o}),n=t.cache;return t}var y=g,$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,S=y(function(r){var t=[];return r.charCodeAt(0)===46&&t.push(""),r.replace($,function(n,o,v,s){t.push(v?s.replace(x,"$1"):o||n)}),t});function j(r,t){return a(r)?r:i(r,t)?[r]:S(l(r))}var f=j,w=1/0;function z(r){if(typeof r=="string"||u(r))return r;var t=r+"";return t=="0"&&1/r==-w?"-0":t}var e=z;function A(r,t){t=f(t,r);for(var n=0,o=t.length;r!=null&&n<o;)r=r[e(t[n++])];return n&&n==o?r:void 0}var c=A;function C(r,t,n){var o=r==null?void 0:c(r,t);return o===void 0?n:o}var O=C;export{i as a,f as i,c as n,e as r,O as t};
