"use strict";Liferay.Loader.define("liferay!analytics-settings-web$pretty-format@27.5.1/build/plugins/Immutable",["module","exports","require","../collections"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.test=t.serialize=t.default=void 0;var _=r("../collections");const e="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",a="@@__IMMUTABLE_KEYED__@@",s="@@__IMMUTABLE_MAP__@@",o="@@__IMMUTABLE_ORDERED__@@",l="@@__IMMUTABLE_RECORD__@@",u="@@__IMMUTABLE_SEQ__@@",E="@@__IMMUTABLE_SET__@@",M="@@__IMMUTABLE_STACK__@@",getImmutableName=e=>"Immutable."+e,printAsLeaf=e=>"["+e+"]",c=" ",d="…",printImmutableEntries=(e,t,r,i,n,a,s)=>++i>t.maxDepth?printAsLeaf(getImmutableName(s)):getImmutableName(s)+c+"{"+(0,_.printIteratorEntries)(e.entries(),t,r,i,n,a)+"}";const printImmutableRecord=(e,t,r,i,n,a)=>{const s=getImmutableName(e._name||"Record");return++i>t.maxDepth?printAsLeaf(s):s+c+"{"+(0,_.printIteratorEntries)(function getRecordEntries(e){let t=0;return{next(){if(t<e._keys.length){const r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}(e),t,r,i,n,a)+"}"},printImmutableSeq=(e,t,r,i,n,s)=>{const o=getImmutableName("Seq");return++i>t.maxDepth?printAsLeaf(o):e[a]?o+c+"{"+(e._iter||e._object?(0,_.printIteratorEntries)(e.entries(),t,r,i,n,s):d)+"}":o+c+"["+(e._iter||e._array||e._collection||e._iterable?(0,_.printIteratorValues)(e.values(),t,r,i,n,s):d)+"]"},printImmutableValues=(e,t,r,i,n,a,s)=>++i>t.maxDepth?printAsLeaf(getImmutableName(s)):getImmutableName(s)+c+"["+(0,_.printIteratorValues)(e.values(),t,r,i,n,a)+"]",serialize=(e,t,r,_,i,a)=>e[s]?printImmutableEntries(e,t,r,_,i,a,e[o]?"OrderedMap":"Map"):e[n]?printImmutableValues(e,t,r,_,i,a,"List"):e[E]?printImmutableValues(e,t,r,_,i,a,e[o]?"OrderedSet":"Set"):e[M]?printImmutableValues(e,t,r,_,i,a,"Stack"):e[u]?printImmutableSeq(e,t,r,_,i,a):printImmutableRecord(e,t,r,_,i,a);t.serialize=serialize;const test=t=>t&&(!0===t[e]||!0===t[l]);t.test=test;var i={serialize:serialize,test:test};t.default=i}}));
//# sourceMappingURL=Immutable.js.map