import{a as r,S as n,M as t}from"./p-BgAfMcRA.js";import{i as u}from"./p-6PYziigk.js";function i(r,n){for(var t=-1,u=null==r?0:r.length,i=Array(u);++t<u;)i[t]=n(r[t],t,r);return i}var o=n?n.prototype:void 0,f=o?o.toString:void 0;function e(n){if("string"==typeof n)return n;if(r(n))return i(n,e)+"";if(u(n))return f?f.call(n):"";var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}var a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;function s(n,t){if(r(n))return!1;var i=typeof n;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=n&&!u(n))||c.test(n)||!a.test(n)||null!=t&&n in Object(t)}function v(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var u=function(){var t=arguments,i=n?n.apply(this,t):t[0],o=u.cache;if(o.has(i))return o.get(i);var f=r.apply(this,t);return u.cache=o.set(i,f)||o,f};return u.cache=new(v.Cache||t),u}v.Cache=t;var l,p,d,y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,g=/\\(\\)?/g,m=(l=function(r){var n=[];return 46===r.charCodeAt(0)&&n.push(""),r.replace(y,(function(r,t,u,i){n.push(u?i.replace(g,"$1"):t||r)})),n},p=v(l,(function(r){return 500===d.size&&d.clear(),r})),d=p.cache,p);function b(r){return null==r?"":e(r)}function w(n,t){return r(n)?n:s(n,t)?[n]:m(b(n))}function h(r){if("string"==typeof r||u(r))return r;var n=r+"";return"0"==n&&1/r==-1/0?"-0":n}function j(r,n){for(var t=0,u=(n=w(n,r)).length;null!=r&&t<u;)r=r[h(n[t++])];return t&&t==u?r:void 0}function A(r,n,t){var u=null==r?void 0:j(r,n);return void 0===u?t:u}export{h as a,j as b,w as c,i as d,A as g,s as i,b as t}