@nuxt/devtools 1.0.0-beta.1 → 1.0.0-beta.2

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.
Files changed (100) hide show
  1. package/dist/chunks/module-main.mjs +12 -2
  2. package/dist/client/200.html +24 -24
  3. package/dist/client/404.html +24 -24
  4. package/dist/client/__blank/index.html +42 -0
  5. package/dist/client/_nuxt/{CodeDiff.vue.09a831fc.js → CodeDiff.vue.b74b0167.js} +1 -1
  6. package/dist/client/_nuxt/{ComposableItem.vue.770ce9d1.js → ComposableItem.vue.66a98e20.js} +1 -1
  7. package/dist/client/_nuxt/{DataSchemaButton.vue.65a9244c.js → DataSchemaButton.vue.b30dcd6f.js} +1 -1
  8. package/dist/client/_nuxt/{DataSchemaDrawer.939e0d36.js → DataSchemaDrawer.d00941d6.js} +1 -1
  9. package/dist/client/_nuxt/{DurationDisplay.vue.3abddd08.js → DurationDisplay.vue.5b7cc04d.js} +1 -1
  10. package/dist/client/_nuxt/{FilepathItem.vue.66158bcd.js → FilepathItem.vue.6dd69314.js} +1 -1
  11. package/dist/client/_nuxt/{HelpFab.vue.074157ff.js → HelpFab.vue.314bc83b.js} +1 -1
  12. package/dist/client/_nuxt/{LaunchPage.vue.20d8d836.js → LaunchPage.vue.017c62ce.js} +1 -1
  13. package/dist/client/_nuxt/{NBadge.532c6829.js → NBadge.e849763e.js} +1 -1
  14. package/dist/client/_nuxt/{NCheckbox.vue.83a6e70e.js → NCheckbox.vue.cf7e1e9d.js} +1 -1
  15. package/dist/client/_nuxt/{NCodeBlock.vue.d4a74ca4.js → NCodeBlock.vue.882d562f.js} +1 -1
  16. package/dist/client/_nuxt/{NDrawer.vue.f03c3dec.js → NDrawer.vue.a4010d93.js} +1 -1
  17. package/dist/client/_nuxt/{NDropdown.vue.885f70c3.js → NDropdown.vue.3b1768f5.js} +1 -1
  18. package/dist/client/_nuxt/{NIconTitle.vue.5caf9fc5.js → NIconTitle.vue.71113a3f.js} +1 -1
  19. package/dist/client/_nuxt/{NLink.vue.c05eef3c.js → NLink.vue.a09685db.js} +1 -1
  20. package/dist/client/_nuxt/{NMarkdown.vue.52b3ce56.js → NMarkdown.vue.13c5f0c3.js} +1 -1
  21. package/dist/client/_nuxt/NNavbar.vue.d9a029e0.js +1 -0
  22. package/dist/client/_nuxt/{NSectionBlock.43816001.js → NSectionBlock.7f41e147.js} +1 -1
  23. package/dist/client/_nuxt/{NSelect.vue.dcac9c73.js → NSelect.vue.e7f8c81a.js} +1 -1
  24. package/dist/client/_nuxt/{NSelectTabs.vue.411a7347.js → NSelectTabs.vue.ddc009ff.js} +1 -1
  25. package/dist/client/_nuxt/{NSwitch.vue.aacb5de3.js → NSwitch.vue.8d3010b0.js} +1 -1
  26. package/dist/client/_nuxt/{NTip.vue.7a94f00d.js → NTip.vue.3f5fb5a1.js} +1 -1
  27. package/dist/client/_nuxt/{StateEditor.vue.e862f0c1.js → StateEditor.vue.162475d5.js} +1 -1
  28. package/dist/client/_nuxt/__blank.f49c5a73.js +1 -0
  29. package/dist/client/_nuxt/{analyze-build.2cdd206f.js → analyze-build.988e7c9e.js} +1 -1
  30. package/dist/client/_nuxt/assets.2b649247.js +16 -0
  31. package/dist/client/_nuxt/{client.ab169146.js → client.253674ec.js} +1 -1
  32. package/dist/client/_nuxt/{components.81bb7f4d.js → components.7583b49c.js} +1 -1
  33. package/dist/client/_nuxt/{constants.4e5eba24.js → constants.2cc6e981.js} +1 -1
  34. package/dist/client/_nuxt/{css.a67813b3.js → css.f61fd02b.js} +3 -3
  35. package/dist/client/_nuxt/custom-_name_.0e141ac3.js +1 -0
  36. package/dist/client/_nuxt/{default.de670135.js → default.a50dad07.js} +1 -1
  37. package/dist/client/_nuxt/entry.3dd66f35.js +27 -0
  38. package/dist/client/_nuxt/{entry.ebd8706b.css → entry.960c025a.css} +1 -1
  39. package/dist/client/_nuxt/{error-404.b43ed6fa.js → error-404.429edf81.js} +1 -1
  40. package/dist/client/_nuxt/{error-500.9a32d319.js → error-500.9e83b20b.js} +1 -1
  41. package/dist/client/_nuxt/{full.44b6f3d9.js → full.c90b8ab9.js} +1 -1
  42. package/dist/client/_nuxt/{hooks.85310903.js → hooks.40588927.js} +1 -1
  43. package/dist/client/_nuxt/{html.af01869e.js → html.14085b69.js} +1 -1
  44. package/dist/client/_nuxt/{imports.3e92b5b9.js → imports.7b590e48.js} +1 -1
  45. package/dist/client/_nuxt/{index.370f8c55.js → index.8013a14e.js} +1 -1
  46. package/dist/client/_nuxt/{index.780a9ee0.js → index.90ae56cb.js} +1 -1
  47. package/dist/client/_nuxt/{json-editor-vue.724e0801.js → json-editor-vue.465dc720.js} +2 -2
  48. package/dist/client/_nuxt/{middleware.44a34c7b.js → middleware.72aa446e.js} +1 -1
  49. package/dist/client/_nuxt/{modules.24081f84.js → modules.d997669f.js} +1 -1
  50. package/dist/client/_nuxt/{none.06949a5f.js → none.ab2b300f.js} +1 -1
  51. package/dist/client/_nuxt/open-graph.1cc10683.js +3 -0
  52. package/dist/client/_nuxt/{overview.86a88207.js → overview.014aea35.js} +1 -1
  53. package/dist/client/_nuxt/pages.7f7e1a57.js +1 -0
  54. package/dist/client/_nuxt/{payload.1baa204b.js → payload.58a8bb6b.js} +1 -1
  55. package/dist/client/_nuxt/{plugins.f261769b.js → plugins.1f073986.js} +1 -1
  56. package/dist/client/_nuxt/{runtime-configs.a5615107.js → runtime-configs.6d4dd513.js} +1 -1
  57. package/dist/client/_nuxt/{server-routes.2022f4ba.js → server-routes.b5fc14db.js} +1 -1
  58. package/dist/client/_nuxt/{settings.ab7b45b3.js → settings.04d1166d.js} +1 -1
  59. package/dist/client/_nuxt/shellscript.e25d1410.js +4 -0
  60. package/dist/client/_nuxt/{state-components.1d5849c5.js → state-components.c2be3414.js} +1 -1
  61. package/dist/client/_nuxt/{state-modules.78318316.js → state-modules.5bf4563c.js} +1 -1
  62. package/dist/client/_nuxt/{storage-options.8ca9ecbc.js → storage-options.2224e06b.js} +1 -1
  63. package/dist/client/_nuxt/{storage.cb6d643c.js → storage.8cd70b69.js} +1 -1
  64. package/dist/client/_nuxt/{terminals.06dde221.js → terminals.ce3bbf0e.js} +1 -1
  65. package/dist/client/_nuxt/{timeline.5add59be.js → timeline.23647b38.js} +1 -1
  66. package/dist/client/_nuxt/{unocss-runtime.1dfe0ac4.js → unocss-runtime.41db0d67.js} +1 -1
  67. package/dist/client/_nuxt/{virtual-files.804fdba7.js → virtual-files.bc5e9072.js} +1 -1
  68. package/dist/client/_nuxt/{vitesse-dark.ab479e3d.js → vitesse-dark.ff0e7dcb.js} +1 -1
  69. package/dist/client/_nuxt/{vitesse-light.696edcfd.js → vitesse-light.c6996724.js} +1 -1
  70. package/dist/client/_nuxt/{vue-html.0806679f.js → vue-html.88dda4a8.js} +1 -1
  71. package/dist/client/_nuxt/{vue.24311fdc.js → vue.7ad3b25a.js} +3 -3
  72. package/dist/client/index.html +24 -24
  73. package/dist/client/modules/analyze-build/index.html +24 -24
  74. package/dist/client/modules/assets/index.html +24 -24
  75. package/dist/client/modules/components/index.html +24 -24
  76. package/dist/client/modules/hooks/index.html +24 -24
  77. package/dist/client/modules/imports/index.html +24 -24
  78. package/dist/client/modules/middleware/index.html +24 -24
  79. package/dist/client/modules/modules/index.html +24 -24
  80. package/dist/client/modules/open-graph/index.html +24 -24
  81. package/dist/client/modules/overview/index.html +24 -24
  82. package/dist/client/modules/pages/index.html +24 -24
  83. package/dist/client/modules/payload/index.html +24 -24
  84. package/dist/client/modules/plugins/index.html +24 -24
  85. package/dist/client/modules/runtime-configs/index.html +24 -24
  86. package/dist/client/modules/server-routes/index.html +24 -24
  87. package/dist/client/modules/storage/index.html +24 -24
  88. package/dist/client/modules/terminals/index.html +24 -24
  89. package/dist/client/modules/timeline/index.html +24 -24
  90. package/dist/client/modules/virtual-files/index.html +24 -24
  91. package/dist/client/settings/index.html +24 -24
  92. package/dist/module.json +1 -1
  93. package/package.json +8 -8
  94. package/dist/client/_nuxt/NNavbar.vue.0f176f87.js +0 -1
  95. package/dist/client/_nuxt/assets.41fcf77e.js +0 -16
  96. package/dist/client/_nuxt/custom-_name_.3060f125.js +0 -1
  97. package/dist/client/_nuxt/entry.9effa704.js +0 -27
  98. package/dist/client/_nuxt/open-graph.6cf823d3.js +0 -3
  99. package/dist/client/_nuxt/pages.23eb0566.js +0 -1
  100. package/dist/client/_nuxt/shellscript.9d056341.js +0 -4
@@ -1,4 +1,4 @@
1
- import{d as wR,bf as xR,r as $p,ax as kR,ak as jR,w as Kf,f as $R,bA as SR}from"./entry.9effa704.js";var Sp,tw,ew,nw,rw,ow,iw,aw,sw,uw,cw,lw,fw,dw,hw,vw,pw,mw,gw,yw,bw,ww,xw,kw,jw,$w,Sw,Cw,_w,Ow,Mw,Ew,Aw,Pw,Tw,Rw,Nw,Iw,Dw,zw,Lw,Bw,qw,Fw,Vw,Hw,Ww,Uw,Jw,Kw,Gw,Qw,Yw,Xw,Zw,t2,e2,n2,r2,o2,i2,a2,s2,u2,c2,l2,f2,d2,h2,v2,p2,m2,g2,y2,b2,w2,x2,k2,j2,$2,S2,C2,_2,O2,M2,E2,A2,P2,T2,R2,N2,I2,D2,z2,L2,B2,q2,F2,V2,H2,W2,U2,J2,K2,G2,Q2,Y2,X2,Z2,tx,ex,nx,rx,ox,ix,ax,sx,ux,cx,lx,fx,dx,hx,vx,px,mx,gx,yx,bx,wx,xx,kx,jx,$x,Sx,Cx,_x,Ox,Mx,Ex,Ax,Px,Tx,Rx,Nx,Ix,Dx,zx,Lx,Bx,qx,Fx,Vx,Hx,Wx,Ux,Jx,Kx,Gx,Qx,Yx,Xx,Zx,tk,ek,nk,rk,ok,ik,ak,sk,uk,ck,lk,fk,dk,hk,vk,pk,mk,gk,yk,bk,wk,xk,kk,jk,$k,Sk,Ck,_k,Ok,Mk,Ek,Ak,Pk,Tk,Rk,Nk,Ik,Dk,zk,Lk,Bk,qk,Fk,Vk,Hk,Wk,Uk,Jk,Kk,Gk,Qk,Yk,Xk,Zk,tj,ej,nj,rj,oj,ij,aj,sj,uj,cj,lj,fj,dj,hj,vj,pj,mj,gj,yj,bj,wj,xj,kj,jj,$j,Sj,Cj,_j,Oj,Mj,Ej,Aj,Pj,Tj,Rj,Nj,Ij,Dj,zj,Lj,Bj,qj,Fj,Vj,Hj,Wj,Uj,Jj,Kj,Gj,Qj,Yj,Xj,Zj,t3,e3,n3,r3,o3,i3,a3,s3,u3,c3,l3,f3,CR=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],_R=["mainAxis","crossAxis","limiter"];function nt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function dn(){return dn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(i,a){for(;!Object.prototype.hasOwnProperty.call(i,a)&&(i=en(i))!==null;);return i}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},dn.apply(this,arguments)}function mO(e,t){if(e==null)return{};var n,r,o=function(a,s){if(a==null)return{};var u,c,l={},f=Object.keys(a);for(c=0;c<f.length;c++)u=f[c],s.indexOf(u)>=0||(l[u]=a[u]);return l}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function st(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_v(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1
+ import{d as wR,bf as xR,r as $p,ax as kR,ak as jR,w as Kf,f as $R,bA as SR}from"./entry.3dd66f35.js";var Sp,tw,ew,nw,rw,ow,iw,aw,sw,uw,cw,lw,fw,dw,hw,vw,pw,mw,gw,yw,bw,ww,xw,kw,jw,$w,Sw,Cw,_w,Ow,Mw,Ew,Aw,Pw,Tw,Rw,Nw,Iw,Dw,zw,Lw,Bw,qw,Fw,Vw,Hw,Ww,Uw,Jw,Kw,Gw,Qw,Yw,Xw,Zw,t2,e2,n2,r2,o2,i2,a2,s2,u2,c2,l2,f2,d2,h2,v2,p2,m2,g2,y2,b2,w2,x2,k2,j2,$2,S2,C2,_2,O2,M2,E2,A2,P2,T2,R2,N2,I2,D2,z2,L2,B2,q2,F2,V2,H2,W2,U2,J2,K2,G2,Q2,Y2,X2,Z2,tx,ex,nx,rx,ox,ix,ax,sx,ux,cx,lx,fx,dx,hx,vx,px,mx,gx,yx,bx,wx,xx,kx,jx,$x,Sx,Cx,_x,Ox,Mx,Ex,Ax,Px,Tx,Rx,Nx,Ix,Dx,zx,Lx,Bx,qx,Fx,Vx,Hx,Wx,Ux,Jx,Kx,Gx,Qx,Yx,Xx,Zx,tk,ek,nk,rk,ok,ik,ak,sk,uk,ck,lk,fk,dk,hk,vk,pk,mk,gk,yk,bk,wk,xk,kk,jk,$k,Sk,Ck,_k,Ok,Mk,Ek,Ak,Pk,Tk,Rk,Nk,Ik,Dk,zk,Lk,Bk,qk,Fk,Vk,Hk,Wk,Uk,Jk,Kk,Gk,Qk,Yk,Xk,Zk,tj,ej,nj,rj,oj,ij,aj,sj,uj,cj,lj,fj,dj,hj,vj,pj,mj,gj,yj,bj,wj,xj,kj,jj,$j,Sj,Cj,_j,Oj,Mj,Ej,Aj,Pj,Tj,Rj,Nj,Ij,Dj,zj,Lj,Bj,qj,Fj,Vj,Hj,Wj,Uj,Jj,Kj,Gj,Qj,Yj,Xj,Zj,t3,e3,n3,r3,o3,i3,a3,s3,u3,c3,l3,f3,CR=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],_R=["mainAxis","crossAxis","limiter"];function nt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function dn(){return dn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(i,a){for(;!Object.prototype.hasOwnProperty.call(i,a)&&(i=en(i))!==null;);return i}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},dn.apply(this,arguments)}function mO(e,t){if(e==null)return{};var n,r,o=function(a,s){if(a==null)return{};var u,c,l={},f=Object.keys(a);for(c=0;c<f.length;c++)u=f[c],s.indexOf(u)>=0||(l[u]=a[u]);return l}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function st(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_v(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return a=u.done,u},e:function(u){s=!0,i=u},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function Lt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Lt=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(V,C,P){V[C]=P.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(V,C,P){return Object.defineProperty(V,C,{value:P,enumerable:!0,configurable:!0,writable:!0}),V[C]}try{c({},"")}catch{c=function(C,P,$){return C[P]=$}}function l(V,C,P,$){var S=C&&C.prototype instanceof g?C:g,O=Object.create(S.prototype),I=new D($||[]);return o(O,"_invoke",{value:A(V,P,I)}),O}function f(V,C,P){try{return{type:"normal",arg:V.call(C,P)}}catch($){return{type:"throw",arg:$}}}t.wrap=l;var d="suspendedStart",h="suspendedYield",v="executing",p="completed",m={};function g(){}function y(){}function b(){}var w={};c(w,a,function(){return this});var x=Object.getPrototypeOf,k=x&&x(x(F([])));k&&k!==n&&r.call(k,a)&&(w=k);var E=b.prototype=g.prototype=Object.create(w);function R(V){["next","throw","return"].forEach(function(C){c(V,C,function(P){return this._invoke(C,P)})})}function z(V,C){function P(S,O,I,M){var L=f(V[S],V,O);if(L.type!=="throw"){var T=L.arg,ut=T.value;return ut&&re(ut)=="object"&&r.call(ut,"__await")?C.resolve(ut.__await).then(function(lt){P("next",lt,I,M)},function(lt){P("throw",lt,I,M)}):C.resolve(ut).then(function(lt){T.value=lt,I(T)},function(lt){return P("throw",lt,I,M)})}M(L.arg)}var $;o(this,"_invoke",{value:function(S,O){function I(){return new C(function(M,L){P(S,O,M,L)})}return $=$?$.then(I,I):I()}})}function A(V,C,P){var $=d;return function(S,O){if($===v)throw new Error("Generator is already running");if($===p){if(S==="throw")throw O;return{value:e,done:!0}}for(P.method=S,P.arg=O;;){var I=P.delegate;if(I){var M=_(I,P);if(M){if(M===m)continue;return M}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if($===d)throw $=p,P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);$=v;var L=f(V,C,P);if(L.type==="normal"){if($=P.done?p:h,L.arg===m)continue;return{value:L.arg,done:P.done}}L.type==="throw"&&($=p,P.method="throw",P.arg=L.arg)}}}function _(V,C){var P=C.method,$=V.iterator[P];if($===e)return C.delegate=null,P==="throw"&&V.iterator.return&&(C.method="return",C.arg=e,_(V,C),C.method==="throw")||P!=="return"&&(C.method="throw",C.arg=new TypeError("The iterator does not provide a '"+P+"' method")),m;var S=f($,V.iterator,C.arg);if(S.type==="throw")return C.method="throw",C.arg=S.arg,C.delegate=null,m;var O=S.arg;return O?O.done?(C[V.resultName]=O.value,C.next=V.nextLoc,C.method!=="return"&&(C.method="next",C.arg=e),C.delegate=null,m):O:(C.method="throw",C.arg=new TypeError("iterator result is not an object"),C.delegate=null,m)}function U(V){var C={tryLoc:V[0]};1 in V&&(C.catchLoc=V[1]),2 in V&&(C.finallyLoc=V[2],C.afterLoc=V[3]),this.tryEntries.push(C)}function J(V){var C=V.completion||{};C.type="normal",delete C.arg,V.completion=C}function D(V){this.tryEntries=[{tryLoc:"root"}],V.forEach(U,this),this.reset(!0)}function F(V){if(V||V===""){var C=V[a];if(C)return C.call(V);if(typeof V.next=="function")return V;if(!isNaN(V.length)){var P=-1,$=function S(){for(;++P<V.length;)if(r.call(V,P))return S.value=V[P],S.done=!1,S;return S.value=e,S.done=!0,S};return $.next=$}}throw new TypeError(re(V)+" is not iterable")}return y.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(V){var C=typeof V=="function"&&V.constructor;return!!C&&(C===y||(C.displayName||C.name)==="GeneratorFunction")},t.mark=function(V){return Object.setPrototypeOf?Object.setPrototypeOf(V,b):(V.__proto__=b,c(V,u,"GeneratorFunction")),V.prototype=Object.create(E),V},t.awrap=function(V){return{__await:V}},R(z.prototype),c(z.prototype,s,function(){return this}),t.AsyncIterator=z,t.async=function(V,C,P,$,S){S===void 0&&(S=Promise);var O=new z(l(V,C,P,$),S);return t.isGeneratorFunction(C)?O:O.next().then(function(I){return I.done?I.value:O.next()})},R(E),c(E,u,"Generator"),c(E,a,function(){return this}),c(E,"toString",function(){return"[object Generator]"}),t.keys=function(V){var C=Object(V),P=[];for(var $ in C)P.push($);return P.reverse(),function S(){for(;P.length;){var O=P.pop();if(O in C)return S.value=O,S.done=!1,S}return S.done=!0,S}},t.values=F,D.prototype={constructor:D,reset:function(V){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(J),!V)for(var C in this)C.charAt(0)==="t"&&r.call(this,C)&&!isNaN(+C.slice(1))&&(this[C]=e)},stop:function(){this.done=!0;var V=this.tryEntries[0].completion;if(V.type==="throw")throw V.arg;return this.rval},dispatchException:function(V){if(this.done)throw V;var C=this;function P(L,T){return O.type="throw",O.arg=V,C.next=L,T&&(C.method="next",C.arg=e),!!T}for(var $=this.tryEntries.length-1;$>=0;--$){var S=this.tryEntries[$],O=S.completion;if(S.tryLoc==="root")return P("end");if(S.tryLoc<=this.prev){var I=r.call(S,"catchLoc"),M=r.call(S,"finallyLoc");if(I&&M){if(this.prev<S.catchLoc)return P(S.catchLoc,!0);if(this.prev<S.finallyLoc)return P(S.finallyLoc)}else if(I){if(this.prev<S.catchLoc)return P(S.catchLoc,!0)}else{if(!M)throw new Error("try statement without catch or finally");if(this.prev<S.finallyLoc)return P(S.finallyLoc)}}}},abrupt:function(V,C){for(var P=this.tryEntries.length-1;P>=0;--P){var $=this.tryEntries[P];if($.tryLoc<=this.prev&&r.call($,"finallyLoc")&&this.prev<$.finallyLoc){var S=$;break}}S&&(V==="break"||V==="continue")&&S.tryLoc<=C&&C<=S.finallyLoc&&(S=null);var O=S?S.completion:{};return O.type=V,O.arg=C,S?(this.method="next",this.next=S.finallyLoc,m):this.complete(O)},complete:function(V,C){if(V.type==="throw")throw V.arg;return V.type==="break"||V.type==="continue"?this.next=V.arg:V.type==="return"?(this.rval=this.arg=V.arg,this.method="return",this.next="end"):V.type==="normal"&&C&&(this.next=C),m},finish:function(V){for(var C=this.tryEntries.length-1;C>=0;--C){var P=this.tryEntries[C];if(P.finallyLoc===V)return this.complete(P.completion,P.afterLoc),J(P),m}},catch:function(V){for(var C=this.tryEntries.length-1;C>=0;--C){var P=this.tryEntries[C];if(P.tryLoc===V){var $=P.completion;if($.type==="throw"){var S=$.arg;J(P)}return S}}throw new Error("illegal catch attempt")},delegateYield:function(V,C,P){return this.delegate={iterator:F(V),resultName:C,nextLoc:P},this.method==="next"&&(this.arg=e),m}},t}function d3(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,o)}function _e(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(u){d3(i,r,o,a,s,"next",u)}function s(u){d3(i,r,o,a,s,"throw",u)}a(void 0)})}}function ke(e,t){return yO(e)||function(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,a,s,u,c=[],l=!0,f=!1;try{if(s=(o=o.call(n)).next,r===0){if(Object(o)!==o)return;l=!1}else for(;!(l=(i=s.call(o)).done)&&(c.push(i.value),c.length!==r);l=!0);}catch(d){f=!0,a=d}finally{try{if(!l&&o.return!=null&&(u=o.return(),Object(u)!==u))return}finally{if(f)throw a}}return c}}(e,t)||_v(e,t)||gO()}function gO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yO(e){if(Array.isArray(e))return e}function vc(e){var t=typeof Map=="function"?new Map:void 0;return vc=function(n){if(n===null||(r=n,Function.toString.call(r).indexOf("[native code]")===-1))return n;var r;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return Ym(n,arguments,en(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ll(o,n)},vc(e)}function Ym(e,t,n){return Ym=bO()?Reflect.construct.bind():function(r,o,i){var a=[null];a.push.apply(a,o);var s=new(Function.bind.apply(r,a));return i&&Ll(s,i.prototype),s},Ym.apply(null,arguments)}function _t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ll(e,t)}function Ll(e,t){return Ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ll(e,t)}function Ot(e){var t=bO();return function(){var n,r=en(e);if(t){var o=en(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(i,a){if(a&&(re(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ue(i)}(this,n)}}function ue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bO(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function en(e){return en=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},en(e)}function h3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h3(Object(n),!0).forEach(function(r){po(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function X(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wO(r.key),r)}}function Z(e,t,n){return t&&v3(e.prototype,t),n&&v3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function po(e,t,n){return(t=wO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wO(e){var t=function(n,r){if(re(n)!=="object"||n===null)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r||"default");if(re(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(e,"string");return re(t)==="symbol"?t:String(t)}function xe(e){return function(t){if(Array.isArray(t))return Xm(t)}(e)||xO(e)||_v(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function _v(e,t){if(e){if(typeof e=="string")return Xm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xm(e,t):void 0}}function xO(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function re(e){return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(e)}function Bt(){}var kO=function(e){return e};function So(e,t){for(var n in t)e[n]=t[n];return e}function jO(e){return e()}function p3(){return Object.create(null)}function Tn(e){e.forEach(jO)}function Br(e){return typeof e=="function"}function Nr(e,t){return e!=e?t==t:e!==t||e&&re(e)==="object"||typeof e=="function"}function De(e,t){return e!=e?t==t:e!==t}function hr(e,t,n,r){if(e){var o=$O(e,t,n,r);return e[0](o)}}function $O(e,t,n,r){return e[1]&&r?So(n.ctx.slice(),e[1](r(t))):n.ctx}function vr(e,t,n,r){if(e[2]&&r){var o=e[2](r(n));if(t.dirty===void 0)return o;if(re(o)==="object"){for(var i=[],a=Math.max(t.dirty.length,o.length),s=0;s<a;s+=1)i[s]=t.dirty[s]|o[s];return i}return t.dirty|o}return t.dirty}function pr(e,t,n,r,o,i){if(o){var a=$O(t,n,r,i);e.p(a,o)}}function mr(e){if(e.ctx.length>32){for(var t=[],n=e.ctx.length/32,r=0;r<n;r++)t[r]=-1;return t}return-1}function SO(e){var t={};for(var n in e)n[0]!=="$"&&(t[n]=e[n]);return t}function Ch(e,t){var n={};for(var r in t=new Set(t),e)t.has(r)||r[0]==="$"||(n[r]=e[r]);return n}function tr(e){return e??""}function Fr(e){return e&&Br(e.destroy)?e.destroy:Bt}var CO=typeof window<"u",OR=CO?function(){return window.performance.now()}:function(){return Date.now()},n1=CO?function(e){return requestAnimationFrame(e)}:Bt,xl=new Set;function _O(e){xl.forEach(function(t){t.c(e)||(xl.delete(t),t.f())}),xl.size!==0&&n1(_O)}var r1=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function B(e,t){e.appendChild(t)}function Ae(e,t,n){var r=o1(e);if(!r.getElementById(t)){var o=G("style");o.id=t,o.textContent=n,OO(r,o)}}function o1(e){if(!e)return document;var t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function MR(e){var t=G("style");return t.textContent="/* empty */",OO(o1(e),t),t.sheet}function OO(e,t){return B(e.head||e,t),t.sheet}function at(e,t,n){e.insertBefore(t,n||null)}function it(e){e.parentNode&&e.parentNode.removeChild(e)}function xr(e,t){for(var n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function G(e){return document.createElement(e)}function la(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Ut(e){return document.createTextNode(e)}function pt(){return Ut(" ")}function vn(){return Ut("")}function Nt(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function lu(e){return function(t){return t.preventDefault(),e.call(this,t)}}function fa(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function j(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}var ER=["width","height"];function m3(e,t){var n=Object.getOwnPropertyDescriptors(e.__proto__);for(var r in t)t[r]==null?e.removeAttribute(r):r==="style"?e.style.cssText=t[r]:r==="__value"?e.value=e[r]=t[r]:n[r]&&n[r].set&&ER.indexOf(r)===-1?e[r]=t[r]:j(e,r,t[r])}function pc(e,t){for(var n in t)j(e,n,t[n])}function me(e,t){t=""+t,e.data!==t&&(e.data=t)}function da(e,t){e.value=t??""}function as(e,t,n,r){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function g3(e,t,n){for(var r=0;r<e.options.length;r+=1){var o=e.options[r];if(o.__value===t)return void(o.selected=!0)}n&&t===void 0||(e.selectedIndex=-1)}function Pt(e,t,n){e.classList.toggle(t,!!n)}function MO(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.bubbles,o=r!==void 0&&r,i=n.cancelable;return new CustomEvent(e,{detail:t,bubbles:o,cancelable:i!==void 0&&i})}function ha(e,t){return new e(t)}var Bl,_h=new Map,Zm=0;function y3(e,t,n,r,o,i,a){for(var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:0,u=16.666/r,c=`{
@@ -95,7 +95,7 @@ return query;
95
95
  `),l=G("div"),$t(f.$$.fragment),j(o,"class","jse-validation-error-icon svelte-1oe8e8r"),j(l,"class","jse-validation-errors-expand svelte-1oe8e8r"),j(s,"class","svelte-1oe8e8r"),j(r,"class","jse-validation-error svelte-1oe8e8r"),j(t,"class","svelte-1oe8e8r")},m:function(p,m){at(p,t,m),B(t,n),B(n,r),B(r,o),kt(i,o,null),B(r,a),B(r,s),B(s,u),B(s,c),B(s,l),kt(f,l,null),d=!0,h||(v=Nt(r,"click",e[5]),h=!0)},p:function(p,m){(!d||8&m)&&me(u,p[3])},i:function(p){d||(N(i.$$.fragment,p),N(f.$$.fragment,p),d=!0)},o:function(p){q(i.$$.fragment,p),q(f.$$.fragment,p),d=!1},d:function(p){p&&it(t),jt(i),jt(f),h=!1,v()}}}function cG(e){for(var t,n,r,o,i=Ee(Dh(e[0],Wu)),a=[],s=0;s<i.length;s+=1)a[s]=jS(wS(e,i,s));var u=function(l){return q(a[l],1,1,function(){a[l]=null})},c=e[3]>Wu&&$S(e);return{c:function(){t=G("table"),n=G("tbody");for(var l=0;l<a.length;l+=1)a[l].c();r=pt(),c&&c.c(),j(t,"class","svelte-1oe8e8r")},m:function(l,f){at(l,t,f),B(t,n);for(var d=0;d<a.length;d+=1)a[d]&&a[d].m(n,null);B(n,r),c&&c.m(n,null),o=!0},p:function(l,f){if(19&f){var d;for(i=Ee(Dh(l[0],Wu)),d=0;d<i.length;d+=1){var h=wS(l,i,d);a[d]?(a[d].p(h,f),N(a[d],1)):(a[d]=jS(h),a[d].c(),N(a[d],1),a[d].m(n,r))}for(Dt(),d=i.length;d<a.length;d+=1)u(d);zt()}l[3]>Wu?c?c.p(l,f):((c=$S(l)).c(),c.m(n,null)):c&&(c.d(1),c=null)},i:function(l){if(!o){for(var f=0;f<i.length;f+=1)N(a[f]);o=!0}},o:function(l){a=a.filter(Boolean);for(var f=0;f<a.length;f+=1)q(a[f]);o=!1},d:function(l){l&&it(t),xr(a,l),c&&c.d()}}}function kS(e){var t,n,r,o,i;return n=new on({props:{data:VJ}}),{c:function(){t=G("button"),$t(n.$$.fragment),j(t,"type","button"),j(t,"class","jse-validation-errors-collapse svelte-1oe8e8r"),j(t,"title","Collapse validation errors")},m:function(a,s){at(a,t,s),kt(n,t,null),r=!0,o||(i=Nt(t,"click",fa(e[4])),o=!0)},p:Bt,i:function(a){r||(N(n.$$.fragment,a),r=!0)},o:function(a){q(n.$$.fragment,a),r=!1},d:function(a){a&&it(t),jt(n),o=!1,i()}}}function jS(e){var t,n,r,o,i,a,s,u,c,l,f,d,h,v,p=_o(e[7].path)+"",m=e[7].message+"";r=new on({props:{data:_u}});var g=e[9]===0&&e[0].length>1&&kS(e);function y(){return e[6](e[7])}return{c:function(){t=G("tr"),n=G("td"),$t(r.$$.fragment),o=pt(),i=G("td"),a=Ut(p),s=pt(),u=G("td"),c=Ut(m),l=pt(),f=G("td"),g&&g.c(),j(n,"class","jse-validation-error-icon svelte-1oe8e8r"),j(i,"class","svelte-1oe8e8r"),j(u,"class","svelte-1oe8e8r"),j(f,"class","jse-validation-error-action svelte-1oe8e8r"),j(t,"class","jse-validation-error svelte-1oe8e8r")},m:function(b,w){at(b,t,w),B(t,n),kt(r,n,null),B(t,o),B(t,i),B(i,a),B(t,s),B(t,u),B(u,c),B(t,l),B(t,f),g&&g.m(f,null),d=!0,h||(v=Nt(t,"click",y),h=!0)},p:function(b,w){e=b,(!d||1&w)&&p!==(p=_o(e[7].path)+"")&&me(a,p),(!d||1&w)&&m!==(m=e[7].message+"")&&me(c,m),e[9]===0&&e[0].length>1?g?(g.p(e,w),1&w&&N(g,1)):((g=kS(e)).c(),N(g,1),g.m(f,null)):g&&(Dt(),q(g,1,1,function(){g=null}),zt())},i:function(b){d||(N(r.$$.fragment,b),N(g),d=!0)},o:function(b){q(r.$$.fragment,b),q(g),d=!1},d:function(b){b&&it(t),jt(r),g&&g.d(),h=!1,v()}}}function $S(e){var t,n,r,o,i,a,s,u,c,l,f,d=e[3]-Wu+"";return{c:function(){t=G("tr"),n=G("td"),r=pt(),o=G("td"),i=pt(),a=G("td"),s=Ut("(and "),u=Ut(d),c=Ut(" more errors)"),l=pt(),f=G("td"),j(n,"class","svelte-1oe8e8r"),j(o,"class","svelte-1oe8e8r"),j(a,"class","svelte-1oe8e8r"),j(f,"class","svelte-1oe8e8r"),j(t,"class","jse-validation-error svelte-1oe8e8r")},m:function(h,v){at(h,t,v),B(t,n),B(t,r),B(t,o),B(t,i),B(t,a),B(a,s),B(a,u),B(a,c),B(t,l),B(t,f)},p:function(h,v){8&v&&d!==(d=h[3]-Wu+"")&&me(u,d)},d:function(h){h&&it(t)}}}function lG(e){var t,n,r=!Ze(e[0]),o=r&&xS(e);return{c:function(){o&&o.c(),t=vn()},m:function(i,a){o&&o.m(i,a),at(i,t,a),n=!0},p:function(i,a){var s=ke(a,1)[0];1&s&&(r=!Ze(i[0])),r?o?(o.p(i,s),1&s&&N(o,1)):((o=xS(i)).c(),N(o,1),o.m(t.parentNode,t)):o&&(Dt(),q(o,1,1,function(){o=null}),zt())},i:function(i){n||(N(o),n=!0)},o:function(i){q(o),n=!1},d:function(i){i&&it(t),o&&o.d(i)}}}function fG(e,t,n){var r,o=t.validationErrors,i=t.selectError,a=!0;return e.$$set=function(s){"validationErrors"in s&&n(0,o=s.validationErrors),"selectError"in s&&n(1,i=s.selectError)},e.$$.update=function(){1&e.$$.dirty&&n(3,r=o.length)},[o,i,a,r,function(){n(2,a=!1)},function(){n(2,a=!0)},function(s){setTimeout(function(){return i(s)})}]}var ky=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,fG,lG,De,{validationErrors:0,selectError:1},sG),o}return Z(n)}(),dG=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function hG(e){Ae(e,"svelte-d01h2s",".jse-header.svelte-d01h2s.svelte-d01h2s{display:flex;background:var(--jse-theme-color);color:var(--jse-menu-color)}.jse-header.svelte-d01h2s .jse-title.svelte-d01h2s{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-d01h2s button.svelte-d01h2s{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-d01h2s button.svelte-d01h2s:hover{background:rgba(255, 255, 255, 0.1)}")}function vG(e){var t,n,r,o,i,a,s,u,c;return a=new on({props:{data:wc}}),{c:function(){t=G("div"),n=G("div"),r=Ut(e[0]),o=pt(),i=G("button"),$t(a.$$.fragment),j(n,"class","jse-title svelte-d01h2s"),j(i,"type","button"),j(i,"class","jse-close svelte-d01h2s"),j(t,"class","jse-header svelte-d01h2s")},m:function(l,f){at(l,t,f),B(t,n),B(n,r),B(t,o),B(t,i),kt(a,i,null),s=!0,u||(c=Nt(i,"click",e[3]),u=!0)},p:function(l,f){var d=ke(f,1)[0];(!s||1&d)&&me(r,l[0])},i:function(l){s||(N(a.$$.fragment,l),s=!0)},o:function(l){q(a.$$.fragment,l),s=!1},d:function(l){l&&it(t),jt(a),u=!1,c()}}}function pG(e,t,n){var r=t.title,o=r===void 0?"Modal":r,i=t.onClose,a=i===void 0?void 0:i,s=Vr("simple-modal").close;return e.$$set=function(u){"title"in u&&n(0,o=u.title),"onClose"in u&&n(1,a=u.onClose)},[o,a,s,function(){a?a():s()}]}var jy=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,pG,vG,De,{title:0,onClose:1},hG),o}return Z(n)}();function mG(e){Ae(e,"svelte-1wk5pvq",".jse-modal.svelte-1wk5pvq.svelte-1wk5pvq{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1wk5pvq .jse-modal-contents.svelte-1wk5pvq{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1wk5pvq .jse-modal-contents .jse-actions.svelte-1wk5pvq{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1wk5pvq .jse-modal-contents .jse-actions button.jse-primary.svelte-1wk5pvq{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1wk5pvq .jse-modal-contents .jse-actions button.jse-primary.svelte-1wk5pvq:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1wk5pvq .jse-modal-contents .jse-actions button.jse-primary.svelte-1wk5pvq:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:calc(100vh - 6rem);display:flex}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0}.jse-modal.jse-copy-paste.svelte-1wk5pvq .jse-shortcuts.svelte-1wk5pvq{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding)) 0}.jse-modal.jse-copy-paste.svelte-1wk5pvq .jse-shortcuts .jse-shortcut .jse-key.svelte-1wk5pvq{font-size:200%;color:var(--jse-theme-color)}")}function gG(e){var t,n,r,o,i,a,s,u,c,l,f,d,h,v,p,m,g,y,b,w,x,k,E,R;return n=new jy({props:{title:"Copying and pasting"}}),{c:function(){t=G("div"),$t(n.$$.fragment),r=pt(),o=G("div"),(i=G("div")).textContent="These actions are unavailable via the menu. Please use:",a=pt(),s=G("div"),u=G("div"),(c=G("div")).textContent="".concat(e[1],"+C"),l=Ut(`
96
96
  for copy`),f=pt(),d=G("div"),(h=G("div")).textContent="".concat(e[1],"+X"),v=Ut(`
97
97
  for cut`),p=pt(),m=G("div"),(g=G("div")).textContent="".concat(e[1],"+V"),y=Ut(`
98
- for paste`),b=pt(),w=G("div"),(x=G("button")).textContent="Close",j(c,"class","jse-key svelte-1wk5pvq"),j(u,"class","jse-shortcut"),j(h,"class","jse-key svelte-1wk5pvq"),j(d,"class","jse-shortcut"),j(g,"class","jse-key svelte-1wk5pvq"),j(m,"class","jse-shortcut"),j(s,"class","jse-shortcuts svelte-1wk5pvq"),j(x,"type","button"),j(x,"class","jse-primary svelte-1wk5pvq"),j(w,"class","jse-actions svelte-1wk5pvq"),j(o,"class","jse-modal-contents svelte-1wk5pvq"),j(t,"class","jse-modal jse-copy-paste svelte-1wk5pvq")},m:function(z,A){at(z,t,A),kt(n,t,null),B(t,r),B(t,o),B(o,i),B(o,a),B(o,s),B(s,u),B(u,c),B(u,l),B(s,f),B(s,d),B(d,h),B(d,v),B(s,p),B(s,m),B(m,g),B(m,y),B(o,b),B(o,w),B(w,x),k=!0,E||(R=Nt(x,"click",e[0]),E=!0)},p:Bt,i:function(z){k||(N(n.$$.fragment,z),k=!0)},o:function(z){q(n.$$.fragment,z),k=!1},d:function(z){z&&it(t),jt(n),E=!1,R()}}}function yG(e){return[Vr("simple-modal").close,dG?"⌘":"Ctrl"]}var h7=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,yG,gG,De,{},mG),o}return Z(n)}();function v7(e){return!!e&&(e.type==="space"||e.space===!0)}function rp(e){return!!e&&(e.type==="separator"||e.separator===!0)}function bG(e){return!!e&&e.type==="label"&&typeof e.text=="string"}function Lf(e){return!!e&&typeof e.onClick=="function"}function $y(e){return!!e&&e.type==="dropdown-button"&&Lf(e.main)&&Array.isArray(e.items)}function wG(e){return!!e&&e.type==="row"&&Array.isArray(e.items)}function xG(e){return!!e&&e.type==="column"&&Array.isArray(e.items)}function SS(e){return er(e)&&er(e.parseError)}function kG(e){return er(e)&&Array.isArray(e.validationErrors)}function jG(e){Ae(e,"svelte-497ud4",".jse-menu.svelte-497ud4.svelte-497ud4{background:var(--jse-theme-color);border-bottom:1px solid var(--jse-theme-color);color:var(--jse-menu-color);display:flex;flex-wrap:wrap;align-items:center;position:relative}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4{width:var(--jse-menu-button-size);height:var(--jse-menu-button-size);border:none;background:transparent;color:inherit;cursor:pointer;padding:calc(0.5 * var(--jse-padding));margin:0;border-radius:0}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:disabled{color:var(--jse-menu-color);opacity:0.5;background:transparent}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4{border:1px solid var(--jse-menu-color);padding:0 calc(0.5 * var(--jse-padding));margin:calc(0.5 * var(--jse-padding)) 0;height:calc(var(--jse-menu-button-size) - var(--jse-padding));width:auto}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:not(.jse-last){border-right:none}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-first.svelte-497ud4{margin-left:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-last.svelte-497ud4{margin-right:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-selected.svelte-497ud4{background:var(--jse-menu-color);color:var(--jse-theme-color)}.jse-menu.svelte-497ud4 .jse-space.svelte-497ud4{flex:1}.jse-menu.svelte-497ud4 .jse-separator.svelte-497ud4{background:var(--jse-menu-color);opacity:0.3;box-sizing:border-box;width:1px;height:calc(var(--jse-menu-button-size) - 6px);margin:3px}")}var $G=function(e){return{}},CS=function(e){return{}};function _S(e,t,n){var r=e.slice();return r[3]=t[n],r}var SG=function(e){return{}},OS=function(e){return{}};function CG(e){var t,n=PS(e[3])+"";return{c:function(){t=Ut(n)},m:function(r,o){at(r,t,o)},p:function(r,o){1&o&&n!==(n=PS(r[3])+"")&&me(t,n)},i:Bt,o:Bt,d:function(r){r&&it(t)}}}function _G(e){var t,n,r,o,i,a,s,u,c=e[3].icon&&MS(e),l=e[3].text&&ES(e);return{c:function(){t=G("button"),c&&c.c(),n=pt(),l&&l.c(),j(t,"type","button"),j(t,"class",r="jse-button "+e[3].className+" svelte-497ud4"),j(t,"title",o=e[3].title),t.disabled=i=e[3].disabled||!1},m:function(f,d){at(f,t,d),c&&c.m(t,null),B(t,n),l&&l.m(t,null),a=!0,s||(u=Nt(t,"click",function(){Br(e[3].onClick)&&e[3].onClick.apply(this,arguments)}),s=!0)},p:function(f,d){(e=f)[3].icon?c?(c.p(e,d),1&d&&N(c,1)):((c=MS(e)).c(),N(c,1),c.m(t,n)):c&&(Dt(),q(c,1,1,function(){c=null}),zt()),e[3].text?l?l.p(e,d):((l=ES(e)).c(),l.m(t,null)):l&&(l.d(1),l=null),(!a||1&d&&r!==(r="jse-button "+e[3].className+" svelte-497ud4"))&&j(t,"class",r),(!a||1&d&&o!==(o=e[3].title))&&j(t,"title",o),(!a||1&d&&i!==(i=e[3].disabled||!1))&&(t.disabled=i)},i:function(f){a||(N(c),a=!0)},o:function(f){q(c),a=!1},d:function(f){f&&it(t),c&&c.d(),l&&l.d(),s=!1,u()}}}function OG(e){var t;return{c:function(){j(t=G("div"),"class","jse-space svelte-497ud4")},m:function(n,r){at(n,t,r)},p:Bt,i:Bt,o:Bt,d:function(n){n&&it(t)}}}function MG(e){var t;return{c:function(){j(t=G("div"),"class","jse-separator svelte-497ud4")},m:function(n,r){at(n,t,r)},p:Bt,i:Bt,o:Bt,d:function(n){n&&it(t)}}}function MS(e){var t,n;return t=new on({props:{data:e[3].icon}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.data=r[3].icon),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function ES(e){var t,n=e[3].text+"";return{c:function(){t=Ut(n)},m:function(r,o){at(r,t,o)},p:function(r,o){1&o&&n!==(n=r[3].text+"")&&me(t,n)},d:function(r){r&&it(t)}}}function AS(e){var t,n,r,o,i,a,s,u=[MG,OG,_G,CG],c=[];function l(f,d){return 1&d&&(t=null),1&d&&(n=null),1&d&&(r=null),t==null&&(t=!!rp(f[3])),t?0:(n==null&&(n=!!v7(f[3])),n?1:(r==null&&(r=!!Lf(f[3])),r?2:3))}return o=l(e,-1),i=c[o]=u[o](e),{c:function(){i.c(),a=vn()},m:function(f,d){c[o].m(f,d),at(f,a,d),s=!0},p:function(f,d){var h=o;(o=l(f,d))===h?c[o].p(f,d):(Dt(),q(c[h],1,1,function(){c[h]=null}),zt(),(i=c[o])?i.p(f,d):(i=c[o]=u[o](f)).c(),N(i,1),i.m(a.parentNode,a))},i:function(f){s||(N(i),s=!0)},o:function(f){q(i),s=!1},d:function(f){f&&it(a),c[o].d(f)}}}function EG(e){for(var t,n,r,o,i=e[2].left,a=hr(i,e,e[1],OS),s=Ee(e[0]),u=[],c=0;c<s.length;c+=1)u[c]=AS(_S(e,s,c));var l=function(h){return q(u[h],1,1,function(){u[h]=null})},f=e[2].right,d=hr(f,e,e[1],CS);return{c:function(){t=G("div"),a&&a.c(),n=pt();for(var h=0;h<u.length;h+=1)u[h].c();r=pt(),d&&d.c(),j(t,"class","jse-menu svelte-497ud4")},m:function(h,v){at(h,t,v),a&&a.m(t,null),B(t,n);for(var p=0;p<u.length;p+=1)u[p]&&u[p].m(t,null);B(t,r),d&&d.m(t,null),o=!0},p:function(h,v){var p=ke(v,1)[0];if(a&&a.p&&(!o||2&p)&&pr(a,i,h,h[1],o?vr(i,h[1],p,SG):mr(h[1]),OS),1&p){var m;for(s=Ee(h[0]),m=0;m<s.length;m+=1){var g=_S(h,s,m);u[m]?(u[m].p(g,p),N(u[m],1)):(u[m]=AS(g),u[m].c(),N(u[m],1),u[m].m(t,r))}for(Dt(),m=s.length;m<u.length;m+=1)l(m);zt()}d&&d.p&&(!o||2&p)&&pr(d,f,h,h[1],o?vr(f,h[1],p,$G):mr(h[1]),CS)},i:function(h){if(!o){N(a,h);for(var v=0;v<s.length;v+=1)N(u[v]);N(d,h),o=!0}},o:function(h){q(a,h),u=u.filter(Boolean);for(var v=0;v<u.length;v+=1)q(u[v]);q(d,h),o=!1},d:function(h){h&&it(t),a&&a.d(h),xr(u,h),d&&d.d(h)}}}function PS(e){return console.error("Unknown type of menu item",e),"???"}function AG(e,t,n){var r=t.$$slots,o=r===void 0?{}:r,i=t.$$scope,a=t.items,s=a===void 0?[]:a;return e.$$set=function(u){"items"in u&&n(0,s=u.items),"$$scope"in u&&n(1,i=u.$$scope)},[s,i,o]}var op=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,AG,EG,De,{items:0},jG),o}return Z(n)}();function PG(e){Ae(e,"svelte-gz09vf",".jse-json-repair-component.svelte-gz09vf.svelte-gz09vf{flex:1;display:flex;flex-direction:column;background:var(--jse-background-color);color:var(--jse-text-color)}.jse-json-repair-component.svelte-gz09vf .jse-menu .jse-info.svelte-gz09vf{padding:0 var(--jse-padding)}.jse-json-repair-component.svelte-gz09vf .jse-json-text.svelte-gz09vf{flex:1;border:none;padding:2px;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);background:var(--jse-background-color);color:var(--jse-text-color);resize:none;outline:none}")}function TG(e){var t;return{c:function(){(t=G("div")).textContent="Repair invalid JSON, then click apply",j(t,"slot","left"),j(t,"class","jse-info svelte-gz09vf")},m:function(n,r){at(n,t,r)},p:Bt,d:function(n){n&&it(t)}}}function RG(e){var t,n;return t=new qi({props:{type:"success",message:"JSON is valid now and can be parsed.",actions:e[5]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};32&o&&(i.actions=r[5]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function NG(e){var t,n;return t=new qi({props:{type:"error",icon:_u,message:"Cannot parse JSON: ".concat(e[2].message),actions:e[6]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};4&o&&(i.message="Cannot parse JSON: ".concat(r[2].message)),64&o&&(i.actions=r[6]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function IG(e){var t,n,r,o,i,a,s,u,c,l;n=new op({props:{items:e[4],$$slots:{left:[TG]},$$scope:{ctx:e}}});var f=[NG,RG],d=[];function h(v,p){return v[2]?0:1}return o=h(e),i=d[o]=f[o](e),{c:function(){t=G("div"),$t(n.$$.fragment),r=pt(),i.c(),a=pt(),(s=G("textarea")).readOnly=e[1],j(s,"class","jse-json-text svelte-gz09vf"),j(s,"autocomplete","off"),j(s,"autocapitalize","off"),j(s,"spellcheck","false"),s.value=e[0],j(t,"class","jse-json-repair-component svelte-gz09vf")},m:function(v,p){at(v,t,p),kt(n,t,null),B(t,r),d[o].m(t,null),B(t,a),B(t,s),e[16](s),u=!0,c||(l=Nt(s,"input",e[7]),c=!0)},p:function(v,p){var m=ke(p,1)[0],g={};16&m&&(g.items=v[4]),8388608&m&&(g.$$scope={dirty:m,ctx:v}),n.$set(g);var y=o;(o=h(v))===y?d[o].p(v,m):(Dt(),q(d[y],1,1,function(){d[y]=null}),zt(),(i=d[o])?i.p(v,m):(i=d[o]=f[o](v)).c(),N(i,1),i.m(t,a)),(!u||2&m)&&(s.readOnly=v[1]),(!u||1&m)&&(s.value=v[0])},i:function(v){u||(N(n.$$.fragment,v),N(i),u=!0)},o:function(v){q(n.$$.fragment,v),q(i),u=!1},d:function(v){v&&it(t),jt(n),d[o].d(),e[16](null),c=!1,l()}}}function DG(e,t,n){var r,o,i,a,s,u,c,l,f=t.text,d=f===void 0?"":f,h=t.readOnly,v=h!==void 0&&h,p=t.onParse,m=t.onRepair,g=t.onChange,y=g===void 0?null:g,b=t.onApply,w=t.onCancel,x=Hr("jsoneditor:JSONRepair");function k(){b(d)}return e.$$set=function(E){"text"in E&&n(0,d=E.text),"readOnly"in E&&n(1,v=E.readOnly),"onParse"in E&&n(8,p=E.onParse),"onRepair"in E&&n(9,m=E.onRepair),"onChange"in E&&n(10,y=E.onChange),"onApply"in E&&n(11,b=E.onApply),"onCancel"in E&&n(12,w=E.onCancel)},e.$$.update=function(){1&e.$$.dirty&&n(2,r=function(E){try{return p(E),null}catch(R){return mc(E,R.message)}}(d)),1&e.$$.dirty&&n(15,o=function(E){try{return m(E),!0}catch{return!1}}(d)),4&e.$$.dirty&&x("error",r),4096&e.$$.dirty&&n(4,l=[{type:"space"},{type:"button",icon:wc,title:"Cancel repair",className:"jse-cancel",onClick:w}]),57344&e.$$.dirty&&n(6,s=o?[i,a]:[i]),2&e.$$.dirty&&n(5,u=[{icon:Xl,text:"Apply",title:"Apply fixed JSON",disabled:v,onClick:k}])},n(13,i={icon:HJ,text:"Show me",title:"Scroll to the error location",onClick:function(){if(c&&r){var E=r.position!=null?r.position:0;c.setSelectionRange(E,E),setTimeout(function(){c.focus()})}}}),n(14,a={icon:Yv,text:"Auto repair",title:"Automatically repair JSON",onClick:function(){try{n(0,d=m(d)),y&&y(d)}catch{}}}),[d,v,r,c,l,u,s,function(E){x("handleChange");var R=E.target.value;d!==R&&(n(0,d=R),y&&y(d))},p,m,y,b,w,i,a,o,function(E){Ge[E?"unshift":"push"](function(){n(3,c=E)})}]}var zG=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,DG,IG,De,{text:0,readOnly:1,onParse:8,onRepair:9,onChange:10,onApply:11,onCancel:12},PG),o}return Z(n)}(),Bu=[];function TS(e){if(e.key==="Escape"){var t=Me(Bu);t&&t()}}function ip(e,t){return Ze(Bu)&&window.addEventListener("keydown",TS),Bu.push(t),{destroy:function(){Bu=Bu.filter(function(n){return n!==t}),Ze(Bu)&&window.removeEventListener("keydown",TS)}}}function LG(e){Ae(e,"svelte-h7flev",".jse-modal.svelte-h7flev{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:calc(100vh - 6rem);display:flex}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0}")}function BG(e){var t,n,r,o,i,a;function s(c){e[7](c)}var u={onParse:e[1],onRepair:e[2],onApply:e[4],onCancel:e[5]};return e[0]!==void 0&&(u.text=e[0]),n=new zG({props:u}),Ge.push(function(){return $i(n,"text",s)}),{c:function(){t=G("div"),$t(n.$$.fragment),j(t,"class","jse-modal jse-repair svelte-h7flev")},m:function(c,l){at(c,t,l),kt(n,t,null),o=!0,i||(a=Fr(ip.call(null,t,e[3])),i=!0)},p:function(c,l){var f=ke(l,1)[0],d={};2&f&&(d.onParse=c[1]),4&f&&(d.onRepair=c[2]),!r&&1&f&&(r=!0,d.text=c[0],ji(function(){return r=!1})),n.$set(d)},i:function(c){o||(N(n.$$.fragment,c),o=!0)},o:function(c){q(n.$$.fragment,c),o=!1},d:function(c){c&&it(t),jt(n),i=!1,a()}}}function qG(e,t,n){var r=t.text,o=t.onParse,i=t.onRepair,a=t.onApply,s=Vr("simple-modal").close;return e.$$set=function(u){"text"in u&&n(0,r=u.text),"onParse"in u&&n(1,o=u.onParse),"onRepair"in u&&n(2,i=u.onRepair),"onApply"in u&&n(6,a=u.onApply)},[r,o,i,s,function(u){s(),a(u)},function(){s()},a,function(u){n(0,r=u)}]}var p7=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,qG,BG,De,{text:0,onParse:1,onRepair:2,onApply:6},LG),o}return Z(n)}();function FG(e){Ae(e,"svelte-1u2b6j8","button.jse-context-menu-button.svelte-1u2b6j8{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;flex:1;white-space:nowrap;padding:var(--jse-padding);color:inherit}button.jse-context-menu-button.svelte-1u2b6j8:hover{background:var(--jse-context-menu-background-highlight)}button.jse-context-menu-button.svelte-1u2b6j8:focus{background:var(--jse-context-menu-background-highlight);z-index:1}button.jse-context-menu-button.svelte-1u2b6j8:disabled{color:var(--jse-context-menu-color-disabled);background:unset}button.jse-context-menu-button.left.svelte-1u2b6j8{text-align:left}button.jse-context-menu-button.svelte-1u2b6j8 svg{width:16px}")}function RS(e){var t,n;return t=new on({props:{data:e[0].icon}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.data=r[0].icon),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function NS(e){var t,n=e[0].text+"";return{c:function(){t=Ut(n)},m:function(r,o){at(r,t,o)},p:function(r,o){1&o&&n!==(n=r[0].text+"")&&me(t,n)},d:function(r){r&&it(t)}}}function VG(e){var t,n,r,o,i,a,s,u,c=e[0].icon&&RS(e),l=e[0].text&&NS(e);return{c:function(){t=G("button"),c&&c.c(),n=pt(),l&&l.c(),j(t,"type","button"),j(t,"class",r=tr(pa("jse-context-menu-button",e[1],e[0].className))+" svelte-1u2b6j8"),j(t,"title",o=e[0].title),t.disabled=i=e[0].disabled||!1},m:function(f,d){at(f,t,d),c&&c.m(t,null),B(t,n),l&&l.m(t,null),a=!0,s||(u=Nt(t,"click",function(){Br(e[0].onClick)&&e[0].onClick.apply(this,arguments)}),s=!0)},p:function(f,d){var h=ke(d,1)[0];(e=f)[0].icon?c?(c.p(e,h),1&h&&N(c,1)):((c=RS(e)).c(),N(c,1),c.m(t,n)):c&&(Dt(),q(c,1,1,function(){c=null}),zt()),e[0].text?l?l.p(e,h):((l=NS(e)).c(),l.m(t,null)):l&&(l.d(1),l=null),(!a||3&h&&r!==(r=tr(pa("jse-context-menu-button",e[1],e[0].className))+" svelte-1u2b6j8"))&&j(t,"class",r),(!a||1&h&&o!==(o=e[0].title))&&j(t,"title",o),(!a||1&h&&i!==(i=e[0].disabled||!1))&&(t.disabled=i)},i:function(f){a||(N(c),a=!0)},o:function(f){q(c),a=!1},d:function(f){f&&it(t),c&&c.d(),l&&l.d(),s=!1,u()}}}function HG(e,t,n){var r=t.item,o=t.className,i=o===void 0?void 0:o;return e.$$set=function(a){"item"in a&&n(0,r=a.item),"className"in a&&n(1,i=a.className)},[r,i]}var Sy=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,HG,VG,Nr,{item:0,className:1},FG),o}return Z(n)}();function WG(e){Ae(e,"svelte-12ophpi",".jse-dropdown-button.svelte-12ophpi.svelte-12ophpi{flex:1;line-height:normal;border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;position:relative;padding:0;display:flex}.jse-dropdown-button.svelte-12ophpi ul.svelte-12ophpi{margin:0;padding:0}.jse-dropdown-button.svelte-12ophpi ul li.svelte-12ophpi{margin:0;padding:0;list-style-type:none}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.svelte-12ophpi{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;width:2em;background:var(--jse-context-menu-background);color:var(--jse-context-menu-color);border-radius:0}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.jse-visible.svelte-12ophpi{background:var(--jse-context-menu-background)}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.svelte-12ophpi:hover{background:var(--jse-context-menu-background-highlight)}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.svelte-12ophpi:focus{z-index:1}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.svelte-12ophpi:disabled{color:var(--jse-context-menu-color-disabled);background:unset}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items.svelte-12ophpi{display:none;position:absolute;top:100%;left:0;z-index:1;background:var(--jse-context-menu-background);color:var(--jse-context-menu-color);box-shadow:var(--jse-controls-box-shadow)}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items.jse-visible.svelte-12ophpi{display:block}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items button.svelte-12ophpi{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;width:100%;text-align:left;padding:var(--jse-padding);margin:0}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items button.svelte-12ophpi:hover{background:var(--jse-context-menu-background-highlight)}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items button.svelte-12ophpi:disabled{color:var(--jse-context-menu-color-disabled);background:unset}")}function IS(e,t,n){var r=e.slice();return r[11]=t[n],r}var UG=function(e){return{}},DS=function(e){return{}};function zS(e){var t,n;return t=new on({props:{data:e[11].icon}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.data=r[11].icon),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function LS(e){var t,n,r,o,i,a,s,u,c,l,f,d=e[11].text+"",h=e[11].icon&&zS(e);function v(){return e[9](e[11])}return{c:function(){t=G("li"),n=G("button"),h&&h.c(),r=pt(),o=Ut(d),u=pt(),j(n,"type","button"),j(n,"title",i=e[11].title),n.disabled=a=e[11].disabled,j(n,"class",s=tr(e[11].className)+" svelte-12ophpi"),j(t,"class","svelte-12ophpi")},m:function(p,m){at(p,t,m),B(t,n),h&&h.m(n,null),B(n,r),B(n,o),B(t,u),c=!0,l||(f=Nt(n,"click",v),l=!0)},p:function(p,m){(e=p)[11].icon?h?(h.p(e,m),1&m&&N(h,1)):((h=zS(e)).c(),N(h,1),h.m(n,r)):h&&(Dt(),q(h,1,1,function(){h=null}),zt()),(!c||1&m)&&d!==(d=e[11].text+"")&&me(o,d),(!c||1&m&&i!==(i=e[11].title))&&j(n,"title",i),(!c||1&m&&a!==(a=e[11].disabled))&&(n.disabled=a),(!c||1&m&&s!==(s=tr(e[11].className)+" svelte-12ophpi"))&&j(n,"class",s)},i:function(p){c||(N(h),c=!0)},o:function(p){q(h),c=!1},d:function(p){p&&it(t),h&&h.d(),l=!1,f()}}}function JG(e){var t,n,r,o,i,a,s,u,c,l,f=e[8].defaultItem,d=hr(f,e,e[7],DS);o=new on({props:{data:Qo}});for(var h=Ee(e[0]),v=[],p=0;p<h.length;p+=1)v[p]=LS(IS(e,h,p));var m=function(g){return q(v[g],1,1,function(){v[g]=null})};return{c:function(){t=G("div"),d&&d.c(),n=pt(),r=G("button"),$t(o.$$.fragment),i=pt(),a=G("div"),s=G("ul");for(var g=0;g<v.length;g+=1)v[g].c();j(r,"type","button"),j(r,"class","jse-open-dropdown svelte-12ophpi"),j(r,"data-type","jse-open-dropdown"),r.disabled=e[4],Pt(r,"jse-visible",e[3]),j(s,"class","svelte-12ophpi"),j(a,"class","jse-dropdown-items svelte-12ophpi"),as(a,"width",e[2]),Pt(a,"jse-visible",e[3]),j(t,"role","button"),j(t,"tabindex","0"),j(t,"class","jse-dropdown-button svelte-12ophpi"),j(t,"title",e[1])},m:function(g,y){at(g,t,y),d&&d.m(t,null),B(t,n),B(t,r),kt(o,r,null),B(t,i),B(t,a),B(a,s);for(var b=0;b<v.length;b+=1)v[b]&&v[b].m(s,null);u=!0,c||(l=[Nt(r,"click",e[5]),Nt(t,"click",e[6])],c=!0)},p:function(g,y){var b=ke(y,1)[0];if(d&&d.p&&(!u||128&b)&&pr(d,f,g,g[7],u?vr(f,g[7],b,UG):mr(g[7]),DS),(!u||16&b)&&(r.disabled=g[4]),(!u||8&b)&&Pt(r,"jse-visible",g[3]),1&b){var w;for(h=Ee(g[0]),w=0;w<h.length;w+=1){var x=IS(g,h,w);v[w]?(v[w].p(x,b),N(v[w],1)):(v[w]=LS(x),v[w].c(),N(v[w],1),v[w].m(s,null))}for(Dt(),w=h.length;w<v.length;w+=1)m(w);zt()}(!u||4&b)&&as(a,"width",g[2]),(!u||8&b)&&Pt(a,"jse-visible",g[3]),(!u||2&b)&&j(t,"title",g[1])},i:function(g){if(!u){N(d,g),N(o.$$.fragment,g);for(var y=0;y<h.length;y+=1)N(v[y]);u=!0}},o:function(g){q(d,g),q(o.$$.fragment,g),v=v.filter(Boolean);for(var y=0;y<v.length;y+=1)q(v[y]);u=!1},d:function(g){g&&it(t),d&&d.d(g),jt(o),xr(v,g),c=!1,Tn(l)}}}function KG(e,t,n){var r,o=t.$$slots,i=o===void 0?{}:o,a=t.$$scope,s=t.items,u=s===void 0?[]:s,c=t.title,l=c===void 0?void 0:c,f=t.width,d=f===void 0?"120px":f,h=!1;function v(){n(3,h=!1)}function p(m){Ds(m)==="Escape"&&(m.preventDefault(),n(3,h=!1))}return ai(function(){document.addEventListener("click",v),document.addEventListener("keydown",p)}),Do(function(){document.removeEventListener("click",v),document.removeEventListener("keydown",p)}),e.$$set=function(m){"items"in m&&n(0,u=m.items),"title"in m&&n(1,l=m.title),"width"in m&&n(2,d=m.width),"$$scope"in m&&n(7,a=m.$$scope)},e.$$.update=function(){1&e.$$.dirty&&n(4,r=u.every(function(m){return m.disabled===!0}))},[u,l,d,h,r,function(){var m=h;setTimeout(function(){return n(3,h=!m)})},v,a,i,function(m){return m.onClick()}]}var GG=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,KG,JG,De,{items:0,title:1,width:2},WG),o}return Z(n)}();function QG(e){Ae(e,"svelte-1u2b6j8","button.jse-context-menu-button.svelte-1u2b6j8{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;flex:1;white-space:nowrap;padding:var(--jse-padding);color:inherit}button.jse-context-menu-button.svelte-1u2b6j8:hover{background:var(--jse-context-menu-background-highlight)}button.jse-context-menu-button.svelte-1u2b6j8:focus{background:var(--jse-context-menu-background-highlight);z-index:1}button.jse-context-menu-button.svelte-1u2b6j8:disabled{color:var(--jse-context-menu-color-disabled);background:unset}button.jse-context-menu-button.left.svelte-1u2b6j8{text-align:left}button.jse-context-menu-button.svelte-1u2b6j8 svg{width:16px}")}function BS(e){var t,n;return t=new on({props:{data:e[0].main.icon}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.data=r[0].main.icon),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function YG(e){var t,n,r,o,i,a,s,u,c,l=e[0].main.text+"",f=e[0].main.icon&&BS(e);return{c:function(){t=G("button"),f&&f.c(),n=pt(),r=Ut(l),j(t,"class",o=tr(pa("jse-context-menu-button",e[1],e[0].main.className))+" svelte-1u2b6j8"),j(t,"type","button"),j(t,"slot","defaultItem"),j(t,"title",i=e[0].main.title),t.disabled=a=e[0].main.disabled||!1},m:function(d,h){at(d,t,h),f&&f.m(t,null),B(t,n),B(t,r),s=!0,u||(c=Nt(t,"click",function(){Br(e[0].main.onClick)&&e[0].main.onClick.apply(this,arguments)}),u=!0)},p:function(d,h){(e=d)[0].main.icon?f?(f.p(e,h),1&h&&N(f,1)):((f=BS(e)).c(),N(f,1),f.m(t,n)):f&&(Dt(),q(f,1,1,function(){f=null}),zt()),(!s||1&h)&&l!==(l=e[0].main.text+"")&&me(r,l),(!s||3&h&&o!==(o=tr(pa("jse-context-menu-button",e[1],e[0].main.className))+" svelte-1u2b6j8"))&&j(t,"class",o),(!s||1&h&&i!==(i=e[0].main.title))&&j(t,"title",i),(!s||1&h&&a!==(a=e[0].main.disabled||!1))&&(t.disabled=a)},i:function(d){s||(N(f),s=!0)},o:function(d){q(f),s=!1},d:function(d){d&&it(t),f&&f.d(),u=!1,c()}}}function XG(e){var t,n;return t=new GG({props:{width:e[0].width,items:e[0].items,$$slots:{defaultItem:[YG]},$$scope:{ctx:e}}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i=ke(o,1)[0],a={};1&i&&(a.width=r[0].width),1&i&&(a.items=r[0].items),7&i&&(a.$$scope={dirty:i,ctx:r}),t.$set(a)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function ZG(e,t,n){var r=t.item,o=t.className,i=o===void 0?void 0:o;return e.$$set=function(a){"item"in a&&n(0,r=a.item),"className"in a&&n(1,i=a.className)},[r,i]}var Cy=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,ZG,XG,Nr,{item:0,className:1},QG),o}return Z(n)}();function tQ(e){Ae(e,"svelte-1nininf",".jse-contextmenu.svelte-1nininf.svelte-1nininf{box-shadow:var(--jse-controls-box-shadow);font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-context-menu-background);color:var(--jse-context-menu-color)}.jse-contextmenu.svelte-1nininf .jse-row.svelte-1nininf{display:flex;flex-direction:row;align-items:flex-start;justify-content:stretch}.jse-contextmenu.svelte-1nininf .jse-row div.jse-label.svelte-1nininf{flex:1;white-space:nowrap;padding:var(--jse-padding);color:var(--jse-context-menu-color-disabled);line-height:normal}.jse-contextmenu.svelte-1nininf .jse-row div.jse-tip.svelte-1nininf{flex:1;background:var(--jse-context-menu-tip-background);color:var(--jse-context-menu-tip-color);margin:calc(0.5 * var(--jse-padding));padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);font-size:80%;line-height:1.3em;display:flex;flex-direction:row;align-items:start;gap:var(--jse-padding);border-radius:3px}.jse-contextmenu.svelte-1nininf .jse-row div.jse-tip div.jse-tip-icon.svelte-1nininf{padding-top:calc(0.5 * var(--jse-padding))}.jse-contextmenu.svelte-1nininf .jse-column.svelte-1nininf{flex:1;display:flex;flex-direction:column;align-items:stretch}.jse-contextmenu.svelte-1nininf .jse-column.svelte-1nininf:not(:last-child){border-right:1px solid var(--jse-context-menu-separator-color)}.jse-contextmenu.svelte-1nininf .jse-separator.svelte-1nininf{width:100%;height:1px;background:var(--jse-context-menu-separator-color)}")}function qS(e,t,n){var r=e.slice();return r[6]=t[n],r}function FS(e,t,n){var r=e.slice();return r[9]=t[n],r}function VS(e,t,n){var r=e.slice();return r[12]=t[n],r}function eQ(e){var t,n=xc(e[6])+"";return{c:function(){t=Ut(n)},m:function(r,o){at(r,t,o)},p:function(r,o){1&o&&n!==(n=xc(r[6])+"")&&me(t,n)},i:Bt,o:Bt,d:function(r){r&&it(t)}}}function nQ(e){var t;return{c:function(){j(t=G("div"),"class","jse-separator svelte-1nininf")},m:function(n,r){at(n,t,r)},p:Bt,i:Bt,o:Bt,d:function(n){n&&it(t)}}}function rQ(e){for(var t,n,r=Ee(e[6].items),o=[],i=0;i<r.length;i+=1)o[i]=WS(FS(e,r,i));var a=function(s){return q(o[s],1,1,function(){o[s]=null})};return{c:function(){t=G("div");for(var s=0;s<o.length;s+=1)o[s].c();j(t,"class","jse-row svelte-1nininf")},m:function(s,u){at(s,t,u);for(var c=0;c<o.length;c+=1)o[c]&&o[c].m(t,null);n=!0},p:function(s,u){if(1&u){var c;for(r=Ee(s[6].items),c=0;c<r.length;c+=1){var l=FS(s,r,c);o[c]?(o[c].p(l,u),N(o[c],1)):(o[c]=WS(l),o[c].c(),N(o[c],1),o[c].m(t,null))}for(Dt(),c=r.length;c<o.length;c+=1)a(c);zt()}},i:function(s){if(!n){for(var u=0;u<r.length;u+=1)N(o[u]);n=!0}},o:function(s){o=o.filter(Boolean);for(var u=0;u<o.length;u+=1)q(o[u]);n=!1},d:function(s){s&&it(t),xr(o,s)}}}function oQ(e){var t,n;return t=new Cy({props:{item:e[6]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[6]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function iQ(e){var t,n;return t=new Sy({props:{item:e[6]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[6]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function aQ(e){var t,n=xc(e[9])+"";return{c:function(){t=Ut(n)},m:function(r,o){at(r,t,o)},p:function(r,o){1&o&&n!==(n=xc(r[9])+"")&&me(t,n)},i:Bt,o:Bt,d:function(r){r&&it(t)}}}function sQ(e){var t;return{c:function(){j(t=G("div"),"class","jse-separator svelte-1nininf")},m:function(n,r){at(n,t,r)},p:Bt,i:Bt,o:Bt,d:function(n){n&&it(t)}}}function uQ(e){for(var t,n,r=Ee(e[9].items),o=[],i=0;i<r.length;i+=1)o[i]=HS(VS(e,r,i));var a=function(s){return q(o[s],1,1,function(){o[s]=null})};return{c:function(){t=G("div");for(var s=0;s<o.length;s+=1)o[s].c();j(t,"class","jse-column svelte-1nininf")},m:function(s,u){at(s,t,u);for(var c=0;c<o.length;c+=1)o[c]&&o[c].m(t,null);n=!0},p:function(s,u){if(1&u){var c;for(r=Ee(s[9].items),c=0;c<r.length;c+=1){var l=VS(s,r,c);o[c]?(o[c].p(l,u),N(o[c],1)):(o[c]=HS(l),o[c].c(),N(o[c],1),o[c].m(t,null))}for(Dt(),c=r.length;c<o.length;c+=1)a(c);zt()}},i:function(s){if(!n){for(var u=0;u<r.length;u+=1)N(o[u]);n=!0}},o:function(s){o=o.filter(Boolean);for(var u=0;u<o.length;u+=1)q(o[u]);n=!1},d:function(s){s&&it(t),xr(o,s)}}}function cQ(e){var t,n;return t=new Cy({props:{item:e[9]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[9]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function lQ(e){var t,n;return t=new Sy({props:{item:e[9]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[9]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function fQ(e){var t,n=xc(e[12])+"";return{c:function(){t=Ut(n)},m:function(r,o){at(r,t,o)},p:function(r,o){1&o&&n!==(n=xc(r[12])+"")&&me(t,n)},i:Bt,o:Bt,d:function(r){r&&it(t)}}}function dQ(e){var t,n,r=e[12].text+"";return{c:function(){t=G("div"),n=Ut(r),j(t,"class","jse-label svelte-1nininf")},m:function(o,i){at(o,t,i),B(t,n)},p:function(o,i){1&i&&r!==(r=o[12].text+"")&&me(n,r)},i:Bt,o:Bt,d:function(o){o&&it(t)}}}function hQ(e){var t;return{c:function(){j(t=G("div"),"class","jse-separator svelte-1nininf")},m:function(n,r){at(n,t,r)},p:Bt,i:Bt,o:Bt,d:function(n){n&&it(t)}}}function vQ(e){var t,n;return t=new Cy({props:{className:"left",item:e[12]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[12]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function pQ(e){var t,n;return t=new Sy({props:{className:"left",item:e[12]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[12]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function HS(e){var t,n,r,o,i,a,s,u,c=[pQ,vQ,hQ,dQ,fQ],l=[];function f(d,h){return 1&h&&(t=null),1&h&&(n=null),1&h&&(r=null),1&h&&(o=null),t==null&&(t=!!Lf(d[12])),t?0:(n==null&&(n=!!$y(d[12])),n?1:(r==null&&(r=!!rp(d[12])),r?2:(o==null&&(o=!!bG(d[12])),o?3:4)))}return i=f(e,-1),a=l[i]=c[i](e),{c:function(){a.c(),s=vn()},m:function(d,h){l[i].m(d,h),at(d,s,h),u=!0},p:function(d,h){var v=i;(i=f(d,h))===v?l[i].p(d,h):(Dt(),q(l[v],1,1,function(){l[v]=null}),zt(),(a=l[i])?a.p(d,h):(a=l[i]=c[i](d)).c(),N(a,1),a.m(s.parentNode,s))},i:function(d){u||(N(a),u=!0)},o:function(d){q(a),u=!1},d:function(d){d&&it(s),l[i].d(d)}}}function WS(e){var t,n,r,o,i,a,s,u,c=[lQ,cQ,uQ,sQ,aQ],l=[];function f(d,h){return 1&h&&(t=null),1&h&&(n=null),1&h&&(r=null),1&h&&(o=null),t==null&&(t=!!Lf(d[9])),t?0:(n==null&&(n=!!$y(d[9])),n?1:(r==null&&(r=!!xG(d[9])),r?2:(o==null&&(o=!!rp(d[9])),o?3:4)))}return i=f(e,-1),a=l[i]=c[i](e),{c:function(){a.c(),s=vn()},m:function(d,h){l[i].m(d,h),at(d,s,h),u=!0},p:function(d,h){var v=i;(i=f(d,h))===v?l[i].p(d,h):(Dt(),q(l[v],1,1,function(){l[v]=null}),zt(),(a=l[i])?a.p(d,h):(a=l[i]=c[i](d)).c(),N(a,1),a.m(s.parentNode,s))},i:function(d){u||(N(a),u=!0)},o:function(d){q(a),u=!1},d:function(d){d&&it(s),l[i].d(d)}}}function US(e){var t,n,r,o,i,a,s,u,c=[iQ,oQ,rQ,nQ,eQ],l=[];function f(d,h){return 1&h&&(t=null),1&h&&(n=null),1&h&&(r=null),1&h&&(o=null),t==null&&(t=!!Lf(d[6])),t?0:(n==null&&(n=!!$y(d[6])),n?1:(r==null&&(r=!!wG(d[6])),r?2:(o==null&&(o=!!rp(d[6])),o?3:4)))}return i=f(e,-1),a=l[i]=c[i](e),{c:function(){a.c(),s=vn()},m:function(d,h){l[i].m(d,h),at(d,s,h),u=!0},p:function(d,h){var v=i;(i=f(d,h))===v?l[i].p(d,h):(Dt(),q(l[v],1,1,function(){l[v]=null}),zt(),(a=l[i])?a.p(d,h):(a=l[i]=c[i](d)).c(),N(a,1),a.m(s.parentNode,s))},i:function(d){u||(N(a),u=!0)},o:function(d){q(a),u=!1},d:function(d){d&&it(s),l[i].d(d)}}}function JS(e){var t,n,r,o,i,a,s,u;return o=new on({props:{data:TU}}),{c:function(){t=G("div"),n=G("div"),r=G("div"),$t(o.$$.fragment),i=pt(),a=G("div"),s=Ut(e[1]),j(r,"class","jse-tip-icon svelte-1nininf"),j(a,"class","jse-tip-text"),j(n,"class","jse-tip svelte-1nininf"),j(t,"class","jse-row svelte-1nininf")},m:function(c,l){at(c,t,l),B(t,n),B(n,r),kt(o,r,null),B(n,i),B(n,a),B(a,s),u=!0},p:function(c,l){(!u||2&l)&&me(s,c[1])},i:function(c){u||(N(o.$$.fragment,c),u=!0)},o:function(c){q(o.$$.fragment,c),u=!1},d:function(c){c&&it(t),jt(o)}}}function mQ(e){for(var t,n,r,o,i,a=Ee(e[0]),s=[],u=0;u<a.length;u+=1)s[u]=US(qS(e,a,u));var c=function(f){return q(s[f],1,1,function(){s[f]=null})},l=e[1]&&JS(e);return{c:function(){t=G("div");for(var f=0;f<s.length;f+=1)s[f].c();n=pt(),l&&l.c(),j(t,"role","menu"),j(t,"tabindex","-1"),j(t,"class","jse-contextmenu svelte-1nininf")},m:function(f,d){at(f,t,d);for(var h=0;h<s.length;h+=1)s[h]&&s[h].m(t,null);B(t,n),l&&l.m(t,null),e[4](t),r=!0,o||(i=Nt(t,"keydown",e[3]),o=!0)},p:function(f,d){var h=ke(d,1)[0];if(1&h){var v;for(a=Ee(f[0]),v=0;v<a.length;v+=1){var p=qS(f,a,v);s[v]?(s[v].p(p,h),N(s[v],1)):(s[v]=US(p),s[v].c(),N(s[v],1),s[v].m(t,n))}for(Dt(),v=a.length;v<s.length;v+=1)c(v);zt()}f[1]?l?(l.p(f,h),2&h&&N(l,1)):((l=JS(f)).c(),N(l,1),l.m(t,null)):l&&(Dt(),q(l,1,1,function(){l=null}),zt())},i:function(f){if(!r){for(var d=0;d<a.length;d+=1)N(s[d]);N(l),r=!0}},o:function(f){s=s.filter(Boolean);for(var d=0;d<s.length;d+=1)q(s[d]);q(l),r=!1},d:function(f){f&&it(t),xr(s,f),l&&l.d(),e[4](null),o=!1,i()}}}function xc(e){return console.error("Unknown type of context menu item",e),"???"}function gQ(e,t,n){var r,o=t.items,i=t.tip;ai(function(){setTimeout(function(){var s=xe(r.querySelectorAll("button")).find(function(u){return!u.disabled});s&&s.focus()})});var a={ArrowUp:"Up",ArrowDown:"Down",ArrowLeft:"Left",ArrowRight:"Right"};return e.$$set=function(s){"items"in s&&n(0,o=s.items),"tip"in s&&n(1,i=s.tip)},[o,i,r,function(s){var u=Ds(s),c=a[u];if(typeof c=="string"){s.preventDefault();var l=wU({allElements:Array.from(r.querySelectorAll("button:not([disabled])")),currentElement:s.target,direction:c,hasPrio:function(f){return f.getAttribute("data-type")!=="jse-open-dropdown"}});l&&l.focus()}},function(s){Ge[s?"unshift":"push"](function(){n(2,r=s)})}]}var m7=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,gQ,mQ,De,{items:0,tip:1},tQ),o}return Z(n)}();function yQ(e){var t,n;return t=new m7({props:{items:e[1],tip:e[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};2&o[0]&&(i.items=r[1]),1&o[0]&&(i.tip=r[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function bQ(e,t,n){var r,o,i,a,s,u,c,l,f,d,h,v,p,m,g,y,b,w,x,k,E=t.json,R=t.documentState,z=t.parser,A=t.showTip,_=t.onCloseContextMenu,U=t.onEditKey,J=t.onEditValue,D=t.onToggleEnforceString,F=t.onCut,V=t.onCopy,C=t.onPaste,P=t.onRemove,$=t.onDuplicate,S=t.onExtract,O=t.onInsertBefore,I=t.onInsert,M=t.onConvert,L=t.onInsertAfter,T=t.onSort,ut=t.onTransform;function lt(){_(),U()}function xt(){_(),J()}function Ct(){_(),D()}function Mt(){_(),F(!0)}function dt(){_(),F(!1)}function It(){_(),V(!0)}function bt(){_(),V(!1)}function Tt(){_(),C()}function ft(){_(),P()}function ae(){_(),$()}function H(){_(),S()}function Q(Vt){_(),c?M(Vt):I(Vt)}function tt(){_(),T()}function yt(){_(),ut()}function St(){_(),O()}function Ht(){_(),L()}return e.$$set=function(Vt){"json"in Vt&&n(2,E=Vt.json),"documentState"in Vt&&n(3,R=Vt.documentState),"parser"in Vt&&n(4,z=Vt.parser),"showTip"in Vt&&n(0,A=Vt.showTip),"onCloseContextMenu"in Vt&&n(5,_=Vt.onCloseContextMenu),"onEditKey"in Vt&&n(6,U=Vt.onEditKey),"onEditValue"in Vt&&n(7,J=Vt.onEditValue),"onToggleEnforceString"in Vt&&n(8,D=Vt.onToggleEnforceString),"onCut"in Vt&&n(9,F=Vt.onCut),"onCopy"in Vt&&n(10,V=Vt.onCopy),"onPaste"in Vt&&n(11,C=Vt.onPaste),"onRemove"in Vt&&n(12,P=Vt.onRemove),"onDuplicate"in Vt&&n(13,$=Vt.onDuplicate),"onExtract"in Vt&&n(14,S=Vt.onExtract),"onInsertBefore"in Vt&&n(15,O=Vt.onInsertBefore),"onInsert"in Vt&&n(16,I=Vt.onInsert),"onConvert"in Vt&&n(17,M=Vt.onConvert),"onInsertAfter"in Vt&&n(18,L=Vt.onInsertAfter),"onSort"in Vt&&n(19,T=Vt.onSort),"onTransform"in Vt&&n(20,ut=Vt.onTransform)},e.$$.update=function(){8&e.$$.dirty[0]&&n(37,r=R.selection),4&e.$$.dirty[0]&&n(39,o=E!==void 0),64&e.$$.dirty[1]&&n(31,i=!!r),64&e.$$.dirty[1]&&n(21,a=r&&Ze(he(r))),4&e.$$.dirty[0]|64&e.$$.dirty[1]&&n(38,s=r?ie(E,he(r)):void 0),128&e.$$.dirty[1]&&n(35,u=Array.isArray(s)?"Edit array":er(s)?"Edit object":"Edit value"),320&e.$$.dirty[1]&&n(22,c=o&&(An(r)||Cr(r)||rn(r))),6291456&e.$$.dirty[0]|256&e.$$.dirty[1]&&n(30,l=o&&c&&!a),2097152&e.$$.dirty[0]|320&e.$$.dirty[1]&&n(29,f=o&&r!=null&&(An(r)||rn(r))&&!a),2097156&e.$$.dirty[0]|320&e.$$.dirty[1]&&n(36,d=o&&r!=null&&Fh(r)&&!a&&!Array.isArray(ie(E,Qe(he(r))))),320&e.$$.dirty[1]&&n(34,h=o&&r!=null&&Fh(r)),136&e.$$.dirty[1]&&n(32,v=h&&!sr(s)),4194304&e.$$.dirty[0]&&n(25,p=c),33554432&e.$$.dirty[0]&&n(24,m=p?"Convert to:":"Insert:"),33554432&e.$$.dirty[0]|1&e.$$.dirty[1]&&n(28,g=!p&&i),33554432&e.$$.dirty[0]|193&e.$$.dirty[1]&&n(27,y=p?sh(r)&&!er(s):i),33554432&e.$$.dirty[0]|193&e.$$.dirty[1]&&n(26,b=p?sh(r)&&!Array.isArray(s):i),33554432&e.$$.dirty[0]|193&e.$$.dirty[1]&&n(23,w=p?sh(r)&&sr(s):i),24&e.$$.dirty[0]|192&e.$$.dirty[1]&&n(33,x=r!=null&&qa(s,R.enforceStringMap,Zt(he(r)),z)),2145386496&e.$$.dirty[0]|63&e.$$.dirty[1]&&n(1,k=[{type:"row",items:[{type:"button",onClick:lt,icon:oc,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!d},{type:"dropdown-button",main:{type:"button",onClick:xt,icon:oc,text:u,title:"Edit the value (Double-click on the value)",disabled:!h},width:"11em",items:[{type:"button",icon:oc,text:u,title:"Edit the value (Double-click on the value)",onClick:xt,disabled:!h},{type:"button",icon:x?Kl:Gl,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:Ct,disabled:!v}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:Mt,icon:rc,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!c},width:"10em",items:[{type:"button",icon:rc,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:Mt,disabled:!c},{type:"button",icon:rc,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:dt,disabled:!c}]},{type:"dropdown-button",main:{type:"button",onClick:It,icon:ps,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!c},width:"12em",items:[{type:"button",icon:ps,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:It,disabled:!c},{type:"button",icon:ps,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:bt,disabled:!c}]},{type:"button",onClick:Tt,icon:QA,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!i}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:ae,icon:t7,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!l},{type:"button",onClick:H,icon:qJ,text:"Extract",title:"Extract selected contents",disabled:!f},{type:"button",onClick:tt,icon:Xv,text:"Sort",title:"Sort array or object contents",disabled:!c},{type:"button",onClick:yt,icon:Qv,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:!c},{type:"button",onClick:ft,icon:Ag,text:"Remove",title:"Remove selected contents (Delete)",disabled:!c}]},{type:"column",items:[{type:"label",text:m},{type:"button",onClick:function(){return Q("structure")},icon:p?ud:Ku,text:"Structure",title:m+" structure",disabled:!g},{type:"button",onClick:function(){return Q("object")},icon:p?ud:Ku,text:"Object",title:m+" structure",disabled:!y},{type:"button",onClick:function(){return Q("array")},icon:p?ud:Ku,text:"Array",title:m+" array",disabled:!b},{type:"button",onClick:function(){return Q("value")},icon:p?ud:Ku,text:"Value",title:m+" value",disabled:!w}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:St,icon:LJ,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:!c||a},{type:"button",onClick:Ht,icon:IJ,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:!c||a}]}])},[A,k,E,R,z,_,U,J,D,F,V,C,P,$,S,O,I,M,L,T,ut,a,c,w,m,p,b,y,g,f,l,i,v,x,h,u,d,r,s,o]}var wQ=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,bQ,yQ,De,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditKey:6,onEditValue:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicate:13,onExtract:14,onInsertBefore:15,onInsert:16,onConvert:17,onInsertAfter:18,onSort:19,onTransform:20},null,[-1,-1]),o}return Z(n)}();function xQ(e){Ae(e,"svelte-1kai5ns","div.jse-collapsed-items.svelte-1kai5ns.svelte-1kai5ns{font-family:var(--jse-font-family);font-size:var(--jse-font-size);color:var(--jse-collapsed-items-link-color);padding:calc(0.5 * var(--jse-padding));border:8px solid transparent;border-width:8px 0;background-color:var(--jse-contents-background-color);background-image:linear-gradient(var(--jse-collapsed-items-background-color), var(--jse-collapsed-items-background-color)), linear-gradient(to bottom right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to bottom left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%);background-repeat:repeat, repeat-x, repeat-x, repeat-x, repeat-x;background-position:0 0, 8px 0, 8px 0, 8px 100%, 8px 100%;background-size:auto auto, 16px 16px, 16px 16px, 16px 16px, 16px 16px;background-clip:padding-box, border-box, border-box, border-box, border-box;background-origin:padding-box, border-box, border-box, border-box, border-box;display:flex}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{margin:0 calc(0.5 * var(--jse-padding))}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns{display:inline}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{font-family:inherit;font-size:inherit;color:var(--jse-collapsed-items-link-color);background:none;border:none;padding:0;text-decoration:underline;cursor:pointer}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:hover,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:focus{color:var(--jse-collapsed-items-link-color-highlight)}")}function KS(e,t,n){var r=e.slice();return r[13]=t[n],r}function GS(e){var t,n,r,o,i,a,s,u,c=e[13].start+"",l=e[13].end+"";function f(){return e[12](e[13])}return{c:function(){t=G("button"),n=Ut("show "),r=Ut(c),o=Ut("-"),i=Ut(l),a=pt(),j(t,"type","button"),j(t,"class","jse-expand-items svelte-1kai5ns")},m:function(d,h){at(d,t,h),B(t,n),B(t,r),B(t,o),B(t,i),B(t,a),s||(u=Nt(t,"click",f),s=!0)},p:function(d,h){e=d,16&h&&c!==(c=e[13].start+"")&&me(r,c),16&h&&l!==(l=e[13].end+"")&&me(i,l)},d:function(d){d&&it(t),s=!1,u()}}}function kQ(e){for(var t,n,r,o,i,a,s,u,c,l,f,d=Ee(e[4]),h=[],v=0;v<d.length;v+=1)h[v]=GS(KS(e,d,v));return{c:function(){t=G("div"),n=G("div"),r=G("div"),o=Ut("Items "),i=Ut(e[3]),a=Ut("-"),s=Ut(e[2]),u=pt();for(var p=0;p<h.length;p+=1)h[p].c();j(r,"class","jse-text svelte-1kai5ns"),j(t,"role","none"),j(t,"class","jse-collapsed-items svelte-1kai5ns"),j(t,"style",c=QS(e[0].length+2)),Pt(t,"jse-selected",e[5])},m:function(p,m){at(p,t,m),B(t,n),B(n,r),B(r,o),B(r,i),B(r,a),B(r,s),B(n,u);for(var g=0;g<h.length;g+=1)h[g]&&h[g].m(n,null);l||(f=Nt(t,"mousemove",jQ),l=!0)},p:function(p,m){var g=ke(m,1)[0];if(8&g&&me(i,p[3]),4&g&&me(s,p[2]),19&g){var y;for(d=Ee(p[4]),y=0;y<d.length;y+=1){var b=KS(p,d,y);h[y]?h[y].p(b,g):(h[y]=GS(b),h[y].c(),h[y].m(n,null))}for(;y<h.length;y+=1)h[y].d(1);h.length=d.length}1&g&&c!==(c=QS(p[0].length+2))&&j(t,"style",c),32&g&&Pt(t,"jse-selected",p[5])},i:Bt,o:Bt,d:function(p){p&&it(t),xr(h,p),l=!1,f()}}}function QS(e){return"margin-left: calc(".concat(e," * var(--jse-indent-size))")}function jQ(e){e.stopPropagation()}function $Q(e,t,n){var r,o,i,a,s,u=t.visibleSections,c=t.sectionIndex,l=t.total,f=t.path,d=t.selection,h=t.onExpandSection,v=t.context;return e.$$set=function(p){"visibleSections"in p&&n(6,u=p.visibleSections),"sectionIndex"in p&&n(7,c=p.sectionIndex),"total"in p&&n(8,l=p.total),"path"in p&&n(0,f=p.path),"selection"in p&&n(9,d=p.selection),"onExpandSection"in p&&n(1,h=p.onExpandSection),"context"in p&&n(10,v=p.context)},e.$$.update=function(){192&e.$$.dirty&&n(11,r=u[c]),2048&e.$$.dirty&&n(3,o=r.end),448&e.$$.dirty&&n(2,i=u[c+1]?u[c+1].start:l),1545&e.$$.dirty&&n(5,a=Ql(v.getJson(),d,f.concat(String(o)))),12&e.$$.dirty&&n(4,s=function(p,m){var g={start:p,end:Math.min(Sg(p),m)},y=Math.max(Bh((p+m)/2),p),b={start:y,end:Math.min(Sg(y),m)},w=Bh(m),x=w===m?w-ql:w,k={start:Math.max(x,p),end:m},E=[g],R=b.start>=g.end&&b.end<=k.start;return R&&E.push(b),k.start>=(R?b.end:g.end)&&E.push(k),E}(o,i))},[f,h,i,o,s,a,u,c,l,d,v,r,function(p){return h(f,p)}]}var SQ=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,$Q,kQ,De,{visibleSections:6,sectionIndex:7,total:8,path:0,selection:9,onExpandSection:1,context:10},xQ),o}return Z(n)}();function CQ(e){Ae(e,"svelte-1yzl4st",".jse-context-menu-pointer.svelte-1yzl4st{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size));right:calc(-0.5 * var(--jse-context-menu-pointer-size));width:var(--jse-context-menu-pointer-size);height:var(--jse-context-menu-pointer-size);padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background);color:var(--jse-context-menu-pointer-color);border:none;box-shadow:var(--jse-controls-box-shadow)}.jse-context-menu-pointer.svelte-1yzl4st:hover{background:var(--jse-context-menu-pointer-background-highlight)}")}function _Q(e){var t,n,r,o,i;return n=new on({props:{data:Qo}}),{c:function(){t=G("button"),$t(n.$$.fragment),j(t,"type","button"),j(t,"class","jse-context-menu-pointer svelte-1yzl4st"),j(t,"title",s1),Pt(t,"jse-selected",e[0])},m:function(a,s){at(a,t,s),kt(n,t,null),r=!0,o||(i=Nt(t,"click",e[1]),o=!0)},p:function(a,s){var u=ke(s,1)[0];(!r||1&u)&&Pt(t,"jse-selected",a[0])},i:function(a){r||(N(n.$$.fragment,a),r=!0)},o:function(a){q(n.$$.fragment,a),r=!1},d:function(a){a&&it(t),jt(n),o=!1,i()}}}function OQ(e,t,n){var r=t.selected,o=t.onContextMenu;return e.$$set=function(i){"selected"in i&&n(0,r=i.selected),"onContextMenu"in i&&n(2,o=i.onContextMenu)},[r,function(i){for(var a=i.target;a&&a.nodeName!=="BUTTON";)a=a.parentNode;a&&o({anchor:a,left:0,top:0,width:Aa,height:Ea,offsetTop:2,offsetLeft:0,showTip:!0})},o]}var zs=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,OQ,_Q,De,{selected:0,onContextMenu:2},CQ),o}return Z(n)}();function MQ(e){Ae(e,"svelte-24a1b2",'.jse-key.svelte-24a1b2{display:inline-block;min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;color:var(--jse-key-color);cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.jse-empty.svelte-24a1b2{min-width:3em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-key.jse-empty.svelte-24a1b2::after{pointer-events:none;color:var(--jse-tag-background);content:"key"}')}function EQ(e){var t,n,r,o,i,a,s,u=[TQ,PQ],c=[];function l(f,d){return f[1]?0:1}return n=l(e),r=c[n]=u[n](e),{c:function(){t=G("div"),r.c(),j(t,"role","none"),j(t,"data-type","selectable-key"),j(t,"class",o=tr(e[6](e[0]))+" svelte-24a1b2")},m:function(f,d){at(f,t,d),c[n].m(t,null),i=!0,a||(s=Nt(t,"dblclick",e[5]),a=!0)},p:function(f,d){var h=n;(n=l(f))===h?c[n].p(f,d):(Dt(),q(c[h],1,1,function(){c[h]=null}),zt(),(r=c[n])?r.p(f,d):(r=c[n]=u[n](f)).c(),N(r,1),r.m(t,null)),(!i||1&d&&o!==(o=tr(f[6](f[0]))+" svelte-24a1b2"))&&j(t,"class",o)},i:function(f){i||(N(r),i=!0)},o:function(f){q(r),i=!1},d:function(f){f&&it(t),c[n].d(),a=!1,s()}}}function AQ(e){var t,n;return t=new VA({props:{value:e[2].normalization.escapeValue(e[0]),shortText:!0,onChange:e[7],onCancel:e[8],onFind:e[2].onFind}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};5&o&&(i.value=r[2].normalization.escapeValue(r[0])),4&o&&(i.onFind=r[2].onFind),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function PQ(e){var t,n=gu(e[2].normalization.escapeValue(e[0]))+"";return{c:function(){t=Ut(n)},m:function(r,o){at(r,t,o)},p:function(r,o){5&o&&n!==(n=gu(r[2].normalization.escapeValue(r[0]))+"")&&me(t,n)},i:Bt,o:Bt,d:function(r){r&&it(t)}}}function TQ(e){var t,n;return t=new GA({props:{text:e[2].normalization.escapeValue(e[0]),searchResultItems:e[1]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};5&o&&(i.text=r[2].normalization.escapeValue(r[0])),2&o&&(i.searchResultItems=r[1]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function YS(e){var t,n;return t=new zs({props:{selected:!0,onContextMenu:e[2].onContextMenu}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};4&o&&(i.onContextMenu=r[2].onContextMenu),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function RQ(e){var t,n,r,o,i,a=[AQ,EQ],s=[];function u(l,f){return l[4]?0:1}t=u(e),n=s[t]=a[t](e);var c=!e[2].readOnly&&e[3]&&!e[4]&&YS(e);return{c:function(){n.c(),r=pt(),c&&c.c(),o=vn()},m:function(l,f){s[t].m(l,f),at(l,r,f),c&&c.m(l,f),at(l,o,f),i=!0},p:function(l,f){var d=ke(f,1)[0],h=t;(t=u(l))===h?s[t].p(l,d):(Dt(),q(s[h],1,1,function(){s[h]=null}),zt(),(n=s[t])?n.p(l,d):(n=s[t]=a[t](l)).c(),N(n,1),n.m(r.parentNode,r)),l[2].readOnly||!l[3]||l[4]?c&&(Dt(),q(c,1,1,function(){c=null}),zt()):c?(c.p(l,d),28&d&&N(c,1)):((c=YS(l)).c(),N(c,1),c.m(o.parentNode,o))},i:function(l){i||(N(n),N(c),i=!0)},o:function(l){q(n),q(c),i=!1},d:function(l){l&&(it(r),it(o)),s[t].d(l),c&&c.d(l)}}}function NQ(e,t,n){var r,o,i=t.path,a=t.key,s=t.selection,u=t.searchResultItems,c=t.onUpdateKey,l=t.context;return e.$$set=function(f){"path"in f&&n(9,i=f.path),"key"in f&&n(0,a=f.key),"selection"in f&&n(10,s=f.selection),"searchResultItems"in f&&n(1,u=f.searchResultItems),"onUpdateKey"in f&&n(11,c=f.onUpdateKey),"context"in f&&n(2,l=f.context)},e.$$.update=function(){1536&e.$$.dirty&&n(3,r=!!s&&Cr(s)&&Ye(s.path,i)),1032&e.$$.dirty&&n(4,o=r&&li(s))},[a,u,l,r,o,function(f){o||l.readOnly||(f.preventDefault(),l.onSelect(oi(i,!0)))},function(f){return pa("jse-key",{"jse-empty":f===""})},function(f,d){var h=c(a,l.normalization.unescapeValue(f)),v=Qe(i).concat(h);l.onSelect(d===c1?Fe(v,!1):oi(v,!1)),d!==u1&&l.focus()},function(){l.onSelect(oi(i,!1)),l.focus()},i,s,c]}var IQ=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,NQ,RQ,De,{path:9,key:0,selection:10,searchResultItems:1,onUpdateKey:11,context:2},MQ),o}return Z(n)}();function XS(e,t,n){var r=e.slice();return r[8]=t[n],r}function ZS(e){var t,n,r,o=[e[8].props],i=e[8].component;function a(s,u){var c={};if(u!==void 0&&1&u)c=si(o,[du(s[8].props)]);else for(var l=0;l<o.length;l+=1)c=So(c,o[l]);return{props:c}}return i&&(t=ha(i,a(e))),{c:function(){t&&$t(t.$$.fragment),n=vn()},m:function(s,u){t&&kt(t,s,u),at(s,n,u),r=!0},p:function(s,u){if(1&u&&i!==(i=s[8].component)){if(t){Dt();var c=t;q(c.$$.fragment,1,0,function(){jt(c,1)}),zt()}i?($t((t=ha(i,a(s,u))).$$.fragment),N(t.$$.fragment,1),kt(t,n.parentNode,n)):t=null}else if(i){var l=1&u?si(o,[du(s[8].props)]):{};t.$set(l)}},i:function(s){r||(t&&N(t.$$.fragment,s),r=!0)},o:function(s){t&&q(t.$$.fragment,s),r=!1},d:function(s){s&&it(n),t&&jt(t,s)}}}function DQ(e){for(var t,n,r=Ee(e[0]),o=[],i=0;i<r.length;i+=1)o[i]=ZS(XS(e,r,i));var a=function(s){return q(o[s],1,1,function(){o[s]=null})};return{c:function(){for(var s=0;s<o.length;s+=1)o[s].c();t=vn()},m:function(s,u){for(var c=0;c<o.length;c+=1)o[c]&&o[c].m(s,u);at(s,t,u),n=!0},p:function(s,u){var c=ke(u,1)[0];if(1&c){var l;for(r=Ee(s[0]),l=0;l<r.length;l+=1){var f=XS(s,r,l);o[l]?(o[l].p(f,c),N(o[l],1)):(o[l]=ZS(f),o[l].c(),N(o[l],1),o[l].m(t.parentNode,t))}for(Dt(),l=r.length;l<o.length;l+=1)a(l);zt()}},i:function(s){if(!n){for(var u=0;u<r.length;u+=1)N(o[u]);n=!0}},o:function(s){o=o.filter(Boolean);for(var u=0;u<o.length;u+=1)q(o[u]);n=!1},d:function(s){s&&it(t),xr(o,s)}}}function zQ(e,t,n){var r,o,i=t.path,a=t.value,s=t.context,u=t.enforceString,c=t.selection,l=t.searchResultItems;return e.$$set=function(f){"path"in f&&n(1,i=f.path),"value"in f&&n(2,a=f.value),"context"in f&&n(3,s=f.context),"enforceString"in f&&n(4,u=f.enforceString),"selection"in f&&n(5,c=f.selection),"searchResultItems"in f&&n(6,l=f.searchResultItems)},e.$$.update=function(){40&e.$$.dirty&&n(7,r=!s.readOnly&&rn(c)&&li(c)),254&e.$$.dirty&&n(0,o=s.onRenderValue({path:i,value:a,readOnly:s.readOnly,enforceString:u,isEditing:r,parser:s.parser,normalization:s.normalization,selection:c,searchResultItems:l,onPatch:s.onPatch,onPasteJson:s.onPasteJson,onSelect:s.onSelect,onFind:s.onFind,findNextInside:s.findNextInside,focus:s.focus}))},[o,i,a,s,u,c,l,r]}var LQ=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,zQ,DQ,De,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),o}return Z(n)}(),BQ=LQ,Dr={selecting:!1,selectionAnchor:null,selectionAnchorType:null,selectionFocus:null,dragging:!1};function im(e){var t=e.json,n=e.documentState,r=e.deltaY,o=e.items;if(!n.selection)return{operations:void 0,updatedSelection:null,offset:0};var i=n.selection,a=r<0?function(l){for(var f=l.json,d=l.items,h=l.selection,v=l.deltaY,p=Pa(f,h),m=d.findIndex(function(k){return Ye(k.path,p)}),g=function(){var k;return(k=d[y-1])===null||k===void 0?void 0:k.height},y=m,b=0;g()!==void 0&&Math.abs(v)>b+g()/2;)b+=g(),y-=1;var w=d[y].path,x=y-m;return y!==m&&d[y]!==void 0?{beforePath:w,offset:x}:void 0}({json:t,selection:i,deltaY:r,items:o}):function(l){for(var f,d=l.json,h=l.items,v=l.selection,p=l.deltaY,m=vs(d,v),g=h.findIndex(function(_){return Ye(_.path,m)}),y=0,b=g,w=function(){var _;return(_=h[b+1])===null||_===void 0?void 0:_.height};w()!==void 0&&Math.abs(p)>y+w()/2;)y+=w(),b+=1;var x=Qe(m),k=ie(d,x),E=Array.isArray(k),R=E?b:b+1,z=(f=h[R])===null||f===void 0?void 0:f.path,A=b-g;return z?{beforePath:z,offset:A}:{append:!0,offset:A}}({json:t,selection:i,deltaY:r,items:o});if(!a||a.offset===0)return{operations:void 0,updatedSelection:null,offset:0};var s=function(l,f,d){if(!f)return[];var h="beforePath"in d?d.beforePath:void 0,v="append"in d?d.append:void 0,p=Qe(he(f)),m=ie(l,p);if(!(v||h&&js(h,p)&&h.length>p.length))return[];var g=Pa(l,f),y=vs(l,f),b=Me(g),w=Me(y),x=h?h[p.length]:void 0;if(!ur(m)){if(In(m)){var k=Xr(b),E=Xr(w),R=x!==void 0?Xr(x):m.length;return fA(E-k+1,R<k?function(J){return{op:"move",from:Zt(p.concat(String(k+J))),path:Zt(p.concat(String(R+J)))}}:function(){return{op:"move",from:Zt(p.concat(String(k))),path:Zt(p.concat(String(R)))}})}throw new Error("Cannot create move operations: parent must be an Object or Array")}var z=Object.keys(m),A=z.indexOf(b),_=z.indexOf(w),U=v?z.length:x!==void 0?z.indexOf(x):-1;return A!==-1&&_!==-1&&U!==-1?U>A?[].concat(xe(z.slice(A,_+1)),xe(z.slice(U,z.length))).map(function(J){return yu(p,J)}):[].concat(xe(z.slice(U,A)),xe(z.slice(_+1,z.length))).map(function(J){return yu(p,J)}):[]}(t,i,a),u=ie(t,Qe(Pa(t,i)));if(Array.isArray(u)){var c=function(l){var f,d,h=l.items,v=l.json,p=l.selection,m=l.offset,g=Pa(v,p),y=vs(v,p),b=h.findIndex(function(E){return Ye(E.path,g)}),w=h.findIndex(function(E){return Ye(E.path,y)}),x=(f=h[b+m])===null||f===void 0?void 0:f.path,k=(d=h[w+m])===null||d===void 0?void 0:d.path;return io(x,k)}({items:o,json:t,selection:i,offset:a.offset});return{operations:s,updatedSelection:c,offset:a.offset}}return{operations:s,updatedSelection:null,offset:a.offset}}function Ui(e,t){return function(n,r){if(n){for(var o={},i=0,a=Object.keys(n);i<a.length;i++){var s=a[i];r(s,n[s])&&(o[s]=n[s])}return Object.keys(o).length>0?o:void 0}}(e,function(n){return Mv(n,t)})}function qQ(e){Ae(e,"svelte-pz3g1j","button.jse-validation-error.svelte-pz3g1j{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color)}")}function FQ(e){var t,n,r,o,i,a;return n=new on({props:{data:_u}}),{c:function(){t=G("button"),$t(n.$$.fragment),j(t,"type","button"),j(t,"class","jse-validation-error svelte-pz3g1j")},m:function(s,u){at(s,t,u),kt(n,t,null),o=!0,i||(a=[Nt(t,"click",function(){Br(e[0])&&e[0].apply(this,arguments)}),Fr(r=my.call(null,t,vt({text:e[1]},e[2])))],i=!0)},p:function(s,u){var c=ke(u,1)[0];e=s,r&&Br(r.update)&&2&c&&r.update.call(null,vt({text:e[1]},e[2]))},i:function(s){o||(N(n.$$.fragment,s),o=!0)},o:function(s){q(n.$$.fragment,s),o=!1},d:function(s){s&&it(t),jt(n),i=!1,Tn(a)}}}function VQ(e,t,n){var r,o=Vr("absolute-popup"),i=t.validationError,a=t.onExpand;return e.$$set=function(s){"validationError"in s&&n(3,i=s.validationError),"onExpand"in s&&n(0,a=s.onExpand)},e.$$.update=function(){8&e.$$.dirty&&n(1,r=i.isChildError?"Contains invalid data":i.message)},[a,r,o,i]}var Vc=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,VQ,FQ,Nr,{validationError:3,onExpand:0},qQ),o}return Z(n)}();function HQ(e){Ae(e,"svelte-1wlxti1",".jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative;color:var(--jse-text-color)}.jse-json-node.jse-root.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1 .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1 .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size))}.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1.svelte-1wlxti1{padding-left:0}.jse-json-node.svelte-1wlxti1 .jse-props.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-items.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header .jse-meta.svelte-1wlxti1>.jse-meta-inner.svelte-1wlxti1.svelte-1wlxti1{display:flex;justify-content:center}.jse-json-node.svelte-1wlxti1 .jse-contents-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;flex-direction:row;align-items:start}.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-left:var(--jse-indent-size)}.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;padding-left:calc(var(--jse-indent-size) + 5px)}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-contents-background-color)}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding));flex:1}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-inside.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;align-items:center}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-after.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;align-items:flex-end}.jse-json-node.svelte-1wlxti1 .jse-context-menu-pointer-anchor.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;position:relative;z-index:1;max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding));outline:1px solid}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1 .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-hovered.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1:hover>.jse-contents-outer .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1:hover>.jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-footer-outer:hover .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-hover-background-color)}.jse-json-node.jse-selected.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected.svelte-1wlxti1 .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-identifier>.jse-key{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.svelte-1wlxti1 .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-collapsed-items{background-color:var(--jse-selection-background-color);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-readonly.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight)}.jse-main:not(.jse-focus) .jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-selection-background-color:var(--jse-selection-background-inactive-color);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{width:var(--jse-indent-size);padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color);font-size:var(--jse-font-size-mono);height:var(--jse-line-height)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-separator.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;color:var(--jse-delimiter-color)}.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 calc(0.5 * var(--jse-padding))}.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 2px}.jse-bracket.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-right:var(--jse-padding)}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{border:none;font-size:80%;font-family:var(--jse-font-family);color:var(--jse-tag-color);background:var(--jse-tag-background);border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{opacity:0.7;cursor:inherit}.jse-identifier.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;position:relative}")}var WQ=function(e){return{}},t8=function(e){return{}};function e8(e,t,n){var r=e.slice();return r[53]=t[n],r}var UQ=function(e){return{}},n8=function(e){return{}};function r8(e,t,n){var r=e.slice();return r[47]=t[n],r[49]=n,r}function o8(e,t,n){var r=e.slice();return r[50]=t[n],r}var JQ=function(e){return{}},i8=function(e){return{}};function KQ(e){var t,n,r,o,i,a,s,u,c,l=!e[8].readOnly&&e[16]&&e[7]&&(rn(e[7])||An(e[7]))&&!li(e[7])&&Ye(he(e[7]),e[1]),f=e[34].identifier,d=hr(f,e,e[35],t8),h=!e[17]&&a8();i=new BQ({props:{path:e[1],value:e[0],enforceString:e[13],selection:e[16]?e[7]:null,searchResultItems:S4(e[6],e[9]),context:e[8]}});var v=l&&s8(e),p=e[15]&&u8(e),m=!e[17]&&c8(e);return{c:function(){t=G("div"),n=G("div"),d&&d.c(),r=pt(),h&&h.c(),o=pt(),$t(i.$$.fragment),a=pt(),v&&v.c(),s=pt(),p&&p.c(),u=pt(),m&&m.c(),j(n,"class","jse-contents svelte-1wlxti1"),j(t,"class","jse-contents-outer svelte-1wlxti1"),j(t,"style",e[18])},m:function(g,y){at(g,t,y),B(t,n),d&&d.m(n,null),B(n,r),h&&h.m(n,null),B(n,o),kt(i,n,null),B(n,a),v&&v.m(n,null),B(t,s),p&&p.m(t,null),B(t,u),m&&m.m(t,null),c=!0},p:function(g,y){d&&d.p&&(!c||16&y[1])&&pr(d,f,g,g[35],c?vr(f,g[35],y,WQ):mr(g[35]),t8),g[17]?h&&(h.d(1),h=null):h||((h=a8()).c(),h.m(n,o));var b={};2&y[0]&&(b.path=g[1]),1&y[0]&&(b.value=g[0]),8192&y[0]&&(b.enforceString=g[13]),65664&y[0]&&(b.selection=g[16]?g[7]:null),576&y[0]&&(b.searchResultItems=S4(g[6],g[9])),256&y[0]&&(b.context=g[8]),i.$set(b),65922&y[0]&&(l=!g[8].readOnly&&g[16]&&g[7]&&(rn(g[7])||An(g[7]))&&!li(g[7])&&Ye(he(g[7]),g[1])),l?v?(v.p(g,y),65922&y[0]&&N(v,1)):((v=s8(g)).c(),N(v,1),v.m(n,null)):v&&(Dt(),q(v,1,1,function(){v=null}),zt()),g[15]?p?(p.p(g,y),32768&y[0]&&N(p,1)):((p=u8(g)).c(),N(p,1),p.m(t,u)):p&&(Dt(),q(p,1,1,function(){p=null}),zt()),g[17]?m&&(m.d(1),m=null):m?m.p(g,y):((m=c8(g)).c(),m.m(t,null)),(!c||262144&y[0])&&j(t,"style",g[18])},i:function(g){c||(N(d,g),N(i.$$.fragment,g),N(v),N(p),c=!0)},o:function(g){q(d,g),q(i.$$.fragment,g),q(v),q(p),c=!1},d:function(g){g&&it(t),d&&d.d(g),h&&h.d(),jt(i),v&&v.d(),p&&p.d(),m&&m.d()}}}function GQ(e){var t,n,r,o,i,a,s,u,c,l,f,d,h,v,p,m,g,y,b=!e[8].readOnly&&e[16]&&e[7]&&(rn(e[7])||An(e[7]))&&!e[7].edit&&Ye(he(e[7]),e[1]),w=[XQ,YQ],x=[];function k($,S){return $[12]?0:1}o=k(e),i=x[o]=w[o](e);var E=e[34].identifier,R=hr(E,e,e[35],n8),z=!e[17]&&l8();function A($,S){return $[12]?tY:ZQ}var _=A(e),U=_(e),J=b&&f8(e),D=e[15]&&(!e[12]||!e[15].isChildError)&&d8(e);function F($,S){return $[12]?nY:$[17]?void 0:eY}var V=F(e),C=V&&V(e),P=e[12]&&h8(e);return{c:function(){t=G("div"),n=G("div"),r=G("button"),i.c(),a=pt(),R&&R.c(),s=pt(),z&&z.c(),u=pt(),c=G("div"),l=G("div"),U.c(),f=pt(),J&&J.c(),d=pt(),D&&D.c(),h=pt(),C&&C.c(),v=pt(),P&&P.c(),p=vn(),j(r,"type","button"),j(r,"class","jse-expand svelte-1wlxti1"),j(r,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),j(l,"class","jse-meta-inner svelte-1wlxti1"),j(c,"class","jse-meta svelte-1wlxti1"),j(c,"data-type","selectable-value"),j(n,"class","jse-header svelte-1wlxti1"),j(t,"class","jse-header-outer svelte-1wlxti1"),j(t,"style",e[18])},m:function($,S){at($,t,S),B(t,n),B(n,r),x[o].m(r,null),B(n,a),R&&R.m(n,null),B(n,s),z&&z.m(n,null),B(n,u),B(n,c),B(c,l),U.m(l,null),B(n,f),J&&J.m(n,null),B(t,d),D&&D.m(t,null),B(t,h),C&&C.m(t,null),at($,v,S),P&&P.m($,S),at($,p,S),m=!0,g||(y=Nt(r,"click",e[21]),g=!0)},p:function($,S){var O=o;(o=k($))!==O&&(Dt(),q(x[O],1,1,function(){x[O]=null}),zt(),(i=x[o])||(i=x[o]=w[o]($)).c(),N(i,1),i.m(r,null)),R&&R.p&&(!m||16&S[1])&&pr(R,E,$,$[35],m?vr(E,$[35],S,UQ):mr($[35]),n8),$[17]?z&&(z.d(1),z=null):z||((z=l8()).c(),z.m(n,u)),_===(_=A($))&&U?U.p($,S):(U.d(1),(U=_($))&&(U.c(),U.m(l,null))),65922&S[0]&&(b=!$[8].readOnly&&$[16]&&$[7]&&(rn($[7])||An($[7]))&&!$[7].edit&&Ye(he($[7]),$[1])),b?J?(J.p($,S),65922&S[0]&&N(J,1)):((J=f8($)).c(),N(J,1),J.m(n,null)):J&&(Dt(),q(J,1,1,function(){J=null}),zt()),!$[15]||$[12]&&$[15].isChildError?D&&(Dt(),q(D,1,1,function(){D=null}),zt()):D?(D.p($,S),36864&S[0]&&N(D,1)):((D=d8($)).c(),N(D,1),D.m(t,h)),V===(V=F($))&&C?C.p($,S):(C&&C.d(1),(C=V&&V($))&&(C.c(),C.m(t,null))),(!m||262144&S[0])&&j(t,"style",$[18]),$[12]?P?(P.p($,S),4096&S[0]&&N(P,1)):((P=h8($)).c(),N(P,1),P.m(p.parentNode,p)):P&&(Dt(),q(P,1,1,function(){P=null}),zt())},i:function($){m||(N(i),N(R,$),N(J),N(D),N(P),m=!0)},o:function($){q(i),q(R,$),q(J),q(D),q(P),m=!1},d:function($){$&&(it(t),it(v),it(p)),x[o].d(),R&&R.d($),z&&z.d(),U.d(),J&&J.d(),D&&D.d(),C&&C.d(),P&&P.d($),g=!1,y()}}}function QQ(e){var t,n,r,o,i,a,s,u,c,l,f,d,h,v,p,m,g,y,b=!e[8].readOnly&&e[16]&&e[7]&&(rn(e[7])||An(e[7]))&&!e[7].edit&&Ye(he(e[7]),e[1]),w=[iY,oY],x=[];function k($,S){return $[12]?0:1}o=k(e),i=x[o]=w[o](e);var E=e[34].identifier,R=hr(E,e,e[35],i8),z=!e[17]&&g8();function A($,S){return $[12]?sY:aY}var _=A(e),U=_(e),J=b&&y8(e),D=e[15]&&(!e[12]||!e[15].isChildError)&&b8(e);function F($,S){return $[12]?cY:uY}var V=F(e),C=V(e),P=e[12]&&w8(e);return{c:function(){t=G("div"),n=G("div"),r=G("button"),i.c(),a=pt(),R&&R.c(),s=pt(),z&&z.c(),u=pt(),c=G("div"),l=G("div"),U.c(),f=pt(),J&&J.c(),d=pt(),D&&D.c(),h=pt(),C.c(),v=pt(),P&&P.c(),p=vn(),j(r,"type","button"),j(r,"class","jse-expand svelte-1wlxti1"),j(r,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),j(l,"class","jse-meta-inner svelte-1wlxti1"),j(l,"data-type","selectable-value"),j(c,"class","jse-meta svelte-1wlxti1"),j(n,"class","jse-header svelte-1wlxti1"),j(t,"class","jse-header-outer svelte-1wlxti1"),j(t,"style",e[18])},m:function($,S){at($,t,S),B(t,n),B(n,r),x[o].m(r,null),B(n,a),R&&R.m(n,null),B(n,s),z&&z.m(n,null),B(n,u),B(n,c),B(c,l),U.m(l,null),B(n,f),J&&J.m(n,null),B(t,d),D&&D.m(t,null),B(t,h),C.m(t,null),at($,v,S),P&&P.m($,S),at($,p,S),m=!0,g||(y=Nt(r,"click",e[21]),g=!0)},p:function($,S){var O=o;(o=k($))!==O&&(Dt(),q(x[O],1,1,function(){x[O]=null}),zt(),(i=x[o])||(i=x[o]=w[o]($)).c(),N(i,1),i.m(r,null)),R&&R.p&&(!m||16&S[1])&&pr(R,E,$,$[35],m?vr(E,$[35],S,JQ):mr($[35]),i8),$[17]?z&&(z.d(1),z=null):z||((z=g8()).c(),z.m(n,u)),_===(_=A($))&&U?U.p($,S):(U.d(1),(U=_($))&&(U.c(),U.m(l,null))),65922&S[0]&&(b=!$[8].readOnly&&$[16]&&$[7]&&(rn($[7])||An($[7]))&&!$[7].edit&&Ye(he($[7]),$[1])),b?J?(J.p($,S),65922&S[0]&&N(J,1)):((J=y8($)).c(),N(J,1),J.m(n,null)):J&&(Dt(),q(J,1,1,function(){J=null}),zt()),!$[15]||$[12]&&$[15].isChildError?D&&(Dt(),q(D,1,1,function(){D=null}),zt()):D?(D.p($,S),36864&S[0]&&N(D,1)):((D=b8($)).c(),N(D,1),D.m(t,h)),V===(V=F($))&&C?C.p($,S):(C.d(1),(C=V($))&&(C.c(),C.m(t,null))),(!m||262144&S[0])&&j(t,"style",$[18]),$[12]?P?(P.p($,S),4096&S[0]&&N(P,1)):((P=w8($)).c(),N(P,1),P.m(p.parentNode,p)):P&&(Dt(),q(P,1,1,function(){P=null}),zt())},i:function($){m||(N(i),N(R,$),N(J),N(D),N(P),m=!0)},o:function($){q(i),q(R,$),q(J),q(D),q(P),m=!1},d:function($){$&&(it(t),it(v),it(p)),x[o].d(),R&&R.d($),z&&z.d(),U.d(),J&&J.d(),D&&D.d(),C.d(),P&&P.d($),g=!1,y()}}}function a8(e){var t;return{c:function(){(t=G("div")).textContent=":",j(t,"class","jse-separator svelte-1wlxti1")},m:function(n,r){at(n,t,r)},d:function(n){n&&it(t)}}}function s8(e){var t,n,r;return n=new zs({props:{selected:!0,onContextMenu:e[8].onContextMenu}}),{c:function(){t=G("div"),$t(n.$$.fragment),j(t,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(o,i){at(o,t,i),kt(n,t,null),r=!0},p:function(o,i){var a={};256&i[0]&&(a.onContextMenu=o[8].onContextMenu),n.$set(a)},i:function(o){r||(N(n.$$.fragment,o),r=!0)},o:function(o){q(n.$$.fragment,o),r=!1},d:function(o){o&&it(t),jt(n)}}}function u8(e){var t,n;return t=new Vc({props:{validationError:e[15],onExpand:e[22]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};32768&o[0]&&(i.validationError=r[15]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function c8(e){var t,n,r;return{c:function(){j(t=G("div"),"role","none"),j(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),j(t,"data-type","insert-selection-area-after")},m:function(o,i){at(o,t,i),n||(r=Nt(t,"click",e[30]),n=!0)},p:Bt,d:function(o){o&&it(t),n=!1,r()}}}function YQ(e){var t,n;return t=new on({props:{data:ss}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function XQ(e){var t,n;return t=new on({props:{data:Qo}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function l8(e){var t;return{c:function(){(t=G("div")).textContent=":",j(t,"class","jse-separator svelte-1wlxti1")},m:function(n,r){at(n,t,r)},d:function(n){n&&it(t)}}}function ZQ(e){var t,n,r,o,i,a,s,u,c,l,f=Object.keys(e[0]).length+"",d=Object.keys(e[0]).length===1?"prop":"props";return{c:function(){(t=G("div")).textContent="{",n=pt(),r=G("button"),o=Ut(f),i=pt(),a=Ut(d),s=pt(),(u=G("div")).textContent="}",j(t,"class","jse-bracket svelte-1wlxti1"),j(r,"type","button"),j(r,"class","jse-tag svelte-1wlxti1"),j(u,"class","jse-bracket svelte-1wlxti1")},m:function(h,v){at(h,t,v),at(h,n,v),at(h,r,v),B(r,o),B(r,i),B(r,a),at(h,s,v),at(h,u,v),c||(l=Nt(r,"click",e[22]),c=!0)},p:function(h,v){1&v[0]&&f!==(f=Object.keys(h[0]).length+"")&&me(o,f),1&v[0]&&d!==(d=Object.keys(h[0]).length===1?"prop":"props")&&me(a,d)},d:function(h){h&&(it(t),it(n),it(r),it(s),it(u)),c=!1,l()}}}function tY(e){var t;return{c:function(){(t=G("div")).textContent="{",j(t,"class","jse-bracket jse-expanded svelte-1wlxti1")},m:function(n,r){at(n,t,r)},p:Bt,d:function(n){n&&it(t)}}}function f8(e){var t,n,r;return n=new zs({props:{selected:!0,onContextMenu:e[8].onContextMenu}}),{c:function(){t=G("div"),$t(n.$$.fragment),j(t,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(o,i){at(o,t,i),kt(n,t,null),r=!0},p:function(o,i){var a={};256&i[0]&&(a.onContextMenu=o[8].onContextMenu),n.$set(a)},i:function(o){r||(N(n.$$.fragment,o),r=!0)},o:function(o){q(n.$$.fragment,o),r=!1},d:function(o){o&&it(t),jt(n)}}}function d8(e){var t,n;return t=new Vc({props:{validationError:e[15],onExpand:e[22]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};32768&o[0]&&(i.validationError=r[15]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function eY(e){var t,n,r;return{c:function(){j(t=G("div"),"role","none"),j(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),j(t,"data-type","insert-selection-area-after")},m:function(o,i){at(o,t,i),n||(r=Nt(t,"click",e[30]),n=!0)},p:Bt,d:function(o){o&&it(t),n=!1,r()}}}function nY(e){var t,n,r;return{c:function(){j(t=G("div"),"role","none"),j(t,"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),j(t,"data-type","insert-selection-area-inside")},m:function(o,i){at(o,t,i),n||(r=Nt(t,"click",e[29]),n=!0)},p:Bt,d:function(o){o&&it(t),n=!1,r()}}}function h8(e){for(var t,n,r,o,i,a,s,u=!e[8].readOnly&&(e[10]===La||e[16]&&Mr(e[7])),c=u&&v8(e),l=Ee(e[19](e[1],e[0],e[2],e[3],e[4],e[5],e[6],e[7],e[11])),f=[],d=0;d<l.length;d+=1)f[d]=p8(e8(e,l,d));var h=function(p){return q(f[p],1,1,function(){f[p]=null})},v=!e[17]&&m8(e);return{c:function(){t=G("div"),c&&c.c(),n=pt();for(var p=0;p<f.length;p+=1)f[p].c();r=pt(),o=G("div"),(i=G("div")).innerHTML='<div class="jse-bracket svelte-1wlxti1">}</div>',a=pt(),v&&v.c(),j(t,"class","jse-props svelte-1wlxti1"),j(i,"data-type","selectable-value"),j(i,"class","jse-footer svelte-1wlxti1"),j(o,"class","jse-footer-outer svelte-1wlxti1"),j(o,"style",e[18])},m:function(p,m){at(p,t,m),c&&c.m(t,null),B(t,n);for(var g=0;g<f.length;g+=1)f[g]&&f[g].m(t,null);at(p,r,m),at(p,o,m),B(o,i),B(o,a),v&&v.m(o,null),s=!0},p:function(p,m){if(66944&m[0]&&(u=!p[8].readOnly&&(p[10]===La||p[16]&&Mr(p[7]))),u?c?(c.p(p,m),66944&m[0]&&N(c,1)):((c=v8(p)).c(),N(c,1),c.m(t,n)):c&&(Dt(),q(c,1,1,function(){c=null}),zt()),76024319&m[0]){var g;for(l=Ee(p[19](p[1],p[0],p[2],p[3],p[4],p[5],p[6],p[7],p[11])),g=0;g<l.length;g+=1){var y=e8(p,l,g);f[g]?(f[g].p(y,m),N(f[g],1)):(f[g]=p8(y),f[g].c(),N(f[g],1),f[g].m(t,null))}for(Dt(),g=l.length;g<f.length;g+=1)h(g);zt()}p[17]?v&&(v.d(1),v=null):v?v.p(p,m):((v=m8(p)).c(),v.m(o,null)),(!s||262144&m[0])&&j(o,"style",p[18])},i:function(p){if(!s){N(c);for(var m=0;m<l.length;m+=1)N(f[m]);s=!0}},o:function(p){q(c),f=f.filter(Boolean);for(var m=0;m<f.length;m+=1)q(f[m]);s=!1},d:function(p){p&&(it(t),it(r),it(o)),c&&c.d(),xr(f,p),v&&v.d()}}}function v8(e){var t,n,r,o;return n=new zs({props:{selected:e[16]&&Mr(e[7]),onContextMenu:e[31]}}),{c:function(){t=G("div"),$t(n.$$.fragment),j(t,"class","jse-insert-area jse-inside svelte-1wlxti1"),j(t,"data-type","insert-selection-area-inside"),j(t,"style",r=tf(e[1].length+1)),j(t,"title",a1),Pt(t,"jse-hovered",e[10]===La),Pt(t,"jse-selected",e[16]&&Mr(e[7]))},m:function(i,a){at(i,t,a),kt(n,t,null),o=!0},p:function(i,a){var s={};65664&a[0]&&(s.selected=i[16]&&Mr(i[7])),n.$set(s),(!o||2&a[0]&&r!==(r=tf(i[1].length+1)))&&j(t,"style",r),(!o||1024&a[0])&&Pt(t,"jse-hovered",i[10]===La),(!o||65664&a[0])&&Pt(t,"jse-selected",i[16]&&Mr(i[7]))},i:function(i){o||(N(n.$$.fragment,i),o=!0)},o:function(i){q(n.$$.fragment,i),o=!1},d:function(i){i&&it(t),jt(n)}}}function rY(e){var t,n,r,o;return n=new IQ({props:{path:e[53].path,key:e[53].key,selection:e[53].selection,searchResultItems:e[53].keySearchResultItemsMap,context:e[8],onUpdateKey:e[23]}}),{c:function(){t=G("div"),$t(n.$$.fragment),r=pt(),j(t,"slot","identifier"),j(t,"class","jse-identifier svelte-1wlxti1")},m:function(i,a){at(i,t,a),kt(n,t,null),B(t,r),o=!0},p:function(i,a){var s={};2303&a[0]&&(s.path=i[53].path),2303&a[0]&&(s.key=i[53].key),2303&a[0]&&(s.selection=i[53].selection),2303&a[0]&&(s.searchResultItems=i[53].keySearchResultItemsMap),256&a[0]&&(s.context=i[8]),n.$set(s)},i:function(i){o||(N(n.$$.fragment,i),o=!0)},o:function(i){q(n.$$.fragment,i),o=!1},d:function(i){i&&it(t),jt(n)}}}function p8(e){var t,n;return t=new _y({props:{value:e[53].value,path:e[53].path,expandedMap:e[53].expandedMap,enforceStringMap:e[53].enforceStringMap,visibleSectionsMap:e[53].visibleSectionsMap,validationErrorsMap:e[53].validationErrorsMap,searchResultItemsMap:e[53].valueSearchResultItemsMap,selection:e[53].selection,context:e[8],onDragSelectionStart:e[26],$$slots:{identifier:[rY]},$$scope:{ctx:e}}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};2303&o[0]&&(i.value=r[53].value),2303&o[0]&&(i.path=r[53].path),2303&o[0]&&(i.expandedMap=r[53].expandedMap),2303&o[0]&&(i.enforceStringMap=r[53].enforceStringMap),2303&o[0]&&(i.visibleSectionsMap=r[53].visibleSectionsMap),2303&o[0]&&(i.validationErrorsMap=r[53].validationErrorsMap),2303&o[0]&&(i.searchResultItemsMap=r[53].valueSearchResultItemsMap),2303&o[0]&&(i.selection=r[53].selection),256&o[0]&&(i.context=r[8]),2559&o[0]|16&o[1]&&(i.$$scope={dirty:o,ctx:r}),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function m8(e){var t,n,r;return{c:function(){j(t=G("div"),"role","none"),j(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),j(t,"data-type","insert-selection-area-after")},m:function(o,i){at(o,t,i),n||(r=Nt(t,"click",e[30]),n=!0)},p:Bt,d:function(o){o&&it(t),n=!1,r()}}}function oY(e){var t,n;return t=new on({props:{data:ss}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function iY(e){var t,n;return t=new on({props:{data:Qo}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function g8(e){var t;return{c:function(){(t=G("div")).textContent=":",j(t,"class","jse-separator svelte-1wlxti1")},m:function(n,r){at(n,t,r)},d:function(n){n&&it(t)}}}function aY(e){var t,n,r,o,i,a,s,u,c,l,f=e[0].length+"",d=e[0].length===1?"item":"items";return{c:function(){(t=G("div")).textContent="[",n=pt(),r=G("button"),o=Ut(f),i=pt(),a=Ut(d),s=pt(),(u=G("div")).textContent="]",j(t,"class","jse-bracket svelte-1wlxti1"),j(r,"type","button"),j(r,"class","jse-tag svelte-1wlxti1"),j(u,"class","jse-bracket svelte-1wlxti1")},m:function(h,v){at(h,t,v),at(h,n,v),at(h,r,v),B(r,o),B(r,i),B(r,a),at(h,s,v),at(h,u,v),c||(l=Nt(r,"click",e[22]),c=!0)},p:function(h,v){1&v[0]&&f!==(f=h[0].length+"")&&me(o,f),1&v[0]&&d!==(d=h[0].length===1?"item":"items")&&me(a,d)},d:function(h){h&&(it(t),it(n),it(r),it(s),it(u)),c=!1,l()}}}function sY(e){var t,n,r,o,i,a,s,u=e[0].length+"",c=e[0].length===1?"item":"items";return{c:function(){(t=G("div")).textContent="[",n=pt(),r=G("span"),o=Ut(u),i=pt(),a=Ut(c),s=Ut(`
98
+ for paste`),b=pt(),w=G("div"),(x=G("button")).textContent="Close",j(c,"class","jse-key svelte-1wk5pvq"),j(u,"class","jse-shortcut"),j(h,"class","jse-key svelte-1wk5pvq"),j(d,"class","jse-shortcut"),j(g,"class","jse-key svelte-1wk5pvq"),j(m,"class","jse-shortcut"),j(s,"class","jse-shortcuts svelte-1wk5pvq"),j(x,"type","button"),j(x,"class","jse-primary svelte-1wk5pvq"),j(w,"class","jse-actions svelte-1wk5pvq"),j(o,"class","jse-modal-contents svelte-1wk5pvq"),j(t,"class","jse-modal jse-copy-paste svelte-1wk5pvq")},m:function(z,A){at(z,t,A),kt(n,t,null),B(t,r),B(t,o),B(o,i),B(o,a),B(o,s),B(s,u),B(u,c),B(u,l),B(s,f),B(s,d),B(d,h),B(d,v),B(s,p),B(s,m),B(m,g),B(m,y),B(o,b),B(o,w),B(w,x),k=!0,E||(R=Nt(x,"click",e[0]),E=!0)},p:Bt,i:function(z){k||(N(n.$$.fragment,z),k=!0)},o:function(z){q(n.$$.fragment,z),k=!1},d:function(z){z&&it(t),jt(n),E=!1,R()}}}function yG(e){return[Vr("simple-modal").close,dG?"⌘":"Ctrl"]}var h7=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,yG,gG,De,{},mG),o}return Z(n)}();function v7(e){return!!e&&(e.type==="space"||e.space===!0)}function rp(e){return!!e&&(e.type==="separator"||e.separator===!0)}function bG(e){return!!e&&e.type==="label"&&typeof e.text=="string"}function Lf(e){return!!e&&typeof e.onClick=="function"}function $y(e){return!!e&&e.type==="dropdown-button"&&Lf(e.main)&&Array.isArray(e.items)}function wG(e){return!!e&&e.type==="row"&&Array.isArray(e.items)}function xG(e){return!!e&&e.type==="column"&&Array.isArray(e.items)}function SS(e){return er(e)&&er(e.parseError)}function kG(e){return er(e)&&Array.isArray(e.validationErrors)}function jG(e){Ae(e,"svelte-497ud4",".jse-menu.svelte-497ud4.svelte-497ud4{background:var(--jse-theme-color);border-bottom:1px solid var(--jse-theme-color);color:var(--jse-menu-color);display:flex;flex-wrap:wrap;align-items:center;position:relative}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4{width:var(--jse-menu-button-size);height:var(--jse-menu-button-size);border:none;background:transparent;color:inherit;cursor:pointer;padding:calc(0.5 * var(--jse-padding));margin:0;border-radius:0}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:disabled{color:var(--jse-menu-color);opacity:0.5;background:transparent}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4{border:1px solid var(--jse-menu-color);padding:0 calc(0.5 * var(--jse-padding));margin:calc(0.5 * var(--jse-padding)) 0;height:calc(var(--jse-menu-button-size) - var(--jse-padding));width:auto}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:not(.jse-last){border-right:none}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-first.svelte-497ud4{margin-left:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-last.svelte-497ud4{margin-right:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-selected.svelte-497ud4{background:var(--jse-menu-color);color:var(--jse-theme-color)}.jse-menu.svelte-497ud4 .jse-space.svelte-497ud4{flex:1}.jse-menu.svelte-497ud4 .jse-separator.svelte-497ud4{background:var(--jse-menu-color);opacity:0.3;box-sizing:border-box;width:1px;height:calc(var(--jse-menu-button-size) - 6px);margin:3px}")}var $G=function(e){return{}},CS=function(e){return{}};function _S(e,t,n){var r=e.slice();return r[3]=t[n],r}var SG=function(e){return{}},OS=function(e){return{}};function CG(e){var t,n=PS(e[3])+"";return{c:function(){t=Ut(n)},m:function(r,o){at(r,t,o)},p:function(r,o){1&o&&n!==(n=PS(r[3])+"")&&me(t,n)},i:Bt,o:Bt,d:function(r){r&&it(t)}}}function _G(e){var t,n,r,o,i,a,s,u,c=e[3].icon&&MS(e),l=e[3].text&&ES(e);return{c:function(){t=G("button"),c&&c.c(),n=pt(),l&&l.c(),j(t,"type","button"),j(t,"class",r="jse-button "+e[3].className+" svelte-497ud4"),j(t,"title",o=e[3].title),t.disabled=i=e[3].disabled||!1},m:function(f,d){at(f,t,d),c&&c.m(t,null),B(t,n),l&&l.m(t,null),a=!0,s||(u=Nt(t,"click",function(){Br(e[3].onClick)&&e[3].onClick.apply(this,arguments)}),s=!0)},p:function(f,d){(e=f)[3].icon?c?(c.p(e,d),1&d&&N(c,1)):((c=MS(e)).c(),N(c,1),c.m(t,n)):c&&(Dt(),q(c,1,1,function(){c=null}),zt()),e[3].text?l?l.p(e,d):((l=ES(e)).c(),l.m(t,null)):l&&(l.d(1),l=null),(!a||1&d&&r!==(r="jse-button "+e[3].className+" svelte-497ud4"))&&j(t,"class",r),(!a||1&d&&o!==(o=e[3].title))&&j(t,"title",o),(!a||1&d&&i!==(i=e[3].disabled||!1))&&(t.disabled=i)},i:function(f){a||(N(c),a=!0)},o:function(f){q(c),a=!1},d:function(f){f&&it(t),c&&c.d(),l&&l.d(),s=!1,u()}}}function OG(e){var t;return{c:function(){j(t=G("div"),"class","jse-space svelte-497ud4")},m:function(n,r){at(n,t,r)},p:Bt,i:Bt,o:Bt,d:function(n){n&&it(t)}}}function MG(e){var t;return{c:function(){j(t=G("div"),"class","jse-separator svelte-497ud4")},m:function(n,r){at(n,t,r)},p:Bt,i:Bt,o:Bt,d:function(n){n&&it(t)}}}function MS(e){var t,n;return t=new on({props:{data:e[3].icon}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.data=r[3].icon),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function ES(e){var t,n=e[3].text+"";return{c:function(){t=Ut(n)},m:function(r,o){at(r,t,o)},p:function(r,o){1&o&&n!==(n=r[3].text+"")&&me(t,n)},d:function(r){r&&it(t)}}}function AS(e){var t,n,r,o,i,a,s,u=[MG,OG,_G,CG],c=[];function l(f,d){return 1&d&&(t=null),1&d&&(n=null),1&d&&(r=null),t==null&&(t=!!rp(f[3])),t?0:(n==null&&(n=!!v7(f[3])),n?1:(r==null&&(r=!!Lf(f[3])),r?2:3))}return o=l(e,-1),i=c[o]=u[o](e),{c:function(){i.c(),a=vn()},m:function(f,d){c[o].m(f,d),at(f,a,d),s=!0},p:function(f,d){var h=o;(o=l(f,d))===h?c[o].p(f,d):(Dt(),q(c[h],1,1,function(){c[h]=null}),zt(),(i=c[o])?i.p(f,d):(i=c[o]=u[o](f)).c(),N(i,1),i.m(a.parentNode,a))},i:function(f){s||(N(i),s=!0)},o:function(f){q(i),s=!1},d:function(f){f&&it(a),c[o].d(f)}}}function EG(e){for(var t,n,r,o,i=e[2].left,a=hr(i,e,e[1],OS),s=Ee(e[0]),u=[],c=0;c<s.length;c+=1)u[c]=AS(_S(e,s,c));var l=function(h){return q(u[h],1,1,function(){u[h]=null})},f=e[2].right,d=hr(f,e,e[1],CS);return{c:function(){t=G("div"),a&&a.c(),n=pt();for(var h=0;h<u.length;h+=1)u[h].c();r=pt(),d&&d.c(),j(t,"class","jse-menu svelte-497ud4")},m:function(h,v){at(h,t,v),a&&a.m(t,null),B(t,n);for(var p=0;p<u.length;p+=1)u[p]&&u[p].m(t,null);B(t,r),d&&d.m(t,null),o=!0},p:function(h,v){var p=ke(v,1)[0];if(a&&a.p&&(!o||2&p)&&pr(a,i,h,h[1],o?vr(i,h[1],p,SG):mr(h[1]),OS),1&p){var m;for(s=Ee(h[0]),m=0;m<s.length;m+=1){var g=_S(h,s,m);u[m]?(u[m].p(g,p),N(u[m],1)):(u[m]=AS(g),u[m].c(),N(u[m],1),u[m].m(t,r))}for(Dt(),m=s.length;m<u.length;m+=1)l(m);zt()}d&&d.p&&(!o||2&p)&&pr(d,f,h,h[1],o?vr(f,h[1],p,$G):mr(h[1]),CS)},i:function(h){if(!o){N(a,h);for(var v=0;v<s.length;v+=1)N(u[v]);N(d,h),o=!0}},o:function(h){q(a,h),u=u.filter(Boolean);for(var v=0;v<u.length;v+=1)q(u[v]);q(d,h),o=!1},d:function(h){h&&it(t),a&&a.d(h),xr(u,h),d&&d.d(h)}}}function PS(e){return console.error("Unknown type of menu item",e),"???"}function AG(e,t,n){var r=t.$$slots,o=r===void 0?{}:r,i=t.$$scope,a=t.items,s=a===void 0?[]:a;return e.$$set=function(u){"items"in u&&n(0,s=u.items),"$$scope"in u&&n(1,i=u.$$scope)},[s,i,o]}var op=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,AG,EG,De,{items:0},jG),o}return Z(n)}();function PG(e){Ae(e,"svelte-gz09vf",".jse-json-repair-component.svelte-gz09vf.svelte-gz09vf{flex:1;display:flex;flex-direction:column;background:var(--jse-background-color);color:var(--jse-text-color)}.jse-json-repair-component.svelte-gz09vf .jse-menu .jse-info.svelte-gz09vf{padding:0 var(--jse-padding)}.jse-json-repair-component.svelte-gz09vf .jse-json-text.svelte-gz09vf{flex:1;border:none;padding:2px;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);background:var(--jse-background-color);color:var(--jse-text-color);resize:none;outline:none}")}function TG(e){var t;return{c:function(){(t=G("div")).textContent="Repair invalid JSON, then click apply",j(t,"slot","left"),j(t,"class","jse-info svelte-gz09vf")},m:function(n,r){at(n,t,r)},p:Bt,d:function(n){n&&it(t)}}}function RG(e){var t,n;return t=new qi({props:{type:"success",message:"JSON is valid now and can be parsed.",actions:e[5]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};32&o&&(i.actions=r[5]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function NG(e){var t,n;return t=new qi({props:{type:"error",icon:_u,message:"Cannot parse JSON: ".concat(e[2].message),actions:e[6]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};4&o&&(i.message="Cannot parse JSON: ".concat(r[2].message)),64&o&&(i.actions=r[6]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function IG(e){var t,n,r,o,i,a,s,u,c,l;n=new op({props:{items:e[4],$$slots:{left:[TG]},$$scope:{ctx:e}}});var f=[NG,RG],d=[];function h(v,p){return v[2]?0:1}return o=h(e),i=d[o]=f[o](e),{c:function(){t=G("div"),$t(n.$$.fragment),r=pt(),i.c(),a=pt(),(s=G("textarea")).readOnly=e[1],j(s,"class","jse-json-text svelte-gz09vf"),j(s,"autocomplete","off"),j(s,"autocapitalize","off"),j(s,"spellcheck","false"),s.value=e[0],j(t,"class","jse-json-repair-component svelte-gz09vf")},m:function(v,p){at(v,t,p),kt(n,t,null),B(t,r),d[o].m(t,null),B(t,a),B(t,s),e[16](s),u=!0,c||(l=Nt(s,"input",e[7]),c=!0)},p:function(v,p){var m=ke(p,1)[0],g={};16&m&&(g.items=v[4]),8388608&m&&(g.$$scope={dirty:m,ctx:v}),n.$set(g);var y=o;(o=h(v))===y?d[o].p(v,m):(Dt(),q(d[y],1,1,function(){d[y]=null}),zt(),(i=d[o])?i.p(v,m):(i=d[o]=f[o](v)).c(),N(i,1),i.m(t,a)),(!u||2&m)&&(s.readOnly=v[1]),(!u||1&m)&&(s.value=v[0])},i:function(v){u||(N(n.$$.fragment,v),N(i),u=!0)},o:function(v){q(n.$$.fragment,v),q(i),u=!1},d:function(v){v&&it(t),jt(n),d[o].d(),e[16](null),c=!1,l()}}}function DG(e,t,n){var r,o,i,a,s,u,c,l,f=t.text,d=f===void 0?"":f,h=t.readOnly,v=h!==void 0&&h,p=t.onParse,m=t.onRepair,g=t.onChange,y=g===void 0?null:g,b=t.onApply,w=t.onCancel,x=Hr("jsoneditor:JSONRepair");function k(){b(d)}return e.$$set=function(E){"text"in E&&n(0,d=E.text),"readOnly"in E&&n(1,v=E.readOnly),"onParse"in E&&n(8,p=E.onParse),"onRepair"in E&&n(9,m=E.onRepair),"onChange"in E&&n(10,y=E.onChange),"onApply"in E&&n(11,b=E.onApply),"onCancel"in E&&n(12,w=E.onCancel)},e.$$.update=function(){1&e.$$.dirty&&n(2,r=function(E){try{return p(E),null}catch(R){return mc(E,R.message)}}(d)),1&e.$$.dirty&&n(15,o=function(E){try{return m(E),!0}catch{return!1}}(d)),4&e.$$.dirty&&x("error",r),4096&e.$$.dirty&&n(4,l=[{type:"space"},{type:"button",icon:wc,title:"Cancel repair",className:"jse-cancel",onClick:w}]),57344&e.$$.dirty&&n(6,s=o?[i,a]:[i]),2&e.$$.dirty&&n(5,u=[{icon:Xl,text:"Apply",title:"Apply fixed JSON",disabled:v,onClick:k}])},n(13,i={icon:HJ,text:"Show me",title:"Scroll to the error location",onClick:function(){if(c&&r){var E=r.position!=null?r.position:0;c.setSelectionRange(E,E),setTimeout(function(){c.focus()})}}}),n(14,a={icon:Yv,text:"Auto repair",title:"Automatically repair JSON",onClick:function(){try{n(0,d=m(d)),y&&y(d)}catch{}}}),[d,v,r,c,l,u,s,function(E){x("handleChange");var R=E.target.value;d!==R&&(n(0,d=R),y&&y(d))},p,m,y,b,w,i,a,o,function(E){Ge[E?"unshift":"push"](function(){n(3,c=E)})}]}var zG=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,DG,IG,De,{text:0,readOnly:1,onParse:8,onRepair:9,onChange:10,onApply:11,onCancel:12},PG),o}return Z(n)}(),Bu=[];function TS(e){if(e.key==="Escape"){var t=Me(Bu);t&&t()}}function ip(e,t){return Ze(Bu)&&window.addEventListener("keydown",TS),Bu.push(t),{destroy:function(){Bu=Bu.filter(function(n){return n!==t}),Ze(Bu)&&window.removeEventListener("keydown",TS)}}}function LG(e){Ae(e,"svelte-5nh81x",".jse-modal.jse-repair.svelte-5nh81x{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}")}function BG(e){var t,n,r,o,i,a;function s(c){e[7](c)}var u={onParse:e[1],onRepair:e[2],onApply:e[4],onCancel:e[5]};return e[0]!==void 0&&(u.text=e[0]),n=new zG({props:u}),Ge.push(function(){return $i(n,"text",s)}),{c:function(){t=G("div"),$t(n.$$.fragment),j(t,"class","jse-modal jse-repair svelte-5nh81x")},m:function(c,l){at(c,t,l),kt(n,t,null),o=!0,i||(a=Fr(ip.call(null,t,e[3])),i=!0)},p:function(c,l){var f=ke(l,1)[0],d={};2&f&&(d.onParse=c[1]),4&f&&(d.onRepair=c[2]),!r&&1&f&&(r=!0,d.text=c[0],ji(function(){return r=!1})),n.$set(d)},i:function(c){o||(N(n.$$.fragment,c),o=!0)},o:function(c){q(n.$$.fragment,c),o=!1},d:function(c){c&&it(t),jt(n),i=!1,a()}}}function qG(e,t,n){var r=t.text,o=t.onParse,i=t.onRepair,a=t.onApply,s=Vr("simple-modal").close;return e.$$set=function(u){"text"in u&&n(0,r=u.text),"onParse"in u&&n(1,o=u.onParse),"onRepair"in u&&n(2,i=u.onRepair),"onApply"in u&&n(6,a=u.onApply)},[r,o,i,s,function(u){s(),a(u)},function(){s()},a,function(u){n(0,r=u)}]}var p7=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,qG,BG,De,{text:0,onParse:1,onRepair:2,onApply:6},LG),o}return Z(n)}();function FG(e){Ae(e,"svelte-1u2b6j8","button.jse-context-menu-button.svelte-1u2b6j8{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;flex:1;white-space:nowrap;padding:var(--jse-padding);color:inherit}button.jse-context-menu-button.svelte-1u2b6j8:hover{background:var(--jse-context-menu-background-highlight)}button.jse-context-menu-button.svelte-1u2b6j8:focus{background:var(--jse-context-menu-background-highlight);z-index:1}button.jse-context-menu-button.svelte-1u2b6j8:disabled{color:var(--jse-context-menu-color-disabled);background:unset}button.jse-context-menu-button.left.svelte-1u2b6j8{text-align:left}button.jse-context-menu-button.svelte-1u2b6j8 svg{width:16px}")}function RS(e){var t,n;return t=new on({props:{data:e[0].icon}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.data=r[0].icon),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function NS(e){var t,n=e[0].text+"";return{c:function(){t=Ut(n)},m:function(r,o){at(r,t,o)},p:function(r,o){1&o&&n!==(n=r[0].text+"")&&me(t,n)},d:function(r){r&&it(t)}}}function VG(e){var t,n,r,o,i,a,s,u,c=e[0].icon&&RS(e),l=e[0].text&&NS(e);return{c:function(){t=G("button"),c&&c.c(),n=pt(),l&&l.c(),j(t,"type","button"),j(t,"class",r=tr(pa("jse-context-menu-button",e[1],e[0].className))+" svelte-1u2b6j8"),j(t,"title",o=e[0].title),t.disabled=i=e[0].disabled||!1},m:function(f,d){at(f,t,d),c&&c.m(t,null),B(t,n),l&&l.m(t,null),a=!0,s||(u=Nt(t,"click",function(){Br(e[0].onClick)&&e[0].onClick.apply(this,arguments)}),s=!0)},p:function(f,d){var h=ke(d,1)[0];(e=f)[0].icon?c?(c.p(e,h),1&h&&N(c,1)):((c=RS(e)).c(),N(c,1),c.m(t,n)):c&&(Dt(),q(c,1,1,function(){c=null}),zt()),e[0].text?l?l.p(e,h):((l=NS(e)).c(),l.m(t,null)):l&&(l.d(1),l=null),(!a||3&h&&r!==(r=tr(pa("jse-context-menu-button",e[1],e[0].className))+" svelte-1u2b6j8"))&&j(t,"class",r),(!a||1&h&&o!==(o=e[0].title))&&j(t,"title",o),(!a||1&h&&i!==(i=e[0].disabled||!1))&&(t.disabled=i)},i:function(f){a||(N(c),a=!0)},o:function(f){q(c),a=!1},d:function(f){f&&it(t),c&&c.d(),l&&l.d(),s=!1,u()}}}function HG(e,t,n){var r=t.item,o=t.className,i=o===void 0?void 0:o;return e.$$set=function(a){"item"in a&&n(0,r=a.item),"className"in a&&n(1,i=a.className)},[r,i]}var Sy=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,HG,VG,Nr,{item:0,className:1},FG),o}return Z(n)}();function WG(e){Ae(e,"svelte-12ophpi",".jse-dropdown-button.svelte-12ophpi.svelte-12ophpi{flex:1;line-height:normal;border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;position:relative;padding:0;display:flex}.jse-dropdown-button.svelte-12ophpi ul.svelte-12ophpi{margin:0;padding:0}.jse-dropdown-button.svelte-12ophpi ul li.svelte-12ophpi{margin:0;padding:0;list-style-type:none}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.svelte-12ophpi{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;width:2em;background:var(--jse-context-menu-background);color:var(--jse-context-menu-color);border-radius:0}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.jse-visible.svelte-12ophpi{background:var(--jse-context-menu-background)}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.svelte-12ophpi:hover{background:var(--jse-context-menu-background-highlight)}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.svelte-12ophpi:focus{z-index:1}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.svelte-12ophpi:disabled{color:var(--jse-context-menu-color-disabled);background:unset}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items.svelte-12ophpi{display:none;position:absolute;top:100%;left:0;z-index:1;background:var(--jse-context-menu-background);color:var(--jse-context-menu-color);box-shadow:var(--jse-controls-box-shadow)}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items.jse-visible.svelte-12ophpi{display:block}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items button.svelte-12ophpi{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;width:100%;text-align:left;padding:var(--jse-padding);margin:0}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items button.svelte-12ophpi:hover{background:var(--jse-context-menu-background-highlight)}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items button.svelte-12ophpi:disabled{color:var(--jse-context-menu-color-disabled);background:unset}")}function IS(e,t,n){var r=e.slice();return r[11]=t[n],r}var UG=function(e){return{}},DS=function(e){return{}};function zS(e){var t,n;return t=new on({props:{data:e[11].icon}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.data=r[11].icon),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function LS(e){var t,n,r,o,i,a,s,u,c,l,f,d=e[11].text+"",h=e[11].icon&&zS(e);function v(){return e[9](e[11])}return{c:function(){t=G("li"),n=G("button"),h&&h.c(),r=pt(),o=Ut(d),u=pt(),j(n,"type","button"),j(n,"title",i=e[11].title),n.disabled=a=e[11].disabled,j(n,"class",s=tr(e[11].className)+" svelte-12ophpi"),j(t,"class","svelte-12ophpi")},m:function(p,m){at(p,t,m),B(t,n),h&&h.m(n,null),B(n,r),B(n,o),B(t,u),c=!0,l||(f=Nt(n,"click",v),l=!0)},p:function(p,m){(e=p)[11].icon?h?(h.p(e,m),1&m&&N(h,1)):((h=zS(e)).c(),N(h,1),h.m(n,r)):h&&(Dt(),q(h,1,1,function(){h=null}),zt()),(!c||1&m)&&d!==(d=e[11].text+"")&&me(o,d),(!c||1&m&&i!==(i=e[11].title))&&j(n,"title",i),(!c||1&m&&a!==(a=e[11].disabled))&&(n.disabled=a),(!c||1&m&&s!==(s=tr(e[11].className)+" svelte-12ophpi"))&&j(n,"class",s)},i:function(p){c||(N(h),c=!0)},o:function(p){q(h),c=!1},d:function(p){p&&it(t),h&&h.d(),l=!1,f()}}}function JG(e){var t,n,r,o,i,a,s,u,c,l,f=e[8].defaultItem,d=hr(f,e,e[7],DS);o=new on({props:{data:Qo}});for(var h=Ee(e[0]),v=[],p=0;p<h.length;p+=1)v[p]=LS(IS(e,h,p));var m=function(g){return q(v[g],1,1,function(){v[g]=null})};return{c:function(){t=G("div"),d&&d.c(),n=pt(),r=G("button"),$t(o.$$.fragment),i=pt(),a=G("div"),s=G("ul");for(var g=0;g<v.length;g+=1)v[g].c();j(r,"type","button"),j(r,"class","jse-open-dropdown svelte-12ophpi"),j(r,"data-type","jse-open-dropdown"),r.disabled=e[4],Pt(r,"jse-visible",e[3]),j(s,"class","svelte-12ophpi"),j(a,"class","jse-dropdown-items svelte-12ophpi"),as(a,"width",e[2]),Pt(a,"jse-visible",e[3]),j(t,"role","button"),j(t,"tabindex","0"),j(t,"class","jse-dropdown-button svelte-12ophpi"),j(t,"title",e[1])},m:function(g,y){at(g,t,y),d&&d.m(t,null),B(t,n),B(t,r),kt(o,r,null),B(t,i),B(t,a),B(a,s);for(var b=0;b<v.length;b+=1)v[b]&&v[b].m(s,null);u=!0,c||(l=[Nt(r,"click",e[5]),Nt(t,"click",e[6])],c=!0)},p:function(g,y){var b=ke(y,1)[0];if(d&&d.p&&(!u||128&b)&&pr(d,f,g,g[7],u?vr(f,g[7],b,UG):mr(g[7]),DS),(!u||16&b)&&(r.disabled=g[4]),(!u||8&b)&&Pt(r,"jse-visible",g[3]),1&b){var w;for(h=Ee(g[0]),w=0;w<h.length;w+=1){var x=IS(g,h,w);v[w]?(v[w].p(x,b),N(v[w],1)):(v[w]=LS(x),v[w].c(),N(v[w],1),v[w].m(s,null))}for(Dt(),w=h.length;w<v.length;w+=1)m(w);zt()}(!u||4&b)&&as(a,"width",g[2]),(!u||8&b)&&Pt(a,"jse-visible",g[3]),(!u||2&b)&&j(t,"title",g[1])},i:function(g){if(!u){N(d,g),N(o.$$.fragment,g);for(var y=0;y<h.length;y+=1)N(v[y]);u=!0}},o:function(g){q(d,g),q(o.$$.fragment,g),v=v.filter(Boolean);for(var y=0;y<v.length;y+=1)q(v[y]);u=!1},d:function(g){g&&it(t),d&&d.d(g),jt(o),xr(v,g),c=!1,Tn(l)}}}function KG(e,t,n){var r,o=t.$$slots,i=o===void 0?{}:o,a=t.$$scope,s=t.items,u=s===void 0?[]:s,c=t.title,l=c===void 0?void 0:c,f=t.width,d=f===void 0?"120px":f,h=!1;function v(){n(3,h=!1)}function p(m){Ds(m)==="Escape"&&(m.preventDefault(),n(3,h=!1))}return ai(function(){document.addEventListener("click",v),document.addEventListener("keydown",p)}),Do(function(){document.removeEventListener("click",v),document.removeEventListener("keydown",p)}),e.$$set=function(m){"items"in m&&n(0,u=m.items),"title"in m&&n(1,l=m.title),"width"in m&&n(2,d=m.width),"$$scope"in m&&n(7,a=m.$$scope)},e.$$.update=function(){1&e.$$.dirty&&n(4,r=u.every(function(m){return m.disabled===!0}))},[u,l,d,h,r,function(){var m=h;setTimeout(function(){return n(3,h=!m)})},v,a,i,function(m){return m.onClick()}]}var GG=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,KG,JG,De,{items:0,title:1,width:2},WG),o}return Z(n)}();function QG(e){Ae(e,"svelte-1u2b6j8","button.jse-context-menu-button.svelte-1u2b6j8{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;flex:1;white-space:nowrap;padding:var(--jse-padding);color:inherit}button.jse-context-menu-button.svelte-1u2b6j8:hover{background:var(--jse-context-menu-background-highlight)}button.jse-context-menu-button.svelte-1u2b6j8:focus{background:var(--jse-context-menu-background-highlight);z-index:1}button.jse-context-menu-button.svelte-1u2b6j8:disabled{color:var(--jse-context-menu-color-disabled);background:unset}button.jse-context-menu-button.left.svelte-1u2b6j8{text-align:left}button.jse-context-menu-button.svelte-1u2b6j8 svg{width:16px}")}function BS(e){var t,n;return t=new on({props:{data:e[0].main.icon}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.data=r[0].main.icon),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function YG(e){var t,n,r,o,i,a,s,u,c,l=e[0].main.text+"",f=e[0].main.icon&&BS(e);return{c:function(){t=G("button"),f&&f.c(),n=pt(),r=Ut(l),j(t,"class",o=tr(pa("jse-context-menu-button",e[1],e[0].main.className))+" svelte-1u2b6j8"),j(t,"type","button"),j(t,"slot","defaultItem"),j(t,"title",i=e[0].main.title),t.disabled=a=e[0].main.disabled||!1},m:function(d,h){at(d,t,h),f&&f.m(t,null),B(t,n),B(t,r),s=!0,u||(c=Nt(t,"click",function(){Br(e[0].main.onClick)&&e[0].main.onClick.apply(this,arguments)}),u=!0)},p:function(d,h){(e=d)[0].main.icon?f?(f.p(e,h),1&h&&N(f,1)):((f=BS(e)).c(),N(f,1),f.m(t,n)):f&&(Dt(),q(f,1,1,function(){f=null}),zt()),(!s||1&h)&&l!==(l=e[0].main.text+"")&&me(r,l),(!s||3&h&&o!==(o=tr(pa("jse-context-menu-button",e[1],e[0].main.className))+" svelte-1u2b6j8"))&&j(t,"class",o),(!s||1&h&&i!==(i=e[0].main.title))&&j(t,"title",i),(!s||1&h&&a!==(a=e[0].main.disabled||!1))&&(t.disabled=a)},i:function(d){s||(N(f),s=!0)},o:function(d){q(f),s=!1},d:function(d){d&&it(t),f&&f.d(),u=!1,c()}}}function XG(e){var t,n;return t=new GG({props:{width:e[0].width,items:e[0].items,$$slots:{defaultItem:[YG]},$$scope:{ctx:e}}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i=ke(o,1)[0],a={};1&i&&(a.width=r[0].width),1&i&&(a.items=r[0].items),7&i&&(a.$$scope={dirty:i,ctx:r}),t.$set(a)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function ZG(e,t,n){var r=t.item,o=t.className,i=o===void 0?void 0:o;return e.$$set=function(a){"item"in a&&n(0,r=a.item),"className"in a&&n(1,i=a.className)},[r,i]}var Cy=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,ZG,XG,Nr,{item:0,className:1},QG),o}return Z(n)}();function tQ(e){Ae(e,"svelte-1nininf",".jse-contextmenu.svelte-1nininf.svelte-1nininf{box-shadow:var(--jse-controls-box-shadow);font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-context-menu-background);color:var(--jse-context-menu-color)}.jse-contextmenu.svelte-1nininf .jse-row.svelte-1nininf{display:flex;flex-direction:row;align-items:flex-start;justify-content:stretch}.jse-contextmenu.svelte-1nininf .jse-row div.jse-label.svelte-1nininf{flex:1;white-space:nowrap;padding:var(--jse-padding);color:var(--jse-context-menu-color-disabled);line-height:normal}.jse-contextmenu.svelte-1nininf .jse-row div.jse-tip.svelte-1nininf{flex:1;background:var(--jse-context-menu-tip-background);color:var(--jse-context-menu-tip-color);margin:calc(0.5 * var(--jse-padding));padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);font-size:80%;line-height:1.3em;display:flex;flex-direction:row;align-items:start;gap:var(--jse-padding);border-radius:3px}.jse-contextmenu.svelte-1nininf .jse-row div.jse-tip div.jse-tip-icon.svelte-1nininf{padding-top:calc(0.5 * var(--jse-padding))}.jse-contextmenu.svelte-1nininf .jse-column.svelte-1nininf{flex:1;display:flex;flex-direction:column;align-items:stretch}.jse-contextmenu.svelte-1nininf .jse-column.svelte-1nininf:not(:last-child){border-right:1px solid var(--jse-context-menu-separator-color)}.jse-contextmenu.svelte-1nininf .jse-separator.svelte-1nininf{width:100%;height:1px;background:var(--jse-context-menu-separator-color)}")}function qS(e,t,n){var r=e.slice();return r[6]=t[n],r}function FS(e,t,n){var r=e.slice();return r[9]=t[n],r}function VS(e,t,n){var r=e.slice();return r[12]=t[n],r}function eQ(e){var t,n=xc(e[6])+"";return{c:function(){t=Ut(n)},m:function(r,o){at(r,t,o)},p:function(r,o){1&o&&n!==(n=xc(r[6])+"")&&me(t,n)},i:Bt,o:Bt,d:function(r){r&&it(t)}}}function nQ(e){var t;return{c:function(){j(t=G("div"),"class","jse-separator svelte-1nininf")},m:function(n,r){at(n,t,r)},p:Bt,i:Bt,o:Bt,d:function(n){n&&it(t)}}}function rQ(e){for(var t,n,r=Ee(e[6].items),o=[],i=0;i<r.length;i+=1)o[i]=WS(FS(e,r,i));var a=function(s){return q(o[s],1,1,function(){o[s]=null})};return{c:function(){t=G("div");for(var s=0;s<o.length;s+=1)o[s].c();j(t,"class","jse-row svelte-1nininf")},m:function(s,u){at(s,t,u);for(var c=0;c<o.length;c+=1)o[c]&&o[c].m(t,null);n=!0},p:function(s,u){if(1&u){var c;for(r=Ee(s[6].items),c=0;c<r.length;c+=1){var l=FS(s,r,c);o[c]?(o[c].p(l,u),N(o[c],1)):(o[c]=WS(l),o[c].c(),N(o[c],1),o[c].m(t,null))}for(Dt(),c=r.length;c<o.length;c+=1)a(c);zt()}},i:function(s){if(!n){for(var u=0;u<r.length;u+=1)N(o[u]);n=!0}},o:function(s){o=o.filter(Boolean);for(var u=0;u<o.length;u+=1)q(o[u]);n=!1},d:function(s){s&&it(t),xr(o,s)}}}function oQ(e){var t,n;return t=new Cy({props:{item:e[6]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[6]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function iQ(e){var t,n;return t=new Sy({props:{item:e[6]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[6]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function aQ(e){var t,n=xc(e[9])+"";return{c:function(){t=Ut(n)},m:function(r,o){at(r,t,o)},p:function(r,o){1&o&&n!==(n=xc(r[9])+"")&&me(t,n)},i:Bt,o:Bt,d:function(r){r&&it(t)}}}function sQ(e){var t;return{c:function(){j(t=G("div"),"class","jse-separator svelte-1nininf")},m:function(n,r){at(n,t,r)},p:Bt,i:Bt,o:Bt,d:function(n){n&&it(t)}}}function uQ(e){for(var t,n,r=Ee(e[9].items),o=[],i=0;i<r.length;i+=1)o[i]=HS(VS(e,r,i));var a=function(s){return q(o[s],1,1,function(){o[s]=null})};return{c:function(){t=G("div");for(var s=0;s<o.length;s+=1)o[s].c();j(t,"class","jse-column svelte-1nininf")},m:function(s,u){at(s,t,u);for(var c=0;c<o.length;c+=1)o[c]&&o[c].m(t,null);n=!0},p:function(s,u){if(1&u){var c;for(r=Ee(s[9].items),c=0;c<r.length;c+=1){var l=VS(s,r,c);o[c]?(o[c].p(l,u),N(o[c],1)):(o[c]=HS(l),o[c].c(),N(o[c],1),o[c].m(t,null))}for(Dt(),c=r.length;c<o.length;c+=1)a(c);zt()}},i:function(s){if(!n){for(var u=0;u<r.length;u+=1)N(o[u]);n=!0}},o:function(s){o=o.filter(Boolean);for(var u=0;u<o.length;u+=1)q(o[u]);n=!1},d:function(s){s&&it(t),xr(o,s)}}}function cQ(e){var t,n;return t=new Cy({props:{item:e[9]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[9]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function lQ(e){var t,n;return t=new Sy({props:{item:e[9]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[9]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function fQ(e){var t,n=xc(e[12])+"";return{c:function(){t=Ut(n)},m:function(r,o){at(r,t,o)},p:function(r,o){1&o&&n!==(n=xc(r[12])+"")&&me(t,n)},i:Bt,o:Bt,d:function(r){r&&it(t)}}}function dQ(e){var t,n,r=e[12].text+"";return{c:function(){t=G("div"),n=Ut(r),j(t,"class","jse-label svelte-1nininf")},m:function(o,i){at(o,t,i),B(t,n)},p:function(o,i){1&i&&r!==(r=o[12].text+"")&&me(n,r)},i:Bt,o:Bt,d:function(o){o&&it(t)}}}function hQ(e){var t;return{c:function(){j(t=G("div"),"class","jse-separator svelte-1nininf")},m:function(n,r){at(n,t,r)},p:Bt,i:Bt,o:Bt,d:function(n){n&&it(t)}}}function vQ(e){var t,n;return t=new Cy({props:{className:"left",item:e[12]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[12]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function pQ(e){var t,n;return t=new Sy({props:{className:"left",item:e[12]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[12]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function HS(e){var t,n,r,o,i,a,s,u,c=[pQ,vQ,hQ,dQ,fQ],l=[];function f(d,h){return 1&h&&(t=null),1&h&&(n=null),1&h&&(r=null),1&h&&(o=null),t==null&&(t=!!Lf(d[12])),t?0:(n==null&&(n=!!$y(d[12])),n?1:(r==null&&(r=!!rp(d[12])),r?2:(o==null&&(o=!!bG(d[12])),o?3:4)))}return i=f(e,-1),a=l[i]=c[i](e),{c:function(){a.c(),s=vn()},m:function(d,h){l[i].m(d,h),at(d,s,h),u=!0},p:function(d,h){var v=i;(i=f(d,h))===v?l[i].p(d,h):(Dt(),q(l[v],1,1,function(){l[v]=null}),zt(),(a=l[i])?a.p(d,h):(a=l[i]=c[i](d)).c(),N(a,1),a.m(s.parentNode,s))},i:function(d){u||(N(a),u=!0)},o:function(d){q(a),u=!1},d:function(d){d&&it(s),l[i].d(d)}}}function WS(e){var t,n,r,o,i,a,s,u,c=[lQ,cQ,uQ,sQ,aQ],l=[];function f(d,h){return 1&h&&(t=null),1&h&&(n=null),1&h&&(r=null),1&h&&(o=null),t==null&&(t=!!Lf(d[9])),t?0:(n==null&&(n=!!$y(d[9])),n?1:(r==null&&(r=!!xG(d[9])),r?2:(o==null&&(o=!!rp(d[9])),o?3:4)))}return i=f(e,-1),a=l[i]=c[i](e),{c:function(){a.c(),s=vn()},m:function(d,h){l[i].m(d,h),at(d,s,h),u=!0},p:function(d,h){var v=i;(i=f(d,h))===v?l[i].p(d,h):(Dt(),q(l[v],1,1,function(){l[v]=null}),zt(),(a=l[i])?a.p(d,h):(a=l[i]=c[i](d)).c(),N(a,1),a.m(s.parentNode,s))},i:function(d){u||(N(a),u=!0)},o:function(d){q(a),u=!1},d:function(d){d&&it(s),l[i].d(d)}}}function US(e){var t,n,r,o,i,a,s,u,c=[iQ,oQ,rQ,nQ,eQ],l=[];function f(d,h){return 1&h&&(t=null),1&h&&(n=null),1&h&&(r=null),1&h&&(o=null),t==null&&(t=!!Lf(d[6])),t?0:(n==null&&(n=!!$y(d[6])),n?1:(r==null&&(r=!!wG(d[6])),r?2:(o==null&&(o=!!rp(d[6])),o?3:4)))}return i=f(e,-1),a=l[i]=c[i](e),{c:function(){a.c(),s=vn()},m:function(d,h){l[i].m(d,h),at(d,s,h),u=!0},p:function(d,h){var v=i;(i=f(d,h))===v?l[i].p(d,h):(Dt(),q(l[v],1,1,function(){l[v]=null}),zt(),(a=l[i])?a.p(d,h):(a=l[i]=c[i](d)).c(),N(a,1),a.m(s.parentNode,s))},i:function(d){u||(N(a),u=!0)},o:function(d){q(a),u=!1},d:function(d){d&&it(s),l[i].d(d)}}}function JS(e){var t,n,r,o,i,a,s,u;return o=new on({props:{data:TU}}),{c:function(){t=G("div"),n=G("div"),r=G("div"),$t(o.$$.fragment),i=pt(),a=G("div"),s=Ut(e[1]),j(r,"class","jse-tip-icon svelte-1nininf"),j(a,"class","jse-tip-text"),j(n,"class","jse-tip svelte-1nininf"),j(t,"class","jse-row svelte-1nininf")},m:function(c,l){at(c,t,l),B(t,n),B(n,r),kt(o,r,null),B(n,i),B(n,a),B(a,s),u=!0},p:function(c,l){(!u||2&l)&&me(s,c[1])},i:function(c){u||(N(o.$$.fragment,c),u=!0)},o:function(c){q(o.$$.fragment,c),u=!1},d:function(c){c&&it(t),jt(o)}}}function mQ(e){for(var t,n,r,o,i,a=Ee(e[0]),s=[],u=0;u<a.length;u+=1)s[u]=US(qS(e,a,u));var c=function(f){return q(s[f],1,1,function(){s[f]=null})},l=e[1]&&JS(e);return{c:function(){t=G("div");for(var f=0;f<s.length;f+=1)s[f].c();n=pt(),l&&l.c(),j(t,"role","menu"),j(t,"tabindex","-1"),j(t,"class","jse-contextmenu svelte-1nininf")},m:function(f,d){at(f,t,d);for(var h=0;h<s.length;h+=1)s[h]&&s[h].m(t,null);B(t,n),l&&l.m(t,null),e[4](t),r=!0,o||(i=Nt(t,"keydown",e[3]),o=!0)},p:function(f,d){var h=ke(d,1)[0];if(1&h){var v;for(a=Ee(f[0]),v=0;v<a.length;v+=1){var p=qS(f,a,v);s[v]?(s[v].p(p,h),N(s[v],1)):(s[v]=US(p),s[v].c(),N(s[v],1),s[v].m(t,n))}for(Dt(),v=a.length;v<s.length;v+=1)c(v);zt()}f[1]?l?(l.p(f,h),2&h&&N(l,1)):((l=JS(f)).c(),N(l,1),l.m(t,null)):l&&(Dt(),q(l,1,1,function(){l=null}),zt())},i:function(f){if(!r){for(var d=0;d<a.length;d+=1)N(s[d]);N(l),r=!0}},o:function(f){s=s.filter(Boolean);for(var d=0;d<s.length;d+=1)q(s[d]);q(l),r=!1},d:function(f){f&&it(t),xr(s,f),l&&l.d(),e[4](null),o=!1,i()}}}function xc(e){return console.error("Unknown type of context menu item",e),"???"}function gQ(e,t,n){var r,o=t.items,i=t.tip;ai(function(){setTimeout(function(){var s=xe(r.querySelectorAll("button")).find(function(u){return!u.disabled});s&&s.focus()})});var a={ArrowUp:"Up",ArrowDown:"Down",ArrowLeft:"Left",ArrowRight:"Right"};return e.$$set=function(s){"items"in s&&n(0,o=s.items),"tip"in s&&n(1,i=s.tip)},[o,i,r,function(s){var u=Ds(s),c=a[u];if(typeof c=="string"){s.preventDefault();var l=wU({allElements:Array.from(r.querySelectorAll("button:not([disabled])")),currentElement:s.target,direction:c,hasPrio:function(f){return f.getAttribute("data-type")!=="jse-open-dropdown"}});l&&l.focus()}},function(s){Ge[s?"unshift":"push"](function(){n(2,r=s)})}]}var m7=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,gQ,mQ,De,{items:0,tip:1},tQ),o}return Z(n)}();function yQ(e){var t,n;return t=new m7({props:{items:e[1],tip:e[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};2&o[0]&&(i.items=r[1]),1&o[0]&&(i.tip=r[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function bQ(e,t,n){var r,o,i,a,s,u,c,l,f,d,h,v,p,m,g,y,b,w,x,k,E=t.json,R=t.documentState,z=t.parser,A=t.showTip,_=t.onCloseContextMenu,U=t.onEditKey,J=t.onEditValue,D=t.onToggleEnforceString,F=t.onCut,V=t.onCopy,C=t.onPaste,P=t.onRemove,$=t.onDuplicate,S=t.onExtract,O=t.onInsertBefore,I=t.onInsert,M=t.onConvert,L=t.onInsertAfter,T=t.onSort,ut=t.onTransform;function lt(){_(),U()}function xt(){_(),J()}function Ct(){_(),D()}function Mt(){_(),F(!0)}function dt(){_(),F(!1)}function It(){_(),V(!0)}function bt(){_(),V(!1)}function Tt(){_(),C()}function ft(){_(),P()}function ae(){_(),$()}function H(){_(),S()}function Q(Vt){_(),c?M(Vt):I(Vt)}function tt(){_(),T()}function yt(){_(),ut()}function St(){_(),O()}function Ht(){_(),L()}return e.$$set=function(Vt){"json"in Vt&&n(2,E=Vt.json),"documentState"in Vt&&n(3,R=Vt.documentState),"parser"in Vt&&n(4,z=Vt.parser),"showTip"in Vt&&n(0,A=Vt.showTip),"onCloseContextMenu"in Vt&&n(5,_=Vt.onCloseContextMenu),"onEditKey"in Vt&&n(6,U=Vt.onEditKey),"onEditValue"in Vt&&n(7,J=Vt.onEditValue),"onToggleEnforceString"in Vt&&n(8,D=Vt.onToggleEnforceString),"onCut"in Vt&&n(9,F=Vt.onCut),"onCopy"in Vt&&n(10,V=Vt.onCopy),"onPaste"in Vt&&n(11,C=Vt.onPaste),"onRemove"in Vt&&n(12,P=Vt.onRemove),"onDuplicate"in Vt&&n(13,$=Vt.onDuplicate),"onExtract"in Vt&&n(14,S=Vt.onExtract),"onInsertBefore"in Vt&&n(15,O=Vt.onInsertBefore),"onInsert"in Vt&&n(16,I=Vt.onInsert),"onConvert"in Vt&&n(17,M=Vt.onConvert),"onInsertAfter"in Vt&&n(18,L=Vt.onInsertAfter),"onSort"in Vt&&n(19,T=Vt.onSort),"onTransform"in Vt&&n(20,ut=Vt.onTransform)},e.$$.update=function(){8&e.$$.dirty[0]&&n(37,r=R.selection),4&e.$$.dirty[0]&&n(39,o=E!==void 0),64&e.$$.dirty[1]&&n(31,i=!!r),64&e.$$.dirty[1]&&n(21,a=r&&Ze(he(r))),4&e.$$.dirty[0]|64&e.$$.dirty[1]&&n(38,s=r?ie(E,he(r)):void 0),128&e.$$.dirty[1]&&n(35,u=Array.isArray(s)?"Edit array":er(s)?"Edit object":"Edit value"),320&e.$$.dirty[1]&&n(22,c=o&&(An(r)||Cr(r)||rn(r))),6291456&e.$$.dirty[0]|256&e.$$.dirty[1]&&n(30,l=o&&c&&!a),2097152&e.$$.dirty[0]|320&e.$$.dirty[1]&&n(29,f=o&&r!=null&&(An(r)||rn(r))&&!a),2097156&e.$$.dirty[0]|320&e.$$.dirty[1]&&n(36,d=o&&r!=null&&Fh(r)&&!a&&!Array.isArray(ie(E,Qe(he(r))))),320&e.$$.dirty[1]&&n(34,h=o&&r!=null&&Fh(r)),136&e.$$.dirty[1]&&n(32,v=h&&!sr(s)),4194304&e.$$.dirty[0]&&n(25,p=c),33554432&e.$$.dirty[0]&&n(24,m=p?"Convert to:":"Insert:"),33554432&e.$$.dirty[0]|1&e.$$.dirty[1]&&n(28,g=!p&&i),33554432&e.$$.dirty[0]|193&e.$$.dirty[1]&&n(27,y=p?sh(r)&&!er(s):i),33554432&e.$$.dirty[0]|193&e.$$.dirty[1]&&n(26,b=p?sh(r)&&!Array.isArray(s):i),33554432&e.$$.dirty[0]|193&e.$$.dirty[1]&&n(23,w=p?sh(r)&&sr(s):i),24&e.$$.dirty[0]|192&e.$$.dirty[1]&&n(33,x=r!=null&&qa(s,R.enforceStringMap,Zt(he(r)),z)),2145386496&e.$$.dirty[0]|63&e.$$.dirty[1]&&n(1,k=[{type:"row",items:[{type:"button",onClick:lt,icon:oc,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!d},{type:"dropdown-button",main:{type:"button",onClick:xt,icon:oc,text:u,title:"Edit the value (Double-click on the value)",disabled:!h},width:"11em",items:[{type:"button",icon:oc,text:u,title:"Edit the value (Double-click on the value)",onClick:xt,disabled:!h},{type:"button",icon:x?Kl:Gl,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:Ct,disabled:!v}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:Mt,icon:rc,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!c},width:"10em",items:[{type:"button",icon:rc,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:Mt,disabled:!c},{type:"button",icon:rc,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:dt,disabled:!c}]},{type:"dropdown-button",main:{type:"button",onClick:It,icon:ps,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!c},width:"12em",items:[{type:"button",icon:ps,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:It,disabled:!c},{type:"button",icon:ps,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:bt,disabled:!c}]},{type:"button",onClick:Tt,icon:QA,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!i}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:ae,icon:t7,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!l},{type:"button",onClick:H,icon:qJ,text:"Extract",title:"Extract selected contents",disabled:!f},{type:"button",onClick:tt,icon:Xv,text:"Sort",title:"Sort array or object contents",disabled:!c},{type:"button",onClick:yt,icon:Qv,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:!c},{type:"button",onClick:ft,icon:Ag,text:"Remove",title:"Remove selected contents (Delete)",disabled:!c}]},{type:"column",items:[{type:"label",text:m},{type:"button",onClick:function(){return Q("structure")},icon:p?ud:Ku,text:"Structure",title:m+" structure",disabled:!g},{type:"button",onClick:function(){return Q("object")},icon:p?ud:Ku,text:"Object",title:m+" structure",disabled:!y},{type:"button",onClick:function(){return Q("array")},icon:p?ud:Ku,text:"Array",title:m+" array",disabled:!b},{type:"button",onClick:function(){return Q("value")},icon:p?ud:Ku,text:"Value",title:m+" value",disabled:!w}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:St,icon:LJ,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:!c||a},{type:"button",onClick:Ht,icon:IJ,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:!c||a}]}])},[A,k,E,R,z,_,U,J,D,F,V,C,P,$,S,O,I,M,L,T,ut,a,c,w,m,p,b,y,g,f,l,i,v,x,h,u,d,r,s,o]}var wQ=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,bQ,yQ,De,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditKey:6,onEditValue:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicate:13,onExtract:14,onInsertBefore:15,onInsert:16,onConvert:17,onInsertAfter:18,onSort:19,onTransform:20},null,[-1,-1]),o}return Z(n)}();function xQ(e){Ae(e,"svelte-1kai5ns","div.jse-collapsed-items.svelte-1kai5ns.svelte-1kai5ns{font-family:var(--jse-font-family);font-size:var(--jse-font-size);color:var(--jse-collapsed-items-link-color);padding:calc(0.5 * var(--jse-padding));border:8px solid transparent;border-width:8px 0;background-color:var(--jse-contents-background-color);background-image:linear-gradient(var(--jse-collapsed-items-background-color), var(--jse-collapsed-items-background-color)), linear-gradient(to bottom right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to bottom left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%);background-repeat:repeat, repeat-x, repeat-x, repeat-x, repeat-x;background-position:0 0, 8px 0, 8px 0, 8px 100%, 8px 100%;background-size:auto auto, 16px 16px, 16px 16px, 16px 16px, 16px 16px;background-clip:padding-box, border-box, border-box, border-box, border-box;background-origin:padding-box, border-box, border-box, border-box, border-box;display:flex}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{margin:0 calc(0.5 * var(--jse-padding))}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns{display:inline}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{font-family:inherit;font-size:inherit;color:var(--jse-collapsed-items-link-color);background:none;border:none;padding:0;text-decoration:underline;cursor:pointer}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:hover,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:focus{color:var(--jse-collapsed-items-link-color-highlight)}")}function KS(e,t,n){var r=e.slice();return r[13]=t[n],r}function GS(e){var t,n,r,o,i,a,s,u,c=e[13].start+"",l=e[13].end+"";function f(){return e[12](e[13])}return{c:function(){t=G("button"),n=Ut("show "),r=Ut(c),o=Ut("-"),i=Ut(l),a=pt(),j(t,"type","button"),j(t,"class","jse-expand-items svelte-1kai5ns")},m:function(d,h){at(d,t,h),B(t,n),B(t,r),B(t,o),B(t,i),B(t,a),s||(u=Nt(t,"click",f),s=!0)},p:function(d,h){e=d,16&h&&c!==(c=e[13].start+"")&&me(r,c),16&h&&l!==(l=e[13].end+"")&&me(i,l)},d:function(d){d&&it(t),s=!1,u()}}}function kQ(e){for(var t,n,r,o,i,a,s,u,c,l,f,d=Ee(e[4]),h=[],v=0;v<d.length;v+=1)h[v]=GS(KS(e,d,v));return{c:function(){t=G("div"),n=G("div"),r=G("div"),o=Ut("Items "),i=Ut(e[3]),a=Ut("-"),s=Ut(e[2]),u=pt();for(var p=0;p<h.length;p+=1)h[p].c();j(r,"class","jse-text svelte-1kai5ns"),j(t,"role","none"),j(t,"class","jse-collapsed-items svelte-1kai5ns"),j(t,"style",c=QS(e[0].length+2)),Pt(t,"jse-selected",e[5])},m:function(p,m){at(p,t,m),B(t,n),B(n,r),B(r,o),B(r,i),B(r,a),B(r,s),B(n,u);for(var g=0;g<h.length;g+=1)h[g]&&h[g].m(n,null);l||(f=Nt(t,"mousemove",jQ),l=!0)},p:function(p,m){var g=ke(m,1)[0];if(8&g&&me(i,p[3]),4&g&&me(s,p[2]),19&g){var y;for(d=Ee(p[4]),y=0;y<d.length;y+=1){var b=KS(p,d,y);h[y]?h[y].p(b,g):(h[y]=GS(b),h[y].c(),h[y].m(n,null))}for(;y<h.length;y+=1)h[y].d(1);h.length=d.length}1&g&&c!==(c=QS(p[0].length+2))&&j(t,"style",c),32&g&&Pt(t,"jse-selected",p[5])},i:Bt,o:Bt,d:function(p){p&&it(t),xr(h,p),l=!1,f()}}}function QS(e){return"margin-left: calc(".concat(e," * var(--jse-indent-size))")}function jQ(e){e.stopPropagation()}function $Q(e,t,n){var r,o,i,a,s,u=t.visibleSections,c=t.sectionIndex,l=t.total,f=t.path,d=t.selection,h=t.onExpandSection,v=t.context;return e.$$set=function(p){"visibleSections"in p&&n(6,u=p.visibleSections),"sectionIndex"in p&&n(7,c=p.sectionIndex),"total"in p&&n(8,l=p.total),"path"in p&&n(0,f=p.path),"selection"in p&&n(9,d=p.selection),"onExpandSection"in p&&n(1,h=p.onExpandSection),"context"in p&&n(10,v=p.context)},e.$$.update=function(){192&e.$$.dirty&&n(11,r=u[c]),2048&e.$$.dirty&&n(3,o=r.end),448&e.$$.dirty&&n(2,i=u[c+1]?u[c+1].start:l),1545&e.$$.dirty&&n(5,a=Ql(v.getJson(),d,f.concat(String(o)))),12&e.$$.dirty&&n(4,s=function(p,m){var g={start:p,end:Math.min(Sg(p),m)},y=Math.max(Bh((p+m)/2),p),b={start:y,end:Math.min(Sg(y),m)},w=Bh(m),x=w===m?w-ql:w,k={start:Math.max(x,p),end:m},E=[g],R=b.start>=g.end&&b.end<=k.start;return R&&E.push(b),k.start>=(R?b.end:g.end)&&E.push(k),E}(o,i))},[f,h,i,o,s,a,u,c,l,d,v,r,function(p){return h(f,p)}]}var SQ=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,$Q,kQ,De,{visibleSections:6,sectionIndex:7,total:8,path:0,selection:9,onExpandSection:1,context:10},xQ),o}return Z(n)}();function CQ(e){Ae(e,"svelte-1yzl4st",".jse-context-menu-pointer.svelte-1yzl4st{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size));right:calc(-0.5 * var(--jse-context-menu-pointer-size));width:var(--jse-context-menu-pointer-size);height:var(--jse-context-menu-pointer-size);padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background);color:var(--jse-context-menu-pointer-color);border:none;box-shadow:var(--jse-controls-box-shadow)}.jse-context-menu-pointer.svelte-1yzl4st:hover{background:var(--jse-context-menu-pointer-background-highlight)}")}function _Q(e){var t,n,r,o,i;return n=new on({props:{data:Qo}}),{c:function(){t=G("button"),$t(n.$$.fragment),j(t,"type","button"),j(t,"class","jse-context-menu-pointer svelte-1yzl4st"),j(t,"title",s1),Pt(t,"jse-selected",e[0])},m:function(a,s){at(a,t,s),kt(n,t,null),r=!0,o||(i=Nt(t,"click",e[1]),o=!0)},p:function(a,s){var u=ke(s,1)[0];(!r||1&u)&&Pt(t,"jse-selected",a[0])},i:function(a){r||(N(n.$$.fragment,a),r=!0)},o:function(a){q(n.$$.fragment,a),r=!1},d:function(a){a&&it(t),jt(n),o=!1,i()}}}function OQ(e,t,n){var r=t.selected,o=t.onContextMenu;return e.$$set=function(i){"selected"in i&&n(0,r=i.selected),"onContextMenu"in i&&n(2,o=i.onContextMenu)},[r,function(i){for(var a=i.target;a&&a.nodeName!=="BUTTON";)a=a.parentNode;a&&o({anchor:a,left:0,top:0,width:Aa,height:Ea,offsetTop:2,offsetLeft:0,showTip:!0})},o]}var zs=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,OQ,_Q,De,{selected:0,onContextMenu:2},CQ),o}return Z(n)}();function MQ(e){Ae(e,"svelte-24a1b2",'.jse-key.svelte-24a1b2{display:inline-block;min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;color:var(--jse-key-color);cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.jse-empty.svelte-24a1b2{min-width:3em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-key.jse-empty.svelte-24a1b2::after{pointer-events:none;color:var(--jse-tag-background);content:"key"}')}function EQ(e){var t,n,r,o,i,a,s,u=[TQ,PQ],c=[];function l(f,d){return f[1]?0:1}return n=l(e),r=c[n]=u[n](e),{c:function(){t=G("div"),r.c(),j(t,"role","none"),j(t,"data-type","selectable-key"),j(t,"class",o=tr(e[6](e[0]))+" svelte-24a1b2")},m:function(f,d){at(f,t,d),c[n].m(t,null),i=!0,a||(s=Nt(t,"dblclick",e[5]),a=!0)},p:function(f,d){var h=n;(n=l(f))===h?c[n].p(f,d):(Dt(),q(c[h],1,1,function(){c[h]=null}),zt(),(r=c[n])?r.p(f,d):(r=c[n]=u[n](f)).c(),N(r,1),r.m(t,null)),(!i||1&d&&o!==(o=tr(f[6](f[0]))+" svelte-24a1b2"))&&j(t,"class",o)},i:function(f){i||(N(r),i=!0)},o:function(f){q(r),i=!1},d:function(f){f&&it(t),c[n].d(),a=!1,s()}}}function AQ(e){var t,n;return t=new VA({props:{value:e[2].normalization.escapeValue(e[0]),shortText:!0,onChange:e[7],onCancel:e[8],onFind:e[2].onFind}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};5&o&&(i.value=r[2].normalization.escapeValue(r[0])),4&o&&(i.onFind=r[2].onFind),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function PQ(e){var t,n=gu(e[2].normalization.escapeValue(e[0]))+"";return{c:function(){t=Ut(n)},m:function(r,o){at(r,t,o)},p:function(r,o){5&o&&n!==(n=gu(r[2].normalization.escapeValue(r[0]))+"")&&me(t,n)},i:Bt,o:Bt,d:function(r){r&&it(t)}}}function TQ(e){var t,n;return t=new GA({props:{text:e[2].normalization.escapeValue(e[0]),searchResultItems:e[1]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};5&o&&(i.text=r[2].normalization.escapeValue(r[0])),2&o&&(i.searchResultItems=r[1]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function YS(e){var t,n;return t=new zs({props:{selected:!0,onContextMenu:e[2].onContextMenu}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};4&o&&(i.onContextMenu=r[2].onContextMenu),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function RQ(e){var t,n,r,o,i,a=[AQ,EQ],s=[];function u(l,f){return l[4]?0:1}t=u(e),n=s[t]=a[t](e);var c=!e[2].readOnly&&e[3]&&!e[4]&&YS(e);return{c:function(){n.c(),r=pt(),c&&c.c(),o=vn()},m:function(l,f){s[t].m(l,f),at(l,r,f),c&&c.m(l,f),at(l,o,f),i=!0},p:function(l,f){var d=ke(f,1)[0],h=t;(t=u(l))===h?s[t].p(l,d):(Dt(),q(s[h],1,1,function(){s[h]=null}),zt(),(n=s[t])?n.p(l,d):(n=s[t]=a[t](l)).c(),N(n,1),n.m(r.parentNode,r)),l[2].readOnly||!l[3]||l[4]?c&&(Dt(),q(c,1,1,function(){c=null}),zt()):c?(c.p(l,d),28&d&&N(c,1)):((c=YS(l)).c(),N(c,1),c.m(o.parentNode,o))},i:function(l){i||(N(n),N(c),i=!0)},o:function(l){q(n),q(c),i=!1},d:function(l){l&&(it(r),it(o)),s[t].d(l),c&&c.d(l)}}}function NQ(e,t,n){var r,o,i=t.path,a=t.key,s=t.selection,u=t.searchResultItems,c=t.onUpdateKey,l=t.context;return e.$$set=function(f){"path"in f&&n(9,i=f.path),"key"in f&&n(0,a=f.key),"selection"in f&&n(10,s=f.selection),"searchResultItems"in f&&n(1,u=f.searchResultItems),"onUpdateKey"in f&&n(11,c=f.onUpdateKey),"context"in f&&n(2,l=f.context)},e.$$.update=function(){1536&e.$$.dirty&&n(3,r=!!s&&Cr(s)&&Ye(s.path,i)),1032&e.$$.dirty&&n(4,o=r&&li(s))},[a,u,l,r,o,function(f){o||l.readOnly||(f.preventDefault(),l.onSelect(oi(i,!0)))},function(f){return pa("jse-key",{"jse-empty":f===""})},function(f,d){var h=c(a,l.normalization.unescapeValue(f)),v=Qe(i).concat(h);l.onSelect(d===c1?Fe(v,!1):oi(v,!1)),d!==u1&&l.focus()},function(){l.onSelect(oi(i,!1)),l.focus()},i,s,c]}var IQ=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,NQ,RQ,De,{path:9,key:0,selection:10,searchResultItems:1,onUpdateKey:11,context:2},MQ),o}return Z(n)}();function XS(e,t,n){var r=e.slice();return r[8]=t[n],r}function ZS(e){var t,n,r,o=[e[8].props],i=e[8].component;function a(s,u){var c={};if(u!==void 0&&1&u)c=si(o,[du(s[8].props)]);else for(var l=0;l<o.length;l+=1)c=So(c,o[l]);return{props:c}}return i&&(t=ha(i,a(e))),{c:function(){t&&$t(t.$$.fragment),n=vn()},m:function(s,u){t&&kt(t,s,u),at(s,n,u),r=!0},p:function(s,u){if(1&u&&i!==(i=s[8].component)){if(t){Dt();var c=t;q(c.$$.fragment,1,0,function(){jt(c,1)}),zt()}i?($t((t=ha(i,a(s,u))).$$.fragment),N(t.$$.fragment,1),kt(t,n.parentNode,n)):t=null}else if(i){var l=1&u?si(o,[du(s[8].props)]):{};t.$set(l)}},i:function(s){r||(t&&N(t.$$.fragment,s),r=!0)},o:function(s){t&&q(t.$$.fragment,s),r=!1},d:function(s){s&&it(n),t&&jt(t,s)}}}function DQ(e){for(var t,n,r=Ee(e[0]),o=[],i=0;i<r.length;i+=1)o[i]=ZS(XS(e,r,i));var a=function(s){return q(o[s],1,1,function(){o[s]=null})};return{c:function(){for(var s=0;s<o.length;s+=1)o[s].c();t=vn()},m:function(s,u){for(var c=0;c<o.length;c+=1)o[c]&&o[c].m(s,u);at(s,t,u),n=!0},p:function(s,u){var c=ke(u,1)[0];if(1&c){var l;for(r=Ee(s[0]),l=0;l<r.length;l+=1){var f=XS(s,r,l);o[l]?(o[l].p(f,c),N(o[l],1)):(o[l]=ZS(f),o[l].c(),N(o[l],1),o[l].m(t.parentNode,t))}for(Dt(),l=r.length;l<o.length;l+=1)a(l);zt()}},i:function(s){if(!n){for(var u=0;u<r.length;u+=1)N(o[u]);n=!0}},o:function(s){o=o.filter(Boolean);for(var u=0;u<o.length;u+=1)q(o[u]);n=!1},d:function(s){s&&it(t),xr(o,s)}}}function zQ(e,t,n){var r,o,i=t.path,a=t.value,s=t.context,u=t.enforceString,c=t.selection,l=t.searchResultItems;return e.$$set=function(f){"path"in f&&n(1,i=f.path),"value"in f&&n(2,a=f.value),"context"in f&&n(3,s=f.context),"enforceString"in f&&n(4,u=f.enforceString),"selection"in f&&n(5,c=f.selection),"searchResultItems"in f&&n(6,l=f.searchResultItems)},e.$$.update=function(){40&e.$$.dirty&&n(7,r=!s.readOnly&&rn(c)&&li(c)),254&e.$$.dirty&&n(0,o=s.onRenderValue({path:i,value:a,readOnly:s.readOnly,enforceString:u,isEditing:r,parser:s.parser,normalization:s.normalization,selection:c,searchResultItems:l,onPatch:s.onPatch,onPasteJson:s.onPasteJson,onSelect:s.onSelect,onFind:s.onFind,findNextInside:s.findNextInside,focus:s.focus}))},[o,i,a,s,u,c,l,r]}var LQ=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,zQ,DQ,De,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),o}return Z(n)}(),BQ=LQ,Dr={selecting:!1,selectionAnchor:null,selectionAnchorType:null,selectionFocus:null,dragging:!1};function im(e){var t=e.json,n=e.documentState,r=e.deltaY,o=e.items;if(!n.selection)return{operations:void 0,updatedSelection:null,offset:0};var i=n.selection,a=r<0?function(l){for(var f=l.json,d=l.items,h=l.selection,v=l.deltaY,p=Pa(f,h),m=d.findIndex(function(k){return Ye(k.path,p)}),g=function(){var k;return(k=d[y-1])===null||k===void 0?void 0:k.height},y=m,b=0;g()!==void 0&&Math.abs(v)>b+g()/2;)b+=g(),y-=1;var w=d[y].path,x=y-m;return y!==m&&d[y]!==void 0?{beforePath:w,offset:x}:void 0}({json:t,selection:i,deltaY:r,items:o}):function(l){for(var f,d=l.json,h=l.items,v=l.selection,p=l.deltaY,m=vs(d,v),g=h.findIndex(function(_){return Ye(_.path,m)}),y=0,b=g,w=function(){var _;return(_=h[b+1])===null||_===void 0?void 0:_.height};w()!==void 0&&Math.abs(p)>y+w()/2;)y+=w(),b+=1;var x=Qe(m),k=ie(d,x),E=Array.isArray(k),R=E?b:b+1,z=(f=h[R])===null||f===void 0?void 0:f.path,A=b-g;return z?{beforePath:z,offset:A}:{append:!0,offset:A}}({json:t,selection:i,deltaY:r,items:o});if(!a||a.offset===0)return{operations:void 0,updatedSelection:null,offset:0};var s=function(l,f,d){if(!f)return[];var h="beforePath"in d?d.beforePath:void 0,v="append"in d?d.append:void 0,p=Qe(he(f)),m=ie(l,p);if(!(v||h&&js(h,p)&&h.length>p.length))return[];var g=Pa(l,f),y=vs(l,f),b=Me(g),w=Me(y),x=h?h[p.length]:void 0;if(!ur(m)){if(In(m)){var k=Xr(b),E=Xr(w),R=x!==void 0?Xr(x):m.length;return fA(E-k+1,R<k?function(J){return{op:"move",from:Zt(p.concat(String(k+J))),path:Zt(p.concat(String(R+J)))}}:function(){return{op:"move",from:Zt(p.concat(String(k))),path:Zt(p.concat(String(R)))}})}throw new Error("Cannot create move operations: parent must be an Object or Array")}var z=Object.keys(m),A=z.indexOf(b),_=z.indexOf(w),U=v?z.length:x!==void 0?z.indexOf(x):-1;return A!==-1&&_!==-1&&U!==-1?U>A?[].concat(xe(z.slice(A,_+1)),xe(z.slice(U,z.length))).map(function(J){return yu(p,J)}):[].concat(xe(z.slice(U,A)),xe(z.slice(_+1,z.length))).map(function(J){return yu(p,J)}):[]}(t,i,a),u=ie(t,Qe(Pa(t,i)));if(Array.isArray(u)){var c=function(l){var f,d,h=l.items,v=l.json,p=l.selection,m=l.offset,g=Pa(v,p),y=vs(v,p),b=h.findIndex(function(E){return Ye(E.path,g)}),w=h.findIndex(function(E){return Ye(E.path,y)}),x=(f=h[b+m])===null||f===void 0?void 0:f.path,k=(d=h[w+m])===null||d===void 0?void 0:d.path;return io(x,k)}({items:o,json:t,selection:i,offset:a.offset});return{operations:s,updatedSelection:c,offset:a.offset}}return{operations:s,updatedSelection:null,offset:a.offset}}function Ui(e,t){return function(n,r){if(n){for(var o={},i=0,a=Object.keys(n);i<a.length;i++){var s=a[i];r(s,n[s])&&(o[s]=n[s])}return Object.keys(o).length>0?o:void 0}}(e,function(n){return Mv(n,t)})}function qQ(e){Ae(e,"svelte-pz3g1j","button.jse-validation-error.svelte-pz3g1j{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color)}")}function FQ(e){var t,n,r,o,i,a;return n=new on({props:{data:_u}}),{c:function(){t=G("button"),$t(n.$$.fragment),j(t,"type","button"),j(t,"class","jse-validation-error svelte-pz3g1j")},m:function(s,u){at(s,t,u),kt(n,t,null),o=!0,i||(a=[Nt(t,"click",function(){Br(e[0])&&e[0].apply(this,arguments)}),Fr(r=my.call(null,t,vt({text:e[1]},e[2])))],i=!0)},p:function(s,u){var c=ke(u,1)[0];e=s,r&&Br(r.update)&&2&c&&r.update.call(null,vt({text:e[1]},e[2]))},i:function(s){o||(N(n.$$.fragment,s),o=!0)},o:function(s){q(n.$$.fragment,s),o=!1},d:function(s){s&&it(t),jt(n),i=!1,Tn(a)}}}function VQ(e,t,n){var r,o=Vr("absolute-popup"),i=t.validationError,a=t.onExpand;return e.$$set=function(s){"validationError"in s&&n(3,i=s.validationError),"onExpand"in s&&n(0,a=s.onExpand)},e.$$.update=function(){8&e.$$.dirty&&n(1,r=i.isChildError?"Contains invalid data":i.message)},[a,r,o,i]}var Vc=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,VQ,FQ,Nr,{validationError:3,onExpand:0},qQ),o}return Z(n)}();function HQ(e){Ae(e,"svelte-1wlxti1",".jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative;color:var(--jse-text-color)}.jse-json-node.jse-root.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1 .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1 .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size))}.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1.svelte-1wlxti1{padding-left:0}.jse-json-node.svelte-1wlxti1 .jse-props.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-items.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header .jse-meta.svelte-1wlxti1>.jse-meta-inner.svelte-1wlxti1.svelte-1wlxti1{display:flex;justify-content:center}.jse-json-node.svelte-1wlxti1 .jse-contents-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;flex-direction:row;align-items:start}.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-left:var(--jse-indent-size)}.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;padding-left:calc(var(--jse-indent-size) + 5px)}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-contents-background-color)}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding));flex:1}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-inside.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;align-items:center}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-after.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;align-items:flex-end}.jse-json-node.svelte-1wlxti1 .jse-context-menu-pointer-anchor.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;position:relative;z-index:1;max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding));outline:1px solid}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1 .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-hovered.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1:hover>.jse-contents-outer .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1:hover>.jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-footer-outer:hover .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-hover-background-color)}.jse-json-node.jse-selected.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected.svelte-1wlxti1 .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-identifier>.jse-key{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.svelte-1wlxti1 .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-collapsed-items{background-color:var(--jse-selection-background-color);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-readonly.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight)}.jse-main:not(.jse-focus) .jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-selection-background-color:var(--jse-selection-background-inactive-color);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{width:var(--jse-indent-size);padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color);font-size:var(--jse-font-size-mono);height:var(--jse-line-height)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-separator.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;color:var(--jse-delimiter-color)}.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 calc(0.5 * var(--jse-padding))}.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 2px}.jse-bracket.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-right:var(--jse-padding)}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{border:none;font-size:80%;font-family:var(--jse-font-family);color:var(--jse-tag-color);background:var(--jse-tag-background);border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{opacity:0.7;cursor:inherit}.jse-identifier.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;position:relative}")}var WQ=function(e){return{}},t8=function(e){return{}};function e8(e,t,n){var r=e.slice();return r[53]=t[n],r}var UQ=function(e){return{}},n8=function(e){return{}};function r8(e,t,n){var r=e.slice();return r[47]=t[n],r[49]=n,r}function o8(e,t,n){var r=e.slice();return r[50]=t[n],r}var JQ=function(e){return{}},i8=function(e){return{}};function KQ(e){var t,n,r,o,i,a,s,u,c,l=!e[8].readOnly&&e[16]&&e[7]&&(rn(e[7])||An(e[7]))&&!li(e[7])&&Ye(he(e[7]),e[1]),f=e[34].identifier,d=hr(f,e,e[35],t8),h=!e[17]&&a8();i=new BQ({props:{path:e[1],value:e[0],enforceString:e[13],selection:e[16]?e[7]:null,searchResultItems:S4(e[6],e[9]),context:e[8]}});var v=l&&s8(e),p=e[15]&&u8(e),m=!e[17]&&c8(e);return{c:function(){t=G("div"),n=G("div"),d&&d.c(),r=pt(),h&&h.c(),o=pt(),$t(i.$$.fragment),a=pt(),v&&v.c(),s=pt(),p&&p.c(),u=pt(),m&&m.c(),j(n,"class","jse-contents svelte-1wlxti1"),j(t,"class","jse-contents-outer svelte-1wlxti1"),j(t,"style",e[18])},m:function(g,y){at(g,t,y),B(t,n),d&&d.m(n,null),B(n,r),h&&h.m(n,null),B(n,o),kt(i,n,null),B(n,a),v&&v.m(n,null),B(t,s),p&&p.m(t,null),B(t,u),m&&m.m(t,null),c=!0},p:function(g,y){d&&d.p&&(!c||16&y[1])&&pr(d,f,g,g[35],c?vr(f,g[35],y,WQ):mr(g[35]),t8),g[17]?h&&(h.d(1),h=null):h||((h=a8()).c(),h.m(n,o));var b={};2&y[0]&&(b.path=g[1]),1&y[0]&&(b.value=g[0]),8192&y[0]&&(b.enforceString=g[13]),65664&y[0]&&(b.selection=g[16]?g[7]:null),576&y[0]&&(b.searchResultItems=S4(g[6],g[9])),256&y[0]&&(b.context=g[8]),i.$set(b),65922&y[0]&&(l=!g[8].readOnly&&g[16]&&g[7]&&(rn(g[7])||An(g[7]))&&!li(g[7])&&Ye(he(g[7]),g[1])),l?v?(v.p(g,y),65922&y[0]&&N(v,1)):((v=s8(g)).c(),N(v,1),v.m(n,null)):v&&(Dt(),q(v,1,1,function(){v=null}),zt()),g[15]?p?(p.p(g,y),32768&y[0]&&N(p,1)):((p=u8(g)).c(),N(p,1),p.m(t,u)):p&&(Dt(),q(p,1,1,function(){p=null}),zt()),g[17]?m&&(m.d(1),m=null):m?m.p(g,y):((m=c8(g)).c(),m.m(t,null)),(!c||262144&y[0])&&j(t,"style",g[18])},i:function(g){c||(N(d,g),N(i.$$.fragment,g),N(v),N(p),c=!0)},o:function(g){q(d,g),q(i.$$.fragment,g),q(v),q(p),c=!1},d:function(g){g&&it(t),d&&d.d(g),h&&h.d(),jt(i),v&&v.d(),p&&p.d(),m&&m.d()}}}function GQ(e){var t,n,r,o,i,a,s,u,c,l,f,d,h,v,p,m,g,y,b=!e[8].readOnly&&e[16]&&e[7]&&(rn(e[7])||An(e[7]))&&!e[7].edit&&Ye(he(e[7]),e[1]),w=[XQ,YQ],x=[];function k($,S){return $[12]?0:1}o=k(e),i=x[o]=w[o](e);var E=e[34].identifier,R=hr(E,e,e[35],n8),z=!e[17]&&l8();function A($,S){return $[12]?tY:ZQ}var _=A(e),U=_(e),J=b&&f8(e),D=e[15]&&(!e[12]||!e[15].isChildError)&&d8(e);function F($,S){return $[12]?nY:$[17]?void 0:eY}var V=F(e),C=V&&V(e),P=e[12]&&h8(e);return{c:function(){t=G("div"),n=G("div"),r=G("button"),i.c(),a=pt(),R&&R.c(),s=pt(),z&&z.c(),u=pt(),c=G("div"),l=G("div"),U.c(),f=pt(),J&&J.c(),d=pt(),D&&D.c(),h=pt(),C&&C.c(),v=pt(),P&&P.c(),p=vn(),j(r,"type","button"),j(r,"class","jse-expand svelte-1wlxti1"),j(r,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),j(l,"class","jse-meta-inner svelte-1wlxti1"),j(c,"class","jse-meta svelte-1wlxti1"),j(c,"data-type","selectable-value"),j(n,"class","jse-header svelte-1wlxti1"),j(t,"class","jse-header-outer svelte-1wlxti1"),j(t,"style",e[18])},m:function($,S){at($,t,S),B(t,n),B(n,r),x[o].m(r,null),B(n,a),R&&R.m(n,null),B(n,s),z&&z.m(n,null),B(n,u),B(n,c),B(c,l),U.m(l,null),B(n,f),J&&J.m(n,null),B(t,d),D&&D.m(t,null),B(t,h),C&&C.m(t,null),at($,v,S),P&&P.m($,S),at($,p,S),m=!0,g||(y=Nt(r,"click",e[21]),g=!0)},p:function($,S){var O=o;(o=k($))!==O&&(Dt(),q(x[O],1,1,function(){x[O]=null}),zt(),(i=x[o])||(i=x[o]=w[o]($)).c(),N(i,1),i.m(r,null)),R&&R.p&&(!m||16&S[1])&&pr(R,E,$,$[35],m?vr(E,$[35],S,UQ):mr($[35]),n8),$[17]?z&&(z.d(1),z=null):z||((z=l8()).c(),z.m(n,u)),_===(_=A($))&&U?U.p($,S):(U.d(1),(U=_($))&&(U.c(),U.m(l,null))),65922&S[0]&&(b=!$[8].readOnly&&$[16]&&$[7]&&(rn($[7])||An($[7]))&&!$[7].edit&&Ye(he($[7]),$[1])),b?J?(J.p($,S),65922&S[0]&&N(J,1)):((J=f8($)).c(),N(J,1),J.m(n,null)):J&&(Dt(),q(J,1,1,function(){J=null}),zt()),!$[15]||$[12]&&$[15].isChildError?D&&(Dt(),q(D,1,1,function(){D=null}),zt()):D?(D.p($,S),36864&S[0]&&N(D,1)):((D=d8($)).c(),N(D,1),D.m(t,h)),V===(V=F($))&&C?C.p($,S):(C&&C.d(1),(C=V&&V($))&&(C.c(),C.m(t,null))),(!m||262144&S[0])&&j(t,"style",$[18]),$[12]?P?(P.p($,S),4096&S[0]&&N(P,1)):((P=h8($)).c(),N(P,1),P.m(p.parentNode,p)):P&&(Dt(),q(P,1,1,function(){P=null}),zt())},i:function($){m||(N(i),N(R,$),N(J),N(D),N(P),m=!0)},o:function($){q(i),q(R,$),q(J),q(D),q(P),m=!1},d:function($){$&&(it(t),it(v),it(p)),x[o].d(),R&&R.d($),z&&z.d(),U.d(),J&&J.d(),D&&D.d(),C&&C.d(),P&&P.d($),g=!1,y()}}}function QQ(e){var t,n,r,o,i,a,s,u,c,l,f,d,h,v,p,m,g,y,b=!e[8].readOnly&&e[16]&&e[7]&&(rn(e[7])||An(e[7]))&&!e[7].edit&&Ye(he(e[7]),e[1]),w=[iY,oY],x=[];function k($,S){return $[12]?0:1}o=k(e),i=x[o]=w[o](e);var E=e[34].identifier,R=hr(E,e,e[35],i8),z=!e[17]&&g8();function A($,S){return $[12]?sY:aY}var _=A(e),U=_(e),J=b&&y8(e),D=e[15]&&(!e[12]||!e[15].isChildError)&&b8(e);function F($,S){return $[12]?cY:uY}var V=F(e),C=V(e),P=e[12]&&w8(e);return{c:function(){t=G("div"),n=G("div"),r=G("button"),i.c(),a=pt(),R&&R.c(),s=pt(),z&&z.c(),u=pt(),c=G("div"),l=G("div"),U.c(),f=pt(),J&&J.c(),d=pt(),D&&D.c(),h=pt(),C.c(),v=pt(),P&&P.c(),p=vn(),j(r,"type","button"),j(r,"class","jse-expand svelte-1wlxti1"),j(r,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),j(l,"class","jse-meta-inner svelte-1wlxti1"),j(l,"data-type","selectable-value"),j(c,"class","jse-meta svelte-1wlxti1"),j(n,"class","jse-header svelte-1wlxti1"),j(t,"class","jse-header-outer svelte-1wlxti1"),j(t,"style",e[18])},m:function($,S){at($,t,S),B(t,n),B(n,r),x[o].m(r,null),B(n,a),R&&R.m(n,null),B(n,s),z&&z.m(n,null),B(n,u),B(n,c),B(c,l),U.m(l,null),B(n,f),J&&J.m(n,null),B(t,d),D&&D.m(t,null),B(t,h),C.m(t,null),at($,v,S),P&&P.m($,S),at($,p,S),m=!0,g||(y=Nt(r,"click",e[21]),g=!0)},p:function($,S){var O=o;(o=k($))!==O&&(Dt(),q(x[O],1,1,function(){x[O]=null}),zt(),(i=x[o])||(i=x[o]=w[o]($)).c(),N(i,1),i.m(r,null)),R&&R.p&&(!m||16&S[1])&&pr(R,E,$,$[35],m?vr(E,$[35],S,JQ):mr($[35]),i8),$[17]?z&&(z.d(1),z=null):z||((z=g8()).c(),z.m(n,u)),_===(_=A($))&&U?U.p($,S):(U.d(1),(U=_($))&&(U.c(),U.m(l,null))),65922&S[0]&&(b=!$[8].readOnly&&$[16]&&$[7]&&(rn($[7])||An($[7]))&&!$[7].edit&&Ye(he($[7]),$[1])),b?J?(J.p($,S),65922&S[0]&&N(J,1)):((J=y8($)).c(),N(J,1),J.m(n,null)):J&&(Dt(),q(J,1,1,function(){J=null}),zt()),!$[15]||$[12]&&$[15].isChildError?D&&(Dt(),q(D,1,1,function(){D=null}),zt()):D?(D.p($,S),36864&S[0]&&N(D,1)):((D=b8($)).c(),N(D,1),D.m(t,h)),V===(V=F($))&&C?C.p($,S):(C.d(1),(C=V($))&&(C.c(),C.m(t,null))),(!m||262144&S[0])&&j(t,"style",$[18]),$[12]?P?(P.p($,S),4096&S[0]&&N(P,1)):((P=w8($)).c(),N(P,1),P.m(p.parentNode,p)):P&&(Dt(),q(P,1,1,function(){P=null}),zt())},i:function($){m||(N(i),N(R,$),N(J),N(D),N(P),m=!0)},o:function($){q(i),q(R,$),q(J),q(D),q(P),m=!1},d:function($){$&&(it(t),it(v),it(p)),x[o].d(),R&&R.d($),z&&z.d(),U.d(),J&&J.d(),D&&D.d(),C.d(),P&&P.d($),g=!1,y()}}}function a8(e){var t;return{c:function(){(t=G("div")).textContent=":",j(t,"class","jse-separator svelte-1wlxti1")},m:function(n,r){at(n,t,r)},d:function(n){n&&it(t)}}}function s8(e){var t,n,r;return n=new zs({props:{selected:!0,onContextMenu:e[8].onContextMenu}}),{c:function(){t=G("div"),$t(n.$$.fragment),j(t,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(o,i){at(o,t,i),kt(n,t,null),r=!0},p:function(o,i){var a={};256&i[0]&&(a.onContextMenu=o[8].onContextMenu),n.$set(a)},i:function(o){r||(N(n.$$.fragment,o),r=!0)},o:function(o){q(n.$$.fragment,o),r=!1},d:function(o){o&&it(t),jt(n)}}}function u8(e){var t,n;return t=new Vc({props:{validationError:e[15],onExpand:e[22]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};32768&o[0]&&(i.validationError=r[15]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function c8(e){var t,n,r;return{c:function(){j(t=G("div"),"role","none"),j(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),j(t,"data-type","insert-selection-area-after")},m:function(o,i){at(o,t,i),n||(r=Nt(t,"click",e[30]),n=!0)},p:Bt,d:function(o){o&&it(t),n=!1,r()}}}function YQ(e){var t,n;return t=new on({props:{data:ss}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function XQ(e){var t,n;return t=new on({props:{data:Qo}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function l8(e){var t;return{c:function(){(t=G("div")).textContent=":",j(t,"class","jse-separator svelte-1wlxti1")},m:function(n,r){at(n,t,r)},d:function(n){n&&it(t)}}}function ZQ(e){var t,n,r,o,i,a,s,u,c,l,f=Object.keys(e[0]).length+"",d=Object.keys(e[0]).length===1?"prop":"props";return{c:function(){(t=G("div")).textContent="{",n=pt(),r=G("button"),o=Ut(f),i=pt(),a=Ut(d),s=pt(),(u=G("div")).textContent="}",j(t,"class","jse-bracket svelte-1wlxti1"),j(r,"type","button"),j(r,"class","jse-tag svelte-1wlxti1"),j(u,"class","jse-bracket svelte-1wlxti1")},m:function(h,v){at(h,t,v),at(h,n,v),at(h,r,v),B(r,o),B(r,i),B(r,a),at(h,s,v),at(h,u,v),c||(l=Nt(r,"click",e[22]),c=!0)},p:function(h,v){1&v[0]&&f!==(f=Object.keys(h[0]).length+"")&&me(o,f),1&v[0]&&d!==(d=Object.keys(h[0]).length===1?"prop":"props")&&me(a,d)},d:function(h){h&&(it(t),it(n),it(r),it(s),it(u)),c=!1,l()}}}function tY(e){var t;return{c:function(){(t=G("div")).textContent="{",j(t,"class","jse-bracket jse-expanded svelte-1wlxti1")},m:function(n,r){at(n,t,r)},p:Bt,d:function(n){n&&it(t)}}}function f8(e){var t,n,r;return n=new zs({props:{selected:!0,onContextMenu:e[8].onContextMenu}}),{c:function(){t=G("div"),$t(n.$$.fragment),j(t,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(o,i){at(o,t,i),kt(n,t,null),r=!0},p:function(o,i){var a={};256&i[0]&&(a.onContextMenu=o[8].onContextMenu),n.$set(a)},i:function(o){r||(N(n.$$.fragment,o),r=!0)},o:function(o){q(n.$$.fragment,o),r=!1},d:function(o){o&&it(t),jt(n)}}}function d8(e){var t,n;return t=new Vc({props:{validationError:e[15],onExpand:e[22]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};32768&o[0]&&(i.validationError=r[15]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function eY(e){var t,n,r;return{c:function(){j(t=G("div"),"role","none"),j(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),j(t,"data-type","insert-selection-area-after")},m:function(o,i){at(o,t,i),n||(r=Nt(t,"click",e[30]),n=!0)},p:Bt,d:function(o){o&&it(t),n=!1,r()}}}function nY(e){var t,n,r;return{c:function(){j(t=G("div"),"role","none"),j(t,"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),j(t,"data-type","insert-selection-area-inside")},m:function(o,i){at(o,t,i),n||(r=Nt(t,"click",e[29]),n=!0)},p:Bt,d:function(o){o&&it(t),n=!1,r()}}}function h8(e){for(var t,n,r,o,i,a,s,u=!e[8].readOnly&&(e[10]===La||e[16]&&Mr(e[7])),c=u&&v8(e),l=Ee(e[19](e[1],e[0],e[2],e[3],e[4],e[5],e[6],e[7],e[11])),f=[],d=0;d<l.length;d+=1)f[d]=p8(e8(e,l,d));var h=function(p){return q(f[p],1,1,function(){f[p]=null})},v=!e[17]&&m8(e);return{c:function(){t=G("div"),c&&c.c(),n=pt();for(var p=0;p<f.length;p+=1)f[p].c();r=pt(),o=G("div"),(i=G("div")).innerHTML='<div class="jse-bracket svelte-1wlxti1">}</div>',a=pt(),v&&v.c(),j(t,"class","jse-props svelte-1wlxti1"),j(i,"data-type","selectable-value"),j(i,"class","jse-footer svelte-1wlxti1"),j(o,"class","jse-footer-outer svelte-1wlxti1"),j(o,"style",e[18])},m:function(p,m){at(p,t,m),c&&c.m(t,null),B(t,n);for(var g=0;g<f.length;g+=1)f[g]&&f[g].m(t,null);at(p,r,m),at(p,o,m),B(o,i),B(o,a),v&&v.m(o,null),s=!0},p:function(p,m){if(66944&m[0]&&(u=!p[8].readOnly&&(p[10]===La||p[16]&&Mr(p[7]))),u?c?(c.p(p,m),66944&m[0]&&N(c,1)):((c=v8(p)).c(),N(c,1),c.m(t,n)):c&&(Dt(),q(c,1,1,function(){c=null}),zt()),76024319&m[0]){var g;for(l=Ee(p[19](p[1],p[0],p[2],p[3],p[4],p[5],p[6],p[7],p[11])),g=0;g<l.length;g+=1){var y=e8(p,l,g);f[g]?(f[g].p(y,m),N(f[g],1)):(f[g]=p8(y),f[g].c(),N(f[g],1),f[g].m(t,null))}for(Dt(),g=l.length;g<f.length;g+=1)h(g);zt()}p[17]?v&&(v.d(1),v=null):v?v.p(p,m):((v=m8(p)).c(),v.m(o,null)),(!s||262144&m[0])&&j(o,"style",p[18])},i:function(p){if(!s){N(c);for(var m=0;m<l.length;m+=1)N(f[m]);s=!0}},o:function(p){q(c),f=f.filter(Boolean);for(var m=0;m<f.length;m+=1)q(f[m]);s=!1},d:function(p){p&&(it(t),it(r),it(o)),c&&c.d(),xr(f,p),v&&v.d()}}}function v8(e){var t,n,r,o;return n=new zs({props:{selected:e[16]&&Mr(e[7]),onContextMenu:e[31]}}),{c:function(){t=G("div"),$t(n.$$.fragment),j(t,"class","jse-insert-area jse-inside svelte-1wlxti1"),j(t,"data-type","insert-selection-area-inside"),j(t,"style",r=tf(e[1].length+1)),j(t,"title",a1),Pt(t,"jse-hovered",e[10]===La),Pt(t,"jse-selected",e[16]&&Mr(e[7]))},m:function(i,a){at(i,t,a),kt(n,t,null),o=!0},p:function(i,a){var s={};65664&a[0]&&(s.selected=i[16]&&Mr(i[7])),n.$set(s),(!o||2&a[0]&&r!==(r=tf(i[1].length+1)))&&j(t,"style",r),(!o||1024&a[0])&&Pt(t,"jse-hovered",i[10]===La),(!o||65664&a[0])&&Pt(t,"jse-selected",i[16]&&Mr(i[7]))},i:function(i){o||(N(n.$$.fragment,i),o=!0)},o:function(i){q(n.$$.fragment,i),o=!1},d:function(i){i&&it(t),jt(n)}}}function rY(e){var t,n,r,o;return n=new IQ({props:{path:e[53].path,key:e[53].key,selection:e[53].selection,searchResultItems:e[53].keySearchResultItemsMap,context:e[8],onUpdateKey:e[23]}}),{c:function(){t=G("div"),$t(n.$$.fragment),r=pt(),j(t,"slot","identifier"),j(t,"class","jse-identifier svelte-1wlxti1")},m:function(i,a){at(i,t,a),kt(n,t,null),B(t,r),o=!0},p:function(i,a){var s={};2303&a[0]&&(s.path=i[53].path),2303&a[0]&&(s.key=i[53].key),2303&a[0]&&(s.selection=i[53].selection),2303&a[0]&&(s.searchResultItems=i[53].keySearchResultItemsMap),256&a[0]&&(s.context=i[8]),n.$set(s)},i:function(i){o||(N(n.$$.fragment,i),o=!0)},o:function(i){q(n.$$.fragment,i),o=!1},d:function(i){i&&it(t),jt(n)}}}function p8(e){var t,n;return t=new _y({props:{value:e[53].value,path:e[53].path,expandedMap:e[53].expandedMap,enforceStringMap:e[53].enforceStringMap,visibleSectionsMap:e[53].visibleSectionsMap,validationErrorsMap:e[53].validationErrorsMap,searchResultItemsMap:e[53].valueSearchResultItemsMap,selection:e[53].selection,context:e[8],onDragSelectionStart:e[26],$$slots:{identifier:[rY]},$$scope:{ctx:e}}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};2303&o[0]&&(i.value=r[53].value),2303&o[0]&&(i.path=r[53].path),2303&o[0]&&(i.expandedMap=r[53].expandedMap),2303&o[0]&&(i.enforceStringMap=r[53].enforceStringMap),2303&o[0]&&(i.visibleSectionsMap=r[53].visibleSectionsMap),2303&o[0]&&(i.validationErrorsMap=r[53].validationErrorsMap),2303&o[0]&&(i.searchResultItemsMap=r[53].valueSearchResultItemsMap),2303&o[0]&&(i.selection=r[53].selection),256&o[0]&&(i.context=r[8]),2559&o[0]|16&o[1]&&(i.$$scope={dirty:o,ctx:r}),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function m8(e){var t,n,r;return{c:function(){j(t=G("div"),"role","none"),j(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),j(t,"data-type","insert-selection-area-after")},m:function(o,i){at(o,t,i),n||(r=Nt(t,"click",e[30]),n=!0)},p:Bt,d:function(o){o&&it(t),n=!1,r()}}}function oY(e){var t,n;return t=new on({props:{data:ss}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function iY(e){var t,n;return t=new on({props:{data:Qo}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function g8(e){var t;return{c:function(){(t=G("div")).textContent=":",j(t,"class","jse-separator svelte-1wlxti1")},m:function(n,r){at(n,t,r)},d:function(n){n&&it(t)}}}function aY(e){var t,n,r,o,i,a,s,u,c,l,f=e[0].length+"",d=e[0].length===1?"item":"items";return{c:function(){(t=G("div")).textContent="[",n=pt(),r=G("button"),o=Ut(f),i=pt(),a=Ut(d),s=pt(),(u=G("div")).textContent="]",j(t,"class","jse-bracket svelte-1wlxti1"),j(r,"type","button"),j(r,"class","jse-tag svelte-1wlxti1"),j(u,"class","jse-bracket svelte-1wlxti1")},m:function(h,v){at(h,t,v),at(h,n,v),at(h,r,v),B(r,o),B(r,i),B(r,a),at(h,s,v),at(h,u,v),c||(l=Nt(r,"click",e[22]),c=!0)},p:function(h,v){1&v[0]&&f!==(f=h[0].length+"")&&me(o,f),1&v[0]&&d!==(d=h[0].length===1?"item":"items")&&me(a,d)},d:function(h){h&&(it(t),it(n),it(r),it(s),it(u)),c=!1,l()}}}function sY(e){var t,n,r,o,i,a,s,u=e[0].length+"",c=e[0].length===1?"item":"items";return{c:function(){(t=G("div")).textContent="[",n=pt(),r=G("span"),o=Ut(u),i=pt(),a=Ut(c),s=Ut(`
99
99
   `),j(t,"class","jse-bracket svelte-1wlxti1"),j(r,"class","jse-tag jse-expanded svelte-1wlxti1")},m:function(l,f){at(l,t,f),at(l,n,f),at(l,r,f),B(r,o),B(r,i),B(r,a),at(l,s,f)},p:function(l,f){1&f[0]&&u!==(u=l[0].length+"")&&me(o,u),1&f[0]&&c!==(c=l[0].length===1?"item":"items")&&me(a,c)},d:function(l){l&&(it(t),it(n),it(r),it(s))}}}function y8(e){var t,n,r;return n=new zs({props:{selected:!0,onContextMenu:e[8].onContextMenu}}),{c:function(){t=G("div"),$t(n.$$.fragment),j(t,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(o,i){at(o,t,i),kt(n,t,null),r=!0},p:function(o,i){var a={};256&i[0]&&(a.onContextMenu=o[8].onContextMenu),n.$set(a)},i:function(o){r||(N(n.$$.fragment,o),r=!0)},o:function(o){q(n.$$.fragment,o),r=!1},d:function(o){o&&it(t),jt(n)}}}function b8(e){var t,n;return t=new Vc({props:{validationError:e[15],onExpand:e[22]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};32768&o[0]&&(i.validationError=r[15]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function uY(e){var t,n,r;return{c:function(){j(t=G("div"),"role","none"),j(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),j(t,"data-type","insert-selection-area-after")},m:function(o,i){at(o,t,i),n||(r=Nt(t,"click",e[30]),n=!0)},p:Bt,d:function(o){o&&it(t),n=!1,r()}}}function cY(e){var t,n,r;return{c:function(){j(t=G("div"),"role","none"),j(t,"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),j(t,"data-type","insert-selection-area-inside")},m:function(o,i){at(o,t,i),n||(r=Nt(t,"click",e[29]),n=!0)},p:Bt,d:function(o){o&&it(t),n=!1,r()}}}function w8(e){for(var t,n,r,o,i,a,s,u=!e[8].readOnly&&(e[10]===La||e[16]&&Mr(e[7])),c=[],l=new Map,f=u&&x8(e),d=Ee(e[14]||hu),h=function(y){return y[49]},v=0;v<d.length;v+=1){var p=r8(e,d,v),m=h(p);l.set(m,c[v]=$8(m,p))}var g=!e[17]&&S8(e);return{c:function(){t=G("div"),f&&f.c(),n=pt();for(var y=0;y<c.length;y+=1)c[y].c();r=pt(),o=G("div"),(i=G("div")).innerHTML='<span class="jse-bracket svelte-1wlxti1">]</span>',a=pt(),g&&g.c(),j(t,"class","jse-items svelte-1wlxti1"),j(i,"data-type","selectable-value"),j(i,"class","jse-footer svelte-1wlxti1"),j(o,"class","jse-footer-outer svelte-1wlxti1"),j(o,"style",e[18])},m:function(y,b){at(y,t,b),f&&f.m(t,null),B(t,n);for(var w=0;w<c.length;w+=1)c[w]&&c[w].m(t,null);at(y,r,b),at(y,o,b),B(o,i),B(o,a),g&&g.m(o,null),s=!0},p:function(y,b){66944&b[0]&&(u=!y[8].readOnly&&(y[10]===La||y[16]&&Mr(y[7]))),u?f?(f.p(y,b),66944&b[0]&&N(f,1)):((f=x8(y)).c(),N(f,1),f.m(t,n)):f&&(Dt(),q(f,1,1,function(){f=null}),zt()),68176383&b[0]&&(d=Ee(y[14]||hu),Dt(),c=Ov(c,b,h,1,y,d,l,t,i1,$8,null,r8),zt()),y[17]?g&&(g.d(1),g=null):g?g.p(y,b):((g=S8(y)).c(),g.m(o,null)),(!s||262144&b[0])&&j(o,"style",y[18])},i:function(y){if(!s){N(f);for(var b=0;b<d.length;b+=1)N(c[b]);s=!0}},o:function(y){q(f);for(var b=0;b<c.length;b+=1)q(c[b]);s=!1},d:function(y){y&&(it(t),it(r),it(o)),f&&f.d();for(var b=0;b<c.length;b+=1)c[b].d();g&&g.d()}}}function x8(e){var t,n,r,o;return n=new zs({props:{selected:e[16]&&Mr(e[7]),onContextMenu:e[31]}}),{c:function(){t=G("div"),$t(n.$$.fragment),j(t,"class","jse-insert-area jse-inside svelte-1wlxti1"),j(t,"data-type","insert-selection-area-inside"),j(t,"style",r=tf(e[1].length+1)),j(t,"title",a1),Pt(t,"jse-hovered",e[10]===La),Pt(t,"jse-selected",e[16]&&Mr(e[7]))},m:function(i,a){at(i,t,a),kt(n,t,null),o=!0},p:function(i,a){var s={};65664&a[0]&&(s.selected=i[16]&&Mr(i[7])),n.$set(s),(!o||2&a[0]&&r!==(r=tf(i[1].length+1)))&&j(t,"style",r),(!o||1024&a[0])&&Pt(t,"jse-hovered",i[10]===La),(!o||65664&a[0])&&Pt(t,"jse-selected",i[16]&&Mr(i[7]))},i:function(i){o||(N(n.$$.fragment,i),o=!0)},o:function(i){q(n.$$.fragment,i),o=!1},d:function(i){i&&it(t),jt(n)}}}function lY(e){var t,n,r,o=e[50].index+"";return{c:function(){t=G("div"),n=G("div"),r=Ut(o),j(n,"class","jse-index svelte-1wlxti1"),j(t,"slot","identifier"),j(t,"class","jse-identifier svelte-1wlxti1")},m:function(i,a){at(i,t,a),B(t,n),B(n,r)},p:function(i,a){18687&a[0]&&o!==(o=i[50].index+"")&&me(r,o)},d:function(i){i&&it(t)}}}function k8(e,t){var n,r,o;return r=new _y({props:{value:t[50].value,path:t[50].path,expandedMap:t[50].expandedMap,enforceStringMap:t[50].enforceStringMap,visibleSectionsMap:t[50].visibleSectionsMap,validationErrorsMap:t[50].validationErrorsMap,searchResultItemsMap:t[50].searchResultItemsMap,selection:t[50].selection,context:t[8],onDragSelectionStart:t[26],$$slots:{identifier:[lY]},$$scope:{ctx:t}}}),{key:e,first:null,c:function(){n=vn(),$t(r.$$.fragment),this.first=n},m:function(i,a){at(i,n,a),kt(r,i,a),o=!0},p:function(i,a){t=i;var s={};18687&a[0]&&(s.value=t[50].value),18687&a[0]&&(s.path=t[50].path),18687&a[0]&&(s.expandedMap=t[50].expandedMap),18687&a[0]&&(s.enforceStringMap=t[50].enforceStringMap),18687&a[0]&&(s.visibleSectionsMap=t[50].visibleSectionsMap),18687&a[0]&&(s.validationErrorsMap=t[50].validationErrorsMap),18687&a[0]&&(s.searchResultItemsMap=t[50].searchResultItemsMap),18687&a[0]&&(s.selection=t[50].selection),256&a[0]&&(s.context=t[8]),18687&a[0]|16&a[1]&&(s.$$scope={dirty:a,ctx:t}),r.$set(s)},i:function(i){o||(N(r.$$.fragment,i),o=!0)},o:function(i){q(r.$$.fragment,i),o=!1},d:function(i){i&&it(n),jt(r,i)}}}function j8(e){var t,n;return t=new SQ({props:{visibleSections:e[14]||hu,sectionIndex:e[49],total:e[0].length,path:e[1],onExpandSection:e[8].onExpandSection,selection:e[7],context:e[8]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};16384&o[0]&&(i.visibleSections=r[14]||hu),16384&o[0]&&(i.sectionIndex=r[49]),1&o[0]&&(i.total=r[0].length),2&o[0]&&(i.path=r[1]),256&o[0]&&(i.onExpandSection=r[8].onExpandSection),128&o[0]&&(i.selection=r[7]),256&o[0]&&(i.context=r[8]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function $8(e,t){for(var n,r,o,i,a=[],s=new Map,u=Ee(t[20](t[1],t[0],t[47],t[2],t[3],t[4],t[5],t[6],t[7],t[11])),c=function(v){return v[50].index},l=0;l<u.length;l+=1){var f=o8(t,u,l),d=c(f);s.set(d,a[l]=k8(d,f))}var h=t[47].end<t[0].length&&j8(t);return{key:e,first:null,c:function(){n=vn();for(var v=0;v<a.length;v+=1)a[v].c();r=pt(),h&&h.c(),o=vn(),this.first=n},m:function(v,p){at(v,n,p);for(var m=0;m<a.length;m+=1)a[m]&&a[m].m(v,p);at(v,r,p),h&&h.m(v,p),at(v,o,p),i=!0},p:function(v,p){t=v,68176383&p[0]&&(u=Ee(t[20](t[1],t[0],t[47],t[2],t[3],t[4],t[5],t[6],t[7],t[11])),Dt(),a=Ov(a,p,c,1,t,u,s,r.parentNode,i1,k8,r,o8),zt()),t[47].end<t[0].length?h?(h.p(t,p),16385&p[0]&&N(h,1)):((h=j8(t)).c(),N(h,1),h.m(o.parentNode,o)):h&&(Dt(),q(h,1,1,function(){h=null}),zt())},i:function(v){if(!i){for(var p=0;p<u.length;p+=1)N(a[p]);N(h),i=!0}},o:function(v){for(var p=0;p<a.length;p+=1)q(a[p]);q(h),i=!1},d:function(v){v&&(it(n),it(r),it(o));for(var p=0;p<a.length;p+=1)a[p].d(v);h&&h.d(v)}}}function S8(e){var t,n,r;return{c:function(){j(t=G("div"),"role","none"),j(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),j(t,"data-type","insert-selection-area-after")},m:function(o,i){at(o,t,i),n||(r=Nt(t,"click",e[30]),n=!0)},p:Bt,d:function(o){o&&it(t),n=!1,r()}}}function C8(e){var t,n,r;return n=new zs({props:{selected:e[16]&&Ro(e[7]),onContextMenu:e[32]}}),{c:function(){t=G("div"),$t(n.$$.fragment),j(t,"class","jse-insert-area jse-after svelte-1wlxti1"),j(t,"data-type","insert-selection-area-after"),j(t,"style",e[18]),j(t,"title",a1),Pt(t,"jse-hovered",e[10]===Fl),Pt(t,"jse-selected",e[16]&&Ro(e[7]))},m:function(o,i){at(o,t,i),kt(n,t,null),r=!0},p:function(o,i){var a={};65664&i[0]&&(a.selected=o[16]&&Ro(o[7])),n.$set(a),(!r||262144&i[0])&&j(t,"style",o[18]),(!r||1024&i[0])&&Pt(t,"jse-hovered",o[10]===Fl),(!r||65664&i[0])&&Pt(t,"jse-selected",o[16]&&Ro(o[7]))},i:function(o){r||(N(n.$$.fragment,o),r=!0)},o:function(o){q(n.$$.fragment,o),r=!1},d:function(o){o&&it(t),jt(n)}}}function fY(e){var t,n,r,o,i,a,s,u,c,l,f,d=!e[8].readOnly&&(e[10]===Fl||e[16]&&Ro(e[7])),h=[QQ,GQ,KQ],v=[];function p(g,y){return 1&y[0]&&(n=null),1&y[0]&&(r=null),n==null&&(n=!!Array.isArray(g[0])),n?0:(r==null&&(r=!!er(g[0])),r?1:2)}o=p(e,[-1,-1]),i=v[o]=h[o](e);var m=d&&C8(e);return{c:function(){t=G("div"),i.c(),a=pt(),m&&m.c(),j(t,"role","treeitem"),j(t,"tabindex","-1"),j(t,"class",s=tr(pa("jse-json-node",{"jse-expanded":e[12]},e[8].onClassName(e[1],e[0])))+" svelte-1wlxti1"),j(t,"data-path",u=yc(e[1])),j(t,"aria-selected",e[16]),Pt(t,"jse-root",e[17]),Pt(t,"jse-selected",e[16]&&An(e[7])),Pt(t,"jse-selected-key",e[16]&&Cr(e[7])),Pt(t,"jse-selected-value",e[16]&&rn(e[7])),Pt(t,"jse-readonly",e[8].readOnly),Pt(t,"jse-hovered",e[10]===og)},m:function(g,y){at(g,t,y),v[o].m(t,null),B(t,a),m&&m.m(t,null),c=!0,l||(f=[Nt(t,"mousedown",e[24]),Nt(t,"mousemove",e[25]),Nt(t,"mouseover",e[27]),Nt(t,"mouseout",e[28]),Nt(t,"focus",void 0),Nt(t,"blur",void 0)],l=!0)},p:function(g,y){var b=o;(o=p(g,y))===b?v[o].p(g,y):(Dt(),q(v[b],1,1,function(){v[b]=null}),zt(),(i=v[o])?i.p(g,y):(i=v[o]=h[o](g)).c(),N(i,1),i.m(t,a)),66944&y[0]&&(d=!g[8].readOnly&&(g[10]===Fl||g[16]&&Ro(g[7]))),d?m?(m.p(g,y),66944&y[0]&&N(m,1)):((m=C8(g)).c(),N(m,1),m.m(t,null)):m&&(Dt(),q(m,1,1,function(){m=null}),zt()),(!c||4355&y[0]&&s!==(s=tr(pa("jse-json-node",{"jse-expanded":g[12]},g[8].onClassName(g[1],g[0])))+" svelte-1wlxti1"))&&j(t,"class",s),(!c||2&y[0]&&u!==(u=yc(g[1])))&&j(t,"data-path",u),(!c||65536&y[0])&&j(t,"aria-selected",g[16]),(!c||135427&y[0])&&Pt(t,"jse-root",g[17]),(!c||70019&y[0])&&Pt(t,"jse-selected",g[16]&&An(g[7])),(!c||70019&y[0])&&Pt(t,"jse-selected-key",g[16]&&Cr(g[7])),(!c||70019&y[0])&&Pt(t,"jse-selected-value",g[16]&&rn(g[7])),(!c||4355&y[0])&&Pt(t,"jse-readonly",g[8].readOnly),(!c||5379&y[0])&&Pt(t,"jse-hovered",g[10]===og)},i:function(g){c||(N(i),N(m),c=!0)},o:function(g){q(i),q(m),c=!1},d:function(g){g&&it(t),v[o].d(),m&&m.d(),l=!1,Tn(f)}}}function tf(e){return"margin-left: calc(".concat(e," * var(--jse-indent-size))")}function dY(e,t,n){var r,o,i,a,s,u,c,l,f=t.$$slots,d=f===void 0?{}:f,h=t.$$scope,v=t.value,p=t.path,m=t.expandedMap,g=t.enforceStringMap,y=t.visibleSectionsMap,b=t.validationErrorsMap,w=t.searchResultItemsMap,x=t.selection,k=t.context,E=t.onDragSelectionStart,R=Hr("jsoneditor:JSONNode"),z=void 0,A=void 0,_=void 0,U=Sf(function($){return $},_o);function J($){k.onDrag($)}function D($){Dr.selecting&&(Dr.selecting=!1,$.stopPropagation()),k.onDragEnd(),document.removeEventListener("mousemove",J,!0),document.removeEventListener("mouseup",D)}function F(){var $;return(($=k.findElement([]))===null||$===void 0||($=$.getBoundingClientRect())===null||$===void 0?void 0:$.top)||0}function V($,S){var O=F()-$.initialContentTop;return S.clientY-$.initialClientY-O}function C($){if(_){var S=k.getJson(),O=k.getDocumentState(),I=V(_,$),M=im({json:S,documentState:O,deltaY:I,items:_.items}).offset;M!==_.offset&&(R("drag selection",M,I),n(11,_=vt(vt({},_),{},{offset:M,didMoveItems:!0})))}}function P($){if(_){var S=k.getJson(),O=im({json:S,documentState:k.getDocumentState(),deltaY:V(_,$),items:_.items}),I=O.operations,M=O.updatedSelection;if(I)k.onPatch(I,function(ut,lt){return{state:vt(vt({},lt),{},{selection:M||x})}});else if($.target===_.initialTarget&&!_.didMoveItems){var L=Kp($.target),T=AA($.target);T&&k.onSelect(b4(0,L,T))}n(11,_=void 0),Dr.dragging=!1,document.removeEventListener("mousemove",C,!0),document.removeEventListener("mouseup",P)}}return e.$$set=function($){"value"in $&&n(0,v=$.value),"path"in $&&n(1,p=$.path),"expandedMap"in $&&n(2,m=$.expandedMap),"enforceStringMap"in $&&n(3,g=$.enforceStringMap),"visibleSectionsMap"in $&&n(4,y=$.visibleSectionsMap),"validationErrorsMap"in $&&n(5,b=$.validationErrorsMap),"searchResultItemsMap"in $&&n(6,w=$.searchResultItemsMap),"selection"in $&&n(7,x=$.selection),"context"in $&&n(8,k=$.context),"onDragSelectionStart"in $&&n(33,E=$.onDragSelectionStart),"$$scope"in $&&n(35,h=$.$$scope)},e.$$.update=function(){2&e.$$.dirty[0]&&n(9,i=Zt(p)),516&e.$$.dirty[0]&&n(12,a=!!m&&m[i]===!0),777&e.$$.dirty[0]&&n(13,s=qa(v,g,i,k.parser)),528&e.$$.dirty[0]&&n(14,u=y?y[i]:void 0),544&e.$$.dirty[0]&&n(15,c=b?b[i]:void 0),386&e.$$.dirty[0]&&n(16,l=Ql(k.getJson(),x,p)),2&e.$$.dirty[0]&&n(17,r=p.length===0),2&e.$$.dirty[0]&&n(18,o=tf(p.length))},[v,p,m,g,y,b,w,x,k,i,z,_,a,s,u,c,l,r,o,function($,S,O,I,M,L,T,ut,lt){var xt=Object.keys(S).map(function(Ct){var Mt=U($.concat(Ct)),dt=S3(i,Ct);return{key:Ct,value:S[Ct],path:Mt,expandedMap:Ui(O,dt),enforceStringMap:Ui(I,dt),visibleSectionsMap:Ui(M,dt),validationErrorsMap:Ui(L,dt),keySearchResultItemsMap:vJ(T,dt),valueSearchResultItemsMap:Ui(T,dt),selection:w4(k.getJson(),ut,Mt)}});return lt&&lt.offset!==0&&(xt=Y$(xt,lt.selectionStartIndex,lt.selectionItemsCount,lt.offset)),xt},function($,S,O,I,M,L,T,ut,lt,xt){for(var Ct=O.start,Mt=Math.min(O.end,S.length),dt=[],It=Ct;It<Mt;It++){var bt=U($.concat(String(It))),Tt=S3(i,It);dt.push({index:It,value:S[It],path:bt,expandedMap:Ui(I,Tt),enforceStringMap:Ui(M,Tt),visibleSectionsMap:Ui(L,Tt),validationErrorsMap:Ui(T,Tt),searchResultItemsMap:Ui(ut,Tt),selection:w4(k.getJson(),lt,bt)})}if(xt&&xt.offset!==0){var ft=dt.map(function(H){return H.index});dt=Y$(dt,xt.selectionStartIndex,xt.selectionItemsCount,xt.offset);for(var ae=0;ae<dt.length;ae++)dt[ae].index=ft[ae]}return dt},function($){$.stopPropagation();var S=$.ctrlKey;k.onExpand(p,!a,S)},function($){$.stopPropagation(),k.onExpand(p,!0)},function($,S){var O=zf(p,Object.keys(v),$,S);return k.onPatch(O),Me(Di(O[0].path))},function($){if(!(function(T){return T.nodeName==="DIV"&&T.contentEditable==="true"}($.target)||$.which===1&&dy($.target,"BUTTON"))){$.stopPropagation(),$.preventDefault(),k.focus(),document.addEventListener("mousemove",J,!0),document.addEventListener("mouseup",D);var S=Kp($.target),O=k.getJson(),I=k.getDocumentState();if(!x||S===Pn.after||S===Pn.inside||x.type!==S&&x.type!==Pn.multi||!Ql(O,x,p))if(Dr.selecting=!0,Dr.selectionAnchor=p,Dr.selectionAnchorType=S,Dr.selectionFocus=p,$.shiftKey){var M=k.getDocumentState().selection;M&&k.onSelect(io(au(M),p))}else if(S===Pn.multi)if(r&&$.target.hasAttribute("data-path")){var L=Me(LA(v,I));k.onSelect(Og(L))}else k.onSelect(io(p,p));else k.onSelect(b4(0,S,p));else $.button===0&&E($)}},function($){if(Dr.selecting){$.preventDefault(),$.stopPropagation(),Dr.selectionFocus==null&&window.getSelection&&window.getSelection().empty();var S=Kp($.target);Ye(p,Dr.selectionFocus)&&S===Dr.selectionAnchorType||(Dr.selectionFocus=p,Dr.selectionAnchorType=S,k.onSelect(io(Dr.selectionAnchor||Dr.selectionFocus,Dr.selectionFocus)))}},function($){if(!k.readOnly&&x){var S=Qe(he(x));if(Ye(p,S)){var O=function(ut,lt){var xt=[];function Ct(H){var Q=p.concat(H),tt=k.findElement(Q);tt!=null&&xt.push({path:Q,height:tt.clientHeight})}if(Array.isArray(v)){var Mt=Pa(k.getJson(),ut),dt=vs(k.getJson(),ut),It=Me(Mt),bt=Me(dt),Tt=lt.find(function(H){return It>=H.start&&bt<=H.end});if(!Tt)return null;var ft=Tt.start,ae=Tt.end;bA(ft,Math.min(v.length,ae),function(H){return Ct(String(H))})}else Object.keys(v).forEach(Ct);return xt}(x,u||hu);if(R("dragSelectionStart",{selection:x,items:O}),O){var I=k.getJson(),M=Pa(I,x),L=O.findIndex(function(ut){return Ye(ut.path,M)}),T=im({json:I,documentState:k.getDocumentState(),deltaY:0,items:O}).offset;n(11,_={initialTarget:$.target,initialClientY:$.clientY,initialContentTop:F(),selectionStartIndex:L,selectionItemsCount:hs(I,x).length,items:O,offset:T,didMoveItems:!1}),Dr.dragging=!0,document.addEventListener("mousemove",C,!0),document.addEventListener("mouseup",P)}else R("Cannot drag the current selection (probably spread over multiple sections)")}else E($)}},function($){Dr.selecting||Dr.dragging||($.stopPropagation(),Zs($.target,"data-type","selectable-value")?n(10,z=og):Zs($.target,"data-type","insert-selection-area-inside")?n(10,z=La):Zs($.target,"data-type","insert-selection-area-after")&&n(10,z=Fl),clearTimeout(A))},function($){$.stopPropagation(),A=setTimeout(function(){return n(10,z=void 0)})},function($){$.shiftKey||($.stopPropagation(),$.preventDefault(),k.onSelect(Fa(p)))},function($){$.shiftKey||($.stopPropagation(),$.preventDefault(),k.onSelect(Ia(p)))},function($){k.onSelect(Fa(p)),k.onContextMenu($)},function($){k.onSelect(Ia(p)),k.onContextMenu($)},E,d,h]}var _y=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,dY,fY,De,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:33},HQ,[-1,-1]),o}return Z(n)}(),hY=_y,vY={prefix:"fas",iconName:"jsoneditor-expand",icon:[512,512,[],"","M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"]},pY={prefix:"fas",iconName:"jsoneditor-collapse",icon:[512,512,[],"","m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"]},Dg={prefix:"fas",iconName:"jsoneditor-format",icon:[512,512,[],"","M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"]},mY={prefix:"fas",iconName:"jsoneditor-compact",icon:[512,512,[],"","M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"]};function gY(e){var t,n;return t=new op({props:{items:e[0]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&ke(o,1)[0]&&(i.items=r[0]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function yY(e,t,n){var r,o,i,a,s,u,c,l=t.json,f=t.selection,d=t.readOnly,h=t.showSearch,v=h!==void 0&&h,p=t.historyState,m=t.onExpandAll,g=t.onCollapseAll,y=t.onUndo,b=t.onRedo,w=t.onSort,x=t.onTransform,k=t.onContextMenu,E=t.onCopy,R=t.onRenderMenu;function z(){n(1,v=!v)}return e.$$set=function(A){"json"in A&&n(2,l=A.json),"selection"in A&&n(3,f=A.selection),"readOnly"in A&&n(4,d=A.readOnly),"showSearch"in A&&n(1,v=A.showSearch),"historyState"in A&&n(5,p=A.historyState),"onExpandAll"in A&&n(6,m=A.onExpandAll),"onCollapseAll"in A&&n(7,g=A.onCollapseAll),"onUndo"in A&&n(8,y=A.onUndo),"onRedo"in A&&n(9,b=A.onRedo),"onSort"in A&&n(10,w=A.onSort),"onTransform"in A&&n(11,x=A.onTransform),"onContextMenu"in A&&n(12,k=A.onContextMenu),"onCopy"in A&&n(13,E=A.onCopy),"onRenderMenu"in A&&n(14,R=A.onRenderMenu)},e.$$.update=function(){4&e.$$.dirty&&n(20,r=l!==void 0),1048584&e.$$.dirty&&n(19,o=r&&(An(f)||Cr(f)||rn(f))),68&e.$$.dirty&&n(15,a={type:"button",icon:vY,title:"Expand all",className:"jse-expand-all",onClick:m,disabled:!sr(l)}),132&e.$$.dirty&&n(16,s={type:"button",icon:pY,title:"Collapse all",className:"jse-collapse-all",onClick:g,disabled:!sr(l)}),4&e.$$.dirty&&n(17,u={type:"button",icon:by,title:"Search (Ctrl+F)",className:"jse-search",onClick:z,disabled:l===void 0}),769844&e.$$.dirty&&n(18,c=d?[a,s,{type:"separator"},{type:"button",icon:ps,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:E,disabled:!o},{type:"separator"},u,{type:"space"}]:[a,s,{type:"separator"},{type:"button",icon:Xv,title:"Sort",className:"jse-sort",onClick:w,disabled:d||l===void 0},{type:"button",icon:Qv,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:x,disabled:d||l===void 0},u,{type:"button",icon:XA,title:s1,className:"jse-contextmenu",onClick:k},{type:"separator"},{type:"button",icon:yy,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:y,disabled:!p.canUndo},{type:"button",icon:gy,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:b,disabled:!p.canRedo},{type:"space"}]),278528&e.$$.dirty&&n(0,i=R(c)||c)},[i,v,l,f,d,p,m,g,y,b,w,x,k,E,R,a,s,u,c,o,r]}var bY=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,yY,gY,De,{json:2,selection:3,readOnly:4,showSearch:1,historyState:5,onExpandAll:6,onCollapseAll:7,onUndo:8,onRedo:9,onSort:10,onTransform:11,onContextMenu:12,onCopy:13,onRenderMenu:14}),o}return Z(n)}();function wY(e){Ae(e,"svelte-67oee7",".jse-welcome.svelte-67oee7.svelte-67oee7{flex:1;overflow:auto;font-family:var(--jse-font-family);font-size:var(--jse-font-size);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-welcome.svelte-67oee7.svelte-67oee7:last-child{border-bottom:var(--jse-main-border)}.jse-welcome.svelte-67oee7 .jse-space.jse-before.svelte-67oee7{flex:1}.jse-welcome.svelte-67oee7 .jse-space.jse-after.svelte-67oee7{flex:2}.jse-welcome.svelte-67oee7 .jse-contents.svelte-67oee7{display:flex;flex-direction:column;max-width:300px;margin:2em var(--jse-padding) 0;gap:var(--jse-padding)}.jse-welcome.svelte-67oee7 .jse-contents .jse-welcome-info.svelte-67oee7{color:var(--jse-panel-color-readonly)}.jse-welcome.svelte-67oee7 .jse-contents button.svelte-67oee7{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-welcome.svelte-67oee7 .jse-contents button.svelte-67oee7:hover{background:var(--jse-button-primary-background-highlight)}.jse-welcome.svelte-67oee7 .jse-contents button.svelte-67oee7:disabled{background:var(--jse-button-primary-background-disabled)}")}function _8(e){var t,n,r,o,i,a,s;return{c:function(){(t=G("div")).innerHTML="You can paste clipboard data using <b>Ctrl+V</b>, or use the following options:",n=pt(),(r=G("button")).textContent="Create object",o=pt(),(i=G("button")).textContent="Create array",j(t,"class","jse-welcome-info svelte-67oee7"),j(r,"title","Create an empty JSON object (press '{')"),j(r,"class","svelte-67oee7"),j(i,"title","Create an empty JSON array (press '[')"),j(i,"class","svelte-67oee7")},m:function(u,c){at(u,t,c),at(u,n,c),at(u,r,c),at(u,o,c),at(u,i,c),a||(s=[Nt(r,"click",fa(e[4])),Nt(i,"click",fa(e[5]))],a=!0)},p:Bt,d:function(u){u&&(it(t),it(n),it(r),it(o),it(i)),a=!1,Tn(s)}}}function xY(e){var t,n,r,o,i,a,s,u,c,l,f=!e[0]&&_8(e);return{c:function(){t=G("div"),n=G("div"),r=pt(),o=G("div"),(i=G("div")).textContent="Empty document",a=pt(),f&&f.c(),s=pt(),u=G("div"),j(n,"class","jse-space jse-before svelte-67oee7"),j(i,"class","jse-welcome-title"),j(o,"class","jse-contents svelte-67oee7"),j(u,"class","jse-space jse-after svelte-67oee7"),j(t,"class","jse-welcome svelte-67oee7"),j(t,"role","none")},m:function(d,h){at(d,t,h),B(t,n),B(t,r),B(t,o),B(o,i),B(o,a),f&&f.m(o,null),B(t,s),B(t,u),c||(l=Nt(t,"click",e[6]),c=!0)},p:function(d,h){var v=ke(h,1)[0];d[0]?f&&(f.d(1),f=null):f?f.p(d,v):((f=_8(d)).c(),f.m(o,null))},i:Bt,o:Bt,d:function(d){d&&it(t),f&&f.d(),c=!1,l()}}}function kY(e,t,n){var r=t.readOnly,o=t.onCreateArray,i=t.onCreateObject,a=t.onClick;return e.$$set=function(s){"readOnly"in s&&n(0,r=s.readOnly),"onCreateArray"in s&&n(1,o=s.onCreateArray),"onCreateObject"in s&&n(2,i=s.onCreateObject),"onClick"in s&&n(3,a=s.onClick)},[r,o,i,a,function(){return i()},function(){return o()},function(){return a()}]}var jY=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,kY,xY,De,{readOnly:0,onCreateArray:1,onCreateObject:2,onClick:3},wY),o}return Z(n)}(),g7={exports:{}},O8=function(e,t){var n,r,o=1,i=0,a=0,s=String.alphabet;function u(c,l,f){if(f){for(n=l;(f=u(c,n))<76&&f>65;)++n;return+c.slice(l-1,n)}return(f=s&&s.indexOf(c.charAt(l)))>-1?f+76:(f=c.charCodeAt(l)||0)<45||f>127?f:f<46?65:f<48?f-1:f<58?f+18:f<65?f-11:f<91?f+11:f<97?f-37:f<123?f+5:f-63}if((e+="")!=(t+="")){for(;o;)if(r=u(e,i++),o=u(t,a++),r<76&&o<76&&r>66&&o>66&&(r=u(e,i,i),o=u(t,a,i=n),a=n),r!=o)return r<o?-1:1}return 0};try{g7.exports=O8}catch{String.naturalCompare=O8}var $Y=p1(g7.exports);function zg(e,t){var n=typeof e=="string"?e.toLowerCase():e,r=typeof t=="string"?t.toLowerCase():t;return $Y(n,r)}function y7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(In(ie(e,t))){if(n===void 0)throw new Error("Cannot sort: no property selected by which to sort the array");return function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,u=function(l,f){return function(d,h){var v=ie(d,l),p=ie(h,l);return v===void 0?f:p===void 0?-f:typeof v!="string"&&typeof p!="string"?v>p?f:v<p?-f:0:f*zg(v,p)}}(a,s),c=ie(o,i);return[{op:"replace",path:Zt(i),value:c.slice(0).sort(u)}]}(e,t,n,r)}if(er(e))return function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=ie(o,i),u=Object.keys(s),c=u.slice();c.sort(function(v,p){return a*zg(v,p)});for(var l=[],f=0;f<c.length;f++){var d=c[f],h=Zt(i.concat(d));l.push({op:"move",from:h,path:h})}return l}(e,t,r);throw new Error("Cannot sort: no array or object")}function SY(e){Ae(e,"svelte-6hb2gf",".jse-navigation-bar-dropdown.svelte-6hb2gf.svelte-6hb2gf{position:absolute;top:100%;left:0;z-index:3;background:var(--jse-navigation-bar-background);color:var(--jse-navigation-bar-dropdown-color);box-shadow:var(--jse-controls-box-shadow);display:flex;flex-direction:column;max-height:300px;overflow:auto;min-width:80px}.jse-navigation-bar-dropdown.svelte-6hb2gf button.jse-navigation-bar-dropdown-item.svelte-6hb2gf{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);border:none;background:transparent;color:inherit;cursor:pointer;outline:none;text-align:left;white-space:nowrap;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding)) 36px}.jse-navigation-bar-dropdown.svelte-6hb2gf button.jse-navigation-bar-dropdown-item.svelte-6hb2gf:focus,.jse-navigation-bar-dropdown.svelte-6hb2gf button.jse-navigation-bar-dropdown-item.svelte-6hb2gf:hover{background:var(--jse-navigation-bar-background-highlight)}.jse-navigation-bar-dropdown.svelte-6hb2gf button.jse-navigation-bar-dropdown-item.jse-selected.svelte-6hb2gf{background:var(--jse-navigation-bar-dropdown-color);color:var(--jse-navigation-bar-background)}")}function M8(e,t,n){var r=e.slice();return r[4]=t[n],r}function E8(e,t){var n,r,o,i,a,s=Ba(t[4].toString(),P8)+"";function u(){return t[3](t[4])}return{key:e,first:null,c:function(){n=G("button"),r=Ut(s),j(n,"type","button"),j(n,"class","jse-navigation-bar-dropdown-item svelte-6hb2gf"),j(n,"title",o=t[4].toString()),Pt(n,"jse-selected",t[4]===t[1]),this.first=n},m:function(c,l){at(c,n,l),B(n,r),i||(a=Nt(n,"click",fa(u)),i=!0)},p:function(c,l){t=c,1&l&&s!==(s=Ba(t[4].toString(),P8)+"")&&me(r,s),1&l&&o!==(o=t[4].toString())&&j(n,"title",o),3&l&&Pt(n,"jse-selected",t[4]===t[1])},d:function(c){c&&it(n),i=!1,a()}}}function A8(e){var t,n;return{c:function(){t=G("button"),n=Ut("..."),j(t,"type","button"),j(t,"class","jse-navigation-bar-dropdown-item svelte-6hb2gf"),j(t,"title","Limited to "+pl+" items")},m:function(r,o){at(r,t,o),B(t,n)},p:Bt,d:function(r){r&&it(t)}}}function CY(e){for(var t,n,r=[],o=new Map,i=Ee(Dh(e[0],pl)),a=function(f){return f[4]},s=0;s<i.length;s+=1){var u=M8(e,i,s),c=a(u);o.set(c,r[s]=E8(c,u))}var l=e[0].length>pl&&A8();return{c:function(){t=G("div");for(var f=0;f<r.length;f+=1)r[f].c();n=pt(),l&&l.c(),j(t,"class","jse-navigation-bar-dropdown svelte-6hb2gf")},m:function(f,d){at(f,t,d);for(var h=0;h<r.length;h+=1)r[h]&&r[h].m(t,null);B(t,n),l&&l.m(t,null)},p:function(f,d){var h=ke(d,1)[0];7&h&&(i=Ee(Dh(f[0],pl)),r=Ov(r,h,a,1,f,i,o,t,RR,E8,n,M8)),f[0].length>pl?l?l.p(f,h):((l=A8()).c(),l.m(t,null)):l&&(l.d(1),l=null)},i:Bt,o:Bt,d:function(f){f&&it(t);for(var d=0;d<r.length;d+=1)r[d].d();l&&l.d()}}}var pl=100,P8=30;function _Y(e,t,n){var r=t.items,o=t.selectedItem,i=t.onSelect;return e.$$set=function(a){"items"in a&&n(0,r=a.items),"selectedItem"in a&&n(1,o=a.selectedItem),"onSelect"in a&&n(2,i=a.onSelect)},[r,o,i,function(a){return i(a)}]}var OY=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,_Y,CY,De,{items:0,selectedItem:1,onSelect:2},SY),o}return Z(n)}();function MY(e){Ae(e,"svelte-1r1k9th",".jse-navigation-bar-item.svelte-1r1k9th.svelte-1r1k9th{position:relative;display:flex}.jse-navigation-bar-item.svelte-1r1k9th button.jse-navigation-bar-button.svelte-1r1k9th{font-family:inherit;font-size:inherit;padding:calc(0.5 * var(--jse-padding)) 2px;border:none;background:transparent;color:inherit;cursor:pointer;outline:none;min-width:2em;white-space:nowrap}.jse-navigation-bar-item.svelte-1r1k9th button.jse-navigation-bar-button.svelte-1r1k9th:focus,.jse-navigation-bar-item.svelte-1r1k9th button.jse-navigation-bar-button.svelte-1r1k9th:hover{background:var(--jse-panel-button-background-highlight);color:var(--jse-panel-button-color-highlight)}.jse-navigation-bar-item.svelte-1r1k9th button.jse-navigation-bar-button.jse-navigation-bar-arrow.svelte-1r1k9th{padding:2px var(--jse-padding) 0}.jse-navigation-bar-item.svelte-1r1k9th button.jse-navigation-bar-button.jse-navigation-bar-arrow.jse-open.svelte-1r1k9th{background:var(--jse-navigation-bar-background);color:var(--jse-navigation-bar-dropdown-color)}.jse-navigation-bar-item.svelte-1r1k9th.svelte-1r1k9th:last-child{padding-right:var(--jse-padding)}")}function T8(e){var t,n,r,o;return{c:function(){t=G("button"),n=Ut(e[2]),j(t,"type","button"),j(t,"class","jse-navigation-bar-button svelte-1r1k9th")},m:function(i,a){at(i,t,a),B(t,n),r||(o=Nt(t,"click",e[9]),r=!0)},p:function(i,a){4&a&&me(n,i[2])},d:function(i){i&&it(t),r=!1,o()}}}function EY(e){var t,n,r,o,i,a,s;r=new on({props:{data:YA}});var u=e[2]!==void 0&&T8(e);return{c:function(){t=G("div"),n=G("button"),$t(r.$$.fragment),o=pt(),u&&u.c(),j(n,"type","button"),j(n,"class","jse-navigation-bar-button jse-navigation-bar-arrow svelte-1r1k9th"),Pt(n,"jse-open",e[1]),j(t,"class","jse-navigation-bar-item svelte-1r1k9th")},m:function(c,l){at(c,t,l),B(t,n),kt(r,n,null),B(t,o),u&&u.m(t,null),e[10](t),i=!0,a||(s=Nt(n,"click",e[4]),a=!0)},p:function(c,l){var f=ke(l,1)[0];(!i||2&f)&&Pt(n,"jse-open",c[1]),c[2]!==void 0?u?u.p(c,f):((u=T8(c)).c(),u.m(t,null)):u&&(u.d(1),u=null)},i:function(c){i||(N(r.$$.fragment,c),i=!0)},o:function(c){q(r.$$.fragment,c),i=!1},d:function(c){c&&it(t),jt(r),u&&u.d(),e[10](null),a=!1,s()}}}function AY(e,t,n){var r,o,i,a,s=Vr("absolute-popup"),u=s.openAbsolutePopup,c=s.closeAbsolutePopup,l=t.path,f=t.index,d=t.onSelect,h=t.getItems,v=!1;function p(m){c(a),d(r.concat(m))}return e.$$set=function(m){"path"in m&&n(5,l=m.path),"index"in m&&n(6,f=m.index),"onSelect"in m&&n(7,d=m.onSelect),"getItems"in m&&n(8,h=m.getItems)},e.$$.update=function(){96&e.$$.dirty&&(r=l.slice(0,f)),96&e.$$.dirty&&n(2,o=l[f])},[i,v,o,p,function(){if(i){n(1,v=!0);var m={items:h(r),selectedItem:o,onSelect:p};a=u(OY,m,{anchor:i,closeOnOuterClick:!0,onClose:function(){n(1,v=!1)}})}},l,f,d,h,function(){return p(o)},function(m){Ge[m?"unshift":"push"](function(){n(0,i=m)})}]}var b7=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,AY,EY,De,{path:5,index:6,onSelect:7,getItems:8},MY),o}return Z(n)}();function Oy(e){var t,n;if(navigator.clipboard)return navigator.clipboard.writeText(e);if((t=(n=document).queryCommandSupported)!==null&&t!==void 0&&t.call(n,"copy")){var r=document.createElement("textarea");r.value=e,r.style.position="fixed",r.style.opacity="0",document.body.appendChild(r),r.select();try{document.execCommand("copy")}catch(o){console.error(o)}finally{document.body.removeChild(r)}}else console.error("Copy failed.")}function PY(e){Ae(e,"svelte-g0evpe",".jse-navigation-bar-path-editor.svelte-g0evpe.svelte-g0evpe{flex:1;display:flex;border:var(--jse-edit-outline);background:var(--jse-background-color)}.jse-navigation-bar-path-editor.svelte-g0evpe input.jse-navigation-bar-text.svelte-g0evpe{flex:1;font-family:inherit;font-size:inherit;padding:0 5px 1px;background:var(--jse-background-color);color:var(--jse-text-color);border:none;outline:none}.jse-navigation-bar-path-editor.svelte-g0evpe button.svelte-g0evpe{border:none;background:var(--jse-background-color);cursor:pointer;font-family:inherit;font-size:80%;color:inherit}.jse-navigation-bar-path-editor.svelte-g0evpe button.jse-navigation-bar-copy.copied.svelte-g0evpe{color:var(--jse-message-success-background)}.jse-navigation-bar-path-editor.svelte-g0evpe button.jse-navigation-bar-validation-error.svelte-g0evpe{color:var(--jse-error-color)}.jse-navigation-bar-path-editor.error.svelte-g0evpe.svelte-g0evpe{border-color:var(--jse-error-color)}.jse-navigation-bar-path-editor.error.svelte-g0evpe input.jse-navigation-bar-text.svelte-g0evpe{color:var(--jse-error-color)}.jse-navigation-bar-path-editor.svelte-g0evpe .jse-copied-text.svelte-g0evpe{background:var(--jse-message-success-background);color:var(--jse-message-success-color);position:relative;margin:2px;padding:0 5px;border-radius:3px}")}function R8(e){var t,n,r,o,i,a;return n=new on({props:{data:_u}}),{c:function(){t=G("button"),$t(n.$$.fragment),j(t,"type","button"),j(t,"class","jse-navigation-bar-validation-error svelte-g0evpe")},m:function(s,u){at(s,t,u),kt(n,t,null),o=!0,i||(a=Fr(r=my.call(null,t,vt({text:e[3]},e[4]))),i=!0)},p:function(s,u){r&&Br(r.update)&&8&u&&r.update.call(null,vt({text:s[3]},s[4]))},i:function(s){o||(N(n.$$.fragment,s),o=!0)},o:function(s){q(n.$$.fragment,s),o=!1},d:function(s){s&&it(t),jt(n),i=!1,a()}}}function N8(e){var t;return{c:function(){(t=G("div")).textContent="Copied!",j(t,"class","jse-copied-text svelte-g0evpe")},m:function(n,r){at(n,t,r)},d:function(n){n&&it(t)}}}function TY(e){var t,n,r,o,i,a,s,u,c,l,f=e[3]&&R8(e),d=e[2]&&N8();return s=new on({props:{data:ps}}),{c:function(){t=G("div"),n=G("input"),r=pt(),f&&f.c(),o=pt(),d&&d.c(),i=pt(),a=G("button"),$t(s.$$.fragment),j(n,"type","text"),j(n,"class","jse-navigation-bar-text svelte-g0evpe"),n.value=e[0],j(a,"type","button"),j(a,"class","jse-navigation-bar-copy svelte-g0evpe"),j(a,"title","Copy selected path to the clipboard"),Pt(a,"copied",e[2]),j(t,"class","jse-navigation-bar-path-editor svelte-g0evpe"),Pt(t,"error",e[3])},m:function(h,v){at(h,t,v),B(t,n),e[15](n),B(t,r),f&&f.m(t,null),B(t,o),d&&d.m(t,null),B(t,i),B(t,a),kt(s,a,null),u=!0,c||(l=[Nt(n,"keydown",fa(e[6])),Nt(n,"input",e[5]),Nt(a,"click",e[7])],c=!0)},p:function(h,v){var p=ke(v,1)[0];(!u||1&p&&n.value!==h[0])&&(n.value=h[0]),h[3]?f?(f.p(h,p),8&p&&N(f,1)):((f=R8(h)).c(),N(f,1),f.m(t,o)):f&&(Dt(),q(f,1,1,function(){f=null}),zt()),h[2]?d||((d=N8()).c(),d.m(t,i)):d&&(d.d(1),d=null),(!u||4&p)&&Pt(a,"copied",h[2]),(!u||8&p)&&Pt(t,"error",h[3])},i:function(h){u||(N(f),N(s.$$.fragment,h),u=!0)},o:function(h){q(f),q(s.$$.fragment,h),u=!1},d:function(h){h&&it(t),e[15](null),f&&f.d(),d&&d.d(),jt(s),c=!1,Tn(l)}}}function RY(e,t,n){var r,o,i,a=Vr("absolute-popup"),s=t.path,u=t.pathParser,c=t.onChange,l=t.onClose,f=t.onError,d=t.pathExists,h=!1,v=void 0,p=!1;function m(){o.focus()}function g(y){try{var b=u.parse(y);return function(w){if(!d(w))throw new Error("Path does not exist in current document")}(b),{path:b,error:void 0}}catch(w){return{path:void 0,error:w}}}return ai(function(){m()}),Do(function(){clearTimeout(v)}),e.$$set=function(y){"path"in y&&n(8,s=y.path),"pathParser"in y&&n(9,u=y.pathParser),"onChange"in y&&n(10,c=y.onChange),"onClose"in y&&n(11,l=y.onClose),"onError"in y&&n(12,f=y.onError),"pathExists"in y&&n(13,d=y.pathExists)},e.$$.update=function(){768&e.$$.dirty&&n(0,i=u.stringify(s)),16385&e.$$.dirty&&n(3,r=h?g(i).error:void 0)},[i,o,p,r,a,function(y){n(0,i=y.currentTarget.value)},function(y){var b=Ds(y);if(b==="Escape"&&l(),b==="Enter"){n(14,h=!0);var w=g(i);w.path!==void 0?c(w.path):f(w.error)}},function(){Oy(i),n(2,p=!0),v=setTimeout(function(){return n(2,p=!1)},1e3),m()},s,u,c,l,f,d,h,function(y){Ge[y?"unshift":"push"](function(){n(1,o=y)})}]}var NY=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,RY,TY,Nr,{path:8,pathParser:9,onChange:10,onClose:11,onError:12,pathExists:13},PY),o}return Z(n)}();function IY(e){Ae(e,"svelte-15r3ahw",".jse-navigation-bar.svelte-15r3ahw.svelte-15r3ahw{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);background:var(--jse-panel-background);color:var(--jse-panel-button-color);padding:0;margin:0;display:flex;overflow:auto;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit.svelte-15r3ahw{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);color:var(--jse-panel-color-readonly);background:transparent;border:none;display:flex;cursor:pointer;outline:none;align-items:center}.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit.flex.svelte-15r3ahw{flex:1}.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit.svelte-15r3ahw:focus,.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit.svelte-15r3ahw:hover,.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit.editing.svelte-15r3ahw{background:var(--jse-panel-button-background-highlight);color:var(--jse-panel-button-color-highlight);transition:color 0.2s ease-in, background 0.2s ease-in}.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit .jse-navigation-bar-space.svelte-15r3ahw{flex:1;text-align:left}")}function I8(e,t,n){var r=e.slice();return r[18]=t[n],r[20]=n,r}function DY(e){var t,n;return t=new NY({props:{path:e[3],onClose:e[11],onChange:e[12],onError:e[1],pathExists:e[8],pathParser:e[2]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};8&o&&(i.path=r[3]),2&o&&(i.onError=r[1]),4&o&&(i.pathParser=r[2]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function zY(e){for(var t,n,r,o=[],i=new Map,a=Ee(e[3]),s=function(d){return d[20]},u=0;u<a.length;u+=1){var c=I8(e,a,u),l=s(c);i.set(l,o[u]=D8(l,c))}var f=e[6]&&z8(e);return{c:function(){for(var d=0;d<o.length;d+=1)o[d].c();t=pt(),f&&f.c(),n=vn()},m:function(d,h){for(var v=0;v<o.length;v+=1)o[v]&&o[v].m(d,h);at(d,t,h),f&&f.m(d,h),at(d,n,h),r=!0},p:function(d,h){648&h&&(a=Ee(d[3]),Dt(),o=Ov(o,h,s,1,d,a,i,t.parentNode,i1,D8,t,I8),zt()),d[6]?f?(f.p(d,h),64&h&&N(f,1)):((f=z8(d)).c(),N(f,1),f.m(n.parentNode,n)):f&&(Dt(),q(f,1,1,function(){f=null}),zt())},i:function(d){if(!r){for(var h=0;h<a.length;h+=1)N(o[h]);N(f),r=!0}},o:function(d){for(var h=0;h<o.length;h+=1)q(o[h]);q(f),r=!1},d:function(d){d&&(it(t),it(n));for(var h=0;h<o.length;h+=1)o[h].d(d);f&&f.d(d)}}}function D8(e,t){var n,r,o;return r=new b7({props:{getItems:t[7],path:t[3],index:t[20],onSelect:t[9]}}),{key:e,first:null,c:function(){n=vn(),$t(r.$$.fragment),this.first=n},m:function(i,a){at(i,n,a),kt(r,i,a),o=!0},p:function(i,a){t=i;var s={};8&a&&(s.path=t[3]),8&a&&(s.index=t[20]),r.$set(s)},i:function(i){o||(N(r.$$.fragment,i),o=!0)},o:function(i){q(r.$$.fragment,i),o=!1},d:function(i){i&&it(n),jt(r,i)}}}function z8(e){var t,n;return t=new b7({props:{getItems:e[7],path:e[3],index:e[3].length,onSelect:e[9]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};8&o&&(i.path=r[3]),8&o&&(i.index=r[3].length),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function LY(e){var t,n,r,o,i,a,s,u,c,l,f,d,h,v=sr(e[0])||e[5]?" ":"Navigation bar",p=[zY,DY],m=[];function g(y,b){return y[5]?1:0}return n=g(e),r=m[n]=p[n](e),c=new on({props:{data:e[5]?E4:O4}}),{c:function(){t=G("div"),r.c(),o=pt(),i=G("button"),a=G("span"),s=Ut(v),u=pt(),$t(c.$$.fragment),j(a,"class","jse-navigation-bar-space svelte-15r3ahw"),j(i,"type","button"),j(i,"class","jse-navigation-bar-edit svelte-15r3ahw"),j(i,"title",l=e[5]?"Cancel editing the selected path":"Edit the selected path"),Pt(i,"flex",!e[5]),Pt(i,"editing",e[5]),j(t,"class","jse-navigation-bar svelte-15r3ahw")},m:function(y,b){at(y,t,b),m[n].m(t,null),B(t,o),B(t,i),B(i,a),B(a,s),B(i,u),kt(c,i,null),e[15](t),f=!0,d||(h=Nt(i,"click",e[10]),d=!0)},p:function(y,b){var w=ke(b,1)[0],x=n;(n=g(y))===x?m[n].p(y,w):(Dt(),q(m[x],1,1,function(){m[x]=null}),zt(),(r=m[n])?r.p(y,w):(r=m[n]=p[n](y)).c(),N(r,1),r.m(t,o)),(!f||33&w)&&v!==(v=sr(y[0])||y[5]?" ":"Navigation bar")&&me(s,v);var k={};32&w&&(k.data=y[5]?E4:O4),c.$set(k),(!f||32&w&&l!==(l=y[5]?"Cancel editing the selected path":"Edit the selected path"))&&j(i,"title",l),(!f||32&w)&&Pt(i,"flex",!y[5]),(!f||32&w)&&Pt(i,"editing",y[5])},i:function(y){f||(N(r),N(c.$$.fragment,y),f=!0)},o:function(y){q(r),q(c.$$.fragment,y),f=!1},d:function(y){y&&it(t),m[n].d(),jt(c),e[15](null),d=!1,h()}}}function BY(e,t,n){var r,o,i,a=Hr("jsoneditor:NavigationBar"),s=t.json,u=t.selection,c=t.onSelect,l=t.onError,f=t.pathParser,d=!1;function h(p){a("select path",JSON.stringify(p)),c(io(p,p))}function v(){n(5,d=!1)}return e.$$set=function(p){"json"in p&&n(0,s=p.json),"selection"in p&&n(13,u=p.selection),"onSelect"in p&&n(14,c=p.onSelect),"onError"in p&&n(1,l=p.onError),"pathParser"in p&&n(2,f=p.pathParser)},e.$$.update=function(){8192&e.$$.dirty&&n(3,r=u?he(u):[]),9&e.$$.dirty&&n(6,o=sr(ie(s,r))),8&e.$$.dirty&&setTimeout(function(){if(i&&i.scrollTo){var p=i.scrollWidth-i.clientWidth;p>0&&(a("scrollTo ",p),i.scrollTo({left:p,behavior:"smooth"}))}})},[s,l,f,r,i,d,o,function(p){a("get items for path",p);var m=ie(s,p);if(Array.isArray(m))return rA(0,m.length).map(String);if(er(m)){var g=Object.keys(m).slice(0);return g.sort(zg),g}return[]},function(p){return ti(s,p)},h,function(){n(5,d=!d)},v,function(p){v(),h(p)},u,c,function(p){Ge[p?"unshift":"push"](function(){n(4,i=p)})}]}var qY=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,BY,LY,De,{json:0,selection:13,onSelect:14,onError:1,pathParser:2},IY),o}return Z(n)}();function FY(e){Ae(e,"svelte-3lbrbf",".jse-search-box.svelte-3lbrbf.svelte-3lbrbf{border:var(--jse-panel-border);border-radius:3px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);box-shadow:var(--jse-controls-box-shadow);display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-3lbrbf .jse-search-form.svelte-3lbrbf{display:flex;align-items:stretch}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf,.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{font-family:inherit;font-size:inherit}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color);background:var(--jse-panel-button-background)}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{color:var(--jse-panel-color);border:var(--jse-input-border);border-radius:3px;background:var(--jse-input-background);height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-replace-toggle.svelte-3lbrbf{padding:var(--jse-padding) calc(0.5 * var(--jse-padding));min-width:20px;background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents.svelte-3lbrbf{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding));gap:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section.svelte-3lbrbf{flex:1;display:flex;align-items:center;position:relative;padding-left:32px}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-3lbrbf{color:inherit;cursor:inherit;background:inherit;position:absolute;top:calc(0.5 * var(--jse-padding));left:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-3lbrbf{flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-3lbrbf{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-3lbrbf{visibility:visible}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section.svelte-3lbrbf{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section button.svelte-3lbrbf{width:auto}")}function L8(e){var t,n,r,o,i,a,s,u,c,l,f,d,h,v,p,m,g,y,b,w,x,k,E,R,z,A,_,U,J=(e[3]!==-1?"".concat(e[3]+1,"/"):"")+"",D=!e[4]&&B8(e),F=[HY,VY],V=[];function C($,S){return $[2]?0:1}s=C(e),u=V[s]=F[s](e),y=new on({props:{data:WJ}}),x=new on({props:{data:zJ}}),R=new on({props:{data:wc}});var P=e[0]&&!e[4]&&q8(e);return{c:function(){t=G("div"),n=G("form"),D&&D.c(),r=pt(),o=G("div"),i=G("div"),a=G("div"),u.c(),c=pt(),l=G("label"),f=G("input"),d=pt(),h=G("div"),v=Ut(J),p=Ut(e[10]),m=pt(),g=G("button"),$t(y.$$.fragment),b=pt(),w=G("button"),$t(x.$$.fragment),k=pt(),E=G("button"),$t(R.$$.fragment),z=pt(),P&&P.c(),j(a,"class","jse-search-icon svelte-3lbrbf"),j(f,"class","jse-search-input svelte-3lbrbf"),j(f,"title","Enter text to search"),j(f,"type","text"),j(f,"placeholder","Find"),j(l,"class","jse-search-input-label svelte-3lbrbf"),j(l,"about","jse-search input"),j(h,"class","jse-search-count svelte-3lbrbf"),Pt(h,"jse-visible",e[8]!==""),j(g,"type","button"),j(g,"class","jse-search-next svelte-3lbrbf"),j(g,"title","Go to next search result (Enter)"),j(w,"type","button"),j(w,"class","jse-search-previous svelte-3lbrbf"),j(w,"title","Go to previous search result (Shift+Enter)"),j(E,"type","button"),j(E,"class","jse-search-clear svelte-3lbrbf"),j(E,"title","Close search box (Esc)"),j(i,"class","jse-search-section svelte-3lbrbf"),j(o,"class","jse-search-contents svelte-3lbrbf"),j(n,"class","jse-search-form svelte-3lbrbf"),j(t,"class","jse-search-box svelte-3lbrbf")},m:function($,S){at($,t,S),B(t,n),D&&D.m(n,null),B(n,r),B(n,o),B(o,i),B(i,a),V[s].m(a,null),B(i,c),B(i,l),B(l,f),da(f,e[8]),B(i,d),B(i,h),B(h,v),B(h,p),B(i,m),B(i,g),kt(y,g,null),B(i,b),B(i,w),kt(x,w,null),B(i,k),B(i,E),kt(R,E,null),B(o,z),P&&P.m(o,null),A=!0,_||(U=[Nt(f,"input",e[21]),Fr(UY.call(null,f)),Nt(g,"click",e[22]),Nt(w,"click",e[23]),Nt(E,"click",e[24]),Nt(n,"submit",e[12]),Nt(n,"keydown",e[13])],_=!0)},p:function($,S){$[4]?D&&(Dt(),q(D,1,1,function(){D=null}),zt()):D?(D.p($,S),16&S&&N(D,1)):((D=B8($)).c(),N(D,1),D.m(n,r));var O=s;(s=C($))!==O&&(Dt(),q(V[O],1,1,function(){V[O]=null}),zt(),(u=V[s])||(u=V[s]=F[s]($)).c(),N(u,1),u.m(a,null)),256&S&&f.value!==$[8]&&da(f,$[8]),(!A||8&S)&&J!==(J=($[3]!==-1?"".concat($[3]+1,"/"):"")+"")&&me(v,J),(!A||1024&S)&&me(p,$[10]),(!A||256&S)&&Pt(h,"jse-visible",$[8]!==""),$[0]&&!$[4]?P?P.p($,S):((P=q8($)).c(),P.m(o,null)):P&&(P.d(1),P=null)},i:function($){A||(N(D),N(u),N(y.$$.fragment,$),N(x.$$.fragment,$),N(R.$$.fragment,$),A=!0)},o:function($){q(D),q(u),q(y.$$.fragment,$),q(x.$$.fragment,$),q(R.$$.fragment,$),A=!1},d:function($){$&&it(t),D&&D.d(),V[s].d(),jt(y),jt(x),jt(R),P&&P.d(),_=!1,Tn(U)}}}function B8(e){var t,n,r,o,i;return n=new on({props:{data:e[0]?Qo:ss}}),{c:function(){t=G("button"),$t(n.$$.fragment),j(t,"type","button"),j(t,"class","jse-replace-toggle svelte-3lbrbf"),j(t,"title","Toggle visibility of replace options (Ctrl+H)")},m:function(a,s){at(a,t,s),kt(n,t,null),r=!0,o||(i=Nt(t,"click",e[11]),o=!0)},p:function(a,s){var u={};1&s&&(u.data=a[0]?Qo:ss),n.$set(u)},i:function(a){r||(N(n.$$.fragment,a),r=!0)},o:function(a){q(n.$$.fragment,a),r=!1},d:function(a){a&&it(t),jt(n),o=!1,i()}}}function VY(e){var t,n;return t=new on({props:{data:by}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function HY(e){var t,n;return t=new on({props:{data:NJ,spin:!0}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function q8(e){var t,n,r,o,i,a,s,u;return{c:function(){t=G("div"),n=G("input"),r=pt(),(o=G("button")).textContent="Replace",i=pt(),(a=G("button")).textContent="All",j(n,"class","jse-replace-input svelte-3lbrbf"),j(n,"title","Enter replacement text"),j(n,"type","text"),j(n,"placeholder","Replace"),j(o,"type","button"),j(o,"title","Replace current occurrence (Ctrl+Enter)"),j(o,"class","svelte-3lbrbf"),j(a,"type","button"),j(a,"title","Replace all occurrences"),j(a,"class","svelte-3lbrbf"),j(t,"class","jse-replace-section svelte-3lbrbf")},m:function(c,l){at(c,t,l),B(t,n),da(n,e[9]),B(t,r),B(t,o),B(t,i),B(t,a),s||(u=[Nt(n,"input",e[25]),Nt(o,"click",e[14]),Nt(a,"click",e[15])],s=!0)},p:function(c,l){512&l&&n.value!==c[9]&&da(n,c[9])},d:function(c){c&&it(t),s=!1,Tn(u)}}}function WY(e){var t,n,r=e[1]&&L8(e);return{c:function(){r&&r.c(),t=vn()},m:function(o,i){r&&r.m(o,i),at(o,t,i),n=!0},p:function(o,i){var a=ke(i,1)[0];o[1]?r?(r.p(o,a),2&a&&N(r,1)):((r=L8(o)).c(),N(r,1),r.m(t.parentNode,t)):r&&(Dt(),q(r,1,1,function(){r=null}),zt())},i:function(o){n||(N(r),n=!0)},o:function(o){q(r),n=!1},d:function(o){o&&it(t),r&&r.d(o)}}}function UY(e){e.select()}function JY(e,t,n){var r,o,i=t.show,a=i!==void 0&&i,s=t.searching,u=t.resultCount,c=u===void 0?0:u,l=t.activeIndex,f=l===void 0?0:l,d=t.showReplace,h=d!==void 0&&d,v=t.readOnly,p=v!==void 0&&v,m=t.onChange,g=m===void 0?qn:m,y=t.onPrevious,b=y===void 0?qn:y,w=t.onNext,x=w===void 0?qn:w,k=t.onReplace,E=k===void 0?qn:k,R=t.onReplaceAll,z=R===void 0?qn:R,A=t.onClose,_=A===void 0?qn:A,U="",J="",D="";function F(){n(0,h=!h&&!p)}function V(){p||E(U,D)}return e.$$set=function(C){"show"in C&&n(1,a=C.show),"searching"in C&&n(2,s=C.searching),"resultCount"in C&&n(16,c=C.resultCount),"activeIndex"in C&&n(3,f=C.activeIndex),"showReplace"in C&&n(0,h=C.showReplace),"readOnly"in C&&n(4,p=C.readOnly),"onChange"in C&&n(17,g=C.onChange),"onPrevious"in C&&n(5,b=C.onPrevious),"onNext"in C&&n(6,x=C.onNext),"onReplace"in C&&n(18,E=C.onReplace),"onReplaceAll"in C&&n(19,z=C.onReplaceAll),"onClose"in C&&n(7,_=C.onClose)},e.$$.update=function(){65536&e.$$.dirty&&n(10,r=c>=DO?"".concat(999,"+"):String(c)),131072&e.$$.dirty&&n(20,o=Of(g,300)),1048832&e.$$.dirty&&o(U),2&e.$$.dirty&&a&&U!==""&&g(U)},[h,a,s,f,p,b,x,_,U,D,r,F,function(C){C.preventDefault(),U!==J?(J=U,o.cancel(),g(U)):x()},function(C){C.stopPropagation();var P=Ds(C);P==="Enter"&&(C.preventDefault(),x()),P==="Shift+Enter"&&(C.preventDefault(),b()),P==="Ctrl+Enter"&&(C.preventDefault(),h?V():x()),P==="Ctrl+H"&&(C.preventDefault(),F()),P==="Escape"&&(C.preventDefault(),_())},V,function(){p||z(U,D)},c,g,E,z,o,function(){U=this.value,n(8,U)},function(){return x()},function(){return b()},function(){return _()},function(){D=this.value,n(9,D)}]}var KY=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,JY,WY,De,{show:1,searching:2,resultCount:16,activeIndex:3,showReplace:0,readOnly:4,onChange:17,onPrevious:5,onNext:6,onReplace:18,onReplaceAll:19,onClose:7},FY),o}return Z(n)}(),F8=Number.isNaN||function(e){return typeof e=="number"&&e!=e};function GY(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||F8(r)&&F8(o)))return!1;var r,o;return!0}function Bf(e,t){t===void 0&&(t=GY);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var a=e.apply(this,o);return n={lastResult:a,lastArgs:o,lastThis:this},a}return r.clear=function(){n=null},r}var ef=Symbol("path");function QY(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1/0,r={};Array.isArray(e)&&function(i,a,s){if(i.length<a)i.forEach(s);else for(var u=a>1?(i.length-1)/(a-1):i.length,c=0;c<a;c++){var l=Math.floor(c*u);s(i[l],l,i)}}(e,n,function(i){er(i)?w7(i,r,t):r[ef]=!0});var o=[];return ef in r&&o.push([]),x7(r,[],o,t),o}function w7(e,t,n){for(var r in e){var o=e[r],i=t[r]||(t[r]={});er(o)&&n?w7(o,i,n):i[ef]===void 0&&(i[ef]=!0)}}function x7(e,t,n,r){for(var o in e){var i=t.concat(o),a=e[o];a&&a[ef]===!0&&n.push(i),ur(a)&&r&&x7(a,i,n,r)}}function YY(e,t,n,r,o){for(var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:80,a=In(n)?n.length:0,s=function(g,y){var b=Object.values(g);if(Ze(b))return y;var w=function(k,E){return k+E},x=b.reduce(w);return x/b.length}(r,o),u=e-i,c=t+2*i,l=function(g){return r[g]||o},f=0,d=0;d<u&&f<a;)d+=l(f),f++;f>0&&(d-=l(--f));for(var h=f,v=0;v<c&&h<a;)v+=l(h),h++;for(var p=0,m=h;m<a;m++)p+=l(m);return{startIndex:f,endIndex:h,startHeight:d,endHeight:p,averageItemHeight:s,visibleHeight:v,visibleItems:In(n)?n.slice(f,h):[]}}function am(e,t,n,r){for(var o=Ko(e,t).rowIndex,i=0,a=0;a<o;a++)i+=n[a]||r;return i}function Ko(e,t){var n,r=yO(n=e)||xO(n)||_v(n)||gO(),o=r[0],i=r.slice(1),a=parseInt(o,10);return{rowIndex:isNaN(a)?-1:a,columnIndex:t.findIndex(function(s){return js(i,s)})}}function tu(e,t){var n=e.rowIndex,r=e.columnIndex;return[String(n)].concat(xe(t[r]))}function XY(e,t){var n=ke(ZE(e,function(a){return m1(a.path[0])}),2),r=n[0],o=n[1],i=LE(Af(r,ZY),function(a){var s={row:[],columns:{}};return a.forEach(function(u){var c=function(l,f){var d=Ko(l.path,f);return d.columnIndex!==-1?d.columnIndex:-1}(u,t);c!==-1?(s.columns[c]===void 0&&(s.columns[c]=[]),s.columns[c].push(u)):s.row.push(u)}),s});return{root:o,rows:i}}function kc(e,t){if(t&&t.length!==0)return t.length===1?t[0]:{path:e,message:"Multiple validation issues: "+t.map(function(n){return _o(n.path)+" "+n.message}).join(", "),severity:za.warning}}function ZY(e){return parseInt(e.path[0],10)}function tX(e,t,n){return t.some(function(r){return function(o,i,a){if(!o)return!1;if(i.op==="replace"){var s=Ko(Di(i.path),a),u=s.rowIndex,c=s.columnIndex,l=a.findIndex(function(f){return Ye(f,o.path)});if(u!==-1&&c!==-1&&c!==l)return!1}return!0}(e.sortedColumn,r,n)})?vt(vt({},e),{},{sortedColumn:null}):e}var so=Hr("jsoneditor:actions");function k7(e){return Lg.apply(this,arguments)}function Lg(){return Lg=_e(Lt().mark(function e(t){var n,r,o,i,a,s,u,c,l,f;return Lt().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(n=t.json,r=t.documentState,o=t.indentation,i=t.readOnly,a=t.parser,s=t.onPatch,!i&&n!==void 0&&r.selection&&Fc(r.selection)){d.next=3;break}return d.abrupt("return");case 3:if((u=FA(n,r.selection,o,a))!=null){d.next=6;break}return d.abrupt("return");case 6:return so("cut",{selection:r.selection,clipboard:u,indentation:o}),d.next=9,Oy(u);case 9:c=UA(n,r.selection),l=c.operations,f=c.newSelection,s(l,function(h,v){return{state:vt(vt({},v),{},{selection:f})}});case 11:case"end":return d.stop()}},e)})),Lg.apply(this,arguments)}function j7(e){return Bg.apply(this,arguments)}function Bg(){return Bg=_e(Lt().mark(function e(t){var n,r,o,i,a;return Lt().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(n=t.json,r=t.documentState,o=t.indentation,i=t.parser,(a=FA(n,r.selection,o,i))!=null){s.next=4;break}return s.abrupt("return");case 4:return so("copy",{clipboard:a,indentation:o}),s.next=7,Oy(a);case 7:case"end":return s.stop()}},e)})),Bg.apply(this,arguments)}function $7(e){var t=e.clipboardText,n=e.json,r=e.selection,o=e.readOnly,i=e.parser,a=e.onPatch,s=e.onChangeText,u=e.openRepairModal;if(!o)try{c(t)}catch{u(t,function(f){so("repaired pasted text: ",f),c(f)})}function c(l){if(n!==void 0){var f=r||Fe([],!1),d=WA(n,f,l,i);so("paste",{pastedText:l,operations:d,selectionNonNull:f}),a(d,function(h,v){var p=v;return d.filter(function(m){return(LO(m)||l1(m))&&sr(m.value)}).forEach(function(m){var g=na(n,m.path);p=rs(h,p,g)}),{state:p}})}else so("paste text",{pastedText:l}),s(t,function(h,v){if(h)return{state:rs(h,v,[])}})}}function S7(e){var t=e.json,n=e.text,r=e.documentState,o=e.keepSelection,i=e.readOnly,a=e.onChange,s=e.onPatch;if(!i&&r.selection){var u=t!==void 0&&(Cr(r.selection)||rn(r.selection))?io(r.selection.path,r.selection.path):r.selection;if(Ze(he(r.selection)))so("remove root",{selection:r.selection}),a&&a({text:"",json:void 0},t!==void 0?{text:void 0,json:t}:{text:n||"",json:t},{contentErrors:null,patchResult:null});else if(t!==void 0){var c=UA(t,u),l=c.operations,f=c.newSelection;so("remove",{operations:l,selection:r.selection,newSelection:f}),s(l,function(d,h){return{state:vt(vt({},h),{},{selection:o?r.selection:f})}})}}}function eX(e){var t=e.json,n=e.documentState,r=e.columns,o=e.readOnly,i=e.onPatch;if(!o&&t!==void 0&&n.selection&&Fc(n.selection)){var a=Ko(he(n.selection),r),s=a.rowIndex,u=a.columnIndex;so("duplicate row",{rowIndex:s});var c=[String(s)];i(HA(t,[c]),function(l,f){var d=Fe(tu({rowIndex:s<t.length?s+1:s,columnIndex:u},r),!1);return{state:vt(vt({},f),{},{selection:d})}})}}function nX(e){var t=e.json,n=e.documentState,r=e.columns,o=e.readOnly,i=e.onPatch;if(!o&&t!==void 0&&n.selection&&Fc(n.selection)){var a=Ko(he(n.selection),r).rowIndex;so("insert before row",{rowIndex:a}),i(Ju(t,[String(a)],[{key:"",value:ur(t[0])?{}:""}]))}}function rX(e){var t=e.json,n=e.documentState,r=e.columns,o=e.readOnly,i=e.onPatch;if(!o&&t!==void 0&&n.selection&&Fc(n.selection)){var a=Ko(he(n.selection),r),s=a.rowIndex,u=a.columnIndex;so("insert after row",{rowIndex:s});var c=s+1,l=[String(c)],f=[{key:"",value:ur(t[0])?{}:""}];i(c<t.length?Ju(t,l,f):Mg(t,[],f),function(d,h){var v=Fe(tu({rowIndex:c,columnIndex:u},r),!1);return{state:vt(vt({},h),{},{selection:v})}})}}function oX(e){var t=e.json,n=e.documentState,r=e.columns,o=e.readOnly,i=e.onPatch;if(!o&&t!==void 0&&n.selection&&Fc(n.selection)){var a=Ko(he(n.selection),r),s=a.rowIndex,u=a.columnIndex;so("remove row",{rowIndex:s}),i(Vh([[String(s)]]),function(c,l){var f=s<c.length?s:s>0?s-1:void 0,d=f!==void 0?Fe(tu({rowIndex:f,columnIndex:u},r),!1):null;return so("remove row new selection",{rowIndex:s,newRowIndex:f,newSelection:d}),{state:vt(vt({},l),{},{selection:d})}})}}function Jh(e){var t=e.insertType,n=e.selectInside,r=e.refJsonEditor,o=e.json,i=e.selection,a=e.readOnly,s=e.parser,u=e.onPatch,c=e.onReplaceJson;if(!a){var l=function(p,m,g){if(g==="object")return{};if(g==="array")return[];if(g==="structure"&&p!==void 0){var y=ie(p,m?BA(m):[]);if(Array.isArray(y)&&!Ze(y)){var b=Ti(y);return sr(b)?oE(b,function(w){return Array.isArray(w)?[]:er(w)?void 0:""}):""}}return""}(o,i,t);if(o!==void 0){var f=s.stringify(l),d=WA(o,i,f,s);so("onInsert",{insertType:t,operations:d,newValue:l,data:f});var h=Me(d.filter(function(p){return p.op==="add"||p.op==="replace"}));u(d,function(p,m){if(h){var g=na(p,h.path);if(sr(l))return{state:vt(vt({},Jo(p,m,g,Ol)),{},{selection:n?Fa(g):m.selection})};if(l===""){var y=Ze(g)?null:ie(p,Qe(g));return{state:Cg(p,vt(vt({},m),{},{selection:er(y)?oi(g,!0):Fe(g,!0)}),g)}}}}),so("after patch"),h&&l===""&&Kh(function(){return zh(r,"",!0,Gh)})}else{so("onInsert",{insertType:t,newValue:l});var v=[];c(l,function(p,m){return{state:vt(vt({},rs(p,m,v)),{},{selection:sr(l)?Fa(v):Fe(v,!0)})}})}}}function C7(e){return qg.apply(this,arguments)}function qg(){return qg=_e(Lt().mark(function e(t){var n,r,o,i,a,s,u,c,l,f,d,h;return Lt().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(n=t.char,r=t.selectInside,o=t.refJsonEditor,i=t.json,a=t.selection,s=t.readOnly,u=t.parser,c=t.onPatch,l=t.onReplaceJson,f=t.onSelect,!s){v.next=3;break}return v.abrupt("return");case 3:if(!Cr(a)){v.next=8;break}return d=!a.edit,f(vt(vt({},a),{},{edit:!0})),Kh(function(){return zh(o,n,d,Gh)}),v.abrupt("return");case 8:if(n!=="{"){v.next=12;break}Jh({insertType:"object",selectInside:r,refJsonEditor:o,json:i,selection:a,readOnly:s,parser:u,onPatch:c,onReplaceJson:l}),v.next=23;break;case 12:if(n!=="["){v.next=16;break}Jh({insertType:"array",selectInside:r,refJsonEditor:o,json:i,selection:a,readOnly:s,parser:u,onPatch:c,onReplaceJson:l}),v.next=23;break;case 16:if(!rn(a)||i===void 0){v.next=20;break}sr(ie(i,a.path))||(h=!a.edit,f(vt(vt({},a),{},{edit:!0})),Kh(function(){return zh(o,n,h,Gh)})),v.next=23;break;case 20:return so("onInsertValueWithCharacter",{char:n}),v.next=23,iX({char:n,refJsonEditor:o,json:i,selection:a,readOnly:s,parser:u,onPatch:c,onReplaceJson:l});case 23:case"end":return v.stop()}},e)})),qg.apply(this,arguments)}function iX(e){return Fg.apply(this,arguments)}function Fg(){return Fg=_e(Lt().mark(function e(t){var n,r,o,i,a,s,u,c,l;return Lt().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(n=t.char,r=t.refJsonEditor,o=t.json,i=t.selection,a=t.readOnly,s=t.parser,u=t.onPatch,c=t.onReplaceJson,!a){f.next=3;break}return f.abrupt("return");case 3:Jh({insertType:"value",selectInside:!1,refJsonEditor:r,json:o,selection:i,readOnly:a,parser:s,onPatch:u,onReplaceJson:c}),l=!li(i),Kh(function(){return zh(r,n,l,Gh)});case 6:case"end":return f.stop()}},e)})),Fg.apply(this,arguments)}function Kh(e){setTimeout(function(){return setTimeout(e)})}function Gh(e){e?.refresh()}function aX(e){Ae(e,"svelte-1ch6ow4",".jse-json-preview.svelte-1ch6ow4{flex:1;color:var(--jse-panel-color-readonly);overflow:auto;white-space:pre-wrap;padding:2px;border-left:var(--jse-main-border);border-right:var(--jse-main-border);border-bottom:var(--jse-main-border)}")}function sX(e){var t,n;return{c:function(){t=G("div"),n=Ut(e[0]),j(t,"class","jse-json-preview svelte-1ch6ow4")},m:function(r,o){at(r,t,o),B(t,n)},p:function(r,o){1&ke(o,1)[0]&&me(n,r[0])},i:Bt,o:Bt,d:function(r){r&&it(t)}}}function uX(e,t,n){var r,o,i=t.text,a=t.json,s=t.indentation,u=t.parser;return e.$$set=function(c){"text"in c&&n(1,i=c.text),"json"in c&&n(2,a=c.json),"indentation"in c&&n(3,s=c.indentation),"parser"in c&&n(4,u=c.parser)},e.$$.update=function(){6&e.$$.dirty&&n(5,r=a!==void 0?{json:a}:{text:i||""}),56&e.$$.dirty&&n(0,o=Ba($g(r,s,u),ng))},[o,i,a,s,u,r]}var _7=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,uX,sX,Nr,{text:1,json:2,indentation:3,parser:4},aX),o}return Z(n)}(),cX=r1.window;function lX(e){Ae(e,"svelte-1n5yill",".jse-tree-mode.svelte-1n5yill.svelte-1n5yill{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color);min-width:0;min-height:0;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-text-color);line-height:var(--jse-line-height)}.jse-tree-mode.svelte-1n5yill .jse-hidden-input-label .jse-hidden-input.svelte-1n5yill{position:fixed;top:-10px;left:-10px;width:1px;height:1px;padding:0;border:0;outline:none}.jse-tree-mode.svelte-1n5yill .jse-search-box-container.svelte-1n5yill{position:relative;height:0;top:var(--jse-padding);margin-right:calc(var(--jse-padding) + 20px);margin-left:var(--jse-padding);text-align:right;z-index:3}.jse-tree-mode.no-main-menu.svelte-1n5yill.svelte-1n5yill{border-top:var(--jse-main-border)}.jse-tree-mode.svelte-1n5yill .jse-contents.svelte-1n5yill{border-left:var(--jse-main-border);border-right:var(--jse-main-border);flex:1;overflow:auto;position:relative;padding:2px;display:flex;flex-direction:column}.jse-tree-mode.svelte-1n5yill .jse-contents.svelte-1n5yill:last-child{border-bottom:var(--jse-main-border)}.jse-tree-mode.svelte-1n5yill .jse-contents .jse-loading-space.svelte-1n5yill{flex:1}.jse-tree-mode.svelte-1n5yill .jse-contents .jse-loading.svelte-1n5yill{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}")}function V8(e){var t,n,r;function o(a){e[78](a)}var i={json:e[11],selection:e[17].selection,readOnly:e[0],historyState:e[23],onExpandAll:e[41],onCollapseAll:e[42],onUndo:e[37],onRedo:e[38],onSort:e[39],onTransform:e[40],onContextMenu:e[46],onCopy:e[34],onRenderMenu:e[7]};return e[20]!==void 0&&(i.showSearch=e[20]),t=new bY({props:i}),Ge.push(function(){return $i(t,"showSearch",o)}),{c:function(){$t(t.$$.fragment)},m:function(a,s){kt(t,a,s),r=!0},p:function(a,s){var u={};2048&s[0]&&(u.json=a[11]),131072&s[0]&&(u.selection=a[17].selection),1&s[0]&&(u.readOnly=a[0]),8388608&s[0]&&(u.historyState=a[23]),128&s[0]&&(u.onRenderMenu=a[7]),!n&&1048576&s[0]&&(n=!0,u.showSearch=a[20],ji(function(){return n=!1})),t.$set(u)},i:function(a){r||(N(t.$$.fragment,a),r=!0)},o:function(a){q(t.$$.fragment,a),r=!1},d:function(a){jt(t,a)}}}function H8(e){var t,n;return t=new qY({props:{json:e[11],selection:e[17].selection,onSelect:e[50],onError:e[6],pathParser:e[4]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};2048&o[0]&&(i.json=r[11]),131072&o[0]&&(i.selection=r[17].selection),64&o[0]&&(i.onError=r[6]),16&o[0]&&(i.pathParser=r[4]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function fX(e){var t;return{c:function(){(t=G("div")).innerHTML='<div class="jse-loading-space svelte-1n5yill"></div> <div class="jse-loading svelte-1n5yill">loading...</div>',j(t,"class","jse-contents svelte-1n5yill")},m:function(n,r){at(n,t,r)},p:Bt,i:Bt,o:Bt,d:function(n){n&&it(t)}}}function dX(e){var t,n,r,o,i,a,s,u,c,l=[vX,hX],f=[];function d(h,v){return h[11]===void 0?0:1}return o=d(e),i=f[o]=l[o](e),{c:function(){t=G("label"),n=G("input"),r=pt(),i.c(),a=vn(),j(n,"type","text"),n.readOnly=!0,j(n,"tabindex","-1"),j(n,"class","jse-hidden-input svelte-1n5yill"),j(t,"class","jse-hidden-input-label")},m:function(h,v){at(h,t,v),B(t,n),e[79](n),at(h,r,v),f[o].m(h,v),at(h,a,v),s=!0,u||(c=Nt(n,"paste",e[35]),u=!0)},p:function(h,v){var p=o;(o=d(h))===p?f[o].p(h,v):(Dt(),q(f[p],1,1,function(){f[p]=null}),zt(),(i=f[o])?i.p(h,v):(i=f[o]=l[o](h)).c(),N(i,1),i.m(a.parentNode,a))},i:function(h){s||(N(i),s=!0)},o:function(h){q(i),s=!1},d:function(h){h&&(it(t),it(r),it(a)),e[79](null),f[o].d(h),u=!1,c()}}}function hX(e){var t,n,r,o,i,a,s,u,c,l,f,d,h;i=new KY({props:{show:e[20],resultCount:((t=e[18])===null||t===void 0||(t=t.items)===null||t===void 0?void 0:t.length)||0,activeIndex:((n=e[18])===null||n===void 0?void 0:n.activeIndex)||0,showReplace:e[21],searching:e[22],readOnly:e[0],onChange:e[27],onNext:e[28],onPrevious:e[29],onReplace:e[30],onReplaceAll:e[31],onClose:e[32]}}),u=new hY({props:{value:e[11],path:[],expandedMap:e[17].expandedMap,enforceStringMap:e[17].enforceStringMap,visibleSectionsMap:e[17].visibleSectionsMap,validationErrorsMap:e[25],searchResultItemsMap:(r=e[18])===null||r===void 0?void 0:r.itemsMap,selection:e[17].selection,context:e[13],onDragSelectionStart:qn}});var v=e[19]&&W8(e),p=e[24]&&U8(e);return d=new ky({props:{validationErrors:e[12],selectError:e[33]}}),{c:function(){o=G("div"),$t(i.$$.fragment),a=pt(),s=G("div"),$t(u.$$.fragment),c=pt(),v&&v.c(),l=pt(),p&&p.c(),f=pt(),$t(d.$$.fragment),j(o,"class","jse-search-box-container svelte-1n5yill"),j(s,"class","jse-contents svelte-1n5yill"),j(s,"data-jsoneditor-scrollable-contents",!0)},m:function(m,g){at(m,o,g),kt(i,o,null),at(m,a,g),at(m,s,g),kt(u,s,null),e[83](s),at(m,c,g),v&&v.m(m,g),at(m,l,g),p&&p.m(m,g),at(m,f,g),kt(d,m,g),h=!0},p:function(m,g){var y,b,w,x={};1048576&g[0]&&(x.show=m[20]),262144&g[0]&&(x.resultCount=((y=m[18])===null||y===void 0||(y=y.items)===null||y===void 0?void 0:y.length)||0),262144&g[0]&&(x.activeIndex=((b=m[18])===null||b===void 0?void 0:b.activeIndex)||0),2097152&g[0]&&(x.showReplace=m[21]),4194304&g[0]&&(x.searching=m[22]),1&g[0]&&(x.readOnly=m[0]),i.$set(x);var k={};2048&g[0]&&(k.value=m[11]),131072&g[0]&&(k.expandedMap=m[17].expandedMap),131072&g[0]&&(k.enforceStringMap=m[17].enforceStringMap),131072&g[0]&&(k.visibleSectionsMap=m[17].visibleSectionsMap),33554432&g[0]&&(k.validationErrorsMap=m[25]),262144&g[0]&&(k.searchResultItemsMap=(w=m[18])===null||w===void 0?void 0:w.itemsMap),131072&g[0]&&(k.selection=m[17].selection),8192&g[0]&&(k.context=m[13]),u.$set(k),m[19]?v?(v.p(m,g),524288&g[0]&&N(v,1)):((v=W8(m)).c(),N(v,1),v.m(l.parentNode,l)):v&&(Dt(),q(v,1,1,function(){v=null}),zt()),m[24]?p?(p.p(m,g),16777216&g[0]&&N(p,1)):((p=U8(m)).c(),N(p,1),p.m(f.parentNode,f)):p&&(Dt(),q(p,1,1,function(){p=null}),zt());var E={};4096&g[0]&&(E.validationErrors=m[12]),d.$set(E)},i:function(m){h||(N(i.$$.fragment,m),N(u.$$.fragment,m),N(v),N(p),N(d.$$.fragment,m),h=!0)},o:function(m){q(i.$$.fragment,m),q(u.$$.fragment,m),q(v),q(p),q(d.$$.fragment,m),h=!1},d:function(m){m&&(it(o),it(a),it(s),it(c),it(l),it(f)),jt(i),jt(u),e[83](null),v&&v.d(m),p&&p.d(m),jt(d,m)}}}function vX(e){var t,n,r,o,i=[mX,pX],a=[];function s(u,c){return u[16]===""||u[16]===void 0?0:1}return t=s(e),n=a[t]=i[t](e),{c:function(){n.c(),r=vn()},m:function(u,c){a[t].m(u,c),at(u,r,c),o=!0},p:function(u,c){var l=t;(t=s(u))===l?a[t].p(u,c):(Dt(),q(a[l],1,1,function(){a[l]=null}),zt(),(n=a[t])?n.p(u,c):(n=a[t]=i[t](u)).c(),N(n,1),n.m(r.parentNode,r))},i:function(u){o||(N(n),o=!0)},o:function(u){q(n),o=!1},d:function(u){u&&it(r),a[t].d(u)}}}function W8(e){var t,n;return t=new qi({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(e[19].contents)?"array":"object"," as text"),actions:[{icon:Yv,text:"Paste as JSON instead",title:"Replace the value with the pasted JSON",onMouseDown:e[47]},{text:"Leave as is",title:"Keep the JSON embedded in the value",onClick:e[48]}],onClose:e[84]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};524288&o[0]&&(i.message="You pasted a JSON ".concat(Array.isArray(r[19].contents)?"array":"object"," as text")),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function U8(e){var t,n;return t=new qi({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:e[0]?[]:[{icon:Xl,text:"Ok",onClick:e[8]},{icon:$s,text:"Repair manually instead",onClick:e[49]}],onClose:e[9]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o[0]&&(i.actions=r[0]?[]:[{icon:Xl,text:"Ok",onClick:r[8]},{icon:$s,text:"Repair manually instead",onClick:r[49]}]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function pX(e){var t,n,r,o;return t=new qi({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:e[0]?[]:[{icon:$s,text:"Repair manually",onClick:e[49]}]}}),r=new _7({props:{text:e[16],json:e[11],indentation:e[5],parser:e[3]}}),{c:function(){$t(t.$$.fragment),n=pt(),$t(r.$$.fragment)},m:function(i,a){kt(t,i,a),at(i,n,a),kt(r,i,a),o=!0},p:function(i,a){var s={};1&a[0]&&(s.actions=i[0]?[]:[{icon:$s,text:"Repair manually",onClick:i[49]}]),t.$set(s);var u={};65536&a[0]&&(u.text=i[16]),2048&a[0]&&(u.json=i[11]),32&a[0]&&(u.indentation=i[5]),8&a[0]&&(u.parser=i[3]),r.$set(u)},i:function(i){o||(N(t.$$.fragment,i),N(r.$$.fragment,i),o=!0)},o:function(i){q(t.$$.fragment,i),q(r.$$.fragment,i),o=!1},d:function(i){i&&it(n),jt(t,i),jt(r,i)}}}function mX(e){var t,n;return t=new jY({props:{readOnly:e[0],onCreateObject:e[80],onCreateArray:e[81],onClick:e[82]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&o[0]&&(i.readOnly=r[0]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function gX(e){var t,n,r,o,i,a,s,u,c=e[1]&&V8(e),l=e[2]&&H8(e),f=[dX,fX],d=[];return o=function(h,v){return h[26]?1:0}(e),i=d[o]=f[o](e),{c:function(){t=G("div"),c&&c.c(),n=pt(),l&&l.c(),r=pt(),i.c(),j(t,"role","tree"),j(t,"tabindex","-1"),j(t,"class","jse-tree-mode svelte-1n5yill"),Pt(t,"no-main-menu",!e[1])},m:function(h,v){at(h,t,v),c&&c.m(t,null),B(t,n),l&&l.m(t,null),B(t,r),d[o].m(t,null),e[85](t),a=!0,s||(u=[Nt(cX,"mousedown",e[51]),Nt(t,"keydown",e[43]),Nt(t,"mousedown",e[44]),Nt(t,"contextmenu",e[45])],s=!0)},p:function(h,v){h[1]?c?(c.p(h,v),2&v[0]&&N(c,1)):((c=V8(h)).c(),N(c,1),c.m(t,n)):c&&(Dt(),q(c,1,1,function(){c=null}),zt()),h[2]?l?(l.p(h,v),4&v[0]&&N(l,1)):((l=H8(h)).c(),N(l,1),l.m(t,r)):l&&(Dt(),q(l,1,1,function(){l=null}),zt()),i.p(h,v),(!a||2&v[0])&&Pt(t,"no-main-menu",!h[1])},i:function(h){a||(N(c),N(l),N(i),a=!0)},o:function(h){q(c),q(l),q(i),a=!1},d:function(h){h&&it(t),c&&c.d(),l&&l.d(),d[o].d(),e[85](null),s=!1,Tn(u)}}}function yX(e,t,n){var r,o=Hr("jsoneditor:TreeMode"),i=typeof window>"u";o("isSSR:",i);var a,s,u,c,l,f=Vr("simple-modal").open,d=mu(),h=mu(),v=Vr("absolute-popup"),p=v.openAbsolutePopup,m=v.closeAbsolutePopup,g=!1,y=l7(),b=t.readOnly,w=t.externalContent,x=t.externalSelection,k=t.mainMenuBar,E=t.navigationBar,R=t.escapeControlCharacters,z=t.escapeUnicodeCharacters,A=t.parser,_=t.parseMemoizeOne,U=t.validator,J=t.validationParser,D=t.pathParser,F=t.indentation,V=t.onError,C=t.onChange,P=t.onChangeMode,$=t.onSelect,S=t.onRenderValue,O=t.onRenderMenu,I=t.onClassName,M=t.onFocus,L=t.onBlur,T=t.onSortModal,ut=t.onTransformModal,lt=t.onJSONEditorModal,xt=!1;xy({onMount:ai,onDestroy:Do,getWindow:function(){return qc(u)},hasFocus:function(){return xt&&document.hasFocus()||Lh(u)},onFocus:function(){g=!0,M&&M()},onBlur:function(){g=!1,L&&L()}});var Ct=void 0;function Mt(Y){o("updateSelection",Y);var mt=typeof Y=="function"?Y(ft.selection)||null:Y;Ye(mt,ft.selection)||(n(17,ft=vt(vt({},ft),{},{selection:mt})),$(mt))}var dt,It,bt,Tt=!1,ft=qh(),ae=!1,H=!1,Q=!1,tt="";function yt(Y){return St.apply(this,arguments)}function St(){return St=_e(Lt().mark(function Y(mt){return Lt().wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return o("search text updated",mt),n(77,tt=mt),Rt.next=4,ar();case 4:return Rt.next=6,Ne();case 6:case"end":return Rt.stop()}},Y)})),St.apply(this,arguments)}function Ht(){return(Ht=_e(Lt().mark(function Y(){return Lt().wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return n(18,dt=dt?lJ(dt):void 0),mt.next=3,Ne();case 3:case"end":return mt.stop()}},Y)}))).apply(this,arguments)}function Vt(){return(Vt=_e(Lt().mark(function Y(){return Lt().wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return n(18,dt=dt?fJ(dt):void 0),mt.next=3,Ne();case 3:case"end":return mt.stop()}},Y)}))).apply(this,arguments)}function Ce(){return(Ce=_e(Lt().mark(function Y(mt,Rt){var Ft,qt,Qt,we,$e;return Lt().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(qt=(Ft=dt)===null||Ft===void 0?void 0:Ft.activeItem,o("handleReplace",{replacementText:Rt,activeItem:qt}),qt&&c!==void 0){Se.next=4;break}return Se.abrupt("return");case 4:return Qt=dJ(c,ft,Rt,qt,A),we=Qt.operations,$e=Qt.newSelection,se(we,function(Jn,br){return{state:vt(vt({},br),{},{selection:$e})}}),Se.next=8,ar();case 8:return Se.next=10,Ne();case 10:case"end":return Se.stop()}},Y)}))).apply(this,arguments)}function Re(){return Re=_e(Lt().mark(function Y(mt,Rt){var Ft,qt,Qt;return Lt().wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return o("handleReplaceAll",{text:mt,replacementText:Rt}),Ft=hJ(c,ft,mt,Rt,A),qt=Ft.operations,Qt=Ft.newSelection,se(qt,function($e,Se){return{state:vt(vt({},Se),{},{selection:Qt})}}),we.next=5,ar();case 5:return we.next=7,Ne();case 7:case"end":return we.stop()}},Y)})),Re.apply(this,arguments)}function Ne(){return oe.apply(this,arguments)}function oe(){return(oe=_e(Lt().mark(function Y(){var mt,Rt,Ft;return Lt().wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:if(Rt=(mt=dt)===null||mt===void 0?void 0:mt.activeItem,o("focusActiveSearchResult",dt),!Rt||c===void 0){qt.next=9;break}return Ft=Rt.path,n(17,ft=vt(vt({},Cg(c,ft,Ft)),{},{selection:null})),qt.next=7,ar();case 7:return qt.next=9,ee(Ft);case 9:case"end":return qt.stop()}},Y)}))).apply(this,arguments)}var Be=f7({onChange:function(Y){n(23,yn=Y)}}),yn=Be.getState(),Cn,le,kn=lA(function(Y,mt){if(Y==="")return o("clearing search result"),void(dt!==void 0&&n(18,dt=void 0));n(22,Q=!0),setTimeout(function(){o("searching...",Y);var Rt=KA(Y,mt,DO);n(18,dt=function(Ft,qt,Qt){var we=Qt!=null&&Qt.activeItem?$4(Qt.activeItem):void 0,$e=qt.findIndex(function(cr){return Ye(we,$4(cr))}),Se=$e!==-1?$e:Qt?.activeIndex!==void 0&&Qt?.activeIndex<qt.length?Qt?.activeIndex:qt.length>0?0:-1,Jn=qt.map(function(cr,Wr){return vt(vt({},cr),{},{active:Wr===Se})}),br=Jn[Se];return{items:Jn,itemsMap:Af(Jn,function(cr){return Zt(cr.path)}),activeItem:br,activeIndex:Se}}(0,Rt,dt)),n(22,Q=!1)})},300),ze=!1,bn=[],Rn=Bf(d7);function wn(Y,mt,Rt,Ft){Gu(function(){var qt;try{qt=Rn(Y,mt,Rt,Ft)}catch(Qt){qt=[{path:[],message:"Failed to validate: "+Qt.message,severity:za.warning}]}Ye(qt,bn)||(o("validationErrors changed:",qt),n(12,bn=qt))},function(qt){return o("validationErrors updated in ".concat(qt," ms"))})}function Un(){return o("validate"),Ct?{parseError:Ct,isRepairable:!1}:(wn(c,U,A,J),Ze(bn)?null:{validationErrors:bn})}function _n(){return c}function Vn(){return ft}function pn(Y){Y.json!==void 0&&function(mt){if(mt!==void 0){var Rt=!Ye(c,mt);if(o("update external json",{isChanged:Rt,currentlyText:c===void 0}),!!Rt){var Ft={json:c,text:l},qt=ft,Qt=c,we=l,$e=ze;n(11,c=mt),xn(c),n(16,l=void 0),n(24,ze=!1),Ct=void 0,On(c),Gn({previousJson:Qt,previousState:qt,previousText:we,previousTextIsRepaired:$e}),qe(Ft,null)}}}(Y.json),Y.text!==void 0&&function(mt){if(!(mt===void 0||w.json!==void 0)){var Rt=mt!==l;if(o("update external text",{isChanged:Rt}),!!Rt){var Ft={json:c,text:l},qt=c,Qt=ft,we=l,$e=ze;try{n(11,c=_(mt)),xn(c),n(16,l=mt),n(24,ze=!1),Ct=void 0}catch(Se){try{n(11,c=_(ra(mt))),xn(c),n(16,l=mt),n(24,ze=!0),Ct=void 0,On(c)}catch{n(11,c=void 0),n(16,l=w.text),n(24,ze=!1),Ct=l!==void 0&&l!==""?mc(l,Se.message||String(Se)):void 0}}On(c),Gn({previousJson:qt,previousState:Qt,previousText:we,previousTextIsRepaired:$e}),qe(Ft,null)}}}(Y.text)}function xn(Y){Tt||(Tt=!0,n(17,ft=Jo(Y,ft,[],function(mt){return jA({json:mt},zO)?ta:Ol}(Y))))}function On(Y){ft.selection&&(ti(Y,au(ft.selection))&&ti(Y,he(ft.selection))||(o("clearing selection: path does not exist anymore",ft.selection),n(17,ft=vt(vt({},ft),{},{selection:Tu(Y,ft)}))))}function Gn(Y){var mt=Y.previousJson,Rt=Y.previousState,Ft=Y.previousText,qt=Y.previousTextIsRepaired;mt===void 0&&Ft===void 0||(c!==void 0?mt!==void 0?Be.add({undo:{patch:[{op:"replace",path:"",value:mt}],state:no(Rt),json:void 0,text:Ft,textIsRepaired:qt},redo:{patch:[{op:"replace",path:"",value:c}],state:no(ft),json:void 0,text:l,textIsRepaired:ze}}):Be.add({undo:{patch:void 0,json:void 0,text:Ft,state:no(Rt),textIsRepaired:qt},redo:{patch:void 0,json:c,state:no(ft),text:l,textIsRepaired:ze}}):mt!==void 0&&Be.add({undo:{patch:void 0,json:mt,state:no(Rt),text:Ft,textIsRepaired:qt},redo:{patch:void 0,json:void 0,text:l,textIsRepaired:ze,state:no(ft)}}))}function yr(Y,mt){if(o("patch",Y,mt),c===void 0)throw new Error("Cannot apply patch: no JSON");var Rt={json:c,text:l},Ft=c,qt=ft,Qt=l,we=ze,$e=JA(c,Y),Se=IA(c,ft,Y),Jn=bc(c,Y),br=function(lo,jr){return jr||!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?vt(vt({},lo),{},{selection:jr}):lo}(Se.documentState,Jn,!1);o("patch updatedSelection",Jn);var cr=typeof mt=="function"?mt(Se.json,br):void 0;n(11,c=cr&&cr.json!==void 0?cr.json:Se.json);var Wr=cr&&cr.state!==void 0?cr.state:br;n(17,ft=Wr),n(16,l=void 0),n(24,ze=!1),n(19,bt=void 0),Ct=void 0,On(c),Be.add({undo:{patch:$e,json:void 0,text:Qt,state:no(qt),textIsRepaired:we},redo:{patch:Y,json:void 0,state:no(Wr),text:l,textIsRepaired:ze}});var eo={json:c,previousJson:Ft,undo:$e,redo:Y};return qe(Rt,eo),eo}function wt(){!b&&ft.selection&&Mt(oi(he(ft.selection),!0))}function te(){if(!b&&ft.selection){var Y=he(ft.selection),mt=ie(c,Y);sr(mt)?function(Rt,Ft){o("openJSONEditorModal",{path:Rt,value:Ft}),xt=!0,lt({content:{json:Ft},path:Rt,onPatch:le.onPatch,onClose:function(){xt=!1,Ln()}})}(Y,mt):Mt(Fe(Y,!0))}}function Te(){if(!b&&rn(ft.selection)){var Y=he(ft.selection),mt=Zt(Y),Rt=ie(c,Y),Ft=!qa(Rt,ft.enforceStringMap,mt,A),qt=Ft?String(Rt):Ac(String(Rt),A);o("handleToggleEnforceString",{enforceString:Ft,value:Rt,updatedValue:qt}),se([{op:"replace",path:mt,value:qt}],function(Qt,we){return{state:NA(we,mt,Ft)}})}}function Ke(){return gt.apply(this,arguments)}function gt(){return gt=_e(Lt().mark(function Y(){var mt,Rt=arguments;return Lt().wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return mt=!(Rt.length>0&&Rt[0]!==void 0)||Rt[0],Ft.next=3,k7({json:c,documentState:ft,indentation:mt?F:void 0,readOnly:b,parser:A,onPatch:se});case 3:case"end":return Ft.stop()}},Y)})),gt.apply(this,arguments)}function Kt(){return W.apply(this,arguments)}function W(){return W=_e(Lt().mark(function Y(){var mt,Rt=arguments;return Lt().wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:if(mt=!(Rt.length>0&&Rt[0]!==void 0)||Rt[0],c!==void 0){Ft.next=3;break}return Ft.abrupt("return");case 3:return Ft.next=5,j7({json:c,documentState:ft,indentation:mt?F:void 0,parser:A});case 5:case"end":return Ft.stop()}},Y)})),W.apply(this,arguments)}function et(){f(h7,{},vt(vt({},vu),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Ln()}})}function ct(Y,mt){f(p7,{text:Y,onParse:function(Rt){return Jv(Rt,function(Ft){return Rf(Ft,A)})},onRepair:xA,onApply:mt},vt(vt({},vu),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Ln()}})}function ot(){S7({json:c,text:l,documentState:ft,keepSelection:!1,readOnly:b,onChange:C,onPatch:se})}function Et(){!b&&c!==void 0&&ft.selection&&Fc(ft.selection)&&!Ze(he(ft.selection))&&(o("duplicate",{selection:ft.selection}),se(HA(c,hs(c,ft.selection))))}function Yt(){if(!b&&ft.selection&&(An(ft.selection)||rn(ft.selection))&&!Ze(he(ft.selection))){o("extract",{selection:ft.selection});var Y=function(mt,Rt){if(rn(Rt))return[{op:"move",from:Zt(Rt.path),path:""}];if(!An(Rt))throw new Error("Cannot create extract operations: parent must be an Object or Array");var Ft=ie(mt,Qe(Rt.focusPath));if(In(Ft))return[{op:"replace",path:"",value:hs(mt,Rt).map(function(Qt){var we=Xr(Me(Qt));return Ft[we]})}];if(ur(Ft)){var qt={};return hs(mt,Rt).forEach(function(Qt){var we=String(Me(Qt));qt[we]=Ft[we]}),[{op:"replace",path:"",value:qt}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(Rt))}(c,ft.selection);se(Y,function(mt,Rt){if(sr(mt))return{state:rs(mt,Rt,[])}})}}function ce(Y){c!==void 0&&Jh({insertType:Y,selectInside:!0,refJsonEditor:u,json:c,selection:ft.selection,readOnly:b,parser:A,onPatch:se,onReplaceJson:nn})}function Ue(Y){Cr(ft.selection)&&Mt(Fe(ft.selection.path,!1)),ft.selection||Mt(Tu(c,ft)),ce(Y)}function Ie(Y){if(!b&&ft.selection)if(sh(ft.selection))try{var mt=au(ft.selection),Rt=ie(c,mt),Ft=function(Qt,we,$e){if(we==="array"){if(Array.isArray(Qt))return Qt;if(er(Qt))return Q$(Qt);if(typeof Qt=="string")try{var Se=$e.parse(Qt);if(Array.isArray(Se))return Se;if(er(Se))return Q$(Se)}catch{return[Qt]}return[Qt]}if(we==="object"){if(Array.isArray(Qt))return G$(Qt);if(er(Qt))return Qt;if(typeof Qt=="string")try{var Jn=$e.parse(Qt);if(er(Jn))return Jn;if(Array.isArray(Jn))return G$(Jn)}catch{return{value:Qt}}return{value:Qt}}if(we==="value")return sr(Qt)?$e.stringify(Qt):Qt;throw new Error("Cannot convert ".concat(g1(Qt,$e)," to ").concat(we))}(Rt,Y,A);if(Ft===Rt)return;var qt=[{op:"replace",path:Zt(mt),value:Ft}];o("handleConvert",{selection:ft.selection,path:mt,type:Y,operations:qt}),se(qt,function(Qt,we){return{state:ft.selection?rs(Qt,we,he(ft.selection)):ft}})}catch(Qt){V(Qt)}else V(new Error("Cannot convert current selection to ".concat(Y)))}function fn(){if(ft.selection){var Y=m4(c,ft,!1),mt=Qe(he(ft.selection));Y&&!Ze(he(Y))&&Ye(mt,Qe(he(Y)))?Mt(Ia(he(Y))):Mt(Fa(mt)),o("insert before",{selection:ft.selection,selectionBefore:Y,parentPath:mt}),ar().then(Hi)}}function jn(){if(ft.selection){var Y=vs(c,ft.selection);o("insert after",Y),Mt(Ia(Y)),ar().then(Hi)}}function ye(Y){return un.apply(this,arguments)}function un(){return(un=_e(Lt().mark(function Y(mt){return Lt().wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return Rt.next=2,C7({char:mt,selectInside:!0,refJsonEditor:u,json:c,selection:ft.selection,readOnly:b,parser:A,onPatch:se,onReplaceJson:nn,onSelect:Mt});case 2:case"end":return Rt.stop()}},Y)}))).apply(this,arguments)}function an(){if(!b&&Be.getState().canUndo){var Y=Be.undo();if(Y){var mt={json:c,text:l};n(11,c=Y.undo.patch?Pi(c,Y.undo.patch):Y.undo.json),n(17,ft=Y.undo.state),n(16,l=Y.undo.text),n(24,ze=Y.undo.textIsRepaired),Ct=void 0,o("undo",{item:Y,json:c,documentState:ft}),qe(mt,{json:c,previousJson:mt.json,redo:Y.undo.patch,undo:Y.redo.patch}),Ln(),ft.selection&&ee(he(ft.selection),!1)}}}function Hn(){if(!b&&Be.getState().canRedo){var Y=Be.redo();if(Y){var mt={json:c,text:l};n(11,c=Y.redo.patch?Pi(c,Y.redo.patch):Y.redo.json),n(17,ft=Y.redo.state),n(16,l=Y.redo.text),n(24,ze=Y.redo.textIsRepaired),Ct=void 0,o("redo",{item:Y,json:c,documentState:ft}),qe(mt,{json:c,previousJson:mt.json,redo:Y.redo.patch,undo:Y.undo.patch}),Ln(),ft.selection&&ee(he(ft.selection),!1)}}}function cn(Y){var mt;b||c===void 0||(xt=!0,T({id:d,json:c,rootPath:Y,onSort:(mt=_e(Lt().mark(function Rt(Ft){var qt;return Lt().wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:qt=Ft.operations,o("onSort",Y,qt),se(qt,function(we,$e){return{state:vt(vt({},rs(we,$e,Y)),{},{selection:Fe(Y,!1)})}});case 3:case"end":return Qt.stop()}},Rt)})),function(Rt){return mt.apply(this,arguments)}),onClose:function(){xt=!1,Ln()}}))}function rt(){ft.selection&&cn(y4(c,ft.selection))}function At(Y){if(c!==void 0){var mt=Y.id,Rt=Y.onTransform,Ft=Y.onClose,qt=Y.rootPath||[];xt=!0,ut({id:mt||h,json:c,rootPath:qt,onTransform:function(Qt){Rt?Rt({operations:Qt,json:c,transformedJson:Pi(c,Qt)}):(o("onTransform",qt,Qt),se(Qt,function(we,$e){return{state:vt(vt({},rs(we,$e,qt)),{},{selection:Fe(qt,!1)})}}))},onClose:function(){xt=!1,Ln(),Ft&&Ft()}})}}function Gt(){ft.selection&&At({rootPath:y4(c,ft.selection)})}function ee(Y){return Jt.apply(this,arguments)}function Jt(){return Jt=_e(Lt().mark(function Y(mt){var Rt,Ft,qt,Qt,we,$e=arguments;return Lt().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Rt=!($e.length>1&&$e[1]!==void 0)||$e[1],n(17,ft=Cg(c,ft,mt)),Se.next=4,ar();case 4:if(Ft=Oe(mt),o("scrollTo",{path:mt,elem:Ft,refContents:a}),Ft&&a){Se.next=8;break}return Se.abrupt("return",Promise.resolve());case 8:if(qt=a.getBoundingClientRect(),Qt=Ft.getBoundingClientRect(),Rt){Se.next=13;break}if(!(Qt.bottom>qt.top&&Qt.top<qt.bottom)){Se.next=13;break}return Se.abrupt("return",Promise.resolve());case 13:return we=-qt.height/4,Se.abrupt("return",new Promise(function(Jn){y(Ft,{container:a,offset:we,duration:300,callback:function(){return Jn()}})}));case 15:case"end":return Se.stop()}},Y)})),Jt.apply(this,arguments)}function Oe(Y){return a?a.querySelector('div[data-path="'.concat(yc(Y),'"]')):null}function Le(Y){var mt=Oe(Y);if(mt&&a){var Rt=a.getBoundingClientRect(),Ft=mt.getBoundingClientRect(),qt=sr(ie(c,Y))?20:Ft.height;Ft.top<Rt.top+20?y(mt,{container:a,offset:-20,duration:0}):Ft.top+qt>Rt.bottom-20&&y(mt,{container:a,offset:-(Rt.height-qt-20),duration:0})}}function qe(Y,mt){(Y.json!==void 0||Y?.text!==void 0)&&(l!==void 0?C({text:l,json:void 0},Y,{contentErrors:Un(),patchResult:mt}):c!==void 0&&C({text:void 0,json:c},Y,{contentErrors:Un(),patchResult:mt}))}function se(Y,mt){if(!b)return o("handlePatch",Y,mt),yr(Y,mt)}function nn(Y,mt){var Rt=ft,Ft=c,qt=l,Qt={json:c,text:l},we=ze,$e=Jo(c,ft,[],ta),Se=typeof mt=="function"?mt(Y,$e):void 0;n(11,c=Se&&Se.json!==void 0?Se.json:Y),n(17,ft=Se&&Se.state!==void 0?Se.state:$e),n(16,l=void 0),n(24,ze=!1),Ct=void 0,On(c),Gn({previousJson:Ft,previousState:Rt,previousText:qt,previousTextIsRepaired:we}),qe(Qt,null)}function zn(Y,mt){o("handleChangeText");var Rt=ft,Ft=c,qt=l,Qt={json:c,text:l},we=ze;try{n(11,c=_(Y)),n(17,ft=Jo(c,ft,[],ta)),n(16,l=void 0),n(24,ze=!1),Ct=void 0}catch(Se){try{n(11,c=_(ra(Y))),n(17,ft=Jo(c,ft,[],ta)),n(16,l=Y),n(24,ze=!0),Ct=void 0}catch{n(11,c=void 0),n(17,ft=qh({json:c,expand:ta})),n(16,l=Y),n(24,ze=!1),Ct=l!==""?mc(l,Se.message||String(Se)):void 0}}if(typeof mt=="function"){var $e=mt(c,ft);n(11,c=$e&&$e.json?$e.json:c),n(17,ft=$e&&$e.state?$e.state:ft)}On(c),Gn({previousJson:Ft,previousState:Rt,previousText:qt,previousTextIsRepaired:we}),qe(Qt,null)}function Mn(Y,mt){var Rt=arguments.length>2&&arguments[2]!==void 0&&arguments[2];o("expand",{path:Y,expanded:mt,recursive:Rt}),n(17,ft=mt?Rt?Jo(c,ft,Y,Ol):function(Ft,qt){return vt(vt({},Ft),{},{expandedMap:vt(vt({},Ft.expandedMap),{},po({},Zt(qt),!0))})}(ft,Y):h4(ft,Y)),ft.selection&&!mt&&function(Ft,qt){return js(he(Ft),qt)&&(he(Ft).length>qt.length||Mr(Ft))}(ft.selection,Y)&&Mt(null),setTimeout(function(){Lh(u)||Ln()})}function kr(Y){o("openFind",{findAndReplace:Y}),n(20,ae=!1),n(21,H=!1),ar().then(function(){n(20,ae=!0),n(21,H=Y)})}function Mo(Y,mt){o("handleExpandSection",Y,mt);var Rt=Zt(Y);n(17,ft=function(Ft,qt,Qt,we){return vt(vt({},qt),{},{visibleSectionsMap:vt(vt({},qt.visibleSectionsMap),{},po({},Qt,RA(Kv(qt,Qt).concat(we))))})}(0,ft,Rt,mt))}function Vi(Y){o("pasted json as text",Y),n(19,bt=Y)}function Fo(Y){var mt=Y.anchor,Rt=Y.left,Ft=Y.top,qt=Y.width,Qt=Y.height,we=Y.offsetTop,$e=Y.offsetLeft,Se=Y.showTip;xt=!0;var Jn=p(wQ,{json:c,documentState:ft,parser:A,showTip:Se,onEditKey:wt,onEditValue:te,onToggleEnforceString:Te,onCut:Ke,onCopy:Kt,onPaste:et,onRemove:ot,onDuplicate:Et,onExtract:Yt,onInsertBefore:fn,onInsert:Ue,onConvert:Ie,onInsertAfter:jn,onSort:rt,onTransform:Gt,onCloseContextMenu:function(){m(Jn),Ln()}},{left:Rt,top:Ft,offsetTop:we,offsetLeft:$e,width:qt,height:Qt,anchor:mt,closeOnOuterClick:!0,onClose:function(){xt=!1,Ln()}})}function Hi(Y){if(!b&&!li(ft.selection)){if(Y&&(Y.stopPropagation(),Y.preventDefault()),Y&&Y.type==="contextmenu"&&Y.target!==s)Fo({left:Y.clientX,top:Y.clientY,width:Aa,height:Ea,showTip:!1});else{var mt,Rt=(mt=a)===null||mt===void 0?void 0:mt.querySelector(".jse-context-menu-pointer.jse-selected");if(Rt)Fo({anchor:Rt,offsetTop:2,width:Aa,height:Ea,showTip:!1});else{var Ft,qt=(Ft=a)===null||Ft===void 0?void 0:Ft.getBoundingClientRect();qt&&Fo({top:qt.top+2,left:qt.left+2,width:Aa,height:Ea,showTip:!1})}}return!1}}function Vo(){return(Vo=_e(Lt().mark(function Y(){var mt,Rt,Ft;return Lt().wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:if(o("apply pasted json",bt),bt){qt.next=3;break}return qt.abrupt("return");case 3:return Rt=(mt=bt).path,Ft=mt.contents,Mt(Fe(Rt,!1)),qt.next=7,ar();case 7:se([{op:"replace",path:Zt(Rt),value:Ft}],function(Qt,we){return{state:rs(Qt,we,Rt)}});case 9:case"end":return qt.stop()}},Y)}))).apply(this,arguments)}function Ln(){o("focus"),s&&(s.focus(),s.select())}function Uf(Y){return function(mt,Rt,Ft){var qt=Qe(Ft),Qt=[Me(Ft)],we=ie(mt,qt),$e=we?tm(we,Rt,Qt):void 0;return $e?Fe(qt.concat($e),!1):Ia(Ft)}(c,ft,Y)}function Kc(Y){r&&r.onDrag(Y)}function Jf(){r&&r.onDragEnd()}return e.$$set=function(Y){"readOnly"in Y&&n(0,b=Y.readOnly),"externalContent"in Y&&n(52,w=Y.externalContent),"externalSelection"in Y&&n(53,x=Y.externalSelection),"mainMenuBar"in Y&&n(1,k=Y.mainMenuBar),"navigationBar"in Y&&n(2,E=Y.navigationBar),"escapeControlCharacters"in Y&&n(54,R=Y.escapeControlCharacters),"escapeUnicodeCharacters"in Y&&n(55,z=Y.escapeUnicodeCharacters),"parser"in Y&&n(3,A=Y.parser),"parseMemoizeOne"in Y&&n(56,_=Y.parseMemoizeOne),"validator"in Y&&n(57,U=Y.validator),"validationParser"in Y&&n(58,J=Y.validationParser),"pathParser"in Y&&n(4,D=Y.pathParser),"indentation"in Y&&n(5,F=Y.indentation),"onError"in Y&&n(6,V=Y.onError),"onChange"in Y&&n(59,C=Y.onChange),"onChangeMode"in Y&&n(60,P=Y.onChangeMode),"onSelect"in Y&&n(61,$=Y.onSelect),"onRenderValue"in Y&&n(62,S=Y.onRenderValue),"onRenderMenu"in Y&&n(7,O=Y.onRenderMenu),"onClassName"in Y&&n(63,I=Y.onClassName),"onFocus"in Y&&n(64,M=Y.onFocus),"onBlur"in Y&&n(65,L=Y.onBlur),"onSortModal"in Y&&n(66,T=Y.onSortModal),"onTransformModal"in Y&&n(67,ut=Y.onTransformModal),"onJSONEditorModal"in Y&&n(68,lt=Y.onJSONEditorModal)},e.$$.update=function(){25165824&e.$$.dirty[1]&&n(76,It=fy({escapeControlCharacters:R,escapeUnicodeCharacters:z})),2097152&e.$$.dirty[1]&&pn(w),4194304&e.$$.dirty[1]&&function(Y){if(!Ye(ft.selection,Y)){if(o("applyExternalSelection",Y),_g(Y))return;Mt(Y)}}(x),2048&e.$$.dirty[0]|32768&e.$$.dirty[2]&&kn(tt,c),2056&e.$$.dirty[0]|201326592&e.$$.dirty[1]&&wn(c,U,A,J),4096&e.$$.dirty[0]&&n(25,Cn=function(Y){var mt={};return Y.forEach(function(Rt){mt[Zt(Rt.path)]=Rt}),Y.forEach(function(Rt){for(var Ft=Rt.path;Ft.length>0;){var qt=Zt(Ft=Qe(Ft));qt in mt||(mt[qt]={isChildError:!0,path:Ft,message:"Contains invalid data",severity:za.warning})}}),mt}(bn)),1024&e.$$.dirty[0]&&(r=a?function(Y){var mt,Rt;function Ft($e){return $e<20?VR:$e<50?HR:WR}function qt(){if(Y){var $e=(mt||0)*(k3/1e3);Y.scrollTop+=$e}}function Qt($e){Rt&&$e===mt||(we(),om("startAutoScroll",$e),mt=$e,Rt=setInterval(qt,k3))}function we(){Rt&&(om("stopAutoScroll"),clearInterval(Rt),Rt=void 0,mt=void 0)}return om("createAutoScrollHandler",Y),{onDrag:function($e){if(Y){var Se=$e.clientY,Jn=Y.getBoundingClientRect(),br=Jn.top,cr=Jn.bottom;Se<br?Qt(-Ft(br-Se)):Se>cr?Qt(Ft(Se-cr)):we()}},onDragEnd:function(){we()}}}(a):void 0),9&e.$$.dirty[0]|16387&e.$$.dirty[2]&&n(13,le={readOnly:b,parser:A,normalization:It,getJson:_n,getDocumentState:Vn,findElement:Oe,findNextInside:Uf,focus:Ln,onPatch:se,onInsert:ce,onExpand:Mn,onSelect:Mt,onFind:kr,onExpandSection:Mo,onPasteJson:Vi,onRenderValue:S,onContextMenu:Fo,onClassName:I||function(){},onDrag:Kc,onDragEnd:Jf}),8192&e.$$.dirty[0]&&o("context changed",le)},[b,k,E,A,D,F,V,O,function(){return ze&&c!==void 0&&nn(c),{json:c,text:l}},Ln,a,c,bn,le,s,u,l,ft,dt,bt,ae,H,Q,yn,ze,Cn,i,yt,function(){return Ht.apply(this,arguments)},function(){return Vt.apply(this,arguments)},function(Y,mt){return Ce.apply(this,arguments)},function(Y,mt){return Re.apply(this,arguments)},function(){n(20,ae=!1),n(21,H=!1),yt(""),Ln()},function(Y){o("select validation error",Y),Mt(Fe(Y.path,!1)),ee(Y.path)},Kt,function(Y){Y.preventDefault(),$7({clipboardText:Y.clipboardData.getData("text/plain"),json:c,selection:ft.selection,readOnly:b,parser:A,onPatch:se,onChangeText:zn,openRepairModal:ct})},ye,an,Hn,function(){cn([])},function(){At({rootPath:[]})},function(){Mn([],!0,!0)},function(){Mn([],!1,!0)},function(Y){var mt=Ds(Y),Rt=Y.shiftKey;if(o("keydown",{combo:mt,key:Y.key}),mt==="Ctrl+X"&&(Y.preventDefault(),Ke(!0)),mt==="Ctrl+Shift+X"&&(Y.preventDefault(),Ke(!1)),mt==="Ctrl+C"&&(Y.preventDefault(),Kt(!0)),mt==="Ctrl+Shift+C"&&(Y.preventDefault(),Kt(!1)),mt==="Ctrl+D"&&(Y.preventDefault(),Et()),mt!=="Delete"&&mt!=="Backspace"||(Y.preventDefault(),ot()),mt==="Insert"&&(Y.preventDefault(),ce("structure")),mt==="Ctrl+A"&&(Y.preventDefault(),Mt(Fe([],!1))),mt==="Ctrl+Q"&&Hi(Y),mt==="ArrowUp"||mt==="Shift+ArrowUp"){Y.preventDefault();var Ft=ft.selection?m4(c,ft,Rt)||ft.selection:Tu(c,ft);Mt(Ft),Le(he(Ft))}if(mt==="ArrowDown"||mt==="Shift+ArrowDown"){Y.preventDefault();var qt=ft.selection?function(Wr,eo){var lo=arguments.length>2&&arguments[2]!==void 0&&arguments[2],jr=eo.selection;if(!jr)return null;var lr=lo?he(jr):vs(Wr,jr),ka=sr(ie(Wr,lr))?h4(eo,lr):eo,Ar=tm(Wr,eo,lr),Ir=tm(Wr,ka,lr);if(lo)return Mr(jr)?Ar!==null?io(Ar,Ar):null:Ro(jr)?Ir!==null?io(Ir,Ir):null:Ir!==null?io(au(jr),Ir):null;if(Ro(jr))return Ir!==null?Fe(Ir,!1):null;if(Mr(jr)||rn(jr))return Ar!==null?Fe(Ar,!1):null;if(Cr(jr)){if(Ar===null||Ar.length===0)return null;var ht=ie(Wr,Qe(Ar));return Array.isArray(ht)?Fe(Ar,!1):oi(Ar,!1)}return An(jr)?Ir!==null?Fe(Ir,!1):Ar!==null?Fe(Ar,!1):null:null}(c,ft,Rt)||ft.selection:Tu(c,ft);Mt(qt),Le(he(qt))}if(mt==="ArrowLeft"||mt==="Shift+ArrowLeft"){Y.preventDefault();var Qt=ft.selection?function(Wr,eo){var lo=arguments.length>2&&arguments[2]!==void 0&&arguments[2],jr=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],lr=eo.selection;if(!lr)return null;var ka=g4(Wr,eo,jr),Ar=ka.caret,Ir=ka.previous;if(lo)return An(lr)?null:io(lr.path,lr.path);if(Ar&&Ir)return Og(Ir);var ht=ie(Wr,Qe(he(lr)));return rn(lr)&&Array.isArray(ht)?io(lr.path,lr.path):An(lr)&&!Array.isArray(ht)?oi(lr.focusPath,!1):null}(c,ft,Rt,!b)||ft.selection:Tu(c,ft);Mt(Qt),Le(he(Qt))}if(mt==="ArrowRight"||mt==="Shift+ArrowRight"){Y.preventDefault();var we=ft.selection&&c!==void 0?function(Wr,eo){var lo=arguments.length>2&&arguments[2]!==void 0&&arguments[2],jr=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],lr=eo.selection;if(!lr)return null;var ka=g4(Wr,eo,jr),Ar=ka.caret,Ir=ka.next;return lo?An(lr)?null:io(lr.path,lr.path):Ar&&Ir?Og(Ir):An(lr)?Fe(lr.focusPath,!1):null}(c,ft,Rt,!b)||ft.selection:Tu(c,ft);Mt(we),Le(he(we))}if(mt==="Enter"&&ft.selection){if(!b&&Gv(ft.selection)){var $e=ft.selection.focusPath,Se=ie(c,Qe($e));Array.isArray(Se)&&Mt(Fe($e,!1))}!b&&Cr(ft.selection)&&(Y.preventDefault(),Mt(vt(vt({},ft.selection),{},{edit:!0}))),rn(ft.selection)&&(Y.preventDefault(),sr(ie(c,ft.selection.path))?Mn(ft.selection.path,!0):b||Mt(vt(vt({},ft.selection),{},{edit:!0})))}if(mt.replace(/^Shift\+/,"").length===1&&ft.selection)return Y.preventDefault(),void ye(Y.key);if(mt==="Enter"&&(Ro(ft.selection)||Mr(ft.selection)))return Y.preventDefault(),void ye("");if(mt==="Ctrl+Enter"&&rn(ft.selection)){var Jn=ie(c,ft.selection.path);Ev(Jn)&&window.open(String(Jn),"_blank")}if(mt==="Escape"&&ft.selection&&(Y.preventDefault(),Mt(null)),mt==="Ctrl+F"&&(Y.preventDefault(),kr(!1)),mt==="Ctrl+H"&&(Y.preventDefault(),kr(!0)),mt==="Ctrl+Z"){Y.preventDefault();var br=document.activeElement;br&&br.blur&&br.select?(br.blur(),setTimeout(function(){an(),setTimeout(function(){return br?.select()})})):an()}if(mt==="Ctrl+Shift+Z"){Y.preventDefault();var cr=document.activeElement;cr&&cr.blur&&cr.select?(cr.blur(),setTimeout(function(){Hn(),setTimeout(function(){return cr?.select()})})):Hn()}},function(Y){o("handleMouseDown",Y),setTimeout(function(){setTimeout(function(){g||dy(Y.target,"BUTTON")||(Ln(),ft.selection||c!==void 0||l!==""&&l!==void 0||(o("createDefaultSelection"),n(17,ft=vt(vt({},ft),{},{selection:Fe([],!1)}))))})})},Hi,function(Y){b||Fo({anchor:EA(Y.target,"BUTTON"),offsetTop:0,width:Aa,height:Ea,showTip:!0})},function(){return Vo.apply(this,arguments)},function(){o("clear pasted json"),n(19,bt=void 0)},function(){P(Gr.text)},function(Y){Mt(Y),Ln(),ee(he(Y))},function(Y){var mt=!Nf(Y.target,function(Rt){return Rt===u});mt&&li(ft.selection)&&(o("click outside the editor, stop edit mode"),Mt(function(Rt){return Cr(Rt)||rn(Rt)?vt(vt({},Rt),{},{edit:!1}):Rt}),g&&s&&(s.focus(),s.blur()),ar().then(function(){setTimeout(function(){s&&s.blur()})}))},w,x,R,z,_,U,J,C,P,$,S,I,M,L,T,ut,lt,function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ol;o("expand");var mt=vt(vt({},ft),{},{expandedMap:{},visibleSectionsMap:{}});n(17,ft=Jo(c,mt,[],Y))},Un,_n,yr,At,ee,Oe,It,tt,function(Y){n(20,ae=Y)},function(Y){Ge[Y?"unshift":"push"](function(){n(14,s=Y)})},function(){Ln(),ye("{")},function(){Ln(),ye("[")},function(){Ln()},function(Y){Ge[Y?"unshift":"push"](function(){n(10,a=Y)})},function(){setTimeout(Ln)},function(Y){Ge[Y?"unshift":"push"](function(){n(15,u=Y)})}]}var My=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,yX,gX,De,{readOnly:0,externalContent:52,externalSelection:53,mainMenuBar:1,navigationBar:2,escapeControlCharacters:54,escapeUnicodeCharacters:55,parser:3,parseMemoizeOne:56,validator:57,validationParser:58,pathParser:4,indentation:5,onError:6,onChange:59,onChangeMode:60,onSelect:61,onRenderValue:62,onRenderMenu:7,onClassName:63,onFocus:64,onBlur:65,onSortModal:66,onTransformModal:67,onJSONEditorModal:68,expand:69,validate:70,getJson:71,patch:72,acceptAutoRepair:8,openTransformModal:73,scrollTo:74,findElement:75,focus:9},lX,[-1,-1,-1,-1,-1]),o}return Z(n,[{key:"expand",get:function(){return this.$$.ctx[69]}},{key:"validate",get:function(){return this.$$.ctx[70]}},{key:"getJson",get:function(){return this.$$.ctx[71]}},{key:"patch",get:function(){return this.$$.ctx[72]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[73]}},{key:"scrollTo",get:function(){return this.$$.ctx[74]}},{key:"findElement",get:function(){return this.$$.ctx[75]}},{key:"focus",get:function(){return this.$$.ctx[9]}}]),n}();function bX(e){Ae(e,"svelte-jizu3t",".jse-modal.svelte-jizu3t.svelte-jizu3t{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-jizu3t .jse-modal-contents.svelte-jizu3t{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-jizu3t .jse-modal-contents .jse-actions.svelte-jizu3t{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-jizu3t .jse-modal-contents .jse-actions button.jse-primary.svelte-jizu3t{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-jizu3t .jse-modal-contents .jse-actions button.jse-primary.svelte-jizu3t:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-jizu3t .jse-modal-contents .jse-actions button.jse-primary.svelte-jizu3t:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:calc(100vh - 6rem);display:flex}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents.svelte-jizu3t{color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents.svelte-jizu3t{flex:1;display:flex;gap:calc(2 * var(--jse-padding));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding)) var(--jse-padding)}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-jizu3t{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-jizu3t p{margin:var(--jse-padding) 0}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-jizu3t p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-jizu3t p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-jizu3t code{background:var(--jse-modal-code-background);font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono)}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-jizu3t{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-jizu3t{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding))}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-jizu3t{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-jizu3t{flex:none}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-jizu3t{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-jizu3t{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-actions.svelte-jizu3t{padding:var(--jse-padding) calc(2 * var(--jse-padding)) calc(2 * var(--jse-padding))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents.svelte-jizu3t{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-jizu3t{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-jizu3t .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-jizu3t .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-jizu3t .jse-label.svelte-jizu3t{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-jizu3t .jse-label .jse-label-inner.svelte-jizu3t{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-transform.svelte-jizu3t .jse-label .jse-label-inner button.svelte-jizu3t{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-jizu3t .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border)}.jse-modal.jse-transform.svelte-jizu3t input.svelte-jizu3t,.jse-modal.jse-transform.svelte-jizu3t textarea.svelte-jizu3t{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-transform.svelte-jizu3t input.svelte-jizu3t:focus,.jse-modal.jse-transform.svelte-jizu3t textarea.svelte-jizu3t:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-transform.svelte-jizu3t input.svelte-jizu3t:read-only,.jse-modal.jse-transform.svelte-jizu3t textarea.svelte-jizu3t:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-transform.svelte-jizu3t .jse-preview.jse-error.svelte-jizu3t{flex:1;background:var(--jse-input-background-readonly);border:var(--jse-input-border);color:var(--jse-error-color);padding:calc(0.5 * var(--jse-padding))}.jse-modal.jse-transform.svelte-jizu3t a{color:var(--jse-a-color)}.jse-modal.jse-transform.svelte-jizu3t a:hover{color:var(--jse-a-color-highlight)}")}function J8(e){var t,n,r,o,i,a=[xX,wX],s=[];function u(c,l){return 16384&l[0]&&(t=null),t==null&&(t=!!Array.isArray(c[14])),t?0:1}return n=u(e,[-1,-1]),r=s[n]=a[n](e),{c:function(){r.c(),o=vn()},m:function(c,l){s[n].m(c,l),at(c,o,l),i=!0},p:function(c,l){var f=n;(n=u(c,l))===f?s[n].p(c,l):(Dt(),q(s[f],1,1,function(){s[f]=null}),zt(),(r=s[n])?r.p(c,l):(r=s[n]=a[n](c)).c(),N(r,1),r.m(o.parentNode,o))},i:function(c){i||(N(r),i=!0)},o:function(c){q(r),i=!1},d:function(c){c&&it(o),s[n].d(c)}}}function wX(e){var t;return{c:function(){t=Ut("(Only available for arrays, not for objects)")},m:function(n,r){at(n,t,r)},p:Bt,i:Bt,o:Bt,d:function(n){n&&it(t)}}}function xX(e){var t,n;return t=new HK({props:{queryOptions:e[12],json:e[14],onChange:e[22]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};4096&o[0]&&(i.queryOptions=r[12]),16384&o[0]&&(i.json=r[14]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function K8(e){var t,n;return t=new My({props:{externalContent:e[19],externalSelection:null,readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:e[2],escapeControlCharacters:e[3],escapeUnicodeCharacters:e[4],parser:e[5],parseMemoizeOne:e[6],onRenderValue:e[10],onRenderMenu:qn,onError:console.error,onChange:qn,onChangeMode:qn,onSelect:qn,onFocus:qn,onBlur:qn,onSortModal:qn,onTransformModal:qn,onJSONEditorModal:qn,onClassName:e[11],validator:null,validationParser:e[7],pathParser:e[8]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};524288&o[0]&&(i.externalContent=r[19]),4&o[0]&&(i.indentation=r[2]),8&o[0]&&(i.escapeControlCharacters=r[3]),16&o[0]&&(i.escapeUnicodeCharacters=r[4]),32&o[0]&&(i.parser=r[5]),64&o[0]&&(i.parseMemoizeOne=r[6]),1024&o[0]&&(i.onRenderValue=r[10]),2048&o[0]&&(i.onClassName=r[11]),128&o[0]&&(i.validationParser=r[7]),256&o[0]&&(i.pathParser=r[8]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function kX(e){var t,n;return{c:function(){t=G("div"),n=Ut(e[17]),j(t,"class","jse-preview jse-error svelte-jizu3t")},m:function(r,o){at(r,t,o),B(t,n)},p:function(r,o){131072&o[0]&&me(n,r[17])},i:Bt,o:Bt,d:function(r){r&&it(t)}}}function jX(e){var t,n;return t=new My({props:{externalContent:e[18],externalSelection:null,readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:e[2],escapeControlCharacters:e[3],escapeUnicodeCharacters:e[4],parser:e[5],parseMemoizeOne:e[6],onRenderValue:e[10],onRenderMenu:qn,onError:console.error,onChange:qn,onChangeMode:qn,onSelect:qn,onFocus:qn,onBlur:qn,onSortModal:qn,onTransformModal:qn,onJSONEditorModal:qn,onClassName:e[11],validator:null,validationParser:e[7],pathParser:e[8]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};262144&o[0]&&(i.externalContent=r[18]),4&o[0]&&(i.indentation=r[2]),8&o[0]&&(i.escapeControlCharacters=r[3]),16&o[0]&&(i.escapeUnicodeCharacters=r[4]),32&o[0]&&(i.parser=r[5]),64&o[0]&&(i.parseMemoizeOne=r[6]),1024&o[0]&&(i.onRenderValue=r[10]),2048&o[0]&&(i.onClassName=r[11]),128&o[0]&&(i.validationParser=r[7]),256&o[0]&&(i.pathParser=r[8]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function $X(e){var t,n,r,o,i,a,s,u,c,l,f,d,h,v,p,m,g,y,b,w,x,k,E,R,z,A,_,U,J,D,F,V,C,P,$,S,O,I,M,L,T,ut,lt,xt,Ct,Mt,dt,It=e[21](e[0]).description+"";t=new tG({props:{queryLanguages:e[9],queryLanguageId:e[0],onChangeQueryLanguage:e[27]}}),y=new on({props:{data:e[15]?Qo:ss}});var bt=e[15]&&J8(e);F=new on({props:{data:e[16]?Qo:ss}});var Tt=e[16]&&K8(e),ft=[jX,kX],ae=[];function H(Q,tt){return Q[17]?1:0}return I=H(e),M=ae[I]=ft[I](e),{c:function(){$t(t.$$.fragment),n=pt(),r=G("div"),o=G("div"),i=G("div"),(a=G("div")).innerHTML='<div class="jse-label-inner svelte-jizu3t">Language</div>',s=pt(),u=G("div"),c=pt(),(l=G("div")).innerHTML='<div class="jse-label-inner svelte-jizu3t">Path</div>',f=pt(),d=G("input"),v=pt(),p=G("div"),m=G("div"),g=G("button"),$t(y.$$.fragment),b=Ut(`
100
100
  Wizard`),w=pt(),bt&&bt.c(),x=pt(),(k=G("div")).innerHTML='<div class="jse-label-inner svelte-jizu3t">Query</div>',E=pt(),R=G("textarea"),z=pt(),A=G("div"),_=G("div"),U=G("div"),J=G("div"),D=G("button"),$t(F.$$.fragment),V=Ut(`
101
101
  Original`),C=pt(),Tt&&Tt.c(),P=pt(),$=G("div"),(S=G("div")).innerHTML='<div class="jse-label-inner svelte-jizu3t">Preview</div>',O=pt(),M.c(),L=pt(),T=G("div"),ut=G("button"),lt=Ut("Transform"),j(a,"class","jse-label svelte-jizu3t"),j(u,"class","jse-description svelte-jizu3t"),j(l,"class","jse-label svelte-jizu3t"),j(d,"class","jse-path svelte-jizu3t"),j(d,"type","text"),d.readOnly=!0,j(d,"title","Selected path"),d.value=h=Ze(e[1])?"(whole document)":_o(e[1]),j(g,"type","button"),j(g,"class","svelte-jizu3t"),j(m,"class","jse-label-inner svelte-jizu3t"),j(p,"class","jse-label svelte-jizu3t"),j(k,"class","jse-label svelte-jizu3t"),j(R,"class","jse-query svelte-jizu3t"),j(R,"spellcheck","false"),R.value=e[13],j(i,"class","jse-query-contents svelte-jizu3t"),j(D,"type","button"),j(D,"class","svelte-jizu3t"),j(J,"class","jse-label-inner svelte-jizu3t"),j(U,"class","jse-label svelte-jizu3t"),j(_,"class","jse-original-data svelte-jizu3t"),Pt(_,"jse-hide",!e[16]),j(S,"class","jse-label svelte-jizu3t"),j($,"class","jse-preview-data svelte-jizu3t"),j(A,"class","jse-data-contents svelte-jizu3t"),Pt(A,"jse-hide-original-data",!e[16]),j(o,"class","jse-main-contents svelte-jizu3t"),j(ut,"type","button"),j(ut,"class","jse-primary svelte-jizu3t"),ut.disabled=xt=!!e[17],j(T,"class","jse-actions svelte-jizu3t"),j(r,"class","jse-modal-contents svelte-jizu3t")},m:function(Q,tt){kt(t,Q,tt),at(Q,n,tt),at(Q,r,tt),B(r,o),B(o,i),B(i,a),B(i,s),B(i,u),u.innerHTML=It,B(i,c),B(i,l),B(i,f),B(i,d),B(i,v),B(i,p),B(p,m),B(m,g),kt(y,g,null),B(g,b),B(i,w),bt&&bt.m(i,null),B(i,x),B(i,k),B(i,E),B(i,R),B(o,z),B(o,A),B(A,_),B(_,U),B(U,J),B(J,D),kt(F,D,null),B(D,V),B(_,C),Tt&&Tt.m(_,null),B(A,P),B(A,$),B($,S),B($,O),ae[I].m($,null),B(r,L),B(r,T),B(T,ut),B(ut,lt),Ct=!0,Mt||(dt=[Nt(g,"click",e[25]),Nt(R,"input",e[23]),Nt(D,"click",e[26]),Nt(ut,"click",e[24]),Fr(CX.call(null,ut))],Mt=!0)},p:function(Q,tt){var yt={};512&tt[0]&&(yt.queryLanguages=Q[9]),1&tt[0]&&(yt.queryLanguageId=Q[0]),t.$set(yt),(!Ct||1&tt[0])&&It!==(It=Q[21](Q[0]).description+"")&&(u.innerHTML=It),(!Ct||2&tt[0]&&h!==(h=Ze(Q[1])?"(whole document)":_o(Q[1]))&&d.value!==h)&&(d.value=h);var St={};32768&tt[0]&&(St.data=Q[15]?Qo:ss),y.$set(St),Q[15]?bt?(bt.p(Q,tt),32768&tt[0]&&N(bt,1)):((bt=J8(Q)).c(),N(bt,1),bt.m(i,x)):bt&&(Dt(),q(bt,1,1,function(){bt=null}),zt()),(!Ct||8192&tt[0])&&(R.value=Q[13]);var Ht={};65536&tt[0]&&(Ht.data=Q[16]?Qo:ss),F.$set(Ht),Q[16]?Tt?(Tt.p(Q,tt),65536&tt[0]&&N(Tt,1)):((Tt=K8(Q)).c(),N(Tt,1),Tt.m(_,null)):Tt&&(Dt(),q(Tt,1,1,function(){Tt=null}),zt()),(!Ct||65536&tt[0])&&Pt(_,"jse-hide",!Q[16]);var Vt=I;(I=H(Q))===Vt?ae[I].p(Q,tt):(Dt(),q(ae[Vt],1,1,function(){ae[Vt]=null}),zt(),(M=ae[I])?M.p(Q,tt):(M=ae[I]=ft[I](Q)).c(),N(M,1),M.m($,null)),(!Ct||65536&tt[0])&&Pt(A,"jse-hide-original-data",!Q[16]),(!Ct||131072&tt[0]&&xt!==(xt=!!Q[17]))&&(ut.disabled=xt)},i:function(Q){Ct||(N(t.$$.fragment,Q),N(y.$$.fragment,Q),N(bt),N(F.$$.fragment,Q),N(Tt),N(M),Ct=!0)},o:function(Q){q(t.$$.fragment,Q),q(y.$$.fragment,Q),q(bt),q(F.$$.fragment,Q),q(Tt),q(M),Ct=!1},d:function(Q){Q&&(it(n),it(r)),jt(t,Q),jt(y),bt&&bt.d(),jt(F),Tt&&Tt.d(),ae[I].d(),Mt=!1,Tn(dt)}}}function SX(e){var t,n,r,o,i;return n=new PA({props:{$$slots:{default:[$X]},$$scope:{ctx:e}}}),{c:function(){t=G("div"),$t(n.$$.fragment),j(t,"class","jse-modal jse-transform svelte-jizu3t")},m:function(a,s){at(a,t,s),kt(n,t,null),r=!0,o||(i=Fr(ip.call(null,t,e[20])),o=!0)},p:function(a,s){var u={};1048575&s[0]|256&s[1]&&(u.$$scope={dirty:s,ctx:a}),n.$set(u)},i:function(a){r||(N(n.$$.fragment,a),r=!0)},o:function(a){q(n.$$.fragment,a),r=!1},d:function(a){a&&it(t),jt(n),o=!1,i()}}}function CX(e){e.focus()}function _X(e,t,n){var r,o,i=Hr("jsoneditor:TransformModal"),a=t.id,s=a===void 0?"transform-modal-"+jl():a,u=t.json,c=t.rootPath,l=c===void 0?[]:c,f=t.indentation,d=t.escapeControlCharacters,h=t.escapeUnicodeCharacters,v=t.parser,p=t.parseMemoizeOne,m=t.validationParser,g=t.pathParser,y=t.queryLanguages,b=t.queryLanguageId,w=t.onChangeQueryLanguage,x=t.onRenderValue,k=t.onClassName,E=t.onTransform,R=Vr("simple-modal").close,z="".concat(s,":").concat(Zt(l)),A=pi[z]||{},_=pi.showWizard!==!1,U=pi.showOriginal!==!1,J=A.queryOptions||{},D=b===A.queryLanguageId&&A.query?A.query:P(b).createQuery(u,A.queryOptions||{}),F=A.isManual||!1,V=void 0,C={text:""};function P(S){return y.find(function(O){return O.id===S})||y[0]}var $=Of(function(S,O){try{i("previewTransform",{query:O});var I=P(b).executeQuery(S,O,v);n(18,C={json:I}),n(17,V=void 0)}catch(M){n(18,C={text:""}),n(17,V=String(M))}},300);return e.$$set=function(S){"id"in S&&n(28,s=S.id),"json"in S&&n(29,u=S.json),"rootPath"in S&&n(1,l=S.rootPath),"indentation"in S&&n(2,f=S.indentation),"escapeControlCharacters"in S&&n(3,d=S.escapeControlCharacters),"escapeUnicodeCharacters"in S&&n(4,h=S.escapeUnicodeCharacters),"parser"in S&&n(5,v=S.parser),"parseMemoizeOne"in S&&n(6,p=S.parseMemoizeOne),"validationParser"in S&&n(7,m=S.validationParser),"pathParser"in S&&n(8,g=S.pathParser),"queryLanguages"in S&&n(9,y=S.queryLanguages),"queryLanguageId"in S&&n(0,b=S.queryLanguageId),"onChangeQueryLanguage"in S&&n(30,w=S.onChangeQueryLanguage),"onRenderValue"in S&&n(10,x=S.onRenderValue),"onClassName"in S&&n(11,k=S.onClassName),"onTransform"in S&&n(31,E=S.onTransform)},e.$$.update=function(){536870914&e.$$.dirty[0]&&n(14,r=ie(u,l)),16384&e.$$.dirty[0]&&n(19,o={json:r}),24576&e.$$.dirty[0]&&$(r,D),12289&e.$$.dirty[0]|6&e.$$.dirty[1]&&(n(32,pi[z]={queryOptions:J,query:D,queryLanguageId:b,isManual:F},pi),i("store state in memory",z,pi[z]))},[b,l,f,d,h,v,p,m,g,y,x,k,J,D,r,_,U,V,C,o,R,P,function(S){n(12,J=S),n(13,D=P(b).createQuery(u,S)),n(33,F=!1),i("updateQueryByWizard",{queryOptions:J,query:D,isManual:F})},function(S){n(13,D=S.target.value),n(33,F=!0),i("handleChangeQuery",{query:D,isManual:F})},function(){try{i("handleTransform",{query:D});var S=P(b).executeQuery(r,D,v);E([{op:"replace",path:Zt(l),value:S}]),R()}catch(O){console.error(O),n(18,C={text:""}),n(17,V=String(O))}},function(){n(15,_=!_),n(32,pi.showWizard=_,pi)},function(){n(16,U=!U),n(32,pi.showOriginal=U,pi)},function(S){i("handleChangeQueryLanguage",S),n(0,b=S),w(S);var O=P(b);n(13,D=O.createQuery(u,J)),n(33,F=!1)},s,u,w,E,pi,F]}var OX=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,_X,SX,De,{id:28,json:29,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:30,onRenderValue:10,onClassName:11,onTransform:31},bX,[-1,-1]),o}return Z(n)}(),Ya={};function MX(e){Ae(e,"svelte-kctj9r",".jse-modal.svelte-kctj9r.svelte-kctj9r{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-kctj9r .jse-modal-contents.svelte-kctj9r{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-kctj9r .jse-modal-contents .jse-actions.svelte-kctj9r{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-kctj9r .jse-modal-contents .jse-actions button.jse-primary.svelte-kctj9r{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-kctj9r .jse-modal-contents .jse-actions button.jse-primary.svelte-kctj9r:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-kctj9r .jse-modal-contents .jse-actions button.jse-primary.svelte-kctj9r:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:calc(100vh - 6rem);display:flex}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0}.jse-modal.jse-sort.svelte-kctj9r table.svelte-kctj9r{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-kctj9r table th.svelte-kctj9r,.jse-modal.jse-sort.svelte-kctj9r table td.svelte-kctj9r{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding)}.jse-modal.jse-sort.svelte-kctj9r table th input.jse-path.svelte-kctj9r,.jse-modal.jse-sort.svelte-kctj9r table td input.jse-path.svelte-kctj9r{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-kctj9r table th input.jse-path.svelte-kctj9r:read-only,.jse-modal.jse-sort.svelte-kctj9r table td input.jse-path.svelte-kctj9r:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-sort.svelte-kctj9r table th.svelte-kctj9r .svelte-select input,.jse-modal.jse-sort.svelte-kctj9r table td.svelte-kctj9r .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-kctj9r .jse-space.svelte-kctj9r{height:200px}.jse-modal.jse-sort.svelte-kctj9r .jse-space .jse-error.svelte-kctj9r{color:var(--jse-error-color)}")}function G8(e){var t,n,r,o,i,a,s;function u(l){e[14](l)}var c={showChevron:!0,items:e[3]};return e[1]!==void 0&&(c.value=e[1]),i=new Gs({props:c}),Ge.push(function(){return $i(i,"value",u)}),{c:function(){t=G("tr"),(n=G("th")).textContent="Property",r=pt(),o=G("td"),$t(i.$$.fragment),j(n,"class","svelte-kctj9r"),j(o,"class","svelte-kctj9r")},m:function(l,f){at(l,t,f),B(t,n),B(t,r),B(t,o),kt(i,o,null),s=!0},p:function(l,f){var d={};8&f&&(d.items=l[3]),!a&&2&f&&(a=!0,d.value=l[1],ji(function(){return a=!1})),i.$set(d)},i:function(l){s||(N(i.$$.fragment,l),s=!0)},o:function(l){q(i.$$.fragment,l),s=!1},d:function(l){l&&it(t),jt(i)}}}function Q8(e){var t,n;return{c:function(){t=G("div"),n=Ut(e[5]),j(t,"class","jse-error svelte-kctj9r")},m:function(r,o){at(r,t,o),B(t,n)},p:function(r,o){32&o&&me(n,r[5])},d:function(r){r&&it(t)}}}function EX(e){var t,n,r,o,i,a,s,u,c,l,f,d,h,v,p,m,g,y,b,w,x,k,E,R,z,A,_,U,J,D,F,V;n=new jy({props:{title:e[4]?"Sort array items":"Sort object keys"}});var C=e[4]&&(e[3].length>1||e[1]===void 0)&&G8(e);function P(O){e[15](O)}var $={showChevron:!0,clearable:!1,items:e[7]};e[2]!==void 0&&($.value=e[2]),x=new Gs({props:$}),Ge.push(function(){return $i(x,"value",P)});var S=e[5]&&Q8(e);return{c:function(){t=G("div"),$t(n.$$.fragment),r=pt(),o=G("div"),i=G("table"),(a=G("colgroup")).innerHTML='<col width="25%"/> <col width="75%"/>',s=pt(),u=G("tbody"),c=G("tr"),(l=G("th")).textContent="Path",f=pt(),d=G("td"),h=G("input"),p=pt(),C&&C.c(),m=pt(),g=G("tr"),(y=G("th")).textContent="Direction",b=pt(),w=G("td"),$t(x.$$.fragment),E=pt(),R=G("div"),S&&S.c(),z=pt(),A=G("div"),_=G("button"),U=Ut("Sort"),j(l,"class","svelte-kctj9r"),j(h,"class","jse-path svelte-kctj9r"),j(h,"type","text"),h.readOnly=!0,j(h,"title","Selected path"),h.value=v=Ze(e[0])?"(whole document)":_o(e[0]),j(d,"class","svelte-kctj9r"),j(y,"class","svelte-kctj9r"),j(w,"class","svelte-kctj9r"),j(i,"class","svelte-kctj9r"),j(R,"class","jse-space svelte-kctj9r"),j(_,"type","button"),j(_,"class","jse-primary svelte-kctj9r"),_.disabled=J=!!e[4]&&!e[1],j(A,"class","jse-actions svelte-kctj9r"),j(o,"class","jse-modal-contents svelte-kctj9r"),j(t,"class","jse-modal jse-sort svelte-kctj9r")},m:function(O,I){at(O,t,I),kt(n,t,null),B(t,r),B(t,o),B(o,i),B(i,a),B(i,s),B(i,u),B(u,c),B(c,l),B(c,f),B(c,d),B(d,h),B(u,p),C&&C.m(u,null),B(u,m),B(u,g),B(g,y),B(g,b),B(g,w),kt(x,w,null),B(o,E),B(o,R),S&&S.m(R,null),B(o,z),B(o,A),B(A,_),B(_,U),D=!0,F||(V=[Nt(_,"click",e[8]),Fr(AX.call(null,_)),Fr(ip.call(null,t,e[6]))],F=!0)},p:function(O,I){var M=ke(I,1)[0],L={};16&M&&(L.title=O[4]?"Sort array items":"Sort object keys"),n.$set(L),(!D||1&M&&v!==(v=Ze(O[0])?"(whole document)":_o(O[0]))&&h.value!==v)&&(h.value=v),O[4]&&(O[3].length>1||O[1]===void 0)?C?(C.p(O,M),26&M&&N(C,1)):((C=G8(O)).c(),N(C,1),C.m(u,m)):C&&(Dt(),q(C,1,1,function(){C=null}),zt());var T={};!k&&4&M&&(k=!0,T.value=O[2],ji(function(){return k=!1})),x.$set(T),O[5]?S?S.p(O,M):((S=Q8(O)).c(),S.m(R,null)):S&&(S.d(1),S=null),(!D||18&M&&J!==(J=!!O[4]&&!O[1]))&&(_.disabled=J)},i:function(O){D||(N(n.$$.fragment,O),N(C),N(x.$$.fragment,O),D=!0)},o:function(O){q(n.$$.fragment,O),q(C),q(x.$$.fragment,O),D=!1},d:function(O){O&&it(t),jt(n),C&&C.d(),jt(x),S&&S.d(),F=!1,Tn(V)}}}function AX(e){e.focus()}function PX(e,t,n){var r,o,i,a=Hr("jsoneditor:SortModal"),s=t.id,u=t.json,c=t.rootPath,l=t.onSort,f=Vr("simple-modal").close,d="".concat(s,":").concat(Zt(c)),h=ie(u,c),v={value:1,label:"ascending"},p=[v,{value:-1,label:"descending"}],m=Ya[d]&&Ya[d].selectedProperty||void 0,g=Ya[d]&&Ya[d].selectedDirection||v,y=void 0;return e.$$set=function(b){"id"in b&&n(9,s=b.id),"json"in b&&n(10,u=b.json),"rootPath"in b&&n(0,c=b.rootPath),"onSort"in b&&n(11,l=b.onSort)},e.$$.update=function(){16&e.$$.dirty&&n(13,o=r&&h!==void 0?jg(h):void 0),8192&e.$$.dirty&&n(3,i=o?o.map(vl):void 0),10&e.$$.dirty&&m===void 0&&i&&i.length===1&&n(1,m=i[0]),4102&e.$$.dirty&&(n(12,Ya[d]={selectedProperty:m,selectedDirection:g},Ya),a("store state in memory",d,Ya[d]))},n(4,r=Array.isArray(h)),[c,m,g,i,r,y,f,p,function(){try{var b,w;n(5,y=void 0);var x=(b=m)===null||b===void 0?void 0:b.value,k=(w=g)===null||w===void 0?void 0:w.value,E=y7(u,c,x,k);l({operations:E,rootPath:c,itemPath:x,direction:k}),f()}catch(R){n(5,y=R.toString())}},s,u,l,Ya,o,function(b){n(1,m=b),n(3,i),n(13,o),n(4,r)},function(b){n(2,g=b)}]}var TX=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,PX,EX,De,{id:9,json:10,rootPath:0,onSort:11},MX),o}return Z(n)}();function xi(){}function fd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;if(e<.9*t)return e.toFixed()+" B";var n=e/t;if(n<.9*t)return n.toFixed(1)+" KB";var r=n/t;if(r<.9*t)return r.toFixed(1)+" MB";var o=r/t;return o<.9*t?o.toFixed(1)+" GB":(o/t).toFixed(1)+" TB"}function RX(e){var t,n;return t=new op({props:{items:e[0]}}),{c:function(){$t(t.$$.fragment)},m:function(r,o){kt(t,r,o),n=!0},p:function(r,o){var i={};1&ke(o,1)[0]&&(i.items=r[0]),t.$set(i)},i:function(r){n||(N(t.$$.fragment,r),n=!0)},o:function(r){q(t.$$.fragment,r),n=!1},d:function(r){jt(t,r)}}}function NX(e,t,n){var r,o,i=t.readOnly,a=i!==void 0&&i,s=t.onFormat,u=t.onCompact,c=t.onSort,l=t.onTransform,f=t.onToggleSearch,d=t.onUndo,h=t.onRedo,v=t.canUndo,p=t.canRedo,m=t.canFormat,g=t.canCompact,y=t.canSort,b=t.canTransform,w=t.onRenderMenu,x={type:"button",icon:by,title:"Search (Ctrl+F)",className:"jse-search",onClick:f};return e.$$set=function(k){"readOnly"in k&&n(1,a=k.readOnly),"onFormat"in k&&n(2,s=k.onFormat),"onCompact"in k&&n(3,u=k.onCompact),"onSort"in k&&n(4,c=k.onSort),"onTransform"in k&&n(5,l=k.onTransform),"onToggleSearch"in k&&n(6,f=k.onToggleSearch),"onUndo"in k&&n(7,d=k.onUndo),"onRedo"in k&&n(8,h=k.onRedo),"canUndo"in k&&n(9,v=k.canUndo),"canRedo"in k&&n(10,p=k.canRedo),"canFormat"in k&&n(11,m=k.canFormat),"canCompact"in k&&n(12,g=k.canCompact),"canSort"in k&&n(13,y=k.canSort),"canTransform"in k&&n(14,b=k.canTransform),"onRenderMenu"in k&&n(15,w=k.onRenderMenu)},e.$$.update=function(){32702&e.$$.dirty&&n(16,o=a?[x,{type:"space"}]:[{type:"button",icon:Dg,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:s,disabled:a||!m},{type:"button",icon:mY,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:u,disabled:a||!g},{type:"separator"},{type:"button",icon:Xv,title:"Sort",className:"jse-sort",onClick:c,disabled:a||!y},{type:"button",icon:Qv,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:l,disabled:a||!b},x,{type:"separator"},{type:"button",icon:yy,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:d,disabled:!v},{type:"button",icon:gy,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:h,disabled:!p},{type:"space"}]),98304&e.$$.dirty&&n(0,r=w(o)||o)},[r,a,s,u,c,l,f,d,h,v,p,m,g,y,b,w,o]}var IX=function(e){_t(n,de);var t=Ot(n);function n(r){var o;return X(this,n),fe(ue(o=t.call(this)),r,NX,RX,De,{readOnly:1,onFormat:2,onCompact:3,onSort:4,onTransform:5,onToggleSearch:6,onUndo:7,onRedo:8,canUndo:9,canRedo:10,canFormat:11,canCompact:12,canSort:13,canTransform:14,onRenderMenu:15}),o}return Z(n)}(),Fn=function(){function e(){X(this,e)}return Z(e,[{key:"lineAt",value:function(t){if(t<0||t>this.length)throw new RangeError("Invalid position ".concat(t," in document of length ").concat(this.length));return this.lineInner(t,!1,1,0)}},{key:"line",value:function(t){if(t<1||t>this.lines)throw new RangeError("Invalid line number ".concat(t," in ").concat(this.lines,"-line document"));return this.lineInner(t,!0,1,0)}},{key:"replace",value:function(t,n,r){var o=[];return this.decompose(0,t,o,2),r.length&&r.decompose(0,r.length,o,3),this.decompose(n,this.length,o,1),uh.from(o,this.length-(n-t)+r.length)}},{key:"append",value:function(t){return this.replace(this.length,this.length,t)}},{key:"slice",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.length,r=[];return this.decompose(t,n,r,0),uh.from(r,n-t)}},{key:"eq",value:function(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;for(var n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),o=new Al(this),i=new Al(t),a=n,s=n;;){if(o.next(a),i.next(a),a=0,o.lineBreak!=i.lineBreak||o.done!=i.done||o.value!=i.value)return!1;if(s+=o.value.length,o.done||s>=r)return!0}}},{key:"iter",value:function(){return new Al(this,arguments.length>0&&arguments[0]!==void 0?arguments[0]:1)}},{key:"iterRange",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.length;return new O7(this,t,n)}},{key:"iterLines",value:function(t,n){var r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);var o=this.line(t).from;r=this.iterRange(o,Math.max(o,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new M7(r)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var t=[];return this.flatten(t),t}}],[{key:"of",value:function(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length!=1||t[0]?t.length<=32?new Oi(t):uh.from(Oi.split(t,[])):e.empty}}]),e}(),Oi=function(e){_t(n,Fn);var t=Ot(n);function n(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(a){var s,u=-1,c=st(a);try{for(c.s();!(s=c.n()).done;)u+=s.value.length+1}catch(l){c.e(l)}finally{c.f()}return u}(r);return X(this,n),(o=t.call(this)).text=r,o.length=i,o}return Z(n,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(r,o,i,a){for(var s=0;;s++){var u=this.text[s],c=a+u.length;if((o?i:c)>=r)return new DX(a,c,i,u);a=c+1,i++}}},{key:"decompose",value:function(r,o,i,a){var s=r<=0&&o>=this.length?this:new n(Y8(this.text,r,o),Math.min(o,this.length)-Math.max(0,r));if(1&a){var u=i.pop(),c=ch(s.text,u.text.slice(),0,s.length);if(c.length<=32)i.push(new n(c,u.length+s.length));else{var l=c.length>>1;i.push(new n(c.slice(0,l)),new n(c.slice(l)))}}else i.push(s)}},{key:"replace",value:function(r,o,i){if(!(i instanceof n))return dn(en(n.prototype),"replace",this).call(this,r,o,i);var a=ch(this.text,ch(i.text,Y8(this.text,0,r)),o),s=this.length+i.length-(o-r);return a.length<=32?new n(a,s):uh.from(n.split(a,[]),s)}},{key:"sliceString",value:function(r){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.length,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`