virtual-react-json-diff 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import{useState as r,useRef as o,useCallback as i,useEffect as l,useMemo as a,createElement as s,PureComponent as c,useLayoutEffect as u}from"react";const f=e=>{if(null==e||"bigint"==typeof e||Number.isNaN(e)||e===1/0||e===-1/0)return;if(["string","number","boolean"].includes(typeof e))return e;if(Array.isArray(e))return e.map(f).filter((e=>void 0!==e));const t={};for(const[n,r]of Object.entries(e)){const e=f(r);void 0!==e&&(t[n]=e)}return t},d=(e,t,n=!1)=>{if(!Array.isArray(e)||!Array.isArray(t))throw new Error("Both arguments should be arrays.");const r=e.length,o=t.length,i=new Array(r+o);if(n){for(let e=0;e<o;e++)i[e]=t[o-e-1];for(let t=0;t<r;t++)i[t+o]=e[t];return i}for(let t=0;t<r;t++)i[t]=e[t];for(let e=0;e<o;e++)i[e+r]=t[e];return i},h=(e,t=new Map)=>{if("object"!=typeof e||null===e)return!1;if(t.has(e))return!0;if(t.set(e,!0),Array.isArray(e)){for(let n=0;n<e.length;n++)if(h(e[n],t))return!0;return!1}for(const n in e)if(h(e[n],t))return!0;return!1},p=(e,t,n,r=1/0,o)=>{if(!e||"object"!=typeof e){let r;if(Number.isNaN(e)||e===1/0||e===-1/0||"bigint"==typeof e||(r=JSON.stringify(e,t,n)),void 0===r)switch(o){case zr.throw:throw new Error(`Value is not valid in JSON, got ${String(e)}`);case zr.stringify:return v(e);default:throw new Error("Should not reach here, please report this bug.")}return r}const i=r<1?'"..."':Array.isArray(e)?`[${e.map((e=>p(e,t,n,r-1,o))).join(",")}]`:`{${Object.keys(e).map((i=>`"${i}": ${p(e[i],t,n,r-1,o)}`)).join(", ")}}`;return JSON.stringify(JSON.parse(i),t,n)},v=e=>void 0===e?"undefined":e===1/0?"Infinity":e===-1/0?"-Infinity":Number.isNaN(e)?"NaN":"bigint"==typeof e?`${e}n`:String(e),y=(e,t=1/0,n=!1,r=zr.stringify)=>null===e?"null":Array.isArray(e)||"object"==typeof e?p(e,void 0,n?1:void 0,t,r):p(e,void 0,void 0,void 0,r),g=e=>"boolean"==typeof e?0:"number"==typeof e?1:"string"==typeof e?2:null===e?3:Array.isArray(e)?4:"object"==typeof e?5:"symbol"==typeof e?6:"function"==typeof e?7:"bigint"==typeof e?8:-1,m=(e,t,n)=>{const r=n.keyOrdersMap?.get(e),o=n.keyOrdersMap?.get(t);if(void 0!==r&&void 0!==o)return r-o;const i=g(e),l=g(t);if(i!==l)return i-l;if(null===e&&null===t||Array.isArray(e)&&Array.isArray(t)||5===i&&5===l)return 0;switch(typeof e){case"number":return Number.isNaN(e)&&Number.isNaN(t)||e===1/0&&t===1/0||e===-1/0&&t===-1/0?0:e-t;case"string":return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e<t?-1:e>t?1:0;case"boolean":return+e-+t;case"symbol":case"function":return String(e).localeCompare(String(t))}if("bigint"==typeof e&&"bigint"==typeof t){const n=BigInt(e)-BigInt(t);return n<0?-1:n>0?1:0}return String(e).localeCompare(String(t))},b=e=>Array.isArray(e)?"array":null===e?"null":typeof e,x=(e,t,n,r,o,i,l,a)=>{const s={ignoreCase:a.ignoreCase},c=y(o,a.maxDepth,!0,a.undefinedBehavior).split("\n"),u=y(i,a.maxDepth,!0,a.undefinedBehavior).split("\n");if(0!==m(o,i,s))if(a.showModifications){const o=Math.max(c.length,u.length);for(let e=c.length;e<o;e++)c.push("");for(let e=u.length;e<o;e++)u.push("");e.push({level:l,type:"modify",text:n?`"${n}": ${c[0]}`:c[0]});for(let t=1;t<c.length;t++)e.push({level:l+(c[t].match(/^\s+/)?.[0]?.length||0),type:"modify",text:c[t].replace(/^\s+/,"").replace(/,$/g,"")});for(let t=c.length;t<o;t++)e.push({level:l,type:"equal",text:""});t.push({level:l,type:"modify",text:r?`"${r}": ${u[0]}`:u[0]});for(let e=1;e<u.length;e++)t.push({level:l+(u[e].match(/^\s+/)?.[0]?.length||0),type:"modify",text:u[e].replace(/^\s+/,"").replace(/,$/g,"")});for(let e=u.length;e<o;e++)t.push({level:l,type:"equal",text:""})}else{e.push({level:l,type:"remove",text:n?`"${n}": ${c[0]}`:c[0]});for(let t=1;t<c.length;t++)e.push({level:l+(c[t].match(/^\s+/)?.[0]?.length||0),type:"remove",text:c[t].replace(/^\s+/,"").replace(/,$/g,"")});for(let t=0;t<u.length;t++)e.push({level:l,type:"equal",text:""});for(let e=0;e<c.length;e++)t.push({level:l,type:"equal",text:""});t.push({level:l,type:"add",text:r?`"${r}": ${u[0]}`:u[0]});for(let e=1;e<u.length;e++)t.push({level:l+(u[e].match(/^\s+/)?.[0]?.length||0),type:"add",text:u[e].replace(/^\s+/,"").replace(/,$/g,"")})}else{const o=Math.max(c.length,u.length);for(let e=c.length;e<o;e++)c.push("");for(let e=u.length;e<o;e++)u.push("");e.push({level:l,type:"equal",text:n?`"${n}": ${c[0]}`:c[0]});for(let t=1;t<c.length;t++)e.push({level:l+(c[t].match(/^\s+/)?.[0]?.length||0),type:"equal",text:c[t].replace(/^\s+/,"").replace(/,$/g,"")});t.push({level:l,type:"equal",text:r?`"${r}": ${u[0]}`:u[0]});for(let e=1;e<u.length;e++)t.push({level:l+(u[e].match(/^\s+/)?.[0]?.length||0),type:"equal",text:u[e].replace(/^\s+/,"").replace(/,$/g,"")})}},w=(e,t)=>e.sort(((e,n)=>m(e,n,{ignoreCase:t.ignoreCaseForKey}))),j=(e,t,n=1,r,o)=>{if(n>(r.maxDepth||1/0))return[[{level:n,type:"equal",text:"..."}],[{level:n,type:"equal",text:"..."}]];let i=[],l=[];if(null===e&&null===t||void 0===e&&void 0===t)return[i,l];if(null==e){const e=p(t,void 0,1,void 0,r.undefinedBehavior).split("\n");for(let t=0;t<e.length;t++)i.push({level:n,type:"equal",text:""}),l.push({level:n+(e[t].match(/^\s+/)?.[0]?.length||0),type:"add",text:e[t].replace(/^\s+/,"").replace(/,$/g,"")});return[i,l]}if(null==t){const t=p(e,void 0,1,void 0,r.undefinedBehavior).split("\n");for(let e=0;e<t.length;e++)i.push({level:n+(t[e].match(/^\s+/)?.[0]?.length||0),type:"remove",text:t[e].replace(/^\s+/,"").replace(/,$/g,"")}),l.push({level:n,type:"equal",text:""});return[i,l]}const a=Object.keys(e),s=Object.keys(t),c=new Map;if(r.preserveKeyOrder){if("before"===r.preserveKeyOrder){for(let e=0;e<a.length;e++)c.set(a[e],e);for(let e=0;e<s.length;e++)c.has(s[e])||c.set(s[e],a.length+e);s.sort(((e,t)=>c.get(e)-c.get(t)))}else if("after"===r.preserveKeyOrder){for(let e=0;e<s.length;e++)c.set(s[e],e);for(let e=0;e<a.length;e++)c.has(a[e])||c.set(a[e],s.length+e);a.sort(((e,t)=>c.get(e)-c.get(t)))}}else w(a,r),w(s,r);const u={ignoreCase:r.ignoreCaseForKey,keyOrdersMap:c};for(;a.length||s.length;){const c=a[0],f=s[0],h=m(c,f,u);if(0===h)if(b(e[c])!==b(t[f]))x(i,l,c,f,e[c],t[f],n,r);else if(Array.isArray(e[c])){const a=[...e[c]],s=[...t[f]],[u,h]=o(a,s,c,f,n,r,[],[]);i=d(i,u),l=d(l,h)}else if(null===e[c])i.push({level:n,type:"equal",text:`"${c}": null`}),l.push({level:n,type:"equal",text:`"${f}": null`});else if("object"==typeof e[c]){const a=j(e[c],t[f],n+1,r,o);i.push({level:n,type:"equal",text:`"${c}": {`}),i=d(i,a[0]),i.push({level:n,type:"equal",text:"}"}),l.push({level:n,type:"equal",text:`"${f}": {`}),l=d(l,a[1]),l.push({level:n,type:"equal",text:"}"})}else x(i,l,c,f,e[c],t[f],n,r);else if(a.length&&s.length)if(h<0){const t=p(e[c],void 0,1,void 0,r.undefinedBehavior).split("\n");for(let e=0;e<t.length;e++){const r=t[e].replace(/^\s+/,"").replace(/,$/g,"");i.push({level:n+(t[e].match(/^\s+/)?.[0]?.length||0),type:"remove",text:e?r:`"${c}": ${r}`}),l.push({level:n,type:"equal",text:""})}}else{const e=p(t[f],void 0,1,void 0,r.undefinedBehavior).split("\n");for(let t=0;t<e.length;t++){const r=e[t].replace(/^\s+/,"").replace(/,$/g,"");i.push({level:n,type:"equal",text:""}),l.push({level:n+(e[t].match(/^\s+/)?.[0]?.length||0),type:"add",text:t?r:`"${f}": ${r}`})}}else if(a.length){const t=p(e[c],void 0,1,void 0,r.undefinedBehavior).split("\n");for(let e=0;e<t.length;e++){const r=t[e].replace(/^\s+/,"").replace(/,$/g,"");i.push({level:n+(t[e].match(/^\s+/)?.[0]?.length||0),type:"remove",text:e?r:`"${c}": ${r}`}),l.push({level:n,type:"equal",text:""})}}else if(s.length){const e=p(t[f],void 0,1,void 0,r.undefinedBehavior).split("\n");for(let t=0;t<e.length;t++){const r=e[t].replace(/^\s+/,"").replace(/,$/g,"");i.push({level:n,type:"equal",text:""}),l.push({level:n+(e[t].match(/^\s+/)?.[0]?.length||0),type:"add",text:t?r:`"${f}": ${r}`})}}c?f?0===h?(a.shift(),s.shift()):h<0?a.shift():s.shift():a.shift():s.shift()}if(i.length!==l.length)throw new Error("Diff error: length not match for left & right, please report a bug with your data.");return[i,l]};var _=function(){this.__data__=[],this.size=0};var S=function(e,t){return e===t||e!=e&&t!=t},O=S;var M=function(e,t){for(var n=e.length;n--;)if(O(e[n][0],t))return n;return-1},A=M,k=Array.prototype.splice;var I=M;var N=M;var E=M;var C=_,q=function(e){var t=this.__data__,n=A(t,e);return!(n<0)&&(n==t.length-1?t.pop():k.call(t,n,1),--this.size,!0)},D=function(e){var t=this.__data__,n=I(t,e);return n<0?void 0:t[n][1]},R=function(e){return N(this.__data__,e)>-1},B=function(e,t){var n=this.__data__,r=E(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function $(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}$.prototype.clear=C,$.prototype.delete=q,$.prototype.get=D,$.prototype.has=R,$.prototype.set=B;var z=$,T=z;var L=function(){this.__data__=new T,this.size=0};var P=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var W=function(e){return this.__data__.get(e)};var F=function(e){return this.__data__.has(e)},H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},U="object"==typeof H&&H&&H.Object===Object&&H,K=U,V="object"==typeof self&&self&&self.Object===Object&&self,G=K||V||Function("return this")(),J=G.Symbol,Y=J,Z=Object.prototype,Q=Z.hasOwnProperty,X=Z.toString,ee=Y?Y.toStringTag:void 0;var te=function(e){var t=Q.call(e,ee),n=e[ee];try{e[ee]=void 0;var r=!0}catch(e){}var o=X.call(e);return r&&(t?e[ee]=n:delete e[ee]),o},ne=Object.prototype.toString;var re=te,oe=function(e){return ne.call(e)},ie=J?J.toStringTag:void 0;var le=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ie&&ie in Object(e)?re(e):oe(e)};var ae=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},se=le,ce=ae;var ue,fe=function(e){if(!ce(e))return!1;var t=se(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},de=G["__core-js_shared__"],he=(ue=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||""))?"Symbol(src)_1."+ue:"";var pe=function(e){return!!he&&he in e},ve=Function.prototype.toString;var ye=function(e){if(null!=e){try{return ve.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ge=fe,me=pe,be=ae,xe=ye,we=/^\[object .+?Constructor\]$/,je=Function.prototype,_e=Object.prototype,Se=je.toString,Oe=_e.hasOwnProperty,Me=RegExp("^"+Se.call(Oe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ae=function(e){return!(!be(e)||me(e))&&(ge(e)?Me:we).test(xe(e))},ke=function(e,t){return null==e?void 0:e[t]};var Ie=function(e,t){var n=ke(e,t);return Ae(n)?n:void 0},Ne=Ie(G,"Map"),Ee=Ie(Object,"create"),Ce=Ee;var qe=function(){this.__data__=Ce?Ce(null):{},this.size=0};var De=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Re=Ee,Be=Object.prototype.hasOwnProperty;var $e=function(e){var t=this.__data__;if(Re){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Be.call(t,e)?t[e]:void 0},ze=Ee,Te=Object.prototype.hasOwnProperty;var Le=Ee;var Pe=qe,We=De,Fe=$e,He=function(e){var t=this.__data__;return ze?void 0!==t[e]:Te.call(t,e)},Ue=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Le&&void 0===t?"__lodash_hash_undefined__":t,this};function Ke(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ke.prototype.clear=Pe,Ke.prototype.delete=We,Ke.prototype.get=Fe,Ke.prototype.has=He,Ke.prototype.set=Ue;var Ve=Ke,Ge=z,Je=Ne;var Ye=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ze=function(e,t){var n=e.__data__;return Ye(t)?n["string"==typeof t?"string":"hash"]:n.map},Qe=Ze;var Xe=Ze;var et=Ze;var tt=Ze;var nt=function(e,t){var n=tt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},rt=function(){this.size=0,this.__data__={hash:new Ve,map:new(Je||Ge),string:new Ve}},ot=function(e){var t=Qe(this,e).delete(e);return this.size-=t?1:0,t},it=function(e){return Xe(this,e).get(e)},lt=function(e){return et(this,e).has(e)},at=nt;function st(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}st.prototype.clear=rt,st.prototype.delete=ot,st.prototype.get=it,st.prototype.has=lt,st.prototype.set=at;var ct=st,ut=z,ft=Ne,dt=ct;var ht=z,pt=L,vt=P,yt=W,gt=F,mt=function(e,t){var n=this.__data__;if(n instanceof ut){var r=n.__data__;if(!ft||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new dt(r)}return n.set(e,t),this.size=n.size,this};function bt(e){var t=this.__data__=new ht(e);this.size=t.size}bt.prototype.clear=pt,bt.prototype.delete=vt,bt.prototype.get=yt,bt.prototype.has=gt,bt.prototype.set=mt;var xt=bt;var wt=ct,jt=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},_t=function(e){return this.__data__.has(e)};function St(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new wt;++t<n;)this.add(e[t])}St.prototype.add=St.prototype.push=jt,St.prototype.has=_t;var Ot=St,Mt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},At=function(e,t){return e.has(t)};var kt=function(e,t,n,r,o,i){var l=1&n,a=e.length,s=t.length;if(a!=s&&!(l&&s>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,h=2&n?new Ot:void 0;for(i.set(e,t),i.set(t,e);++f<a;){var p=e[f],v=t[f];if(r)var y=l?r(v,p,f,t,e,i):r(p,v,f,e,t,i);if(void 0!==y){if(y)continue;d=!1;break}if(h){if(!Mt(t,(function(e,t){if(!At(h,t)&&(p===e||o(p,e,n,r,i)))return h.push(t)}))){d=!1;break}}else if(p!==v&&!o(p,v,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d};var It=G.Uint8Array,Nt=S,Et=kt,Ct=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},qt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Dt=J?J.prototype:void 0,Rt=Dt?Dt.valueOf:void 0;var Bt=function(e,t,n,r,o,i,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new It(e),new It(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Nt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=Ct;case"[object Set]":var s=1&r;if(a||(a=qt),e.size!=t.size&&!s)return!1;var c=l.get(e);if(c)return c==t;r|=2,l.set(e,t);var u=Et(a(e),a(t),r,o,i,l);return l.delete(e),u;case"[object Symbol]":if(Rt)return Rt.call(e)==Rt.call(t)}return!1};var $t=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},zt=Array.isArray,Tt=$t,Lt=zt;var Pt=function(e,t,n){var r=t(e);return Lt(e)?r:Tt(r,n(e))};var Wt=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var l=e[n];t(l,n,e)&&(i[o++]=l)}return i},Ft=function(){return[]},Ht=Object.prototype.propertyIsEnumerable,Ut=Object.getOwnPropertySymbols,Kt=Ut?function(e){return null==e?[]:(e=Object(e),Wt(Ut(e),(function(t){return Ht.call(e,t)})))}:Ft;var Vt=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var Gt=function(e){return null!=e&&"object"==typeof e},Jt=le,Yt=Gt;var Zt=function(e){return Yt(e)&&"[object Arguments]"==Jt(e)},Qt=Gt,Xt=Object.prototype,en=Xt.hasOwnProperty,tn=Xt.propertyIsEnumerable,nn=Zt(function(){return arguments}())?Zt:function(e){return Qt(e)&&en.call(e,"callee")&&!tn.call(e,"callee")},rn={exports:{}};var on=function(){return!1};!function(e,t){var n=G,r=on,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,l=i&&i.exports===o?n.Buffer:void 0,a=(l?l.isBuffer:void 0)||r;e.exports=a}(rn,rn.exports);var ln=/^(?:0|[1-9]\d*)$/;var an=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ln.test(e))&&e>-1&&e%1==0&&e<t};var sn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},cn=le,un=sn,fn=Gt,dn={};dn["[object Float32Array]"]=dn["[object Float64Array]"]=dn["[object Int8Array]"]=dn["[object Int16Array]"]=dn["[object Int32Array]"]=dn["[object Uint8Array]"]=dn["[object Uint8ClampedArray]"]=dn["[object Uint16Array]"]=dn["[object Uint32Array]"]=!0,dn["[object Arguments]"]=dn["[object Array]"]=dn["[object ArrayBuffer]"]=dn["[object Boolean]"]=dn["[object DataView]"]=dn["[object Date]"]=dn["[object Error]"]=dn["[object Function]"]=dn["[object Map]"]=dn["[object Number]"]=dn["[object Object]"]=dn["[object RegExp]"]=dn["[object Set]"]=dn["[object String]"]=dn["[object WeakMap]"]=!1;var hn=function(e){return fn(e)&&un(e.length)&&!!dn[cn(e)]};var pn=function(e){return function(t){return e(t)}},vn={exports:{}};!function(e,t){var n=U,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,l=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=l}(vn,vn.exports);var yn=hn,gn=pn,mn=vn.exports,bn=mn&&mn.isTypedArray,xn=bn?gn(bn):yn,wn=Vt,jn=nn,_n=zt,Sn=rn.exports,On=an,Mn=xn,An=Object.prototype.hasOwnProperty;var kn=function(e,t){var n=_n(e),r=!n&&jn(e),o=!n&&!r&&Sn(e),i=!n&&!r&&!o&&Mn(e),l=n||r||o||i,a=l?wn(e.length,String):[],s=a.length;for(var c in e)!t&&!An.call(e,c)||l&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||On(c,s))||a.push(c);return a},In=Object.prototype;var Nn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||In)};var En=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Cn=Nn,qn=En,Dn=Object.prototype.hasOwnProperty;var Rn=fe,Bn=sn;var $n=kn,zn=function(e){if(!Cn(e))return qn(e);var t=[];for(var n in Object(e))Dn.call(e,n)&&"constructor"!=n&&t.push(n);return t},Tn=function(e){return null!=e&&Bn(e.length)&&!Rn(e)};var Ln=Pt,Pn=Kt,Wn=function(e){return Tn(e)?$n(e):zn(e)};var Fn=function(e){return Ln(e,Wn,Pn)},Hn=Object.prototype.hasOwnProperty;var Un=function(e,t,n,r,o,i){var l=1&n,a=Fn(e),s=a.length;if(s!=Fn(t).length&&!l)return!1;for(var c=s;c--;){var u=a[c];if(!(l?u in t:Hn.call(t,u)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var h=!0;i.set(e,t),i.set(t,e);for(var p=l;++c<s;){var v=e[u=a[c]],y=t[u];if(r)var g=l?r(y,v,u,t,e,i):r(v,y,u,e,t,i);if(!(void 0===g?v===y||o(v,y,n,r,i):g)){h=!1;break}p||(p="constructor"==u)}if(h&&!p){var m=e.constructor,b=t.constructor;m==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(h=!1)}return i.delete(e),i.delete(t),h},Kn=Ie(G,"DataView"),Vn=Ne,Gn=Ie(G,"Promise"),Jn=Ie(G,"Set"),Yn=Ie(G,"WeakMap"),Zn=le,Qn=ye,Xn="[object Map]",er="[object Promise]",tr="[object Set]",nr="[object WeakMap]",rr="[object DataView]",or=Qn(Kn),ir=Qn(Vn),lr=Qn(Gn),ar=Qn(Jn),sr=Qn(Yn),cr=Zn;(Kn&&cr(new Kn(new ArrayBuffer(1)))!=rr||Vn&&cr(new Vn)!=Xn||Gn&&cr(Gn.resolve())!=er||Jn&&cr(new Jn)!=tr||Yn&&cr(new Yn)!=nr)&&(cr=function(e){var t=Zn(e),n="[object Object]"==t?e.constructor:void 0,r=n?Qn(n):"";if(r)switch(r){case or:return rr;case ir:return Xn;case lr:return er;case ar:return tr;case sr:return nr}return t});var ur=xt,fr=kt,dr=Bt,hr=Un,pr=cr,vr=zt,yr=rn.exports,gr=xn,mr="[object Arguments]",br="[object Array]",xr="[object Object]",wr=Object.prototype.hasOwnProperty;var jr=function(e,t,n,r,o,i){var l=vr(e),a=vr(t),s=l?br:pr(e),c=a?br:pr(t),u=(s=s==mr?xr:s)==xr,f=(c=c==mr?xr:c)==xr,d=s==c;if(d&&yr(e)){if(!yr(t))return!1;l=!0,u=!1}if(d&&!u)return i||(i=new ur),l||gr(e)?fr(e,t,n,r,o,i):dr(e,t,s,n,r,o,i);if(!(1&n)){var h=u&&wr.call(e,"__wrapped__"),p=f&&wr.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,y=p?t.value():t;return i||(i=new ur),o(v,y,n,r,i)}}return!!d&&(i||(i=new ur),hr(e,t,n,r,o,i))},_r=Gt;var Sr=function e(t,n,r,o,i){return t===n||(null==t||null==n||!_r(t)&&!_r(n)?t!=t&&n!=n:jr(t,n,r,o,e,i))},Or=Sr;var Mr=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Or(e,t,void 0,n):!!r};const Ar=(e,t,n)=>n.ignoreCase?"string"==typeof e&&"string"==typeof t&&e.toLowerCase()===t.toLowerCase():"symbol"==typeof e&&"symbol"==typeof t?e.toString()===t.toString():n.recursiveEqual?Mr(e,t,((e,t)=>n.ignoreCase&&"string"==typeof e&&"string"==typeof t?e.toLowerCase()===t.toLowerCase():void 0)):e===t,kr=(e,t)=>{if(e===t)return 1;if(null===e||null===t)return 0;if("object"!=typeof e||"object"!=typeof t)return 0;let n=0;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&Object.prototype.hasOwnProperty.call(t,r)&&e[r]===t[r]&&n++;return Math.max(n/Object.keys(e).length,n/Object.keys(t).length)},Ir=(e,t,n,r,o)=>{n&&r?(e.push({level:o,type:"equal",text:`"${n}": [`}),t.push({level:o,type:"equal",text:`"${r}": [`})):(e.push({level:o,type:"equal",text:"["}),t.push({level:o,type:"equal",text:"["}))},Nr=(e,t,n)=>{e.push({level:n,type:"equal",text:"]"}),t.push({level:n,type:"equal",text:"]"})},Er=(e,t,n)=>{e.push({level:n+1,type:"equal",text:"..."}),t.push({level:n+1,type:"equal",text:"..."})},Cr=(e,t,n,r,o,i,l=[],a=[])=>{if(Ir(l,a,n,r,o),o>=(i.maxDepth||1/0))Er(l,a,o);else{const[s,c]=((e,t,n,r,o,i)=>{const l=Array(e.length+1).fill(0).map((()=>Array(t.length+1).fill(0))),a=Array(e.length+1).fill(0).map((()=>Array(t.length+1).fill(0)));for(let t=1;t<=e.length;t++)a[t][0]="up";for(let e=1;e<=t.length;e++)a[0][e]="left";for(let n=1;n<=e.length;n++)for(let r=1;r<=t.length;r++){const o=b(e[n-1]);o!==b(t[r-1])||"array"!==o&&"object"!==o?Ar(e[n-1],t[r-1],i)?(l[n][r]=l[n-1][r-1]+1,a[n][r]="diag"):l[n-1][r]>=l[n][r-1]?(l[n][r]=l[n-1][r],a[n][r]="up"):(l[n][r]=l[n][r-1],a[n][r]="left"):i.recursiveEqual?Ar(e[n-1],t[r-1],i)||kr(e[n-1],t[r-1])>.5?(l[n][r]=l[n-1][r-1]+1,a[n][r]="diag"):l[n-1][r]>=l[n][r-1]?(l[n][r]=l[n-1][r],a[n][r]="up"):(l[n][r]=l[n][r-1],a[n][r]="left"):(l[n][r]=l[n-1][r-1]+1,a[n][r]="diag")}let s=e.length,c=t.length,u=[],f=[];for(;s>0||c>0;)if("diag"===a[s][c]){const l=b(e[s-1]);if(i.recursiveEqual&&("array"===l||"object"===l)&&Ar(e[s-1],t[c-1],i)){const n=[],r=[];x(n,r,"","",e[s-1],t[c-1],o+1,i),u=d(u,n.reverse(),!0),f=d(f,r.reverse(),!0)}else if("array"===l){const[l,a]=Cr(e[s-1],t[c-1],n,r,o+1,i);u=d(u,l.reverse(),!0),f=d(f,a.reverse(),!0)}else if("object"===l){const[n,r]=j(e[s-1],t[c-1],o+2,i,Cr);u.unshift({level:o+1,type:"equal",text:"}"}),f.unshift({level:o+1,type:"equal",text:"}"}),u=d(u,n.reverse(),!0),f=d(f,r.reverse(),!0),u.unshift({level:o+1,type:"equal",text:"{"}),f.unshift({level:o+1,type:"equal",text:"{"})}else{const n=[],r=[];x(n,r,"","",e[s-1],t[c-1],o+1,i),u=d(u,n.reverse(),!0),f=d(f,r.reverse(),!0)}s--,c--}else if("up"===a[s][c])if(i.showModifications&&s>1&&"left"===a[s-1][c]){const l=b(e[s-1]);if(l===b(t[c-1]))if("array"===l){const[l,a]=Cr(e[s-1],t[c-1],n,r,o+1,i);u=d(u,l.reverse(),!0),f=d(f,a.reverse(),!0)}else if("object"===l){const[n,r]=j(e[s-1],t[c-1],o+2,i,Cr);u.unshift({level:o+1,type:"equal",text:"}"}),f.unshift({level:o+1,type:"equal",text:"}"}),u=d(u,n.reverse(),!0),f=d(f,r.reverse(),!0),u.unshift({level:o+1,type:"equal",text:"{"}),f.unshift({level:o+1,type:"equal",text:"{"})}else u.unshift({level:o+1,type:"modify",text:y(e[s-1],void 0,void 0,i.undefinedBehavior)}),f.unshift({level:o+1,type:"modify",text:y(t[c-1],void 0,void 0,i.undefinedBehavior)});else{const n=[],r=[];x(n,r,"","",e[s-1],t[c-1],o+1,i),u=d(u,n.reverse(),!0),f=d(f,r.reverse(),!0)}s--,c--}else{const t=p(e[s-1],void 0,1,void 0,i.undefinedBehavior).split("\n");for(let e=t.length-1;e>=0;e--)u.unshift({level:o+1+(t[e].match(/^\s+/)?.[0]?.length||0),type:"remove",text:t[e].replace(/^\s+/,"").replace(/,$/g,"")}),f.unshift({level:o+1,type:"equal",text:""});s--}else{const e=p(t[c-1],void 0,1,void 0,i.undefinedBehavior).split("\n");for(let t=e.length-1;t>=0;t--)u.unshift({level:o+1,type:"equal",text:""}),f.unshift({level:o+1+(e[t].match(/^\s+/)?.[0]?.length||0),type:"add",text:e[t].replace(/^\s+/,"").replace(/,$/g,"")});c--}return[u,f]})(e,t,n,r,o,i);l=d(l,s),a=d(a,c)}return Nr(l,a,o),[l,a]};function qr(e,t){for(const n of e){if("object"===b(n)){if(!(t in n))return!1;for(const e of Object.values(n))if(Array.isArray(e)&&!qr(e,t))return!1}else if(Array.isArray(n)&&!qr(n,t))return!1}return!0}const Dr=function e(t,n,r,o,i,l,a=[],s=[]){if(!l.compareKey)return Br(t,n,r,o,i,l,a,s);const c=e=>e.every((e=>"object"===b(e)));if(!(c(t)&&c(n)&&qr(t,l.compareKey)&&qr(n,l.compareKey)))return Br(t,n,r,o,i,l,a,s);if(Ir(a,s,r,o,i),i>=(l.maxDepth||1/0))Er(a,s,i);else{const r=new Set,o=new Set;for(let c=0;c<t.length;c++){const u=t[c];if(r.has(c))continue;if("object"!==b(u)||!(l.compareKey in u))continue;const f=u[l.compareKey];let h=-1;for(let e=0;e<n.length;e++){if(o.has(e))continue;const t=n[e];if("object"!==b(t)||!(l.compareKey in t))continue;const r=t[l.compareKey];if(Ar(f,r,l)){h=e;break}}if(-1!==h){const t=n[h],f=b(u);if(f!==b(t))x(a,s,"","",u,t,i+1,l);else if("object"===f){a.push({level:i+1,type:"equal",text:"{"}),s.push({level:i+1,type:"equal",text:"{"});const n=Array.from(new Set([...Object.keys(u),...Object.keys(t)]));for(const r of n){const n=u[r],o=t[r];if(Array.isArray(n)&&Array.isArray(o)){const[t,r]=e(n,o,"","",i+2,l,[],[]);a=d(a,t),s=d(s,r)}else if(Array.isArray(n)||Array.isArray(o))x(a,s,r,r,n,o,i+2,l);else{const[t,c]=j({[r]:n},{[r]:o},i+2,l,e);a=d(a,t),s=d(s,c)}}a.push({level:i+1,type:"equal",text:"}"}),s.push({level:i+1,type:"equal",text:"}"})}else if("array"===f){const[n,r]=e(u,t,"","",i+1,l,[],[]);a=d(a,n),s=d(s,r)}else Ar(u,t,l)?(a.push({level:i+1,type:"equal",text:y(u,void 0,void 0,l.undefinedBehavior)}),s.push({level:i+1,type:"equal",text:y(t,void 0,void 0,l.undefinedBehavior)})):l.showModifications?(a.push({level:i+1,type:"modify",text:y(u,void 0,void 0,l.undefinedBehavior)}),s.push({level:i+1,type:"modify",text:y(t,void 0,void 0,l.undefinedBehavior)})):(a.push({level:i+1,type:"remove",text:y(u,void 0,void 0,l.undefinedBehavior)}),a.push({level:i+1,type:"equal",text:""}),s.push({level:i+1,type:"equal",text:""}),s.push({level:i+1,type:"add",text:y(t,void 0,void 0,l.undefinedBehavior)}));r.add(c),o.add(h)}}for(let e=0;e<t.length;e++){if(r.has(e))continue;const n=t[e],o=p(n,void 0,1,void 0,l.undefinedBehavior).split("\n");for(let e=0;e<o.length;e++)a.push({level:i+1+(o[e].match(/^\s+/)?.[0]?.length||0),type:"remove",text:o[e].replace(/^\s+/,"").replace(/,$/g,"")}),s.push({level:i+1,type:"equal",text:""})}for(let e=0;e<n.length;e++){if(o.has(e))continue;const t=n[e],r=p(t,void 0,1,void 0,l.undefinedBehavior).split("\n");for(let e=0;e<r.length;e++)a.push({level:i+1,type:"equal",text:""}),s.push({level:i+1+(r[e].match(/^\s+/)?.[0]?.length||0),type:"add",text:r[e].replace(/^\s+/,"").replace(/,$/g,"")})}}return Nr(a,s,i),[a,s]};function Rr(e,t,n,r,o,i,l){let a=[],s=[];const c=Array.from(new Set([...Object.keys(e||{}),...Object.keys(t||{})]));for(const u of c){const c=e?e[u]:void 0,f=t?t[u]:void 0;if(Array.isArray(c)&&Array.isArray(f)&&r.compareKey&&l(c,r.compareKey)&&l(f,r.compareKey)){const[e,t]=i(c,f,"","",n+2,r,[],[]);a=d(a,e),s=d(s,t)}else if(Array.isArray(c)&&Array.isArray(f)){const[e,t]=o(c,f,"","",n+2,r,[],[]);a=d(a,e),s=d(s,t)}else if(Array.isArray(c)||Array.isArray(f))x(a,s,u,u,c,f,n+2,r);else{const[e,t]=j({[u]:c},{[u]:f},n+2,r,o);a=d(a,e),s=d(s,t)}}return[a,s]}const Br=(e,t,n,r,o,i,l=[],a=[])=>{if(e=[...e],t=[...t],Ir(l,a,n,r,o),o>=(i.maxDepth||1/0))Er(l,a,o);else for(;e.length||t.length;){const n=e[0],r=t[0],s=b(n),c=b(r);if(e.length&&t.length){if(s!==c)x(l,a,"","",n,r,o+1,i);else if(i.recursiveEqual&&["object","array"].includes(s)&&Ar(n,r,i))x(l,a,"","",n,r,o+1,i);else if("object"===s){let e,t;l.push({level:o+1,type:"equal",text:"{"}),a.push({level:o+1,type:"equal",text:"{"}),"compare-key"===i.arrayDiffMethod?[e,t]=Rr(n,r,o,i,Br,Dr,qr):[e,t]=j(n,r,o+2,i,Br),l=d(l,e),a=d(a,t),l.push({level:o+1,type:"equal",text:"}"}),a.push({level:o+1,type:"equal",text:"}"})}else if("array"===s)if(i.compareKey&&qr(n,i.compareKey)&&qr(r,i.compareKey)){const[e,t]=Dr(n,r,"","",o+1,i,[],[]);l=d(l,e),a=d(a,t)}else{const[e,t]=Br(n,r,"","",o+1,i,[],[]);l=d(l,e),a=d(a,t)}else 0===m(n,r,{ignoreCase:i.ignoreCase})?(l.push({level:o+1,type:"equal",text:y(n,void 0,void 0,i.undefinedBehavior)}),a.push({level:o+1,type:"equal",text:y(r,void 0,void 0,i.undefinedBehavior)})):i.showModifications?(l.push({level:o+1,type:"modify",text:y(n,void 0,void 0,i.undefinedBehavior)}),a.push({level:o+1,type:"modify",text:y(r,void 0,void 0,i.undefinedBehavior)})):(l.push({level:o+1,type:"remove",text:y(n,void 0,void 0,i.undefinedBehavior)}),l.push({level:o+1,type:"equal",text:""}),a.push({level:o+1,type:"equal",text:""}),a.push({level:o+1,type:"add",text:y(r,void 0,void 0,i.undefinedBehavior)}));e.shift(),t.shift()}else if(e.length){const t=y(n,void 0,!0,i.undefinedBehavior).split("\n");for(let e=0;e<t.length;e++)l.push({level:o+1+(t[e].match(/^\s+/)?.[0]?.length||0),type:"remove",text:t[e].replace(/^\s+/,"").replace(/,$/g,"")}),a.push({level:o+1,type:"equal",text:""});e.shift()}else if(t.length){const e=y(r,void 0,!0,i.undefinedBehavior).split("\n");for(let t=0;t<e.length;t++)l.push({level:o+1,type:"equal",text:""}),a.push({level:o+1+(e[t].match(/^\s+/)?.[0]?.length||0),type:"add",text:e[t].replace(/^\s+/,"").replace(/,$/g,"")});t.shift()}}return Nr(l,a,o),[l,a]},$r=(e,t)=>{if(!e||"object"!=typeof e)return e;if(Array.isArray(e)){const n=[...e];return n.sort(((e,n)=>m(e,n,{ignoreCase:t?.ignoreCase}))),n.map((e=>$r(e,t)))}const n={...e};for(const e in n)n[e]=$r(n[e],t);return n};var zr=function(e){return e.stringify="stringify",e.ignore="ignore",e.throw="throw",e}({});const Tr={level:0,type:"equal",text:""},Lr={level:0,type:"equal",text:"{"},Pr={level:0,type:"equal",text:"}"};let Wr=class{detectCircular(e){if(this.options.detectCircular&&h(e))throw new Error(`Circular reference detected in object (with keys ${Object.keys(e).map((e=>`"${e}"`)).join(", ")})`)}sortResultLines(e,t){for(let n=0;n<e.length;n++){let n=!1;for(let r=1;r<e.length;r++)if("remove"===e[r].type&&"equal"===e[r-1].type&&"equal"===t[r].type&&"add"===t[r-1].type){const o=e[r-1];e[r-1]=e[r],e[r]=o;const i=t[r-1];t[r-1]=t[r],t[r]=i,n=!0}if(!n)break}}calculateLineNumbers(e){let t=0;for(const n of e)n.text&&(n.lineNumber=++t)}calculateCommas(e){const t=Array(e.length).fill(0);for(let n=e.length-1;n>0;n--)e[n].text?t[n-1]=n:t[n-1]=t[n];for(let n=0;n<e.length;n++)!e[n].text.endsWith("{")&&!e[n].text.endsWith("[")&&e[n].text&&t[n]&&e[n].level<=e[t[n]].level&&(e[n].comma=!0)}diff(e,t){this.detectCircular(e),this.detectCircular(t),"unorder-normal"!==this.options.arrayDiffMethod&&"unorder-lcs"!==this.options.arrayDiffMethod||(e=$r(e,this.options),t=$r(t,this.options)),"ignore"===this.options.undefinedBehavior&&(e=f(e)??null,t=f(t)??null);let n=[],r=[];const o=b(e);if(o!==b(t)){n=p(e,void 0,1,this.options.maxDepth,this.options.undefinedBehavior).split("\n").map((e=>({level:e.match(/^\s+/)?.[0]?.length||0,type:"remove",text:e.replace(/^\s+/,"").replace(/,$/g,""),comma:e.endsWith(",")})));r=p(t,void 0,1,this.options.maxDepth,this.options.undefinedBehavior).split("\n").map((e=>({level:e.match(/^\s+/)?.[0]?.length||0,type:"add",text:e.replace(/^\s+/,"").replace(/,$/g,""),comma:e.endsWith(",")})));const o=n.length,i=r.length;n=d(n,Array(i).fill(0).map((()=>({...Tr})))),r=d(r,Array(o).fill(0).map((()=>({...Tr}))),!0)}else"object"===o?([n,r]=j(e,t,1,this.options,this.arrayDiffFunc),n.unshift({...Lr}),n.push({...Pr}),r.unshift({...Lr}),r.push({...Pr})):"array"===o?[n,r]=this.arrayDiffFunc(e,t,"","",0,this.options):e!==t?this.options.ignoreCase?"string"==typeof e&&"string"==typeof t&&e.toLowerCase()===t.toLowerCase()&&(n=[{level:0,type:"equal",text:e}],r=[{level:0,type:"equal",text:t}]):this.options.showModifications?(n=[{level:0,type:"modify",text:p(e,void 0,void 0,this.options.maxDepth,this.options.undefinedBehavior)}],r=[{level:0,type:"modify",text:p(t,void 0,void 0,this.options.maxDepth,this.options.undefinedBehavior)}]):(n=[{level:0,type:"remove",text:p(e,void 0,void 0,this.options.maxDepth,this.options.undefinedBehavior)},{...Tr}],r=[{...Tr},{level:0,type:"add",text:p(t,void 0,void 0,this.options.maxDepth,this.options.undefinedBehavior)}]):(n=[{level:0,type:"equal",text:p(e,void 0,void 0,this.options.maxDepth,this.options.undefinedBehavior)}],r=[{level:0,type:"equal",text:p(t,void 0,void 0,this.options.maxDepth,this.options.undefinedBehavior)}]);return this.sortResultLines(n,r),this.calculateLineNumbers(n),this.calculateLineNumbers(r),this.calculateCommas(n),this.calculateCommas(r),[n,r]}constructor({detectCircular:e=!0,maxDepth:t=1/0,showModifications:n=!0,arrayDiffMethod:r="normal",ignoreCase:o=!1,ignoreCaseForKey:i=!1,recursiveEqual:l=!1,preserveKeyOrder:a,compareKey:s,undefinedBehavior:c="stringify"}={}){this.options={detectCircular:e,maxDepth:t,showModifications:n,arrayDiffMethod:r,ignoreCase:o,ignoreCaseForKey:i,recursiveEqual:l,preserveKeyOrder:a,compareKey:s,undefinedBehavior:c},this.arrayDiffFunc="compare-key"===r?Dr:"lcs"===r||"unorder-lcs"===r?Cr:Br}};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(':root {\n --diff-row-height: 20px;\n}\n\n.virtual-json-diff-list-container {\n scrollbar-width: none;\n --sb-track-color: #232e33;\n --sb-thumb-color: #4560f8;\n --sb-size: 6px;\n}\n\n.diff-viewer-container {\n background-color: #282a36;\n font-size: 12px;\n text-align: left;\n padding-bottom: 12px;\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom {\n background: #282a36;\n color: #f8f8f2;\n width: 100%;\n border-spacing: 0;\n font-family:\n -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,\n "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n}\n\n/* ADD REMOVE MODIFY COLORS */\n.json-diff-viewer.json-diff-viewer-theme-custom .line-add {\n border-left: 1px solid #a5ff99;\n background: rgba(100, 182, 67, 0.08);\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .line-remove {\n border-left: 1px solid #ffaa99;\n background: rgba(160, 128, 100, 0.08);\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .line-modify {\n border-left: 1px solid #ecff99;\n background: rgba(182, 180, 67, 0.08);\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .empty-equal-cell {\n opacity: 0.4;\n background: repeating-linear-gradient(-53deg, rgb(69, 69, 70), rgb(69, 69, 70) 1.5px, #282a36 1.5px, #282a36 4px);\n background-attachment: fixed;\n}\n\n/* EDITOR COLORS */\n.json-diff-viewer.json-diff-viewer-theme-custom .inline-diff-add {\n background: rgba(0, 0, 0, 0.08);\n text-decoration: underline;\n word-break: break-all;\n}\n.json-diff-viewer.json-diff-viewer-theme-custom .inline-diff-remove {\n background: rgba(0, 0, 0, 0.08);\n text-decoration: line-through;\n word-break: break-all;\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .string {\n color: #e6db74;\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .number,\n.json-diff-viewer.json-diff-viewer-theme-custom .boolean,\n.json-diff-viewer.json-diff-viewer-theme-custom .null {\n color: #ae81ff;\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .key {\n color: #66d9ef;\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .invalid {\n background: #960050;\n color: #fff;\n}\n\n.diff-viewer-container button {\n border-radius: 4px;\n border: 1px solid transparent;\n font-size: 1em;\n font-weight: 500;\n font-family: inherit;\n color: white;\n background-color: #1a1a1a;\n cursor: pointer;\n transition: border-color 0.25s;\n}\n\n.diff-viewer-container button:hover {\n border-color: #649dffab;\n}\n\n.diff-viewer-container button:focus,\n.diff-viewer-container button:focus-visible {\n outline: 4px auto -webkit-focus-ring-color;\n}\n\n.collapsed-button button {\n height: 20px;\n color: rgba(255, 255, 255, 0.7);\n padding: 0px 8px;\n line-height: 20px;\n display: flex;\n justify-content: center;\n align-items: center;\n background: #26262600;\n border-width: 1px;\n border-color: #434343;\n cursor: pointer;\n}\n\n.hide-all-button {\n text-align: right;\n margin-top: 10px;\n}\n\n.hide-all-button button {\n height: 28px;\n padding: 0 8px;\n line-height: 20px;\n background: #26262600;\n color: white;\n border-width: 1px;\n border-color: #434343;\n cursor: pointer;\n}\n\n/* HEADER */\n.json-diff-header {\n background: #2f323e;\n padding: 10px;\n border-bottom: 1px solid #353846;\n color: #ffffffe5;\n font-family:\n -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,\n "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n}\n\n.json-diff-header .json-diff-title-container {\n width: 100%;\n display: flex;\n flex-direction: row;\n}\n\n.json-diff-header .json-diff-title-container div {\n flex: 0.495;\n}\n\n/* HEADER SEARCH */\n.json-diff-header .search-container {\n margin-bottom: 8px;\n width: 100%;\n}\n\n.json-diff-header .search-input-container {\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.json-diff-header .search-input-container svg {\n width: 1em;\n height: 1em;\n}\n\n.json-diff-header .search-input-container input {\n border: 1px solid #434343;\n border-radius: 4px;\n padding: 6px;\n width: 100%;\n background: #2f323e;\n color: white;\n}\n\n.json-diff-header .search-results {\n margin-top: 3px;\n margin-bottom: 8px;\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.json-diff-header .search-results button {\n height: 20px;\n padding: 0 8px;\n line-height: 20px;\n background: #26262600;\n border-width: 1px;\n border-color: #434343;\n cursor: pointer;\n color: white;\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .search-match {\n background-color: #ffeb3b;\n padding: 0 2px;\n border-radius: 2px;\n color: #000;\n}\n\n/* WEBKIT SCROLLBAR */\n.json-diff-viewer-virtual pre::-webkit-scrollbar {\n display: none;\n}\n\n.virtual-json-diff-list-container::-webkit-scrollbar {\n width: var(--sb-size);\n display: none;\n}\n\n.virtual-json-diff-list-container::-webkit-scrollbar-track {\n background: var(--sb-track-color);\n display: none;\n border-radius: 3px;\n}\n\n.virtual-json-diff-list-container::-webkit-scrollbar-thumb {\n background: var(--sb-thumb-color);\n border-radius: 3px;\n display: none;\n}\n\n@supports not selector(::-webkit-scrollbar) {\n .virtual-json-diff-list-container {\n scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);\n }\n}\n\n/* MINIMAP IMPROVEMENTS */\n.diff-viewer-container .minimap-overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n display: flex;\n pointer-events: none;\n}\n\n.diff-viewer-container .minimap-overlay .half {\n flex: 1;\n display: flex;\n align-items: center;\n}\n\n.diff-viewer-container .minimap-overlay .left-map-holder {\n justify-content: flex-end;\n}\n\n.diff-viewer-container .minimap-overlay .right-map-holder {\n justify-content: flex-end;\n}\n\n.diff-viewer-container .minimap-overlay .minimap-wrapper {\n opacity: 0.65;\n pointer-events: auto;\n}\n\n.diff-viewer-container .minimap-overlay .minimap-wrapper:hover {\n opacity: 0.85;\n}\n\n/* row container */\n.json-diff-viewer.json-diff-viewer-theme-custom .grid-row .cell {\n padding: 0;\n vertical-align: unset;\n overflow: hidden;\n box-sizing: border-box;\n}\n\n/* line-number cell styling (mimic old td.line-number) */\n.json-diff-viewer.json-diff-viewer-theme-custom .grid-row .line-number {\n background: unset;\n border-left: 0;\n border-bottom: none;\n color: #999;\n padding: 2px;\n padding-right: 6px;\n text-align: right;\n width: 30px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n/* content cells (2nd and 4th column) */\n.json-diff-viewer.json-diff-viewer-theme-custom .grid-row .cell:nth-child(2),\n.json-diff-viewer.json-diff-viewer-theme-custom .grid-row .cell:nth-child(4) {\n width: auto;\n overflow-wrap: anywhere;\n}\n\n/* pre inside the cell */\n.json-diff-viewer.json-diff-viewer-theme-custom .grid-row .cell pre {\n font-family:\n -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,\n "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n overflow: hidden;\n margin: 0;\n padding-left: 4px;\n margin-right: 29px;\n font-size: 12px;\n line-height: var(--diff-row-height);\n white-space: pre-wrap;\n word-break: break-all;\n min-width: 0; /* important for flexbox/grid overflow */\n}\n\n/* collapsed button visuals */\n.json-diff-viewer.json-diff-viewer-theme-custom .grid-row.collapsed-button {\n background-color: #262626;\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .grid-row.collapsed-button .expand-button-container {\n display: flex;\n justify-content: center;\n}\n\n/* preserve hover */\n.json-diff-viewer.json-diff-viewer-theme-custom .grid-row:hover {\n background: #53535f54;\n}\n');const Fr="json-diff-viewer-theme-custom";function Hr(){if("undefined"==typeof document)return 20;try{const e=document.documentElement,t=getComputedStyle(e).getPropertyValue("--diff-row-height"),n=Number.parseInt(t,10);return Number.isNaN(n)?20:n}catch{return 20}}function Ur(e){return e&&"object"==typeof e&&"type"in e&&"collapsed"===e.type}function Kr(e){return"equal"===e.type&&""===e.text.trim()?"empty-equal-cell":""}function Vr(e,t="json-diff-viewer-theme-custom"){if(!e){return void document.querySelectorAll(`.${t} span.token.search-match`).forEach((e=>e.classList.remove("search-match")))}const n=e.replaceAll("(","").replaceAll(")",""),r=new RegExp(n,"gi");document.querySelectorAll(`.${t} span.token`).forEach((e=>{const t=e.textContent||"";r.test(t)?e.classList.add("search-match"):e.classList.remove("search-match")}))}function Gr(e,t,n){const[a,s]=r({term:t??"",results:[],currentIndex:0}),c=o(),u=i((t=>{s((e=>({...e,term:t}))),c.current&&clearTimeout(c.current),c.current=setTimeout((()=>{const n=function(e,t){if(!e)return[];const n=[],r=new RegExp(e,"gi");return t.forEach(((e,t)=>{"object"==typeof e&&"text"in e&&r.test(e.text)&&n.push(t)})),n}(t,e);s((e=>({...e,results:n,currentIndex:0})))}),300)}),[e]),f=i((e=>{if(0===a.results.length)return;const t="next"===e?(a.currentIndex+1)%a.results.length:(a.currentIndex-1+a.results.length)%a.results.length;s((e=>({...e,currentIndex:t})));const r=a.results[t];return n&&n(r),r}),[a,n]);return l((()=>{Vr(a.term,Fr);const e=new MutationObserver((()=>Vr(a.term,Fr))),t=document.querySelector(`.${Fr}`);t&&e.observe(t,{childList:!0,subtree:!0});const n=document.querySelector(".virtual-json-diff-list-container");if(n){const t=()=>setTimeout((()=>Vr(a.term,Fr)),100);return n.addEventListener("scroll",t),()=>{e.disconnect(),n.removeEventListener("scroll",t)}}return()=>e.disconnect()}),[a.term]),l((()=>{void 0!==t&&u(t)}),[t,u]),{searchState:a,handleSearch:u,navigateMatch:f}}function Jr(e,t){const n=[];let r,o;if(e.length&&t.length)for(e=[...e],t=[...t],r={...e.shift()},o={...t.shift()};;){if(r.start===o.start){const e=Math.min(r.end,o.end);n.push({...r,...o,end:e}),r.start=o.start=e}else if(r.start<o.start){const e=Math.min(r.end,o.start);n.push({...o,...r,end:e}),r.start=e}else{const e=Math.min(r.start,o.end);n.push({...r,...o,end:e}),o.start=e}if(!e.length||!t.length)break;r.start===r.end&&(r={...e.shift()}),o.start===o.end&&(o={...t.shift()})}return e.length||n.push(...t.map((e=>({...e,token:r.token||"plain"})))),t.length||n.push(...e),n}function Yr(e){return"equal"===e.type&&""!==e.text}function Zr(e,t,n=3){if(!Array.isArray(e)||!Array.isArray(t))throw new TypeError("Both segments and diff must be arrays");const r=[];return e.forEach(((o,i)=>{if(o.isEqual){if(o.end-o.start<=2*n||o.isExpanded)for(let e=o.start;e<o.end;e++)r.push({...t[e],originalIndex:e});else{if(function(e,t,n){return 0===e||t[e-1].end<n.start&&t[e-1].isEqual}(i,e,o))for(let e=o.start;e<Math.min(o.start+n,o.end);e++)r.push({...t[e],originalIndex:e});o.end-(o.start+n)>n&&r.push({type:"collapsed",segmentIndex:i,originalIndex:r.length,level:0,text:""});for(let e=Math.max(o.end-n,o.start+n);e<o.end;e++)r.push({...t[e],originalIndex:e})}}else for(let e=o.start;e<o.end;e++)r.push({...t[e],originalIndex:e})})),r}const Qr="#363743";const Xr=({leftDiff:t,rightDiff:n,height:r,onScroll:s,miniMapWidth:c=20,currentScrollTop:u,searchResults:f=[],currentMatchIndex:d=-1})=>{const h=o(null),p=o(null),v=a((()=>Hr()),[]),{totalLines:y,viewportHeight:g}=a((()=>{const e=r/v,o=Math.max(t.length,n.length)||e;return{totalLines:o,viewportHeight:r*(1/(o/e))}}),[r,t.length,n.length]),{handleMouseDown:m,isDragging:b}=function({height:e,totalLines:t,viewportHeight:n,ROW_HEIGHT:r,onScroll:a,containerRef:s}){const c=o(!1),u=i((e=>!Number.isNaN(e)&&Number.isFinite(e)),[]),f=i((o=>(o-n/2)/e*t*r),[e,t,n,r]),d=i((()=>{const n=t*r;return Math.max(0,n-e)}),[t,r,e]),h=i(((e,t)=>{const r=e.clientY-t.top,o=d();if(e.clientY+n/2>t.bottom){const e=t.bottom-t.top-n/2,r=f(e);u(r)&&a(Math.min(o,Math.max(0,r)))}else{const e=f(r);u(e)&&a(Math.min(o,Math.max(0,e)))}}),[f,d,u,a,n]),p=i((n=>{if(!c.current||!s.current)return;if(e<=0||t<=0)return;const r=s.current.getBoundingClientRect();h(n,r)}),[s,e,t,h]),v=i((()=>{c.current=!1,window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",v)}),[p]),y=i((e=>{if(c.current=!0,window.addEventListener("mousemove",p),window.addEventListener("mouseup",v),!s.current)return;const t=s.current.getBoundingClientRect();h(e.nativeEvent,t)}),[p,v,s,h]);return l((()=>{const e=()=>{c.current=!1};return window.addEventListener("mouseup",e),()=>window.removeEventListener("mouseup",e)}),[]),{handleMouseDown:y,isDragging:c}}({height:r||380,totalLines:y,viewportHeight:g,ROW_HEIGHT:v,onScroll:s,containerRef:p}),{drawMinimap:x,drawScrollBox:w}=function({canvasRef:e,containerRef:t,height:n,miniMapWidth:r,leftDiff:o,rightDiff:s,currentScrollTop:c,searchResults:u,currentMatchIndex:f,isDragging:d,totalLines:h,ROW_HEIGHT:p,viewportHeight:v}){const y=i(((e,t,n,r,o)=>{if("collapsed"===t.type)e.fillStyle=Qr;else switch(t.type){case"equal":e.fillStyle=Qr;break;case"add":e.fillStyle="#4CAF50";break;case"remove":e.fillStyle="#F44336";break;case"modify":e.fillStyle="#FFC107"}e.fillRect(r,n,o,p)}),[p]),g=a((()=>{const e=document.createElement("canvas");e.width=r,e.height=n;const t=e.getContext("2d");if(!t)return null;const i=n/h;return o.forEach(((e,n)=>{y(t,e,n*i,0,r/2)})),s.forEach(((e,n)=>{y(t,e,n*i,r/2,r/2)})),u.forEach((e=>{const n=e*i,o=Math.max(1,i);t.fillStyle="#ffd700",t.fillRect(0,n,r,o)})),e}),[o,s,u,n,h,r,y]),m=i(((e,t)=>{if(!g)return;e.clearRect(0,0,r,n),e.drawImage(g,0,0);const o=c/(h*p)*n;if(e.fillStyle=t,e.fillRect(0,o,r,v),f>=0&&void 0!==u[f]){const t=n/h,o=u[f]*t,i=Math.max(1,t);e.fillStyle="#ff4500",e.fillRect(0,o,r,i)}}),[g,c,h,p,n,r,v,f,u]),b=i((()=>{const n=e.current;if(!n)return;const r=n.getContext("2d");r&&(r.clearRect(0,0,n.width,n.height),d.current?(t.current&&(t.current.style.opacity="0.85"),m(r,"#7B7B7Bcc")):(t.current&&(t.current.style.opacity="0.65"),m(r,"#7B7B7B80")))}),[m]);return l((()=>{b()}),[b]),{drawScrollBox:m,drawMinimap:b}}({canvasRef:h,containerRef:p,height:r||380,miniMapWidth:c||20,leftDiff:t,rightDiff:n,currentScrollTop:u,searchResults:f,currentMatchIndex:d,isDragging:b,totalLines:y,ROW_HEIGHT:v,viewportHeight:g});l((()=>{x()}),[x]);const j=i((e=>{if(!p.current)return;const t=p.current.getBoundingClientRect(),n=e.clientY-t.top,o=u/(y*v)*r,i=n>o&&n<o+g;x();const l=h.current;if(l){const e=l.getContext("2d");if(!e)return;i&&w(e,"#7B7B7Bcc")}}),[r,y,g,u,x]);return e("div",{ref:p,className:"minimap-wrapper",style:{width:c,height:r,position:"relative",cursor:"pointer"},onMouseDown:m,onMouseMove:j,onMouseLeave:()=>{x()},children:e("canvas",{ref:h,width:c,height:r,style:{width:"100%",height:"100%"}})})};function eo(){return e("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M15.7955 15.8111L21 21M18 10.5C18 14.6421 14.6421 18 10.5 18C6.35786 18 3 14.6421 3 10.5C3 6.35786 6.35786 3 10.5 3C14.6421 3 18 6.35786 18 10.5Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function to({searchState:n,handleSearch:r,navigateMatch:o,hideSearch:i}){return i?null:t("div",{className:"search-container",children:[t("div",{className:"search-input-container",children:[e("span",{role:"img","aria-label":"search",children:e(eo,{})}),e("input",{type:"text",placeholder:"Search in JSON...",value:n.term,onChange:e=>r(e.target.value)})]}),n.results.length>0&&t("div",{className:"search-results",children:[t("span",{children:[n.currentIndex+1," ","of"," ",n.results.length," ","matches"]}),e("button",{onClick:()=>o("prev"),children:"Previous"}),e("button",{onClick:()=>o("next"),children:"Next"})]})]})}function no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},no.apply(null,arguments)}function ro(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oo(e,t){return oo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oo(e,t)}var io=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function lo(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||io(r)&&io(o)))return!1;var r,o;return!0}function ao(e,t){var n;void 0===t&&(t=lo);var r,o=[],i=!1;return function(){for(var l=[],a=0;a<arguments.length;a++)l[a]=arguments[a];return i&&n===this&&t(l,o)||(r=e.apply(this,l),i=!0,n=this,o=l),r}}var so="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function co(e){cancelAnimationFrame(e.id)}var uo=-1;function fo(e){if(void 0===e&&(e=!1),-1===uo||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),uo=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return uo}var ho=null;function po(e){if(void 0===e&&(e=!1),null===ho||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?ho="positive-descending":(t.scrollLeft=1,ho=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ho}return ho}process.env.NODE_ENV;var vo=function(e,t){return e},yo=null,go=null;function mo(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,u=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){var t,c;function h(t){var r;return(r=e.call(this,t)||this)._instanceProps=u(r.props,ro(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:ro(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=ao((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=ao((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,l=i.direction,a=i.itemSize,s=i.layout,c=r._getItemStyleCache(f&&a,f&&s,f&&l);if(c.hasOwnProperty(e))t=c[e];else{var u=n(r.props,e,r._instanceProps),d=o(r.props,e,r._instanceProps),h="horizontal"===l||"horizontal"===s,p="rtl"===l,v=h?u:0;c[e]=t={position:"absolute",left:p?void 0:v,right:p?v:void 0,top:h?0:u,height:h?"100%":d,width:h?d:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=ao((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,l=o;if("rtl"===t)switch(po()){case"negative":l=-o;break;case"positive-descending":l=i-n-o}return l=Math.max(0,Math.min(l,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<l?"forward":"backward",scrollOffset:l,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){var e,t,n,o;null!==r._resetIsScrollingTimeoutId&&co(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=(e=r._resetIsScrolling,t=150,n=so(),o={id:requestAnimationFrame((function r(){so()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}))})},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}c=e,(t=h).prototype=Object.create(c.prototype),t.prototype.constructor=t,oo(t,c),h.getDerivedStateFromProps=function(e,t){return bo(e,t),d(e),null};var p=h.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,l=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var a=0;if(this._outerRef){var s=this._outerRef;a="vertical"===o?s.scrollWidth>s.clientWidth?fo():0:s.scrollHeight>s.clientHeight?fo():0}this.scrollTo(i(this.props,e,t,l,this._instanceProps,a))},p.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(po()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var l=i.clientWidth,a=i.scrollWidth;i.scrollLeft=a-l-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&co(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,l=e.innerRef,a=e.innerElementType,c=e.innerTagName,u=e.itemCount,f=e.itemData,d=e.itemKey,h=void 0===d?vo:d,p=e.layout,v=e.outerElementType,y=e.outerTagName,g=e.style,m=e.useIsScrolling,b=e.width,x=this.state.isScrolling,w="horizontal"===o||"horizontal"===p,j=w?this._onScrollHorizontal:this._onScrollVertical,_=this._getRangeToRender(),S=_[0],O=_[1],M=[];if(u>0)for(var A=S;A<=O;A++)M.push(s(t,{data:f,key:h(A,f),index:A,isScrolling:m?x:void 0,style:this._getItemStyle(A)}));var k=r(this.props,this._instanceProps);return s(v||y||"div",{className:n,onScroll:j,ref:this._outerRefSetter,style:no({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},s(a||c||"div",{children:M,ref:l,style:{height:w?"100%":k,pointerEvents:x?"none":void 0,width:w?k:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,l=i.scrollDirection,a=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(l,a,s)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=l(this.props,s,this._instanceProps),u=a(this.props,c,s,this._instanceProps),f=o&&"backward"!==i?1:Math.max(1,n),d=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-f),Math.max(0,Math.min(t-1,u+d)),c,u]},h}(c),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&void 0!==window.WeakSet&&(yo=new WeakSet,go=new WeakSet);var bo=function(e,t){var n=e.children,r=e.direction,o=e.height,i=e.layout,l=e.innerTagName,a=e.outerTagName,s=e.width,c=t.instance;if("production"!==process.env.NODE_ENV){null==l&&null==a||go&&!go.has(c)&&(go.add(c),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var u="horizontal"===r||"horizontal"===i;switch(r){case"horizontal":case"vertical":yo&&!yo.has(c)&&(yo.add(c),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". "'+r+'" was specified.')}switch(i){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". "'+i+'" was specified.')}if(null==n)throw Error('An invalid "children" prop has been specified. Value should be a React component. "'+(null===n?"null":typeof n)+'" was specified.');if(u&&"number"!=typeof s)throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. "'+(null===s?"null":typeof s)+'" was specified.');if(!u&&"number"!=typeof o)throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. "'+(null===o?"null":typeof o)+'" was specified.')}},xo=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var l=0;if(i>=0){var a=o[i];l=a.offset+a.size}for(var s=i+1;s<=t;s++){var c=r(s);o[s]={offset:l,size:c},l+=c}n.lastMeasuredIndex=t}return o[t]},wo=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),l=xo(e,i,t).offset;if(l===o)return i;l<o?r=i+1:l>o&&(n=i-1)}return r>0?r-1:0},jo=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&xo(e,n,t).offset<r;)n+=i,i*=2;return wo(e,t,Math.min(n,o-1),Math.floor(n/2),r)},_o=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,l=0;if(i>=n&&(i=n-1),i>=0){var a=r[i];l=a.offset+a.size}return l+(n-i-1)*o},So=mo({getItemOffset:function(e,t,n){return xo(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:_o,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var l=e.direction,a=e.height,s=e.layout,c=e.width,u="horizontal"===l||"horizontal"===s?c:a,f=xo(e,t,o),d=_o(e,o),h=Math.max(0,Math.min(d-u,f.offset)),p=Math.max(0,f.offset-u+f.size+i);switch("smart"===n&&(n=r>=p-u&&r<=h+u?"auto":"center"),n){case"start":return h;case"end":return p;case"center":return Math.round(p+(h-p)/2);default:return r>=p&&r<=h?r:r<p?p:h}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?wo(e,t,o,0,n):jo(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,l=e.itemCount,a=e.layout,s=e.width,c="horizontal"===o||"horizontal"===a?s:i,u=xo(e,t,r),f=n+c,d=u.offset+u.size,h=t;h<l-1&&d<f;)h++,d+=xo(e,h,r).size;return h},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){var t=e.itemSize;if("production"!==process.env.NODE_ENV&&"function"!=typeof t)throw Error('An invalid "itemSize" prop has been specified. Value should be a function. "'+(null===t?"null":typeof t)+'" was specified.')}});function Oo(e){const t=window.getComputedStyle(e),n=Number.parseFloat(t.lineHeight);let r=n;return Number.isNaN(n)&&(r=1.2*Number.parseFloat(t.fontSize)),Math.round(e.scrollHeight/r)}var Mo={};Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.calcSlices=Mo.applyPatch=Mo.calcPatch=Eo=Mo.lcs=Mo.diff=Mo.diff_core=void 0;class Ao{constructor(e){this.state=e,this.c=0,this.result={value:null,done:!1}}[Symbol.iterator](){return this}next(){const{state:e,result:t}=this;if(this.c>1)return t.done=!0,t.value=void 0,t;const n=function(e,t){const{b:n,eq:r,stack_base:o}=e;let{i:i,N:l,j:a,M:s,Z:c,stack_top:u}=e;for(;;)switch(t){case 0:e:for(;l>0&&s>0;){n.fill(0,0,2*c);const e=l-s,t=l+s,f=1&t,d=i+l-1,h=a+s-1,p=(t+f)/2;let v;t:for(let t=0;t<=p;t++){const p=2*Math.max(0,t-s)-t,y=t-2*Math.max(0,t-l);for(let d=p;d<=y;d+=2){const h=n[d-1-c*Math.floor((d-1)/c)],p=n[d+1-c*Math.floor((d+1)/c)],y=d===-t||d!==t&&h<p?p:h+1,g=y-d;let m=y,b=g;for(;m<l&&b<s&&r(i+m,a+b);)m++,b++;if(n[d-c*Math.floor(d/c)]=m,1===f&&(v=e-d)>=1-t&&v<t&&m+n[c+v-c*Math.floor(v/c)]>=l){if(t>1||m!==y){o[u++]=i+m,o[u++]=l-m,o[u++]=a+b,o[u++]=s-b,l=y,s=g,c=2*(Math.min(l,s)+1);continue e}break t}}for(let g=p;g<=y;g+=2){const p=n[c+g-1-c*Math.floor((g-1)/c)],y=n[c+g+1-c*Math.floor((g+1)/c)],m=g===-t||g!==t&&p<y?y:p+1,b=m-g;let x=m,w=b;for(;x<l&&w<s&&r(d-x,h-w);)x++,w++;if(n[c+g-c*Math.floor(g/c)]=x,0===f&&(v=e-g)>=-t&&v<=t&&x+n[v-c*Math.floor(v/c)]>=l){if(t>0||x!==m){o[u++]=i+l-m,o[u++]=m,o[u++]=a+s-b,o[u++]=b,l-=x,s-=w,c=2*(Math.min(l,s)+1);continue e}break t}}}if(l!==s){s>l?(i+=l,a+=l,s-=l,l=0):(i+=s,a+=s,l-=s,s=0);break}}if(l+s!==0)if(e.pxe===i||e.pye===a)e.pxe=i+l,e.pye=a+s;else{const t=e.pxs;if(e.oxs=e.pxs,e.oxe=e.pxe,e.oys=e.pys,e.oye=e.pye,e.pxs=i,e.pxe=i+l,e.pys=a,e.pye=a+s,t>=0)return e.i=i,e.N=l,e.j=a,e.M=s,e.Z=c,e.stack_top=u,1}case 1:if(0===u)return 2;s=o[--u],a=o[--u],l=o[--u],i=o[--u],c=2*(Math.min(l,s)+1),t=0}}(e,this.c);return this.c=n,1===n?(t.value=[e.oxs,e.oxe,e.oys,e.oye],t):e.pxs>=0?(t.value=[e.pxs,e.pxe,e.pys,e.pye],t):(t.done=!0,t.value=void 0,t)}}function ko(e,t,n,r,o){const i=2*(Math.min(t,r)+1),l=t+r,a=new(l<256?Uint8Array:l<65536?Uint16Array:Uint32Array)(2*i);return new Ao({i:e,N:t,j:n,M:r,Z:i,b:a,eq:o,pxs:-1,pxe:-1,pys:-1,pye:-1,oxs:-1,oxe:-1,oys:-1,oye:-1,stack_top:0,stack_base:[]})}function Io(e,t,n){let[r,o,i]=[0,e.length,t.length];if("function"==typeof n){for(;r<o&&r<i&&n(r,r);)r++;if(r===o&&r===i)return[][Symbol.iterator]();for(;n(--o,--i)&&o>r&&i>r;);}else{for(;r<o&&r<i&&e[r]===t[r];)r++;if(r===o&&r===i)return[][Symbol.iterator]();for(;e[--o]===t[--i]&&o>r&&i>r;);n=(n,r)=>e[n]===t[r]}return ko(r,o+1-r,r,i+1-r,n)}Mo.diff_core=ko,Mo.diff=Io;class No{constructor(e,t){this.diff=e,this.N=t,this.i=0,this.j=0}[Symbol.iterator](){return this}next(){const e=this.diff.next();if(e.done){const{i:t,j:n,N:r}=this;return t<r&&(e.done=!1,e.value=[t,n,r-t],this.i=r),e}const t=e.value,n=t[0],r=t[1],o=t[3],{i:i,j:l}=this;return i!==n&&(t.length--,t[0]=i,t[1]=l,t[2]=n-i),this.i=r,this.j=o,e}}var Eo=Mo.lcs=function(e,t,n){return new No(Io(e,t,n),e.length)};function Co(e,t){const n=[];let r=0;for(const o of e)n.push(r),r+=o.length+t;return n.push(r-t),n}function qo(e){return e.filter((e=>e.end>e.start))}function Do(e,t,n){if(!e)return[{token:"plain",start:n,end:t.length+n}];if("undefined"===t||"Infinity"===t||"-Infinity"===t||"NaN"===t||/^\d+n$/i.test(t)||t.startsWith("Symbol(")||t.startsWith("function")||t.startsWith("("))return[{token:"invalid",start:n,end:t.length+n}];if(!Number.isNaN(Number(t)))return[{token:"number",start:n,end:t.length+n}];if("true"===t||"false"===t)return[{token:"boolean",start:n,end:t.length+n}];if("null"===t)return[{token:"null",start:n,end:t.length+n}];if(t.startsWith('"')){if(t.endsWith(": [")||t.endsWith(": {"))return[{token:"key",start:n,end:t.length-3+n},{token:"punctuation",start:t.length-3,end:t.length-2+n},{token:"plain",start:t.length-2,end:t.length-1+n},{token:"punctuation",start:t.length-1,end:t.length+n}];let r=1;for(;r<t.length&&'"'!==t[r];)"\\"===t[r]&&++r,++r;return r===t.length-1?[{token:"string",start:n,end:t.length+n}]:[{token:"key",start:n,end:r+1+n},{token:"punctuation",start:r+1,end:r+2+n},{token:"plain",start:r+2,end:r+3+n},...Do(e,t.substring(r+3),n+r+3)]}return"{"===t||"}"===t||"["===t||"]"===t?[{token:"punctuation",start:n,end:t.length+n}]:[{token:"plain",start:n,end:t.length+n}]}function Ro({index:r,style:o,data:l}){const{onExpand:a,inlineDiffOptions:s,leftDiff:c,rightDiff:u}=l,f=c[r],d=u[r];if(Ur(f)||Ur(d)){const n=c[r],l=i((e=>{Ur(e)&&a(e.segmentIndex)}),[a]);return t("div",{className:"grid-row collapsed-button",style:{...o,display:"grid",gridTemplateColumns:"30px 1fr 30px 1fr"},role:"row","data-index":r,children:[e("div",{className:"cell line-number"}),e("div",{className:"cell",children:e("span",{className:"expand-button-container",children:e("button",{onClick:()=>l(n),className:"text-blue-500 underline",children:"Show Hidden Lines"})})}),e("div",{className:"cell line-number"}),e("div",{className:"cell",children:e("span",{className:"expand-button-container",children:e("button",{onClick:()=>l(n),className:"text-blue-500 underline",children:"Show Hidden Lines"})})})]})}const[h,p]="modify"===f.type&&"modify"===d.type?function(e,t,n){let r=[],o=[],i=0,l=0;if("word"===n.mode){const a=n.wordSeparator||" ",s=e.split(a),c=t.split(a),u=[...Eo(s,c)],f=a.length,d=Co(s,f),h=Co(c,f);for(const[e,t,n]of u)e>i&&r.push({type:"remove",start:d[i],end:d[e]}),t>l&&o.push({type:"add",start:h[l],end:h[t]}),i=e+n,l=t+n,r.push({start:d[e],end:d[i]}),o.push({start:h[t],end:h[l]});return e.length>i&&r.push({type:"remove",start:d[i],end:e.length}),t.length>l&&o.push({type:"add",start:h[l],end:t.length}),r=qo(r),o=qo(o),[r,o]}const a=Eo(e,t);for(const[e,t,n]of a)e>i&&r.push({type:"remove",start:i,end:e}),t>l&&o.push({type:"add",start:l,end:t}),i=e+n,l=t+n,r.push({start:e,end:i}),o.push({start:t,end:l});return e.length>i&&r.push({type:"remove",start:i,end:e.length}),t.length>l&&o.push({type:"add",start:l,end:t.length}),r=qo(r),o=qo(o),[r,o]}(f.text,d.text,s??{mode:"char"}):[[],[]],v=Do(!0,f.text,0),y=Do(!0,d.text,0),g=Jr(v,h),m=Jr(y,p),b=(r,o,i)=>t(n,{children:[o.map(((t,n)=>{const o=r.slice(t.start,t.end),i=[t.type?`inline-diff-${t.type}`:"",t.token?`token ${t.token}`:""].filter(Boolean).join(" ");return e("span",{className:i,children:o},`${n}-${t.type}-${o}`)})),i&&e("span",{className:"token punctuation",children:","})]});return t("div",{className:"grid-row",style:{...o,display:"grid",gridTemplateColumns:"30px 1fr 30px 1fr"},role:"row","data-index":r,children:[e("div",{className:`cell line-${f.type} line-number`,role:"cell",children:f.lineNumber}),e("div",{className:`cell line-${f.type} ${Kr(f)}`,role:"cell",children:t("pre",{children:[f.text&&" ".repeat(5*f.level),b(f.text,g,f.comma)]})}),e("div",{className:`cell line-${d.type} line-number`,role:"cell",children:d.lineNumber}),e("div",{className:`cell line-${d.type} ${Kr(d)}`,role:"cell",children:t("pre",{children:[d.text&&" ".repeat(5*d.level),b(d.text,m,d.comma)]})})]})}Mo.calcPatch=function*(e,t,n){const r=ArrayBuffer.isView(e)?Uint8Array.prototype.subarray:e.slice;for(const o of Io(e,t,n))o[2]=r.call(t,o[2],o[3]),yield o},Mo.applyPatch=function*(e,t){let n=0;const r=ArrayBuffer.isView(e)?Uint8Array.prototype.subarray:e.slice;for(const[o,i,l]of t)n<o&&(yield r.call(e,n,o)),l.length>0&&(yield l),n=i;n<e.length&&(yield r.call(e,n))},Mo.calcSlices=function*(e,t,n){let r=0;const o=ArrayBuffer.isView(e)?Uint8Array.prototype.subarray:e.slice;for(const[i,l,a,s]of Io(e,t,n))r<i&&(yield[0,o.call(e,r,i)]),i<l&&(yield[-1,o.call(e,i,l)]),a<s&&(yield[1,o.call(t,a,s)]),r=l;r<e.length&&(yield[0,e.slice(r)])};const Bo=({leftDiff:t,rightDiff:n,outerRef:o,listRef:s,height:c,inlineDiffOptions:f,className:d,setScrollTop:h,onExpand:p,overScanCount:v=10})=>{const y=a((()=>({leftDiff:t,rightDiff:n,onExpand:p,inlineDiffOptions:f})),[t,n,p,f]),g=["json-diff-viewer","json-diff-viewer-theme-custom",d].filter(Boolean).join(" "),m=a((()=>Hr()),[]),b=function(e){const[t,n]=r([]),o=i((()=>{const e=document.querySelectorAll(".json-diff-viewer pre"),t=[];for(let n=0;n<e.length;n+=2){const r=Oo(e[n]),o=Oo(e[n+1]);t.push(Math.max(r,o))}n(t)}),[]);return u((()=>{o()}),[e]),u((()=>(window.addEventListener("resize",o),()=>window.removeEventListener("resize",o))),[o]),t}(t),x=i((e=>Ur(t[e])?20:(b[e]??1)*m),[t,b]);return l((()=>{s.current?.resetAfterIndex(0,!0)}),[b]),e("div",{className:g,children:e(So,{height:c,width:"100%",style:{alignItems:"start"},outerRef:o,ref:s,className:"virtual-json-diff-list-container",itemCount:Math.max(t.length,n.length),itemSize:x,overscanCount:v,itemData:y,onScroll:({scrollOffset:e})=>h(e),children:Ro})})},$o=({oldValue:n,newValue:s,height:c,searchTerm:u,leftTitle:f,rightTitle:d,hideSearch:h,customDiffer:p,getDiffData:v,showSingleMinimap:y,onSearchMatch:g,differOptions:m,className:b,miniMapWidth:x,inlineDiffOptions:w,overScanCount:j})=>{const _=o(null),S=o(null),O=o(),M=o(),A=p??a((()=>new Wr({detectCircular:!0,maxDepth:20,showModifications:!0,arrayDiffMethod:"lcs",preserveKeyOrder:"before",...m})),[m]),k=a((()=>n&&s?A.diff(n,s):[[],[]]),[n,s,A]),[I,N]=r(0),[E,C]=r([]),[q,D]=k,[R,B]=r([]),[$,z]=r([]);l((()=>{const e=function(e,t=3){if(!Array.isArray(e))throw new TypeError("Diff input must be an array");const n=[];let r=0;if(r<e.length&&Yr(e[r])){let o=Math.min(r+t,e.length);for(;o<e.length&&Yr(e[o]);)o++;n.push({start:r,end:o,isEqual:!0}),r=o}for(;r<e.length;)if(Yr(e[r])){let t=r;for(;t<e.length&&Yr(e[t]);)t++;n.push({start:r,end:t,isEqual:!0}),r=t}else{const o=Math.max(0,r-t),i=Math.min(e.length,r+1+t);o<r&&(0===n.length||n[n.length-1].end<=o)&&n.push({start:o,end:r,isEqual:!0}),n.push({start:r,end:r+1,isEqual:!1}),r+1<i&&n.push({start:r+1,end:i,isEqual:!0}),r=i}return n}(q);C(e)}),[q]);const{searchState:T,handleSearch:L,navigateMatch:P}=Gr(R,u,(e=>{S.current?.scrollToItem(e,"center"),g?.(e)})),W=i((e=>C((t=>function(e,t){const n=[...e],r=n[t];return r?.isEqual?(n[t]={...r,isExpanded:!0,originalStart:r.start,originalEnd:r.end,start:r.start,end:r.end},n):e}(t,e)))),[]),F=i((()=>C((e=>function(e){return e.map((e=>e.isEqual&&e.isExpanded?{...e,isExpanded:!1,start:e.originalStart??e.start,end:e.originalEnd??e.end}:e))}(e)))),[]),H=a((()=>function(e){return e.some((e=>e.isEqual&&e.isExpanded))}(E)),[E]),U={leftDiff:R,rightDiff:$,height:c,miniMapWidth:x,currentScrollTop:I,searchResults:T.results,currentMatchIndex:T.currentIndex,onScroll:e=>S.current?.scrollTo(e)};return l((()=>{const e=Zr(E,q),t=Zr(E,D);B(e),z(t)}),[E,q,D]),l((()=>{O.current=v}),[v]),l((()=>{if(!O.current)return;const e=[q,D],t=function(e){let t=5381;for(const n of e)for(const e of n){const n=e.text;for(let e=0;e<n.length;e++)t=(t<<5)+t+n.charCodeAt(e);const r=e.type;for(let e=0;e<r.length;e++)t=(t<<5)+t+r.charCodeAt(e)}return t>>>0}(e);M.current!==t&&(M.current=t,O.current(e))}),[q,D]),t("div",{className:"diff-viewer-container"+(b?` ${b}`:""),children:[t("div",{className:"json-diff-header",children:[e(to,{handleSearch:L,navigateMatch:P,searchState:T,hideSearch:h}),t("div",{className:"json-diff-title-container",children:[e("div",{children:e("span",{children:f})}),e("div",{children:e("span",{children:d})})]})]}),t("div",{style:{display:"flex",gap:"8px",position:"relative"},children:[e(Bo,{outerRef:_,listRef:S,leftDiff:R,rightDiff:$,height:c,overScanCount:j,setScrollTop:N,onExpand:W,className:"virtual-json-diff-list-container",inlineDiffOptions:w}),t("div",{className:"minimap-overlay",children:[e("div",{className:"half left-map-holder",children:!y&&e(Xr,{...U})}),e("div",{className:"half right-map-holder",children:e(Xr,{...U})})]})]}),H&&e("div",{className:"hide-all-button",children:e("button",{onClick:F,children:"Hide All Expanded Lines"})})]})};export{Wr as Differ,$o as VirtualDiffViewer};
1
+ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import{useState as r,useRef as o,useCallback as i,useEffect as l,useMemo as a,createElement as s,PureComponent as c,useLayoutEffect as u}from"react";const f=e=>{if(null==e||"bigint"==typeof e||Number.isNaN(e)||e===1/0||e===-1/0)return;if(["string","number","boolean"].includes(typeof e))return e;if(Array.isArray(e))return e.map(f).filter((e=>void 0!==e));const t={};for(const[n,r]of Object.entries(e)){const e=f(r);void 0!==e&&(t[n]=e)}return t},d=(e,t,n=!1)=>{if(!Array.isArray(e)||!Array.isArray(t))throw new Error("Both arguments should be arrays.");const r=e.length,o=t.length,i=new Array(r+o);if(n){for(let e=0;e<o;e++)i[e]=t[o-e-1];for(let t=0;t<r;t++)i[t+o]=e[t];return i}for(let t=0;t<r;t++)i[t]=e[t];for(let e=0;e<o;e++)i[e+r]=t[e];return i},h=(e,t=new Map)=>{if("object"!=typeof e||null===e)return!1;if(t.has(e))return!0;if(t.set(e,!0),Array.isArray(e)){for(let n=0;n<e.length;n++)if(h(e[n],t))return!0;return!1}for(const n in e)if(h(e[n],t))return!0;return!1},p=(e,t,n,r=1/0,o)=>{if(!e||"object"!=typeof e){let r;if(Number.isNaN(e)||e===1/0||e===-1/0||"bigint"==typeof e||(r=JSON.stringify(e,t,n)),void 0===r)switch(o){case $r.throw:throw new Error(`Value is not valid in JSON, got ${String(e)}`);case $r.stringify:return v(e);default:throw new Error("Should not reach here, please report this bug.")}return r}const i=r<1?'"..."':Array.isArray(e)?`[${e.map((e=>p(e,t,n,r-1,o))).join(",")}]`:`{${Object.keys(e).map((i=>`"${i}": ${p(e[i],t,n,r-1,o)}`)).join(", ")}}`;return JSON.stringify(JSON.parse(i),t,n)},v=e=>void 0===e?"undefined":e===1/0?"Infinity":e===-1/0?"-Infinity":Number.isNaN(e)?"NaN":"bigint"==typeof e?`${e}n`:String(e),y=(e,t=1/0,n=!1,r=$r.stringify)=>null===e?"null":Array.isArray(e)||"object"==typeof e?p(e,void 0,n?1:void 0,t,r):p(e,void 0,void 0,void 0,r),g=e=>"boolean"==typeof e?0:"number"==typeof e?1:"string"==typeof e?2:null===e?3:Array.isArray(e)?4:"object"==typeof e?5:"symbol"==typeof e?6:"function"==typeof e?7:"bigint"==typeof e?8:-1,m=(e,t,n)=>{const r=n.keyOrdersMap?.get(e),o=n.keyOrdersMap?.get(t);if(void 0!==r&&void 0!==o)return r-o;const i=g(e),l=g(t);if(i!==l)return i-l;if(null===e&&null===t||Array.isArray(e)&&Array.isArray(t)||5===i&&5===l)return 0;switch(typeof e){case"number":return Number.isNaN(e)&&Number.isNaN(t)||e===1/0&&t===1/0||e===-1/0&&t===-1/0?0:e-t;case"string":return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e<t?-1:e>t?1:0;case"boolean":return+e-+t;case"symbol":case"function":return String(e).localeCompare(String(t))}if("bigint"==typeof e&&"bigint"==typeof t){const n=BigInt(e)-BigInt(t);return n<0?-1:n>0?1:0}return String(e).localeCompare(String(t))},b=e=>Array.isArray(e)?"array":null===e?"null":typeof e,x=(e,t,n,r,o,i,l,a)=>{const s={ignoreCase:a.ignoreCase},c=y(o,a.maxDepth,!0,a.undefinedBehavior).split("\n"),u=y(i,a.maxDepth,!0,a.undefinedBehavior).split("\n");if(0!==m(o,i,s))if(a.showModifications){const o=Math.max(c.length,u.length);for(let e=c.length;e<o;e++)c.push("");for(let e=u.length;e<o;e++)u.push("");e.push({level:l,type:"modify",text:n?`"${n}": ${c[0]}`:c[0]});for(let t=1;t<c.length;t++)e.push({level:l+(c[t].match(/^\s+/)?.[0]?.length||0),type:"modify",text:c[t].replace(/^\s+/,"").replace(/,$/g,"")});for(let t=c.length;t<o;t++)e.push({level:l,type:"equal",text:""});t.push({level:l,type:"modify",text:r?`"${r}": ${u[0]}`:u[0]});for(let e=1;e<u.length;e++)t.push({level:l+(u[e].match(/^\s+/)?.[0]?.length||0),type:"modify",text:u[e].replace(/^\s+/,"").replace(/,$/g,"")});for(let e=u.length;e<o;e++)t.push({level:l,type:"equal",text:""})}else{e.push({level:l,type:"remove",text:n?`"${n}": ${c[0]}`:c[0]});for(let t=1;t<c.length;t++)e.push({level:l+(c[t].match(/^\s+/)?.[0]?.length||0),type:"remove",text:c[t].replace(/^\s+/,"").replace(/,$/g,"")});for(let t=0;t<u.length;t++)e.push({level:l,type:"equal",text:""});for(let e=0;e<c.length;e++)t.push({level:l,type:"equal",text:""});t.push({level:l,type:"add",text:r?`"${r}": ${u[0]}`:u[0]});for(let e=1;e<u.length;e++)t.push({level:l+(u[e].match(/^\s+/)?.[0]?.length||0),type:"add",text:u[e].replace(/^\s+/,"").replace(/,$/g,"")})}else{const o=Math.max(c.length,u.length);for(let e=c.length;e<o;e++)c.push("");for(let e=u.length;e<o;e++)u.push("");e.push({level:l,type:"equal",text:n?`"${n}": ${c[0]}`:c[0]});for(let t=1;t<c.length;t++)e.push({level:l+(c[t].match(/^\s+/)?.[0]?.length||0),type:"equal",text:c[t].replace(/^\s+/,"").replace(/,$/g,"")});t.push({level:l,type:"equal",text:r?`"${r}": ${u[0]}`:u[0]});for(let e=1;e<u.length;e++)t.push({level:l+(u[e].match(/^\s+/)?.[0]?.length||0),type:"equal",text:u[e].replace(/^\s+/,"").replace(/,$/g,"")})}},w=(e,t)=>e.sort(((e,n)=>m(e,n,{ignoreCase:t.ignoreCaseForKey}))),j=(e,t,n=1,r,o)=>{if(n>(r.maxDepth||1/0))return[[{level:n,type:"equal",text:"..."}],[{level:n,type:"equal",text:"..."}]];let i=[],l=[];if(null===e&&null===t||void 0===e&&void 0===t)return[i,l];if(null==e){const e=p(t,void 0,1,void 0,r.undefinedBehavior).split("\n");for(let t=0;t<e.length;t++)i.push({level:n,type:"equal",text:""}),l.push({level:n+(e[t].match(/^\s+/)?.[0]?.length||0),type:"add",text:e[t].replace(/^\s+/,"").replace(/,$/g,"")});return[i,l]}if(null==t){const t=p(e,void 0,1,void 0,r.undefinedBehavior).split("\n");for(let e=0;e<t.length;e++)i.push({level:n+(t[e].match(/^\s+/)?.[0]?.length||0),type:"remove",text:t[e].replace(/^\s+/,"").replace(/,$/g,"")}),l.push({level:n,type:"equal",text:""});return[i,l]}const a=Object.keys(e),s=Object.keys(t),c=new Map;if(r.preserveKeyOrder){if("before"===r.preserveKeyOrder){for(let e=0;e<a.length;e++)c.set(a[e],e);for(let e=0;e<s.length;e++)c.has(s[e])||c.set(s[e],a.length+e);s.sort(((e,t)=>c.get(e)-c.get(t)))}else if("after"===r.preserveKeyOrder){for(let e=0;e<s.length;e++)c.set(s[e],e);for(let e=0;e<a.length;e++)c.has(a[e])||c.set(a[e],s.length+e);a.sort(((e,t)=>c.get(e)-c.get(t)))}}else w(a,r),w(s,r);const u={ignoreCase:r.ignoreCaseForKey,keyOrdersMap:c};for(;a.length||s.length;){const c=a[0],f=s[0],h=m(c,f,u);if(0===h)if(b(e[c])!==b(t[f]))x(i,l,c,f,e[c],t[f],n,r);else if(Array.isArray(e[c])){const a=[...e[c]],s=[...t[f]],[u,h]=o(a,s,c,f,n,r,[],[]);i=d(i,u),l=d(l,h)}else if(null===e[c])i.push({level:n,type:"equal",text:`"${c}": null`}),l.push({level:n,type:"equal",text:`"${f}": null`});else if("object"==typeof e[c]){const a=j(e[c],t[f],n+1,r,o);i.push({level:n,type:"equal",text:`"${c}": {`}),i=d(i,a[0]),i.push({level:n,type:"equal",text:"}"}),l.push({level:n,type:"equal",text:`"${f}": {`}),l=d(l,a[1]),l.push({level:n,type:"equal",text:"}"})}else x(i,l,c,f,e[c],t[f],n,r);else if(a.length&&s.length)if(h<0){const t=p(e[c],void 0,1,void 0,r.undefinedBehavior).split("\n");for(let e=0;e<t.length;e++){const r=t[e].replace(/^\s+/,"").replace(/,$/g,"");i.push({level:n+(t[e].match(/^\s+/)?.[0]?.length||0),type:"remove",text:e?r:`"${c}": ${r}`}),l.push({level:n,type:"equal",text:""})}}else{const e=p(t[f],void 0,1,void 0,r.undefinedBehavior).split("\n");for(let t=0;t<e.length;t++){const r=e[t].replace(/^\s+/,"").replace(/,$/g,"");i.push({level:n,type:"equal",text:""}),l.push({level:n+(e[t].match(/^\s+/)?.[0]?.length||0),type:"add",text:t?r:`"${f}": ${r}`})}}else if(a.length){const t=p(e[c],void 0,1,void 0,r.undefinedBehavior).split("\n");for(let e=0;e<t.length;e++){const r=t[e].replace(/^\s+/,"").replace(/,$/g,"");i.push({level:n+(t[e].match(/^\s+/)?.[0]?.length||0),type:"remove",text:e?r:`"${c}": ${r}`}),l.push({level:n,type:"equal",text:""})}}else if(s.length){const e=p(t[f],void 0,1,void 0,r.undefinedBehavior).split("\n");for(let t=0;t<e.length;t++){const r=e[t].replace(/^\s+/,"").replace(/,$/g,"");i.push({level:n,type:"equal",text:""}),l.push({level:n+(e[t].match(/^\s+/)?.[0]?.length||0),type:"add",text:t?r:`"${f}": ${r}`})}}c?f?0===h?(a.shift(),s.shift()):h<0?a.shift():s.shift():a.shift():s.shift()}if(i.length!==l.length)throw new Error("Diff error: length not match for left & right, please report a bug with your data.");return[i,l]};var _=function(){this.__data__=[],this.size=0};var S=function(e,t){return e===t||e!=e&&t!=t},O=S;var M=function(e,t){for(var n=e.length;n--;)if(O(e[n][0],t))return n;return-1},A=M,k=Array.prototype.splice;var I=M;var N=M;var E=M;var C=_,q=function(e){var t=this.__data__,n=A(t,e);return!(n<0)&&(n==t.length-1?t.pop():k.call(t,n,1),--this.size,!0)},D=function(e){var t=this.__data__,n=I(t,e);return n<0?void 0:t[n][1]},R=function(e){return N(this.__data__,e)>-1},B=function(e,t){var n=this.__data__,r=E(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}z.prototype.clear=C,z.prototype.delete=q,z.prototype.get=D,z.prototype.has=R,z.prototype.set=B;var $=z,T=$;var L=function(){this.__data__=new T,this.size=0};var P=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var W=function(e){return this.__data__.get(e)};var F=function(e){return this.__data__.has(e)},H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},U="object"==typeof H&&H&&H.Object===Object&&H,K=U,V="object"==typeof self&&self&&self.Object===Object&&self,G=K||V||Function("return this")(),J=G.Symbol,Y=J,Z=Object.prototype,Q=Z.hasOwnProperty,X=Z.toString,ee=Y?Y.toStringTag:void 0;var te=function(e){var t=Q.call(e,ee),n=e[ee];try{e[ee]=void 0;var r=!0}catch(e){}var o=X.call(e);return r&&(t?e[ee]=n:delete e[ee]),o},ne=Object.prototype.toString;var re=te,oe=function(e){return ne.call(e)},ie=J?J.toStringTag:void 0;var le=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ie&&ie in Object(e)?re(e):oe(e)};var ae=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},se=le,ce=ae;var ue,fe=function(e){if(!ce(e))return!1;var t=se(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},de=G["__core-js_shared__"],he=(ue=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||""))?"Symbol(src)_1."+ue:"";var pe=function(e){return!!he&&he in e},ve=Function.prototype.toString;var ye=function(e){if(null!=e){try{return ve.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ge=fe,me=pe,be=ae,xe=ye,we=/^\[object .+?Constructor\]$/,je=Function.prototype,_e=Object.prototype,Se=je.toString,Oe=_e.hasOwnProperty,Me=RegExp("^"+Se.call(Oe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ae=function(e){return!(!be(e)||me(e))&&(ge(e)?Me:we).test(xe(e))},ke=function(e,t){return null==e?void 0:e[t]};var Ie=function(e,t){var n=ke(e,t);return Ae(n)?n:void 0},Ne=Ie(G,"Map"),Ee=Ie(Object,"create"),Ce=Ee;var qe=function(){this.__data__=Ce?Ce(null):{},this.size=0};var De=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Re=Ee,Be=Object.prototype.hasOwnProperty;var ze=function(e){var t=this.__data__;if(Re){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Be.call(t,e)?t[e]:void 0},$e=Ee,Te=Object.prototype.hasOwnProperty;var Le=Ee;var Pe=qe,We=De,Fe=ze,He=function(e){var t=this.__data__;return $e?void 0!==t[e]:Te.call(t,e)},Ue=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Le&&void 0===t?"__lodash_hash_undefined__":t,this};function Ke(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ke.prototype.clear=Pe,Ke.prototype.delete=We,Ke.prototype.get=Fe,Ke.prototype.has=He,Ke.prototype.set=Ue;var Ve=Ke,Ge=$,Je=Ne;var Ye=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ze=function(e,t){var n=e.__data__;return Ye(t)?n["string"==typeof t?"string":"hash"]:n.map},Qe=Ze;var Xe=Ze;var et=Ze;var tt=Ze;var nt=function(e,t){var n=tt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},rt=function(){this.size=0,this.__data__={hash:new Ve,map:new(Je||Ge),string:new Ve}},ot=function(e){var t=Qe(this,e).delete(e);return this.size-=t?1:0,t},it=function(e){return Xe(this,e).get(e)},lt=function(e){return et(this,e).has(e)},at=nt;function st(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}st.prototype.clear=rt,st.prototype.delete=ot,st.prototype.get=it,st.prototype.has=lt,st.prototype.set=at;var ct=st,ut=$,ft=Ne,dt=ct;var ht=$,pt=L,vt=P,yt=W,gt=F,mt=function(e,t){var n=this.__data__;if(n instanceof ut){var r=n.__data__;if(!ft||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new dt(r)}return n.set(e,t),this.size=n.size,this};function bt(e){var t=this.__data__=new ht(e);this.size=t.size}bt.prototype.clear=pt,bt.prototype.delete=vt,bt.prototype.get=yt,bt.prototype.has=gt,bt.prototype.set=mt;var xt=bt;var wt=ct,jt=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},_t=function(e){return this.__data__.has(e)};function St(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new wt;++t<n;)this.add(e[t])}St.prototype.add=St.prototype.push=jt,St.prototype.has=_t;var Ot=St,Mt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},At=function(e,t){return e.has(t)};var kt=function(e,t,n,r,o,i){var l=1&n,a=e.length,s=t.length;if(a!=s&&!(l&&s>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,h=2&n?new Ot:void 0;for(i.set(e,t),i.set(t,e);++f<a;){var p=e[f],v=t[f];if(r)var y=l?r(v,p,f,t,e,i):r(p,v,f,e,t,i);if(void 0!==y){if(y)continue;d=!1;break}if(h){if(!Mt(t,(function(e,t){if(!At(h,t)&&(p===e||o(p,e,n,r,i)))return h.push(t)}))){d=!1;break}}else if(p!==v&&!o(p,v,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d};var It=G.Uint8Array,Nt=S,Et=kt,Ct=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},qt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Dt=J?J.prototype:void 0,Rt=Dt?Dt.valueOf:void 0;var Bt=function(e,t,n,r,o,i,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new It(e),new It(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Nt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=Ct;case"[object Set]":var s=1&r;if(a||(a=qt),e.size!=t.size&&!s)return!1;var c=l.get(e);if(c)return c==t;r|=2,l.set(e,t);var u=Et(a(e),a(t),r,o,i,l);return l.delete(e),u;case"[object Symbol]":if(Rt)return Rt.call(e)==Rt.call(t)}return!1};var zt=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},$t=Array.isArray,Tt=zt,Lt=$t;var Pt=function(e,t,n){var r=t(e);return Lt(e)?r:Tt(r,n(e))};var Wt=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var l=e[n];t(l,n,e)&&(i[o++]=l)}return i},Ft=function(){return[]},Ht=Object.prototype.propertyIsEnumerable,Ut=Object.getOwnPropertySymbols,Kt=Ut?function(e){return null==e?[]:(e=Object(e),Wt(Ut(e),(function(t){return Ht.call(e,t)})))}:Ft;var Vt=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var Gt=function(e){return null!=e&&"object"==typeof e},Jt=le,Yt=Gt;var Zt=function(e){return Yt(e)&&"[object Arguments]"==Jt(e)},Qt=Gt,Xt=Object.prototype,en=Xt.hasOwnProperty,tn=Xt.propertyIsEnumerable,nn=Zt(function(){return arguments}())?Zt:function(e){return Qt(e)&&en.call(e,"callee")&&!tn.call(e,"callee")},rn={exports:{}};var on=function(){return!1};!function(e,t){var n=G,r=on,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,l=i&&i.exports===o?n.Buffer:void 0,a=(l?l.isBuffer:void 0)||r;e.exports=a}(rn,rn.exports);var ln=/^(?:0|[1-9]\d*)$/;var an=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ln.test(e))&&e>-1&&e%1==0&&e<t};var sn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},cn=le,un=sn,fn=Gt,dn={};dn["[object Float32Array]"]=dn["[object Float64Array]"]=dn["[object Int8Array]"]=dn["[object Int16Array]"]=dn["[object Int32Array]"]=dn["[object Uint8Array]"]=dn["[object Uint8ClampedArray]"]=dn["[object Uint16Array]"]=dn["[object Uint32Array]"]=!0,dn["[object Arguments]"]=dn["[object Array]"]=dn["[object ArrayBuffer]"]=dn["[object Boolean]"]=dn["[object DataView]"]=dn["[object Date]"]=dn["[object Error]"]=dn["[object Function]"]=dn["[object Map]"]=dn["[object Number]"]=dn["[object Object]"]=dn["[object RegExp]"]=dn["[object Set]"]=dn["[object String]"]=dn["[object WeakMap]"]=!1;var hn=function(e){return fn(e)&&un(e.length)&&!!dn[cn(e)]};var pn=function(e){return function(t){return e(t)}},vn={exports:{}};!function(e,t){var n=U,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,l=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=l}(vn,vn.exports);var yn=hn,gn=pn,mn=vn.exports,bn=mn&&mn.isTypedArray,xn=bn?gn(bn):yn,wn=Vt,jn=nn,_n=$t,Sn=rn.exports,On=an,Mn=xn,An=Object.prototype.hasOwnProperty;var kn=function(e,t){var n=_n(e),r=!n&&jn(e),o=!n&&!r&&Sn(e),i=!n&&!r&&!o&&Mn(e),l=n||r||o||i,a=l?wn(e.length,String):[],s=a.length;for(var c in e)!t&&!An.call(e,c)||l&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||On(c,s))||a.push(c);return a},In=Object.prototype;var Nn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||In)};var En=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Cn=Nn,qn=En,Dn=Object.prototype.hasOwnProperty;var Rn=fe,Bn=sn;var zn=kn,$n=function(e){if(!Cn(e))return qn(e);var t=[];for(var n in Object(e))Dn.call(e,n)&&"constructor"!=n&&t.push(n);return t},Tn=function(e){return null!=e&&Bn(e.length)&&!Rn(e)};var Ln=Pt,Pn=Kt,Wn=function(e){return Tn(e)?zn(e):$n(e)};var Fn=function(e){return Ln(e,Wn,Pn)},Hn=Object.prototype.hasOwnProperty;var Un=function(e,t,n,r,o,i){var l=1&n,a=Fn(e),s=a.length;if(s!=Fn(t).length&&!l)return!1;for(var c=s;c--;){var u=a[c];if(!(l?u in t:Hn.call(t,u)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var h=!0;i.set(e,t),i.set(t,e);for(var p=l;++c<s;){var v=e[u=a[c]],y=t[u];if(r)var g=l?r(y,v,u,t,e,i):r(v,y,u,e,t,i);if(!(void 0===g?v===y||o(v,y,n,r,i):g)){h=!1;break}p||(p="constructor"==u)}if(h&&!p){var m=e.constructor,b=t.constructor;m==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(h=!1)}return i.delete(e),i.delete(t),h},Kn=Ie(G,"DataView"),Vn=Ne,Gn=Ie(G,"Promise"),Jn=Ie(G,"Set"),Yn=Ie(G,"WeakMap"),Zn=le,Qn=ye,Xn="[object Map]",er="[object Promise]",tr="[object Set]",nr="[object WeakMap]",rr="[object DataView]",or=Qn(Kn),ir=Qn(Vn),lr=Qn(Gn),ar=Qn(Jn),sr=Qn(Yn),cr=Zn;(Kn&&cr(new Kn(new ArrayBuffer(1)))!=rr||Vn&&cr(new Vn)!=Xn||Gn&&cr(Gn.resolve())!=er||Jn&&cr(new Jn)!=tr||Yn&&cr(new Yn)!=nr)&&(cr=function(e){var t=Zn(e),n="[object Object]"==t?e.constructor:void 0,r=n?Qn(n):"";if(r)switch(r){case or:return rr;case ir:return Xn;case lr:return er;case ar:return tr;case sr:return nr}return t});var ur=xt,fr=kt,dr=Bt,hr=Un,pr=cr,vr=$t,yr=rn.exports,gr=xn,mr="[object Arguments]",br="[object Array]",xr="[object Object]",wr=Object.prototype.hasOwnProperty;var jr=function(e,t,n,r,o,i){var l=vr(e),a=vr(t),s=l?br:pr(e),c=a?br:pr(t),u=(s=s==mr?xr:s)==xr,f=(c=c==mr?xr:c)==xr,d=s==c;if(d&&yr(e)){if(!yr(t))return!1;l=!0,u=!1}if(d&&!u)return i||(i=new ur),l||gr(e)?fr(e,t,n,r,o,i):dr(e,t,s,n,r,o,i);if(!(1&n)){var h=u&&wr.call(e,"__wrapped__"),p=f&&wr.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,y=p?t.value():t;return i||(i=new ur),o(v,y,n,r,i)}}return!!d&&(i||(i=new ur),hr(e,t,n,r,o,i))},_r=Gt;var Sr=function e(t,n,r,o,i){return t===n||(null==t||null==n||!_r(t)&&!_r(n)?t!=t&&n!=n:jr(t,n,r,o,e,i))},Or=Sr;var Mr=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Or(e,t,void 0,n):!!r};const Ar=(e,t,n)=>n.ignoreCase?"string"==typeof e&&"string"==typeof t&&e.toLowerCase()===t.toLowerCase():"symbol"==typeof e&&"symbol"==typeof t?e.toString()===t.toString():n.recursiveEqual?Mr(e,t,((e,t)=>n.ignoreCase&&"string"==typeof e&&"string"==typeof t?e.toLowerCase()===t.toLowerCase():void 0)):e===t,kr=(e,t)=>{if(e===t)return 1;if(null===e||null===t)return 0;if("object"!=typeof e||"object"!=typeof t)return 0;let n=0;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&Object.prototype.hasOwnProperty.call(t,r)&&e[r]===t[r]&&n++;return Math.max(n/Object.keys(e).length,n/Object.keys(t).length)},Ir=(e,t,n,r,o)=>{n&&r?(e.push({level:o,type:"equal",text:`"${n}": [`}),t.push({level:o,type:"equal",text:`"${r}": [`})):(e.push({level:o,type:"equal",text:"["}),t.push({level:o,type:"equal",text:"["}))},Nr=(e,t,n)=>{e.push({level:n,type:"equal",text:"]"}),t.push({level:n,type:"equal",text:"]"})},Er=(e,t,n)=>{e.push({level:n+1,type:"equal",text:"..."}),t.push({level:n+1,type:"equal",text:"..."})},Cr=(e,t,n,r,o,i,l=[],a=[])=>{if(Ir(l,a,n,r,o),o>=(i.maxDepth||1/0))Er(l,a,o);else{const[s,c]=((e,t,n,r,o,i)=>{const l=Array(e.length+1).fill(0).map((()=>Array(t.length+1).fill(0))),a=Array(e.length+1).fill(0).map((()=>Array(t.length+1).fill(0)));for(let t=1;t<=e.length;t++)a[t][0]="up";for(let e=1;e<=t.length;e++)a[0][e]="left";for(let n=1;n<=e.length;n++)for(let r=1;r<=t.length;r++){const o=b(e[n-1]);o!==b(t[r-1])||"array"!==o&&"object"!==o?Ar(e[n-1],t[r-1],i)?(l[n][r]=l[n-1][r-1]+1,a[n][r]="diag"):l[n-1][r]>=l[n][r-1]?(l[n][r]=l[n-1][r],a[n][r]="up"):(l[n][r]=l[n][r-1],a[n][r]="left"):i.recursiveEqual?Ar(e[n-1],t[r-1],i)||kr(e[n-1],t[r-1])>.5?(l[n][r]=l[n-1][r-1]+1,a[n][r]="diag"):l[n-1][r]>=l[n][r-1]?(l[n][r]=l[n-1][r],a[n][r]="up"):(l[n][r]=l[n][r-1],a[n][r]="left"):(l[n][r]=l[n-1][r-1]+1,a[n][r]="diag")}let s=e.length,c=t.length,u=[],f=[];for(;s>0||c>0;)if("diag"===a[s][c]){const l=b(e[s-1]);if(i.recursiveEqual&&("array"===l||"object"===l)&&Ar(e[s-1],t[c-1],i)){const n=[],r=[];x(n,r,"","",e[s-1],t[c-1],o+1,i),u=d(u,n.reverse(),!0),f=d(f,r.reverse(),!0)}else if("array"===l){const[l,a]=Cr(e[s-1],t[c-1],n,r,o+1,i);u=d(u,l.reverse(),!0),f=d(f,a.reverse(),!0)}else if("object"===l){const[n,r]=j(e[s-1],t[c-1],o+2,i,Cr);u.unshift({level:o+1,type:"equal",text:"}"}),f.unshift({level:o+1,type:"equal",text:"}"}),u=d(u,n.reverse(),!0),f=d(f,r.reverse(),!0),u.unshift({level:o+1,type:"equal",text:"{"}),f.unshift({level:o+1,type:"equal",text:"{"})}else{const n=[],r=[];x(n,r,"","",e[s-1],t[c-1],o+1,i),u=d(u,n.reverse(),!0),f=d(f,r.reverse(),!0)}s--,c--}else if("up"===a[s][c])if(i.showModifications&&s>1&&"left"===a[s-1][c]){const l=b(e[s-1]);if(l===b(t[c-1]))if("array"===l){const[l,a]=Cr(e[s-1],t[c-1],n,r,o+1,i);u=d(u,l.reverse(),!0),f=d(f,a.reverse(),!0)}else if("object"===l){const[n,r]=j(e[s-1],t[c-1],o+2,i,Cr);u.unshift({level:o+1,type:"equal",text:"}"}),f.unshift({level:o+1,type:"equal",text:"}"}),u=d(u,n.reverse(),!0),f=d(f,r.reverse(),!0),u.unshift({level:o+1,type:"equal",text:"{"}),f.unshift({level:o+1,type:"equal",text:"{"})}else u.unshift({level:o+1,type:"modify",text:y(e[s-1],void 0,void 0,i.undefinedBehavior)}),f.unshift({level:o+1,type:"modify",text:y(t[c-1],void 0,void 0,i.undefinedBehavior)});else{const n=[],r=[];x(n,r,"","",e[s-1],t[c-1],o+1,i),u=d(u,n.reverse(),!0),f=d(f,r.reverse(),!0)}s--,c--}else{const t=p(e[s-1],void 0,1,void 0,i.undefinedBehavior).split("\n");for(let e=t.length-1;e>=0;e--)u.unshift({level:o+1+(t[e].match(/^\s+/)?.[0]?.length||0),type:"remove",text:t[e].replace(/^\s+/,"").replace(/,$/g,"")}),f.unshift({level:o+1,type:"equal",text:""});s--}else{const e=p(t[c-1],void 0,1,void 0,i.undefinedBehavior).split("\n");for(let t=e.length-1;t>=0;t--)u.unshift({level:o+1,type:"equal",text:""}),f.unshift({level:o+1+(e[t].match(/^\s+/)?.[0]?.length||0),type:"add",text:e[t].replace(/^\s+/,"").replace(/,$/g,"")});c--}return[u,f]})(e,t,n,r,o,i);l=d(l,s),a=d(a,c)}return Nr(l,a,o),[l,a]};function qr(e,t){for(const n of e){if("object"===b(n)){if(!(t in n))return!1;for(const e of Object.values(n))if(Array.isArray(e)&&!qr(e,t))return!1}else if(Array.isArray(n)&&!qr(n,t))return!1}return!0}const Dr=function e(t,n,r,o,i,l,a=[],s=[]){if(!l.compareKey)return Br(t,n,r,o,i,l,a,s);const c=e=>e.every((e=>"object"===b(e)));if(!(c(t)&&c(n)&&qr(t,l.compareKey)&&qr(n,l.compareKey)))return Br(t,n,r,o,i,l,a,s);if(Ir(a,s,r,o,i),i>=(l.maxDepth||1/0))Er(a,s,i);else{const r=new Set,o=new Set;for(let c=0;c<t.length;c++){const u=t[c];if(r.has(c))continue;if("object"!==b(u)||!(l.compareKey in u))continue;const f=u[l.compareKey];let h=-1;for(let e=0;e<n.length;e++){if(o.has(e))continue;const t=n[e];if("object"!==b(t)||!(l.compareKey in t))continue;const r=t[l.compareKey];if(Ar(f,r,l)){h=e;break}}if(-1!==h){const t=n[h],f=b(u);if(f!==b(t))x(a,s,"","",u,t,i+1,l);else if("object"===f){a.push({level:i+1,type:"equal",text:"{"}),s.push({level:i+1,type:"equal",text:"{"});const n=Array.from(new Set([...Object.keys(u),...Object.keys(t)]));for(const r of n){const n=u[r],o=t[r];if(Array.isArray(n)&&Array.isArray(o)){const[t,r]=e(n,o,"","",i+2,l,[],[]);a=d(a,t),s=d(s,r)}else if(Array.isArray(n)||Array.isArray(o))x(a,s,r,r,n,o,i+2,l);else{const[t,c]=j({[r]:n},{[r]:o},i+2,l,e);a=d(a,t),s=d(s,c)}}a.push({level:i+1,type:"equal",text:"}"}),s.push({level:i+1,type:"equal",text:"}"})}else if("array"===f){const[n,r]=e(u,t,"","",i+1,l,[],[]);a=d(a,n),s=d(s,r)}else Ar(u,t,l)?(a.push({level:i+1,type:"equal",text:y(u,void 0,void 0,l.undefinedBehavior)}),s.push({level:i+1,type:"equal",text:y(t,void 0,void 0,l.undefinedBehavior)})):l.showModifications?(a.push({level:i+1,type:"modify",text:y(u,void 0,void 0,l.undefinedBehavior)}),s.push({level:i+1,type:"modify",text:y(t,void 0,void 0,l.undefinedBehavior)})):(a.push({level:i+1,type:"remove",text:y(u,void 0,void 0,l.undefinedBehavior)}),a.push({level:i+1,type:"equal",text:""}),s.push({level:i+1,type:"equal",text:""}),s.push({level:i+1,type:"add",text:y(t,void 0,void 0,l.undefinedBehavior)}));r.add(c),o.add(h)}}for(let e=0;e<t.length;e++){if(r.has(e))continue;const n=t[e],o=p(n,void 0,1,void 0,l.undefinedBehavior).split("\n");for(let e=0;e<o.length;e++)a.push({level:i+1+(o[e].match(/^\s+/)?.[0]?.length||0),type:"remove",text:o[e].replace(/^\s+/,"").replace(/,$/g,"")}),s.push({level:i+1,type:"equal",text:""})}for(let e=0;e<n.length;e++){if(o.has(e))continue;const t=n[e],r=p(t,void 0,1,void 0,l.undefinedBehavior).split("\n");for(let e=0;e<r.length;e++)a.push({level:i+1,type:"equal",text:""}),s.push({level:i+1+(r[e].match(/^\s+/)?.[0]?.length||0),type:"add",text:r[e].replace(/^\s+/,"").replace(/,$/g,"")})}}return Nr(a,s,i),[a,s]};function Rr(e,t,n,r,o,i,l){let a=[],s=[];const c=Array.from(new Set([...Object.keys(e||{}),...Object.keys(t||{})]));for(const u of c){const c=e?e[u]:void 0,f=t?t[u]:void 0;if(Array.isArray(c)&&Array.isArray(f)&&r.compareKey&&l(c,r.compareKey)&&l(f,r.compareKey)){const[e,t]=i(c,f,"","",n+2,r,[],[]);a=d(a,e),s=d(s,t)}else if(Array.isArray(c)&&Array.isArray(f)){const[e,t]=o(c,f,"","",n+2,r,[],[]);a=d(a,e),s=d(s,t)}else if(Array.isArray(c)||Array.isArray(f))x(a,s,u,u,c,f,n+2,r);else{const[e,t]=j({[u]:c},{[u]:f},n+2,r,o);a=d(a,e),s=d(s,t)}}return[a,s]}const Br=(e,t,n,r,o,i,l=[],a=[])=>{if(e=[...e],t=[...t],Ir(l,a,n,r,o),o>=(i.maxDepth||1/0))Er(l,a,o);else for(;e.length||t.length;){const n=e[0],r=t[0],s=b(n),c=b(r);if(e.length&&t.length){if(s!==c)x(l,a,"","",n,r,o+1,i);else if(i.recursiveEqual&&["object","array"].includes(s)&&Ar(n,r,i))x(l,a,"","",n,r,o+1,i);else if("object"===s){let e,t;l.push({level:o+1,type:"equal",text:"{"}),a.push({level:o+1,type:"equal",text:"{"}),"compare-key"===i.arrayDiffMethod?[e,t]=Rr(n,r,o,i,Br,Dr,qr):[e,t]=j(n,r,o+2,i,Br),l=d(l,e),a=d(a,t),l.push({level:o+1,type:"equal",text:"}"}),a.push({level:o+1,type:"equal",text:"}"})}else if("array"===s)if(i.compareKey&&qr(n,i.compareKey)&&qr(r,i.compareKey)){const[e,t]=Dr(n,r,"","",o+1,i,[],[]);l=d(l,e),a=d(a,t)}else{const[e,t]=Br(n,r,"","",o+1,i,[],[]);l=d(l,e),a=d(a,t)}else 0===m(n,r,{ignoreCase:i.ignoreCase})?(l.push({level:o+1,type:"equal",text:y(n,void 0,void 0,i.undefinedBehavior)}),a.push({level:o+1,type:"equal",text:y(r,void 0,void 0,i.undefinedBehavior)})):i.showModifications?(l.push({level:o+1,type:"modify",text:y(n,void 0,void 0,i.undefinedBehavior)}),a.push({level:o+1,type:"modify",text:y(r,void 0,void 0,i.undefinedBehavior)})):(l.push({level:o+1,type:"remove",text:y(n,void 0,void 0,i.undefinedBehavior)}),l.push({level:o+1,type:"equal",text:""}),a.push({level:o+1,type:"equal",text:""}),a.push({level:o+1,type:"add",text:y(r,void 0,void 0,i.undefinedBehavior)}));e.shift(),t.shift()}else if(e.length){const t=y(n,void 0,!0,i.undefinedBehavior).split("\n");for(let e=0;e<t.length;e++)l.push({level:o+1+(t[e].match(/^\s+/)?.[0]?.length||0),type:"remove",text:t[e].replace(/^\s+/,"").replace(/,$/g,"")}),a.push({level:o+1,type:"equal",text:""});e.shift()}else if(t.length){const e=y(r,void 0,!0,i.undefinedBehavior).split("\n");for(let t=0;t<e.length;t++)l.push({level:o+1,type:"equal",text:""}),a.push({level:o+1+(e[t].match(/^\s+/)?.[0]?.length||0),type:"add",text:e[t].replace(/^\s+/,"").replace(/,$/g,"")});t.shift()}}return Nr(l,a,o),[l,a]},zr=(e,t)=>{if(!e||"object"!=typeof e)return e;if(Array.isArray(e)){const n=[...e];return n.sort(((e,n)=>m(e,n,{ignoreCase:t?.ignoreCase}))),n.map((e=>zr(e,t)))}const n={...e};for(const e in n)n[e]=zr(n[e],t);return n};var $r=function(e){return e.stringify="stringify",e.ignore="ignore",e.throw="throw",e}({});const Tr={level:0,type:"equal",text:""},Lr={level:0,type:"equal",text:"{"},Pr={level:0,type:"equal",text:"}"};let Wr=class{detectCircular(e){if(this.options.detectCircular&&h(e))throw new Error(`Circular reference detected in object (with keys ${Object.keys(e).map((e=>`"${e}"`)).join(", ")})`)}sortResultLines(e,t){for(let n=0;n<e.length;n++){let n=!1;for(let r=1;r<e.length;r++)if("remove"===e[r].type&&"equal"===e[r-1].type&&"equal"===t[r].type&&"add"===t[r-1].type){const o=e[r-1];e[r-1]=e[r],e[r]=o;const i=t[r-1];t[r-1]=t[r],t[r]=i,n=!0}if(!n)break}}calculateLineNumbers(e){let t=0;for(const n of e)n.text&&(n.lineNumber=++t)}calculateCommas(e){const t=Array(e.length).fill(0);for(let n=e.length-1;n>0;n--)e[n].text?t[n-1]=n:t[n-1]=t[n];for(let n=0;n<e.length;n++)!e[n].text.endsWith("{")&&!e[n].text.endsWith("[")&&e[n].text&&t[n]&&e[n].level<=e[t[n]].level&&(e[n].comma=!0)}diff(e,t){this.detectCircular(e),this.detectCircular(t),"unorder-normal"!==this.options.arrayDiffMethod&&"unorder-lcs"!==this.options.arrayDiffMethod||(e=zr(e,this.options),t=zr(t,this.options)),"ignore"===this.options.undefinedBehavior&&(e=f(e)??null,t=f(t)??null);let n=[],r=[];const o=b(e);if(o!==b(t)){n=p(e,void 0,1,this.options.maxDepth,this.options.undefinedBehavior).split("\n").map((e=>({level:e.match(/^\s+/)?.[0]?.length||0,type:"remove",text:e.replace(/^\s+/,"").replace(/,$/g,""),comma:e.endsWith(",")})));r=p(t,void 0,1,this.options.maxDepth,this.options.undefinedBehavior).split("\n").map((e=>({level:e.match(/^\s+/)?.[0]?.length||0,type:"add",text:e.replace(/^\s+/,"").replace(/,$/g,""),comma:e.endsWith(",")})));const o=n.length,i=r.length;n=d(n,Array(i).fill(0).map((()=>({...Tr})))),r=d(r,Array(o).fill(0).map((()=>({...Tr}))),!0)}else"object"===o?([n,r]=j(e,t,1,this.options,this.arrayDiffFunc),n.unshift({...Lr}),n.push({...Pr}),r.unshift({...Lr}),r.push({...Pr})):"array"===o?[n,r]=this.arrayDiffFunc(e,t,"","",0,this.options):e!==t?this.options.ignoreCase?"string"==typeof e&&"string"==typeof t&&e.toLowerCase()===t.toLowerCase()&&(n=[{level:0,type:"equal",text:e}],r=[{level:0,type:"equal",text:t}]):this.options.showModifications?(n=[{level:0,type:"modify",text:p(e,void 0,void 0,this.options.maxDepth,this.options.undefinedBehavior)}],r=[{level:0,type:"modify",text:p(t,void 0,void 0,this.options.maxDepth,this.options.undefinedBehavior)}]):(n=[{level:0,type:"remove",text:p(e,void 0,void 0,this.options.maxDepth,this.options.undefinedBehavior)},{...Tr}],r=[{...Tr},{level:0,type:"add",text:p(t,void 0,void 0,this.options.maxDepth,this.options.undefinedBehavior)}]):(n=[{level:0,type:"equal",text:p(e,void 0,void 0,this.options.maxDepth,this.options.undefinedBehavior)}],r=[{level:0,type:"equal",text:p(t,void 0,void 0,this.options.maxDepth,this.options.undefinedBehavior)}]);return this.sortResultLines(n,r),this.calculateLineNumbers(n),this.calculateLineNumbers(r),this.calculateCommas(n),this.calculateCommas(r),[n,r]}constructor({detectCircular:e=!0,maxDepth:t=1/0,showModifications:n=!0,arrayDiffMethod:r="normal",ignoreCase:o=!1,ignoreCaseForKey:i=!1,recursiveEqual:l=!1,preserveKeyOrder:a,compareKey:s,undefinedBehavior:c="stringify"}={}){this.options={detectCircular:e,maxDepth:t,showModifications:n,arrayDiffMethod:r,ignoreCase:o,ignoreCaseForKey:i,recursiveEqual:l,preserveKeyOrder:a,compareKey:s,undefinedBehavior:c},this.arrayDiffFunc="compare-key"===r?Dr:"lcs"===r||"unorder-lcs"===r?Cr:Br}};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(':root {\n --diff-row-height: 20px;\n}\n\n.virtual-json-diff-list-container {\n scrollbar-width: none;\n --sb-track-color: #232e33;\n --sb-thumb-color: #4560f8;\n --sb-size: 6px;\n}\n\n.diff-viewer-container {\n background-color: #282a36;\n font-size: 12px;\n text-align: left;\n padding-bottom: 12px;\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom {\n background: #282a36;\n color: #f8f8f2;\n width: 100%;\n border-spacing: 0;\n font-family:\n -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,\n "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n}\n\n/* ADD REMOVE MODIFY COLORS */\n.json-diff-viewer.json-diff-viewer-theme-custom .line-add {\n border-left: 1px solid #a5ff99;\n background: rgba(100, 182, 67, 0.08);\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .line-remove {\n border-left: 1px solid #ffaa99;\n background: rgba(160, 128, 100, 0.08);\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .line-modify {\n border-left: 1px solid #ecff99;\n background: rgba(182, 180, 67, 0.08);\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .empty-equal-cell {\n opacity: 0.4;\n background: repeating-linear-gradient(-53deg, rgb(69, 69, 70), rgb(69, 69, 70) 1.5px, #282a36 1.5px, #282a36 4px);\n background-attachment: fixed;\n}\n\n/* EDITOR COLORS */\n.json-diff-viewer.json-diff-viewer-theme-custom .inline-diff-add {\n background: rgba(0, 0, 0, 0.08);\n text-decoration: underline;\n word-break: break-all;\n}\n.json-diff-viewer.json-diff-viewer-theme-custom .inline-diff-remove {\n background: rgba(0, 0, 0, 0.08);\n text-decoration: line-through;\n word-break: break-all;\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .string {\n color: #e6db74;\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .number,\n.json-diff-viewer.json-diff-viewer-theme-custom .boolean,\n.json-diff-viewer.json-diff-viewer-theme-custom .null {\n color: #ae81ff;\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .key {\n color: #66d9ef;\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .invalid {\n background: #960050;\n color: #fff;\n}\n\n.diff-viewer-container button {\n border-radius: 4px;\n border: 1px solid transparent;\n font-size: 1em;\n font-weight: 500;\n font-family: inherit;\n color: white;\n background-color: #1a1a1a;\n cursor: pointer;\n transition: border-color 0.25s;\n}\n\n.diff-viewer-container button:hover {\n border-color: #649dffab;\n}\n\n.diff-viewer-container button:focus,\n.diff-viewer-container button:focus-visible {\n outline: 4px auto -webkit-focus-ring-color;\n}\n\n.collapsed-button button {\n height: 20px;\n color: rgba(255, 255, 255, 0.7);\n padding: 0px 8px;\n line-height: 20px;\n display: flex;\n justify-content: center;\n align-items: center;\n background: #26262600;\n border-width: 1px;\n border-color: #434343;\n cursor: pointer;\n}\n\n.hide-all-button {\n text-align: right;\n margin-top: 10px;\n}\n\n.hide-all-button button {\n height: 28px;\n padding: 0 8px;\n line-height: 20px;\n background: #26262600;\n color: white;\n border-width: 1px;\n border-color: #434343;\n cursor: pointer;\n}\n\n/* HEADER */\n.json-diff-header {\n background: #2f323e;\n padding: 10px;\n border-bottom: 1px solid #353846;\n color: #ffffffe5;\n font-family:\n -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,\n "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n}\n\n.json-diff-header .json-diff-title-container {\n width: 100%;\n display: flex;\n flex-direction: row;\n}\n\n.json-diff-header .json-diff-title-container div {\n flex: 0.495;\n}\n\n/* HEADER SEARCH */\n.json-diff-header .search-container {\n margin-bottom: 8px;\n width: 100%;\n}\n\n.json-diff-header .search-input-container {\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.json-diff-header .search-input-container svg {\n width: 1em;\n height: 1em;\n}\n\n.json-diff-header .search-input-container input {\n border: 1px solid #434343;\n border-radius: 4px;\n padding: 6px;\n width: 100%;\n background: #2f323e;\n color: white;\n}\n\n.json-diff-header .search-results {\n margin-top: 3px;\n margin-bottom: 8px;\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.json-diff-header .search-results button {\n height: 20px;\n padding: 0 8px;\n line-height: 20px;\n background: #26262600;\n border-width: 1px;\n border-color: #434343;\n cursor: pointer;\n color: white;\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .search-match {\n background-color: #ffeb3b;\n padding: 0 2px;\n border-radius: 2px;\n color: #000;\n}\n\n/* WEBKIT SCROLLBAR */\n.json-diff-viewer-virtual pre::-webkit-scrollbar {\n display: none;\n}\n\n.virtual-json-diff-list-container::-webkit-scrollbar {\n width: var(--sb-size);\n display: none;\n}\n\n.virtual-json-diff-list-container::-webkit-scrollbar-track {\n background: var(--sb-track-color);\n display: none;\n border-radius: 3px;\n}\n\n.virtual-json-diff-list-container::-webkit-scrollbar-thumb {\n background: var(--sb-thumb-color);\n border-radius: 3px;\n display: none;\n}\n\n@supports not selector(::-webkit-scrollbar) {\n .virtual-json-diff-list-container {\n scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);\n }\n}\n\n/* MINIMAP IMPROVEMENTS */\n.diff-viewer-container .minimap-overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n display: flex;\n pointer-events: none;\n}\n\n.diff-viewer-container .minimap-overlay .half {\n flex: 1;\n display: flex;\n align-items: center;\n}\n\n.diff-viewer-container .minimap-overlay .left-map-holder {\n justify-content: flex-end;\n}\n\n.diff-viewer-container .minimap-overlay .right-map-holder {\n justify-content: flex-end;\n}\n\n.diff-viewer-container .minimap-overlay .minimap-wrapper {\n opacity: 0.65;\n pointer-events: auto;\n}\n\n.diff-viewer-container .minimap-overlay .minimap-wrapper:hover {\n opacity: 0.85;\n}\n\n/* row container */\n.json-diff-viewer.json-diff-viewer-theme-custom .grid-row .cell {\n padding: 0;\n vertical-align: unset;\n overflow: hidden;\n box-sizing: border-box;\n}\n\n/* line-number cell styling (mimic old td.line-number) */\n.json-diff-viewer.json-diff-viewer-theme-custom .grid-row .line-number {\n background: unset;\n border-left: 0;\n border-bottom: none;\n color: #999;\n padding: 2px;\n padding-right: 6px;\n text-align: right;\n width: 30px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n/* content cells (2nd and 4th column) */\n.json-diff-viewer.json-diff-viewer-theme-custom .grid-row .cell:nth-child(2),\n.json-diff-viewer.json-diff-viewer-theme-custom .grid-row .cell:nth-child(4) {\n width: auto;\n overflow-wrap: anywhere;\n}\n\n/* pre inside the cell */\n.json-diff-viewer.json-diff-viewer-theme-custom .grid-row .cell pre {\n font-family:\n -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,\n "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n overflow: hidden;\n margin: 0;\n padding-left: 4px;\n margin-right: 29px;\n font-size: 12px;\n line-height: var(--diff-row-height);\n white-space: pre-wrap;\n word-break: break-all;\n min-width: 0; /* important for flexbox/grid overflow */\n}\n\n/* collapsed button visuals */\n.json-diff-viewer.json-diff-viewer-theme-custom .grid-row.collapsed-button {\n background-color: #262626;\n}\n\n.json-diff-viewer.json-diff-viewer-theme-custom .grid-row.collapsed-button .expand-button-container {\n display: flex;\n justify-content: center;\n}\n\n/* preserve hover */\n.json-diff-viewer.json-diff-viewer-theme-custom .grid-row:hover {\n background: #53535f54;\n}\n');function Fr(){if("undefined"==typeof document)return 20;try{const e=document.documentElement,t=getComputedStyle(e).getPropertyValue("--diff-row-height"),n=Number.parseInt(t,10);return Number.isNaN(n)?20:n}catch{return 20}}function Hr(e){return e&&"object"==typeof e&&"type"in e&&"collapsed"===e.type}function Ur(e){return"equal"===e.type&&""===e.text.trim()?"empty-equal-cell":""}function Kr(e,t){if(!e){return void t.querySelectorAll("span.token.search-match").forEach((e=>e.classList.remove("search-match")))}const n=e.replaceAll("(","").replaceAll(")",""),r=new RegExp(n,"gi");t.querySelectorAll("span.token").forEach((e=>{const t=e.textContent||"";r.test(t)?e.classList.add("search-match"):e.classList.remove("search-match")}))}function Vr(e,t,n,a,s){const[c,u]=r({term:t??"",results:[],currentIndex:0}),f=o(),d=i((t=>{u((e=>({...e,term:t}))),f.current&&clearTimeout(f.current),f.current=setTimeout((()=>{const n=function(e,t){if(!e)return[];const n=[],r=new RegExp(e,"gi");return t.forEach(((e,t)=>{"object"==typeof e&&"text"in e&&r.test(e.text)&&n.push(t)})),n}(t,e);u((e=>({...e,results:n,currentIndex:0})))}),300)}),[e]),h=i((e=>{if(0===c.results.length)return;const t="next"===e?(c.currentIndex+1)%c.results.length:(c.currentIndex-1+c.results.length)%c.results.length;u((e=>({...e,currentIndex:t})));const r=c.results[t];return n&&n(r),r}),[c,n]);return l((()=>{if(!a?.current)return;Kr(c.term,a.current);const e=new MutationObserver((()=>a.current&&Kr(c.term,a.current)));e.observe(a.current,{childList:!0,subtree:!0});const t=s?.current;if(t){const n=()=>setTimeout((()=>a.current&&Kr(c.term,a.current)),100);return t.addEventListener("scroll",n),()=>{e.disconnect(),t.removeEventListener("scroll",n)}}return()=>e.disconnect()}),[c.term,a,s]),l((()=>{void 0!==t&&d(t)}),[t,d]),{searchState:c,handleSearch:d,navigateMatch:h}}function Gr(e,t){const n=[];let r,o;if(e.length&&t.length)for(e=[...e],t=[...t],r={...e.shift()},o={...t.shift()};;){if(r.start===o.start){const e=Math.min(r.end,o.end);n.push({...r,...o,end:e}),r.start=o.start=e}else if(r.start<o.start){const e=Math.min(r.end,o.start);n.push({...o,...r,end:e}),r.start=e}else{const e=Math.min(r.start,o.end);n.push({...r,...o,end:e}),o.start=e}if(!e.length||!t.length)break;r.start===r.end&&(r={...e.shift()}),o.start===o.end&&(o={...t.shift()})}return e.length||n.push(...t.map((e=>({...e,token:r.token||"plain"})))),t.length||n.push(...e),n}function Jr(e){return"equal"===e.type&&""!==e.text}function Yr(e,t,n=3){if(!Array.isArray(e)||!Array.isArray(t))throw new TypeError("Both segments and diff must be arrays");const r=[];return e.forEach(((o,i)=>{if(o.isEqual){if(o.end-o.start<=2*n||o.isExpanded)for(let e=o.start;e<o.end;e++)r.push({...t[e],originalIndex:e});else{if(function(e,t,n){return 0===e||t[e-1].end<n.start&&t[e-1].isEqual}(i,e,o))for(let e=o.start;e<Math.min(o.start+n,o.end);e++)r.push({...t[e],originalIndex:e});o.end-(o.start+n)>n&&r.push({type:"collapsed",segmentIndex:i,originalIndex:r.length,level:0,text:""});for(let e=Math.max(o.end-n,o.start+n);e<o.end;e++)r.push({...t[e],originalIndex:e})}}else for(let e=o.start;e<o.end;e++)r.push({...t[e],originalIndex:e})})),r}const Zr="#363743";const Qr=({leftDiff:t,rightDiff:n,height:r,onScroll:s,miniMapWidth:c=20,currentScrollTop:u,searchResults:f=[],currentMatchIndex:d=-1})=>{const h=o(null),p=o(null),v=a((()=>Fr()),[]),{totalLines:y,viewportHeight:g}=a((()=>{const e=r/v,o=Math.max(t.length,n.length)||e;return{totalLines:o,viewportHeight:r*(1/(o/e))}}),[r,t.length,n.length]),{handleMouseDown:m,isDragging:b}=function({height:e,totalLines:t,viewportHeight:n,ROW_HEIGHT:r,onScroll:a,containerRef:s}){const c=o(!1),u=i((e=>!Number.isNaN(e)&&Number.isFinite(e)),[]),f=i((o=>(o-n/2)/e*t*r),[e,t,n,r]),d=i((()=>{const n=t*r;return Math.max(0,n-e)}),[t,r,e]),h=i(((e,t)=>{const r=e.clientY-t.top,o=d();if(e.clientY+n/2>t.bottom){const e=t.bottom-t.top-n/2,r=f(e);u(r)&&a(Math.min(o,Math.max(0,r)))}else{const e=f(r);u(e)&&a(Math.min(o,Math.max(0,e)))}}),[f,d,u,a,n]),p=i((n=>{if(!c.current||!s.current)return;if(e<=0||t<=0)return;const r=s.current.getBoundingClientRect();h(n,r)}),[s,e,t,h]),v=i((()=>{c.current=!1,window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",v)}),[p]),y=i((e=>{if(c.current=!0,window.addEventListener("mousemove",p),window.addEventListener("mouseup",v),!s.current)return;const t=s.current.getBoundingClientRect();h(e.nativeEvent,t)}),[p,v,s,h]);return l((()=>{const e=()=>{c.current=!1};return window.addEventListener("mouseup",e),()=>window.removeEventListener("mouseup",e)}),[]),{handleMouseDown:y,isDragging:c}}({height:r||380,totalLines:y,viewportHeight:g,ROW_HEIGHT:v,onScroll:s,containerRef:p}),{drawMinimap:x,drawScrollBox:w}=function({canvasRef:e,containerRef:t,height:n,miniMapWidth:r,leftDiff:o,rightDiff:s,currentScrollTop:c,searchResults:u,currentMatchIndex:f,isDragging:d,totalLines:h,ROW_HEIGHT:p,viewportHeight:v}){const y=i(((e,t,n,r,o)=>{if("collapsed"===t.type)e.fillStyle=Zr;else switch(t.type){case"equal":e.fillStyle=Zr;break;case"add":e.fillStyle="#4CAF50";break;case"remove":e.fillStyle="#F44336";break;case"modify":e.fillStyle="#FFC107"}e.fillRect(r,n,o,p)}),[p]),g=a((()=>{const e=document.createElement("canvas");e.width=r,e.height=n;const t=e.getContext("2d");if(!t)return null;const i=n/h;return o.forEach(((e,n)=>{y(t,e,n*i,0,r/2)})),s.forEach(((e,n)=>{y(t,e,n*i,r/2,r/2)})),u.forEach((e=>{const n=e*i,o=Math.max(1,i);t.fillStyle="#ffd700",t.fillRect(0,n,r,o)})),e}),[o,s,u,n,h,r,y]),m=i(((e,t)=>{if(!g)return;e.clearRect(0,0,r,n),e.drawImage(g,0,0);const o=c/(h*p)*n;if(e.fillStyle=t,e.fillRect(0,o,r,v),f>=0&&void 0!==u[f]){const t=n/h,o=u[f]*t,i=Math.max(1,t);e.fillStyle="#ff4500",e.fillRect(0,o,r,i)}}),[g,c,h,p,n,r,v,f,u]),b=i((()=>{const n=e.current;if(!n)return;const r=n.getContext("2d");r&&(r.clearRect(0,0,n.width,n.height),d.current?(t.current&&(t.current.style.opacity="0.85"),m(r,"#7B7B7Bcc")):(t.current&&(t.current.style.opacity="0.65"),m(r,"#7B7B7B80")))}),[m]);return l((()=>{b()}),[b]),{drawScrollBox:m,drawMinimap:b}}({canvasRef:h,containerRef:p,height:r||380,miniMapWidth:c||20,leftDiff:t,rightDiff:n,currentScrollTop:u,searchResults:f,currentMatchIndex:d,isDragging:b,totalLines:y,ROW_HEIGHT:v,viewportHeight:g});l((()=>{x()}),[x]);const j=i((e=>{if(!p.current)return;const t=p.current.getBoundingClientRect(),n=e.clientY-t.top,o=u/(y*v)*r,i=n>o&&n<o+g;x();const l=h.current;if(l){const e=l.getContext("2d");if(!e)return;i&&w(e,"#7B7B7Bcc")}}),[r,y,g,u,x]);return e("div",{ref:p,className:"minimap-wrapper",style:{width:c,height:r,position:"relative",cursor:"pointer"},onMouseDown:m,onMouseMove:j,onMouseLeave:()=>{x()},children:e("canvas",{ref:h,width:c,height:r,style:{width:"100%",height:"100%"}})})};function Xr(){return e("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M15.7955 15.8111L21 21M18 10.5C18 14.6421 14.6421 18 10.5 18C6.35786 18 3 14.6421 3 10.5C3 6.35786 6.35786 3 10.5 3C14.6421 3 18 6.35786 18 10.5Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function eo({searchState:n,handleSearch:r,navigateMatch:o,hideSearch:i}){return i?null:t("div",{className:"search-container",children:[t("div",{className:"search-input-container",children:[e("span",{role:"img","aria-label":"search",children:e(Xr,{})}),e("input",{type:"text",placeholder:"Search in JSON...",value:n.term,onChange:e=>r(e.target.value)})]}),n.results.length>0&&t("div",{className:"search-results",children:[t("span",{children:[n.currentIndex+1," ","of"," ",n.results.length," ","matches"]}),e("button",{onClick:()=>o("prev"),children:"Previous"}),e("button",{onClick:()=>o("next"),children:"Next"})]})]})}function to(){return to=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},to.apply(null,arguments)}function no(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ro(e,t){return ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ro(e,t)}var oo=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function io(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||oo(r)&&oo(o)))return!1;var r,o;return!0}function lo(e,t){var n;void 0===t&&(t=io);var r,o=[],i=!1;return function(){for(var l=[],a=0;a<arguments.length;a++)l[a]=arguments[a];return i&&n===this&&t(l,o)||(r=e.apply(this,l),i=!0,n=this,o=l),r}}var ao="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function so(e){cancelAnimationFrame(e.id)}var co=-1;function uo(e){if(void 0===e&&(e=!1),-1===co||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),co=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return co}var fo=null;function ho(e){if(void 0===e&&(e=!1),null===fo||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?fo="positive-descending":(t.scrollLeft=1,fo=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),fo}return fo}process.env.NODE_ENV;var po=function(e,t){return e},vo=null,yo=null;function go(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,u=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){var t,c;function h(t){var r;return(r=e.call(this,t)||this)._instanceProps=u(r.props,no(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:no(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=lo((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=lo((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,l=i.direction,a=i.itemSize,s=i.layout,c=r._getItemStyleCache(f&&a,f&&s,f&&l);if(c.hasOwnProperty(e))t=c[e];else{var u=n(r.props,e,r._instanceProps),d=o(r.props,e,r._instanceProps),h="horizontal"===l||"horizontal"===s,p="rtl"===l,v=h?u:0;c[e]=t={position:"absolute",left:p?void 0:v,right:p?v:void 0,top:h?0:u,height:h?"100%":d,width:h?d:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=lo((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,l=o;if("rtl"===t)switch(ho()){case"negative":l=-o;break;case"positive-descending":l=i-n-o}return l=Math.max(0,Math.min(l,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<l?"forward":"backward",scrollOffset:l,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){var e,t,n,o;null!==r._resetIsScrollingTimeoutId&&so(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=(e=r._resetIsScrolling,t=150,n=ao(),o={id:requestAnimationFrame((function r(){ao()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}))})},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}c=e,(t=h).prototype=Object.create(c.prototype),t.prototype.constructor=t,ro(t,c),h.getDerivedStateFromProps=function(e,t){return mo(e,t),d(e),null};var p=h.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,l=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var a=0;if(this._outerRef){var s=this._outerRef;a="vertical"===o?s.scrollWidth>s.clientWidth?uo():0:s.scrollHeight>s.clientHeight?uo():0}this.scrollTo(i(this.props,e,t,l,this._instanceProps,a))},p.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(ho()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var l=i.clientWidth,a=i.scrollWidth;i.scrollLeft=a-l-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&so(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,l=e.innerRef,a=e.innerElementType,c=e.innerTagName,u=e.itemCount,f=e.itemData,d=e.itemKey,h=void 0===d?po:d,p=e.layout,v=e.outerElementType,y=e.outerTagName,g=e.style,m=e.useIsScrolling,b=e.width,x=this.state.isScrolling,w="horizontal"===o||"horizontal"===p,j=w?this._onScrollHorizontal:this._onScrollVertical,_=this._getRangeToRender(),S=_[0],O=_[1],M=[];if(u>0)for(var A=S;A<=O;A++)M.push(s(t,{data:f,key:h(A,f),index:A,isScrolling:m?x:void 0,style:this._getItemStyle(A)}));var k=r(this.props,this._instanceProps);return s(v||y||"div",{className:n,onScroll:j,ref:this._outerRefSetter,style:to({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},s(a||c||"div",{children:M,ref:l,style:{height:w?"100%":k,pointerEvents:x?"none":void 0,width:w?k:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,l=i.scrollDirection,a=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(l,a,s)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=l(this.props,s,this._instanceProps),u=a(this.props,c,s,this._instanceProps),f=o&&"backward"!==i?1:Math.max(1,n),d=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-f),Math.max(0,Math.min(t-1,u+d)),c,u]},h}(c),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&void 0!==window.WeakSet&&(vo=new WeakSet,yo=new WeakSet);var mo=function(e,t){var n=e.children,r=e.direction,o=e.height,i=e.layout,l=e.innerTagName,a=e.outerTagName,s=e.width,c=t.instance;if("production"!==process.env.NODE_ENV){null==l&&null==a||yo&&!yo.has(c)&&(yo.add(c),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var u="horizontal"===r||"horizontal"===i;switch(r){case"horizontal":case"vertical":vo&&!vo.has(c)&&(vo.add(c),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". "'+r+'" was specified.')}switch(i){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". "'+i+'" was specified.')}if(null==n)throw Error('An invalid "children" prop has been specified. Value should be a React component. "'+(null===n?"null":typeof n)+'" was specified.');if(u&&"number"!=typeof s)throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. "'+(null===s?"null":typeof s)+'" was specified.');if(!u&&"number"!=typeof o)throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. "'+(null===o?"null":typeof o)+'" was specified.')}},bo=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var l=0;if(i>=0){var a=o[i];l=a.offset+a.size}for(var s=i+1;s<=t;s++){var c=r(s);o[s]={offset:l,size:c},l+=c}n.lastMeasuredIndex=t}return o[t]},xo=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),l=bo(e,i,t).offset;if(l===o)return i;l<o?r=i+1:l>o&&(n=i-1)}return r>0?r-1:0},wo=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&bo(e,n,t).offset<r;)n+=i,i*=2;return xo(e,t,Math.min(n,o-1),Math.floor(n/2),r)},jo=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,l=0;if(i>=n&&(i=n-1),i>=0){var a=r[i];l=a.offset+a.size}return l+(n-i-1)*o},_o=go({getItemOffset:function(e,t,n){return bo(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:jo,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var l=e.direction,a=e.height,s=e.layout,c=e.width,u="horizontal"===l||"horizontal"===s?c:a,f=bo(e,t,o),d=jo(e,o),h=Math.max(0,Math.min(d-u,f.offset)),p=Math.max(0,f.offset-u+f.size+i);switch("smart"===n&&(n=r>=p-u&&r<=h+u?"auto":"center"),n){case"start":return h;case"end":return p;case"center":return Math.round(p+(h-p)/2);default:return r>=p&&r<=h?r:r<p?p:h}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?xo(e,t,o,0,n):wo(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,l=e.itemCount,a=e.layout,s=e.width,c="horizontal"===o||"horizontal"===a?s:i,u=bo(e,t,r),f=n+c,d=u.offset+u.size,h=t;h<l-1&&d<f;)h++,d+=bo(e,h,r).size;return h},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){var t=e.itemSize;if("production"!==process.env.NODE_ENV&&"function"!=typeof t)throw Error('An invalid "itemSize" prop has been specified. Value should be a function. "'+(null===t?"null":typeof t)+'" was specified.')}});function So(e){const t=window.getComputedStyle(e),n=Number.parseFloat(t.lineHeight);let r=n;return Number.isNaN(n)&&(r=1.2*Number.parseFloat(t.fontSize)),Math.round(e.scrollHeight/r)}var Oo={};Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.calcSlices=Oo.applyPatch=Oo.calcPatch=No=Oo.lcs=Oo.diff=Oo.diff_core=void 0;class Mo{constructor(e){this.state=e,this.c=0,this.result={value:null,done:!1}}[Symbol.iterator](){return this}next(){const{state:e,result:t}=this;if(this.c>1)return t.done=!0,t.value=void 0,t;const n=function(e,t){const{b:n,eq:r,stack_base:o}=e;let{i:i,N:l,j:a,M:s,Z:c,stack_top:u}=e;for(;;)switch(t){case 0:e:for(;l>0&&s>0;){n.fill(0,0,2*c);const e=l-s,t=l+s,f=1&t,d=i+l-1,h=a+s-1,p=(t+f)/2;let v;t:for(let t=0;t<=p;t++){const p=2*Math.max(0,t-s)-t,y=t-2*Math.max(0,t-l);for(let d=p;d<=y;d+=2){const h=n[d-1-c*Math.floor((d-1)/c)],p=n[d+1-c*Math.floor((d+1)/c)],y=d===-t||d!==t&&h<p?p:h+1,g=y-d;let m=y,b=g;for(;m<l&&b<s&&r(i+m,a+b);)m++,b++;if(n[d-c*Math.floor(d/c)]=m,1===f&&(v=e-d)>=1-t&&v<t&&m+n[c+v-c*Math.floor(v/c)]>=l){if(t>1||m!==y){o[u++]=i+m,o[u++]=l-m,o[u++]=a+b,o[u++]=s-b,l=y,s=g,c=2*(Math.min(l,s)+1);continue e}break t}}for(let g=p;g<=y;g+=2){const p=n[c+g-1-c*Math.floor((g-1)/c)],y=n[c+g+1-c*Math.floor((g+1)/c)],m=g===-t||g!==t&&p<y?y:p+1,b=m-g;let x=m,w=b;for(;x<l&&w<s&&r(d-x,h-w);)x++,w++;if(n[c+g-c*Math.floor(g/c)]=x,0===f&&(v=e-g)>=-t&&v<=t&&x+n[v-c*Math.floor(v/c)]>=l){if(t>0||x!==m){o[u++]=i+l-m,o[u++]=m,o[u++]=a+s-b,o[u++]=b,l-=x,s-=w,c=2*(Math.min(l,s)+1);continue e}break t}}}if(l!==s){s>l?(i+=l,a+=l,s-=l,l=0):(i+=s,a+=s,l-=s,s=0);break}}if(l+s!==0)if(e.pxe===i||e.pye===a)e.pxe=i+l,e.pye=a+s;else{const t=e.pxs;if(e.oxs=e.pxs,e.oxe=e.pxe,e.oys=e.pys,e.oye=e.pye,e.pxs=i,e.pxe=i+l,e.pys=a,e.pye=a+s,t>=0)return e.i=i,e.N=l,e.j=a,e.M=s,e.Z=c,e.stack_top=u,1}case 1:if(0===u)return 2;s=o[--u],a=o[--u],l=o[--u],i=o[--u],c=2*(Math.min(l,s)+1),t=0}}(e,this.c);return this.c=n,1===n?(t.value=[e.oxs,e.oxe,e.oys,e.oye],t):e.pxs>=0?(t.value=[e.pxs,e.pxe,e.pys,e.pye],t):(t.done=!0,t.value=void 0,t)}}function Ao(e,t,n,r,o){const i=2*(Math.min(t,r)+1),l=t+r,a=new(l<256?Uint8Array:l<65536?Uint16Array:Uint32Array)(2*i);return new Mo({i:e,N:t,j:n,M:r,Z:i,b:a,eq:o,pxs:-1,pxe:-1,pys:-1,pye:-1,oxs:-1,oxe:-1,oys:-1,oye:-1,stack_top:0,stack_base:[]})}function ko(e,t,n){let[r,o,i]=[0,e.length,t.length];if("function"==typeof n){for(;r<o&&r<i&&n(r,r);)r++;if(r===o&&r===i)return[][Symbol.iterator]();for(;n(--o,--i)&&o>r&&i>r;);}else{for(;r<o&&r<i&&e[r]===t[r];)r++;if(r===o&&r===i)return[][Symbol.iterator]();for(;e[--o]===t[--i]&&o>r&&i>r;);n=(n,r)=>e[n]===t[r]}return Ao(r,o+1-r,r,i+1-r,n)}Oo.diff_core=Ao,Oo.diff=ko;class Io{constructor(e,t){this.diff=e,this.N=t,this.i=0,this.j=0}[Symbol.iterator](){return this}next(){const e=this.diff.next();if(e.done){const{i:t,j:n,N:r}=this;return t<r&&(e.done=!1,e.value=[t,n,r-t],this.i=r),e}const t=e.value,n=t[0],r=t[1],o=t[3],{i:i,j:l}=this;return i!==n&&(t.length--,t[0]=i,t[1]=l,t[2]=n-i),this.i=r,this.j=o,e}}var No=Oo.lcs=function(e,t,n){return new Io(ko(e,t,n),e.length)};function Eo(e,t){const n=[];let r=0;for(const o of e)n.push(r),r+=o.length+t;return n.push(r-t),n}function Co(e){return e.filter((e=>e.end>e.start))}function qo(e,t,n){if(!e)return[{token:"plain",start:n,end:t.length+n}];if("undefined"===t||"Infinity"===t||"-Infinity"===t||"NaN"===t||/^\d+n$/i.test(t)||t.startsWith("Symbol(")||t.startsWith("function")||t.startsWith("("))return[{token:"invalid",start:n,end:t.length+n}];if(!Number.isNaN(Number(t)))return[{token:"number",start:n,end:t.length+n}];if("true"===t||"false"===t)return[{token:"boolean",start:n,end:t.length+n}];if("null"===t)return[{token:"null",start:n,end:t.length+n}];if(t.startsWith('"')){if(t.endsWith(": [")||t.endsWith(": {"))return[{token:"key",start:n,end:t.length-3+n},{token:"punctuation",start:t.length-3,end:t.length-2+n},{token:"plain",start:t.length-2,end:t.length-1+n},{token:"punctuation",start:t.length-1,end:t.length+n}];let r=1;for(;r<t.length&&'"'!==t[r];)"\\"===t[r]&&++r,++r;return r===t.length-1?[{token:"string",start:n,end:t.length+n}]:[{token:"key",start:n,end:r+1+n},{token:"punctuation",start:r+1,end:r+2+n},{token:"plain",start:r+2,end:r+3+n},...qo(e,t.substring(r+3),n+r+3)]}return"{"===t||"}"===t||"["===t||"]"===t?[{token:"punctuation",start:n,end:t.length+n}]:[{token:"plain",start:n,end:t.length+n}]}function Do({index:r,style:o,data:l}){const{onExpand:a,inlineDiffOptions:s,leftDiff:c,rightDiff:u}=l,f=c[r],d=u[r];if(Hr(f)||Hr(d)){const n=c[r],l=i((e=>{Hr(e)&&a(e.segmentIndex)}),[a]);return t("div",{className:"grid-row collapsed-button",style:{...o,display:"grid",gridTemplateColumns:"30px 1fr 30px 1fr"},role:"row","data-index":r,children:[e("div",{className:"cell line-number"}),e("div",{className:"cell",children:e("span",{className:"expand-button-container",children:e("button",{onClick:()=>l(n),className:"text-blue-500 underline",children:"Show Hidden Lines"})})}),e("div",{className:"cell line-number"}),e("div",{className:"cell",children:e("span",{className:"expand-button-container",children:e("button",{onClick:()=>l(n),className:"text-blue-500 underline",children:"Show Hidden Lines"})})})]})}const[h,p]="modify"===f.type&&"modify"===d.type?function(e,t,n){let r=[],o=[],i=0,l=0;if("word"===n.mode){const a=n.wordSeparator||" ",s=e.split(a),c=t.split(a),u=[...No(s,c)],f=a.length,d=Eo(s,f),h=Eo(c,f);for(const[e,t,n]of u)e>i&&r.push({type:"remove",start:d[i],end:d[e]}),t>l&&o.push({type:"add",start:h[l],end:h[t]}),i=e+n,l=t+n,r.push({start:d[e],end:d[i]}),o.push({start:h[t],end:h[l]});return e.length>i&&r.push({type:"remove",start:d[i],end:e.length}),t.length>l&&o.push({type:"add",start:h[l],end:t.length}),r=Co(r),o=Co(o),[r,o]}const a=No(e,t);for(const[e,t,n]of a)e>i&&r.push({type:"remove",start:i,end:e}),t>l&&o.push({type:"add",start:l,end:t}),i=e+n,l=t+n,r.push({start:e,end:i}),o.push({start:t,end:l});return e.length>i&&r.push({type:"remove",start:i,end:e.length}),t.length>l&&o.push({type:"add",start:l,end:t.length}),r=Co(r),o=Co(o),[r,o]}(f.text,d.text,s??{mode:"char"}):[[],[]],v=qo(!0,f.text,0),y=qo(!0,d.text,0),g=Gr(v,h),m=Gr(y,p),b=(r,o,i)=>t(n,{children:[o.map(((t,n)=>{const o=r.slice(t.start,t.end),i=[t.type?`inline-diff-${t.type}`:"",t.token?`token ${t.token}`:""].filter(Boolean).join(" ");return e("span",{className:i,children:o},`${n}-${t.type}-${o}`)})),i&&e("span",{className:"token punctuation",children:","})]});return t("div",{className:"grid-row",style:{...o,display:"grid",gridTemplateColumns:"30px 1fr 30px 1fr"},role:"row","data-index":r,children:[e("div",{className:`cell line-${f.type} line-number`,role:"cell",children:f.lineNumber}),e("div",{className:`cell line-${f.type} ${Ur(f)}`,role:"cell",children:t("pre",{children:[f.text&&" ".repeat(5*f.level),b(f.text,g,f.comma)]})}),e("div",{className:`cell line-${d.type} line-number`,role:"cell",children:d.lineNumber}),e("div",{className:`cell line-${d.type} ${Ur(d)}`,role:"cell",children:t("pre",{children:[d.text&&" ".repeat(5*d.level),b(d.text,m,d.comma)]})})]})}Oo.calcPatch=function*(e,t,n){const r=ArrayBuffer.isView(e)?Uint8Array.prototype.subarray:e.slice;for(const o of ko(e,t,n))o[2]=r.call(t,o[2],o[3]),yield o},Oo.applyPatch=function*(e,t){let n=0;const r=ArrayBuffer.isView(e)?Uint8Array.prototype.subarray:e.slice;for(const[o,i,l]of t)n<o&&(yield r.call(e,n,o)),l.length>0&&(yield l),n=i;n<e.length&&(yield r.call(e,n))},Oo.calcSlices=function*(e,t,n){let r=0;const o=ArrayBuffer.isView(e)?Uint8Array.prototype.subarray:e.slice;for(const[i,l,a,s]of ko(e,t,n))r<i&&(yield[0,o.call(e,r,i)]),i<l&&(yield[-1,o.call(e,i,l)]),a<s&&(yield[1,o.call(t,a,s)]),r=l;r<e.length&&(yield[0,e.slice(r)])};const Ro=({leftDiff:t,rightDiff:n,listRef:o,height:s,inlineDiffOptions:c,className:f,setScrollTop:d,onExpand:h,overScanCount:p=10,viewerRef:v,listContainerRef:y})=>{const g=a((()=>({leftDiff:t,rightDiff:n,onExpand:h,inlineDiffOptions:c})),[t,n,h,c]),m=["json-diff-viewer","json-diff-viewer-theme-custom",f].filter(Boolean).join(" "),b=a((()=>Fr()),[]),x=function(e,t){const[n,o]=r([]),l=i((()=>{if(!t?.current)return;const e=t.current.querySelectorAll("pre"),n=[];for(let t=0;t<e.length;t+=2){const r=So(e[t]),o=So(e[t+1]);n.push(Math.max(r,o))}o(n)}),[t]);return u((()=>{l()}),[e,l]),u((()=>(window.addEventListener("resize",l),()=>window.removeEventListener("resize",l))),[l]),n}(t,v),w=i((e=>Hr(t[e])?20:(x[e]??1)*b),[t,x]);return l((()=>{o.current?.resetAfterIndex(0,!0)}),[x]),e("div",{className:m,ref:v,children:e(_o,{height:s,width:"100%",style:{alignItems:"start"},outerRef:y,ref:o,className:"virtual-json-diff-list-container",itemCount:Math.max(t.length,n.length),itemSize:w,overscanCount:p,itemData:g,onScroll:({scrollOffset:e})=>d(e),children:Do})})},Bo=({oldValue:n,newValue:s,height:c,searchTerm:u,leftTitle:f,rightTitle:d,hideSearch:h,customDiffer:p,getDiffData:v,showSingleMinimap:y,onSearchMatch:g,differOptions:m,className:b,miniMapWidth:x,inlineDiffOptions:w,overScanCount:j})=>{const _=o(null),S=o(),O=o(),M=o(null),A=o(null),k=p??a((()=>new Wr({detectCircular:!0,maxDepth:20,showModifications:!0,arrayDiffMethod:"lcs",preserveKeyOrder:"before",...m})),[m]),I=a((()=>n&&s?k.diff(n,s):[[],[]]),[n,s,k]),[N,E]=r(0),[C,q]=r([]),[D,R]=I,[B,z]=r([]),[$,T]=r([]);l((()=>{const e=function(e,t=3){if(!Array.isArray(e))throw new TypeError("Diff input must be an array");const n=[];let r=0;if(r<e.length&&Jr(e[r])){let o=Math.min(r+t,e.length);for(;o<e.length&&Jr(e[o]);)o++;n.push({start:r,end:o,isEqual:!0}),r=o}for(;r<e.length;)if(Jr(e[r])){let t=r;for(;t<e.length&&Jr(e[t]);)t++;n.push({start:r,end:t,isEqual:!0}),r=t}else{const o=Math.max(0,r-t),i=Math.min(e.length,r+1+t);o<r&&(0===n.length||n[n.length-1].end<=o)&&n.push({start:o,end:r,isEqual:!0}),n.push({start:r,end:r+1,isEqual:!1}),r+1<i&&n.push({start:r+1,end:i,isEqual:!0}),r=i}return n}(D);q(e)}),[D]);const{searchState:L,handleSearch:P,navigateMatch:W}=Vr(B,u,(e=>{_.current?.scrollToItem(e,"center"),g?.(e)}),M,A),F=i((e=>q((t=>function(e,t){const n=[...e],r=n[t];return r?.isEqual?(n[t]={...r,isExpanded:!0,originalStart:r.start,originalEnd:r.end,start:r.start,end:r.end},n):e}(t,e)))),[]),H=i((()=>q((e=>function(e){return e.map((e=>e.isEqual&&e.isExpanded?{...e,isExpanded:!1,start:e.originalStart??e.start,end:e.originalEnd??e.end}:e))}(e)))),[]),U=a((()=>function(e){return e.some((e=>e.isEqual&&e.isExpanded))}(C)),[C]),K={leftDiff:B,rightDiff:$,height:c,miniMapWidth:x,currentScrollTop:N,searchResults:L.results,currentMatchIndex:L.currentIndex,onScroll:e=>_.current?.scrollTo(e)};return l((()=>{const e=Yr(C,D),t=Yr(C,R);z(e),T(t)}),[C,D,R]),l((()=>{S.current=v}),[v]),l((()=>{if(!S.current)return;const e=[D,R],t=function(e){let t=5381;for(const n of e)for(const e of n){const n=e.text;for(let e=0;e<n.length;e++)t=(t<<5)+t+n.charCodeAt(e);const r=e.type;for(let e=0;e<r.length;e++)t=(t<<5)+t+r.charCodeAt(e)}return t>>>0}(e);O.current!==t&&(O.current=t,S.current(e))}),[D,R]),t("div",{className:"diff-viewer-container"+(b?` ${b}`:""),children:[t("div",{className:"json-diff-header",children:[e(eo,{handleSearch:P,navigateMatch:W,searchState:L,hideSearch:h}),t("div",{className:"json-diff-title-container",children:[e("div",{children:e("span",{children:f})}),e("div",{children:e("span",{children:d})})]})]}),t("div",{style:{display:"flex",gap:"8px",position:"relative"},children:[e(Ro,{listRef:_,leftDiff:B,rightDiff:$,height:c,overScanCount:j,setScrollTop:E,onExpand:F,className:"virtual-json-diff-list-container",inlineDiffOptions:w,viewerRef:M,listContainerRef:A}),t("div",{className:"minimap-overlay",children:[e("div",{className:"half left-map-holder",children:!y&&e(Qr,{...K})}),e("div",{className:"half right-map-holder",children:e(Qr,{...K})})]})]}),U&&e("div",{className:"hide-all-button",children:e("button",{onClick:H,children:"Hide All Expanded Lines"})})]})};export{Wr as Differ,Bo as VirtualDiffViewer};
2
2
  //# sourceMappingURL=index.js.map