import{_ as Pt,o as je,c as rt,h as Ze,bB as Ht,e as Zt,f as ft,dY as Ot,$ as kt,a as xe,w as $e,i as it,j as _e,k as Rt,b as gt,bv as ot,cG as wt,F as $t,l as Lt,d as Gt,m as pt,dZ as Dt,cL as Kt,cF as jt,dr as zt,d_ as Xt,y as Yt,z as Jt,cA as Ut,s as Qt,v as qt,x as en,N as tn,B as nn,bE as on,bF as rn}from"./index.ba6d2826.js";import{g as sn}from"./_commonjsHelpers.b273fa3f.js";import{_ as ct}from"./Input.a5e3f92d.js";import{a as an,b as ln,_ as cn}from"./DataTable.106d47ab.js";import{_ as hn}from"./Scrollbar.6eb5866a.js";import"./Suffix.236be5c8.js";import"./Checkbox.4929fce7.js";import"./FocusDetector.f6cb7f9f.js";import"./Select.7ff9cb13.js";import"./Forward.17e154bf.js";var Ft={exports:{}};/*! * jsoneditor.js * * @brief * JSONEditor is a web-based tool to view, edit, format, and validate JSON. * It has various modes such as a tree editor, a code editor, and a plain text * editor. * * Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 8+ * * @license * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. * * Copyright (c) 2011-2023 Jos de Jong, http://jsoneditoronline.org * * @author Jos de Jong, * @version 9.10.3 * @date 2023-09-21 */(function(ze,Qe){(function(De,st){ze.exports=st()})(self,function(){return st={897:function(ae,m,O){O.d(m,{x:function(){return X}});var U=O(2602),S=O(9791),M=O(7907);function K(F){return(K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(F)}function j(F,N){for(var w=0;wc.top&&(C=!1),I?0:h.top-l.top);C?(I=f.offsetHeight,this.dom.menu.style.left="0",this.dom.menu.style.top=s+I+"px",this.dom.menu.style.bottom=""):(this.dom.menu.style.left="0",this.dom.menu.style.top="",this.dom.menu.style.bottom="0px"),this.limitHeight&&(l=C?c.bottom-h.bottom-10:h.top-c.top-10,this.dom.list.style.maxHeight=l+"px",this.dom.list.style.overflowY="auto"),this.dom.absoluteAnchor.appendChild(this.dom.root),this.selection=(0,S.getSelection)(),this.anchor=f,setTimeout(function(){n.dom.focusButton.focus()},0),F.visibleMenu&&F.visibleMenu.hide(),F.visibleMenu=this}},{key:"hide",value:function(){this.dom.absoluteAnchor&&(this.dom.absoluteAnchor.destroy(),delete this.dom.absoluteAnchor),this.dom.root.parentNode&&(this.dom.root.parentNode.removeChild(this.dom.root),this.onClose)&&this.onClose(),F.visibleMenu===this&&(F.visibleMenu=void 0)}},{key:"_onExpandItem",value:function(f){var _,I=this,C=f===this.expandedItem,h=this.expandedItem;h&&(h.ul.style.height="0",h.ul.style.padding="",setTimeout(function(){I.expandedItem!==h&&(h.ul.style.display="",S.removeClassName)(h.ul.parentNode,"jsoneditor-selected")},300),this.expandedItem=void 0),C||((_=f.ul).style.display="block",_.clientHeight,setTimeout(function(){if(I.expandedItem===f){for(var l=0,c=0;c<_.childNodes.length;c++)l+=_.childNodes[c].clientHeight;_.style.height=l+"px",_.style.padding="5px 10px"}},0),(0,S.addClassName)(_.parentNode,"jsoneditor-selected"),this.expandedItem=f)}},{key:"_onKeyDown",value:function(f){var _,I,C,h,l=f.target,c=f.which,n=!1;c===27?(this.selection&&(0,S.setSelection)(this.selection),this.anchor&&this.anchor.focus(),this.hide(),n=!0):c===9?f.shiftKey?(I=(_=this._getVisibleButtons()).indexOf(l))===0&&(_[_.length-1].focus(),n=!0):(I=(_=this._getVisibleButtons()).indexOf(l))===_.length-1&&(_[0].focus(),n=!0):c===37?(l.className==="jsoneditor-expand"&&(I=(_=this._getVisibleButtons()).indexOf(l),C=_[I-1])&&C.focus(),n=!0):c===38?(I=(_=this._getVisibleButtons()).indexOf(l),(C=(C=(C=_[I-1])&&C.className==="jsoneditor-expand"?_[I-2]:C)||_[_.length-1])&&C.focus(),n=!0):c===39?(I=(_=this._getVisibleButtons()).indexOf(l),(h=_[I+1])&&h.className==="jsoneditor-expand"&&h.focus(),n=!0):c===40&&(I=(_=this._getVisibleButtons()).indexOf(l),(h=(h=(h=_[I+1])&&h.className==="jsoneditor-expand"?_[I+2]:h)||_[0])&&(h.focus(),n=!0),n=!0),n&&(f.stopPropagation(),f.preventDefault())}}])&&j(N.prototype,w),Object.defineProperty(N,"prototype",{writable:!1}),F}();X.visibleMenu=void 0},6436:function(ae,m,O){function U(K){return(U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j})(K)}function S(K,j){for(var X=0;X/gi,` `))),c.appendChild(n),l.appendChild(c)),l.onclick=function(){_.onFocusLine(h)},w.appendChild(l)}),this.dom.validationErrors=I,this.dom.validationErrorsContainer.appendChild(I),this.dom.additionalErrorsIndication.title=F.length+" errors total",this.dom.validationErrorsContainer.clientHeightU[0].length)||(U=S,M=X,this.options.flex));X++);return U?((K=U[0].match(/\n.*/g))&&(this.yylineno+=K.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:K?K[K.length-1].length-1:this.yylloc.last_column+U[0].length},this.yytext+=U[0],this.match+=U[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(U[0].length),this.matched+=U[0],K=this.performAction.call(this,this.yy,this,j[M],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),K||void 0):this._input===""?this.EOF:void this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var U=this.next();return U!==void 0?U:this.lex()},begin:function(U){this.conditionStack.push(U)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(U){this.begin(U)},options:{},performAction:function(U,S,M,K){switch(M){case 0:break;case 1:return 6;case 2:return S.yytext=S.yytext.substr(1,S.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};var O;m.parser=O,m.parse=O.parse.bind(O)},3879:function(ae){function m(){}m.prototype={on:function(N,w){this._events=this._events||{},this._events[N]=this._events[N]||[],this._events[N].push(w)},off:function(N,w){this._events=this._events||{},N in this._events&&this._events[N].splice(this._events[N].indexOf(w),1)},emit:function(N){if(this._events=this._events||{},N in this._events)for(var w=0;w"+a.label+""}),O.each(a.children,function(e,t){t.idx=s,n.appendChild(K.call(this,t,n)),s++},this)):(a.idx=s,K.call(this,a),s++)},this),this.config.data&&Array.isArray(this.config.data)&&(h=!(this.data=[]),n=!1,s=0,O.each(this.config.data,function(o,a){U(a,"children")?(h=O.createElement("optgroup",{label:a.text}),n=O.createElement("ul",{class:"selectr-optgroup",role:"group",html:"
  • "+a.text+"
  • "}),O.each(a.children,function(e,t){(l=new Option(t.text,t.value,!1,t.hasOwnProperty("selected")&&t.selected===!0)).disabled=U(t,"disabled"),this.options.push(l),h.appendChild(l),l.idx=s,n.appendChild(K.call(this,l,t)),this.data[s]=t,s++},this),this.el.appendChild(h)):((l=new Option(a.text,a.value,!1,a.hasOwnProperty("selected")&&a.selected===!0)).disabled=U(a,"disabled"),this.options.push(l),l.idx=s,K.call(this,l,a),this.data[s]=a,s++)},this)),this.setSelected(!0);for(var i=this.navIndex=0;ithis.tree.lastElementChild.idx){this.navIndex=this.tree.lastElementChild.idx;break}if(this.navIndexthis.optsRect.top+this.optsRect.height&&(this.tree.scrollTop=this.tree.scrollTop+(f.top+f.height-(this.optsRect.top+this.optsRect.height))),this.navIndex===this.tree.childElementCount-1&&this.requiresPagination&&j.call(this)):this.navIndex===0?this.tree.scrollTop=0:f.top-this.optsRect.top<0&&(this.tree.scrollTop=this.tree.scrollTop+(f.top-this.optsRect.top)),I&&O.removeClass(I,"active"),O.addClass(this.items[this.navIndex],"active")}else this.navigating=!1}.bind(this),this.events.reset=this.reset.bind(this),(this.config.nativeDropdown||this.mobileDevice)&&(this.container.addEventListener("touchstart",function(f){f.changedTouches[0].target===w.el&&w.toggle()},!!this.supportsEventPassiveOption&&{passive:!0}),this.container.addEventListener("click",function(f){f.target===w.el&&w.toggle()}),this.el.addEventListener("change",function(f){f.__selfTriggered||(w.el.multiple?(f=w.getSelectedProperties("idx"),f=function(_,I){for(var C,h=[],l=_.slice(0),c=0;cf?(O.addClass(this.container,"inverted"),this.isInverted=!0):(O.removeClass(this.container,"inverted"),this.isInverted=!1),this.optsRect=O.rect(this.tree)},F.prototype.getOptionByIndex=function(N){return this.options[N]},F.prototype.getOptionByValue=function(N){for(var w=!1,f=0,_=this.options.length;f<_;f++)if(this.options[f].value.trim()===N.toString().trim()){w=this.options[f];break}return w},ae.exports=F},4188:function(ae,m,O){O.d(m,{EX:function(){return S},WF:function(){return M},oW:function(){return K},qD:function(){return U}});var U=document.body,S=10485760,M=2e4,K=2147483648},2602:function(ae,m,O){O.d(m,{w:function(){return S}});var U=O(9791);function S(M,K,j){var X,F=3this.limit&&1S.EX?((0,C.addClassName)((i=this).frame,"busy"),i.dom.busyContent.innerText=s,setTimeout(function(){n(),(0,C.removeClassName)(i.frame,"busy"),i.dom.busyContent.innerText=""},100)):n()},l.validate=h.validate,l._renderErrors=h._renderErrors,[{mode:"preview",mixin:l,data:"json"}])},6210:function(ae,U,O){O.r(U),O.d(U,{showSortModal:function(){return j}});var U=O(483),S=O.n(U),M=O(7907),K=O(9791);function j(X,C,N,w){var f=Array.isArray(C)?(0,K.getChildPaths)(C):[""],_=w&&w.path&&(0,K.contains)(f,w.path)?w.path:f[0],I=w&&w.direction||"asc",C='
    '+(0,M.Iu)("sort")+"
    "+(0,M.Iu)("sortFieldLabel")+'
    '+(0,M.Iu)("sortDirectionLabel")+'
    ';S()({parent:X,content:C,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-sort"}).afterCreate(function(h){var l=h.modalElem().querySelector("form"),c=h.modalElem().querySelector("#ok"),n=h.modalElem().querySelector("#field"),s=h.modalElem().querySelector("#direction");function i(o){s.value=o,s.className="jsoneditor-button-group jsoneditor-button-group-value-"+s.value}f.forEach(function(o){var a,e=document.createElement("option");e.text=(a=o)===""?"@":a[0]==="."?a.slice(1):a,e.value=o,n.appendChild(e)}),n.value=_||f[0],i(I||"asc"),s.onclick=function(o){i(o.target.getAttribute("data-value"))},c.onclick=function(o){o.preventDefault(),o.stopPropagation(),h.close(),N({path:n.value,direction:s.value})},l&&(l.onsubmit=c.onclick)}).afterClose(function(h){h.destroy()}).show()}},2558:function(ae,S,O){O.r(S),O.d(S,{showTransformModal:function(){return _}});var S=O(483),U=O.n(S),S=O(3879),M=O.n(S),K=O(7907);function j(I){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C})(I)}function X(I,C,h,l){if(typeof I=="boolean"||I instanceof Boolean||I===null||typeof I=="number"||I instanceof Number||typeof I=="string"||I instanceof String||I instanceof Date)return JSON.stringify(I);if(Array.isArray(I)){for(var c=I,n=C,s=h,i=l,o=n?s+n:void 0,a=n?`[ `:"[",e=0;ei)return a+"..."}return a+=n?` `+s+"]":"]"}if(I&&j(I)==="object"){var r,d=I,p=C,s=h,g=l,A=p?s+p:void 0,x=!0,E=p?`{ `:"{";if(typeof d.toJSON=="function")return X(d.toJSON(),p,s,g);for(r in d)if(function(V,u){return Object.prototype.hasOwnProperty.call(V,u)}(d,r)){var W=d[r];if(x?x=!1:E+=p?`, `:",",(E=(E+=p?A+'"'+r+'": ':'"'+r+'":')+X(W,p,A,g)).length>g)return E+"..."}return E+=p?` `+s+"}":"}"}}function F(I,C){for(var h="";0JMESPath query to filter, sort, or transform the JSON data.
    To learn JMESPath, go to the interactive tutorial.';function _(o){var C=o.container,h=o.json,l=o.queryDescription,l=l===void 0?f:l,c=o.createQuery,n=o.executeQuery,s=o.onTransform,i=h,o='