import{_ as e}from"./_curry2-Ngzhmcdp.js";import{_ as r}from"./_has-CZhjUFgV.js";import{_ as t}from"./_curry1-D3PJq_hl.js";function n(e){for(var r,t=[];!(r=e.next()).done;)t.push(r.value);return t}function a(e,r,t){for(var n=0,a=t.length;n<a;){if(e(r,t[n]))return!0;n+=1}return!1}const u="function"==typeof Object.is?Object.is:function(e,r){return e===r?0!==e||1/e==1/r:e!=e&&r!=r};var c=Object.prototype.toString,o=function(){return"[object Arguments]"===c.call(arguments)?function(e){return"[object Arguments]"===c.call(e)}:function(e){return r("callee",e)}}(),s=!{toString:null}.propertyIsEnumerable("toString"),i=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],f=function(){return arguments.propertyIsEnumerable("length")}(),l=function(e,r){for(var t=0;t<e.length;){if(e[t]===r)return!0;t+=1}return!1},y="function"!=typeof Object.keys||f?t((function(e){if(Object(e)!==e)return[];var t,n,a=[],u=f&&o(e);for(t in e)!r(t,e)||u&&"length"===t||(a[a.length]=t);if(s)for(n=i.length-1;n>=0;)r(t=i[n],e)&&!l(a,t)&&(a[a.length]=t),n-=1;return a})):t((function(e){return Object(e)!==e?[]:Object.keys(e)})),p=t((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function g(e,r,t,u){var c=n(e);function o(e,r){return m(e,r,t.slice(),u.slice())}return!a((function(e,r){return!a(o,r,e)}),n(r),c)}function m(e,t,n,a){if(u(e,t))return!0;var c,o,s=p(e);if(s!==p(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(s){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(c=e.constructor,null==(o=String(c).match(/^function (\w*)/))?"":o[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!u(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!u(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var i=n.length-1;i>=0;){if(n[i]===e)return a[i]===t;i-=1}switch(s){case"Map":return e.size===t.size&&g(e.entries(),t.entries(),n.concat([e]),a.concat([t]));case"Set":return e.size===t.size&&g(e.values(),t.values(),n.concat([e]),a.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var f=y(e);if(f.length!==y(t).length)return!1;var l=n.concat([e]),b=a.concat([t]);for(i=f.length-1;i>=0;){var v=f[i];if(!r(v,t)||!m(t[v],e[v],l,b))return!1;i-=1}return!0}var b=e((function(e,r){return m(e,r,[],[])}));export{b as e,y as k,p as t};
