2 lines
2.0 KiB
JavaScript
2 lines
2.0 KiB
JavaScript
import{cl as C,cg as O,cm as b,cn as y,bH as g,aq as w,aQ as h,co as E,aS as A,cp as P,aO as R,b8 as x}from"./index-66a3e480.js";function m(e,n){for(var r=0;r<n.length;r++){var t=n[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,C(t.key),t)}}function Q(e,n,r){return n&&m(e.prototype,n),r&&m(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function B(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function D(e){return function(n){return n==null?void 0:n[e]}}var G=function(){return O()&&window.document.documentElement},u,J=function(){if(!G())return!1;if(u!==void 0)return u;var n=document.createElement("div");return n.style.display="flex",n.style.flexDirection="column",n.style.rowGap="1px",n.appendChild(document.createElement("div")),n.appendChild(document.createElement("div")),document.body.appendChild(n),u=n.scrollHeight===1,document.body.removeChild(n),u},M=1,S=2;function F(e,n,r,t){var i=r.length,s=i,o=!t;if(e==null)return!s;for(e=Object(e);i--;){var f=r[i];if(o&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++i<s;){f=r[i];var a=f[0],l=e[a],c=f[1];if(o&&f[2]){if(l===void 0&&!(a in e))return!1}else{var d=new b;if(t)var p=t(l,c,a,e,n,d);if(!(p===void 0?y(c,l,M|S,t,d):p))return!1}}return!0}function _(e){return e===e&&!g(e)}function I(e){for(var n=w(e),r=n.length;r--;){var t=n[r],i=e[t];n[r]=[t,i,_(i)]}return n}function v(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}function L(e){var n=I(e);return n.length==1&&n[0][2]?v(n[0][0],n[0][1]):function(r){return r===e||F(r,e,n)}}function U(e,n,r){var t=e==null?void 0:h(e,n);return t===void 0?r:t}var K=1,T=2;function q(e,n){return E(e)&&_(n)?v(A(e),n):function(r){var t=U(r,e);return t===void 0&&t===n?P(r,e):y(n,t,K|T)}}function H(e){return function(n){return h(n,e)}}function N(e){return E(e)?D(A(e)):H(e)}function W(e){return typeof e=="function"?e:e==null?R:typeof e=="object"?x(e)?q(e[0],e[1]):L(e):N(e)}export{Q as _,B as a,W as b,G as c,J as d};
|