/*! * @license deepcopy.js Copyright(c) 2013 sasa+1 * https://github.com/sasaplus1/deepcopy.js * Released under the MIT license. * * type-detect * Copyright(c) 2013 jake luer * MIT Licensed */ /*! * @license deepcopy.js Copyright(c) 2013 sasa+1 * https://github.com/sasaplus1/deepcopy.js * Released under the MIT license. * * type-detect * Copyright(c) 2013 jake luer * MIT Licensed */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).deepcopy=e()}(this,(function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?J:Y)(t)},q=Math.min,Q=function(t){return t>0?q(X(t),9007199254740991):0},$=Math.max,Z=Math.min,tt=A("keys"),et=function(t){return tt[t]||(tt[t]=E(t))},nt=(I=!1,function(t,e,n){var r,o=K(t),i=Q(o.length),u=function(t,e){return(t=X(t))<0?$(t+e,0):Z(t,e)}(n,i);if(I&&e!=e){for(;i>u;)if((r=o[u++])!=r)return!0}else for(;i>u;u++)if((I||u in o)&&o[u]===e)return I||u||0;return!I&&-1}),rt=et("IE_PROTO"),ot=function(t,e){var n,r=K(t),o=0,i=[];for(n in r)n!=rt&&a(r,n)&&i.push(n);for(;e.length>o;)a(r,n=e[o++])&&(~nt(i,n)||i.push(n));return i},it="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),ut=Object.keys||function(t){return ot(t,it)},ct={f:Object.getOwnPropertySymbols},at={f:{}.propertyIsEnumerable},ft=Array.isArray||function(t){return"Array"==H(t)},st=function(t){return Object(z(t))},lt=s?Object.defineProperties:function(t,e){y(t);for(var n,r=ut(e),o=r.length,i=0;o>i;)_.f(t,n=r[i++],e[n]);return t},pt=u.document,yt=pt&&pt.documentElement,ht=et("IE_PROTO"),vt=function(){},dt=function(){var t,e=d("iframe"),n=it.length;for(e.style.display="none",yt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("