"use strict";Liferay.Loader.define("liferay!analytics-settings-web$pretty-format@27.5.1/build/plugins/DOMCollection",["module","exports","require","../collections"],(function(e,t,r){window;{var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e};Object.defineProperty(t,"__esModule",{value:!0}),t.test=t.serialize=t.default=void 0;var n=r("../collections");const e=" ",i=["DOMStringMap","NamedNodeMap"],s=/^(HTML\w*Collection|NodeList)$/,testName=e=>-1!==i.indexOf(e)||s.test(e),test=e=>e&&e.constructor&&!!e.constructor.name&&testName(e.constructor.name);t.test=test;const isNamedNodeMap=e=>"NamedNodeMap"===e.constructor.name,serialize=(t,r,a,s,c,l)=>{const u=t.constructor.name;return++s>r.maxDepth?"["+u+"]":(r.min?"":u+e)+(-1!==i.indexOf(u)?"{"+(0,n.printObjectProperties)(isNamedNodeMap(t)?Array.from(t).reduce(((e,t)=>(e[t.name]=t.value,e)),{}):o({},t),r,a,s,c,l)+"}":"["+(0,n.printListItems)(Array.from(t),r,a,s,c,l)+"]")};t.serialize=serialize;var a={serialize:serialize,test:test};t.default=a}}));
//# sourceMappingURL=DOMCollection.js.map