1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[543],{16174:(e,t,n)=>{"use strict";n.d(t,{D:()=>u,ThemeProvider:()=>a});var r=n(95155),i=n(12115);let o=(0,i.createContext)(void 0);function s(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function a(e){let{children:t}=e,[n,a]=(0,i.useState)("system"),[u,l]=(0,i.useState)("light"),c=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{let e=localStorage.getItem("jsonlint-theme")||"system";a(e),l("system"===e?s():e)},[]),(0,i.useEffect)(()=>{let e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{"system"===n&&l(e.matches?"dark":"light")};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[n]),(0,i.useEffect)(()=>{if(!c.current){c.current=!0;return}document.documentElement.classList.remove("light","dark"),document.documentElement.classList.add(u)},[u]),(0,r.jsx)(o.Provider,{value:{theme:n,resolvedTheme:u,setTheme:e=>{a(e),localStorage.setItem("jsonlint-theme",e),l("system"===e?s():e)}},children:t})}function u(){let e=(0,i.useContext)(o);return e||{theme:"system",resolvedTheme:"light",setTheme:()=>{}}}},45688:(e,t,n)=>{"use strict";var r=n(95704);n(86340);var i=n(12115),o=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(i),s=void 0!==r&&r.env&&!0,a=function(e){return"[object String]"===Object.prototype.toString.call(e)},u=function(){function e(e){var t=void 0===e?{}:e,n=t.name,r=void 0===n?"stylesheet":n,i=t.optimizeForSpeed,o=void 0===i?s:i;l(a(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",l("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var u="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=u?u.getAttribute("content"):null}var t,n=e.prototype;return n.setOptimizeForSpeed=function(e){l("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),l(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},n.isOptimizeForSpeed=function(){return this._optimizeForSpeed},n.inject=function(){var e=this;if(l(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},n.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},n.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},n.insertRule=function(e,t){if(l(a(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var n=this.getSheet();"number"!=typeof t&&(t=n.cssRules.length);try{n.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,r))}return this._rulesCount++},n.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var n="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!n.cssRules[e])return e;n.deleteRule(e);try{n.insertRule(t,e)}catch(r){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,e)}
1}else{var r=this._tags[e];l(r,"old rule at index `"+e+"` not found"),r.textContent=t}return e},n.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];l(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},n.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},n.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,n){return n?t=t.concat(Array.prototype.map.call(e.getSheetForTag(n).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},n.makeStyleTag=function(e,t,n){t&&l(a(t),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),t&&r.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return n?i.insertBefore(r,n):i.appendChild(r),r},t=[{key:"length",get:function(){return this._rulesCount}}],function(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,r.key,r)}}(e.prototype,t),e}();function l(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0},d={};function h(e,t){if(!t)return"jsx-"+e;var n=String(t),r=e+n;return d[r]||(d[r]="jsx-"+c(e+"-"+n)),d[r]}function f(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var n=e+t;return d[n]||(d[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[n]}var m=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,i=t.optimizeForSpeed,o=void 0!==i&&i;this._sheet=r||new u({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),r&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),r=n.styleId,i=n.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var o=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=o,this._instancesCounts[r]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],r=e[1];return o.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:r}}
1)})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,r=e.id;if(n){var i=h(r,n);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return f(i,e)}):[f(i,t)]}}return{styleId:h(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),p=i.createContext(null);p.displayName="StyleSheetContext";var g=o.default.useInsertionEffect||o.default.useLayoutEffect,v="undefined"!=typeof window?new m:void 0;function y(e){var t=v||i.useContext(p);return t&&("undefined"==typeof window?t.add(e):g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}y.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=y},80543:(e,t,n)=>{"use strict";n.r(t),n.d(t,{JsonEditor:()=>m});var r=n(95155),i=n(88661),o=n.n(i),s=n(12115),a=n(85778),u=n(16174),l=n(87813),c=n.n(l);let d=!1,h=null;async function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"json";if(!d){if(h)return void await h;h=(async()=>{try{let[{getHighlighter:r,loadLanguage:i},{shikiToMonaco:o}]=await Promise.all([Promise.all([n.e(8755),n.e(9169),n.e(9501)]).then(n.bind(n,99501)),Promise.all([n.e(8755),n.e(7676)]).then(n.bind(n,27676))]);"json"!==t&&"plaintext"!==t&&await i(t);let s=await r();("json"===t?["json","plaintext"]:["json",t,"plaintext"]).forEach(t=>{e.languages.register({id:t})}),o(s,e),d=!0}catch(e){console.error("Failed to initialize Shiki for Monaco:",e),h=null}})(),await h}}function m(e){let{value:t,onChange:n,readOnly:i=!1,height:l="500px",errorLine:c,className:h="",onDrop:m,language:g="json"}=e,{resolvedTheme:v}=(0,u.D)(),y=(0,s.useRef)(null),_=(0,s.useRef)(null),S=(0,s.useRef)(null),[b,k]=(0,s.useState)(d);(0,s.useEffect)(()=>{_.current&&!b&&f(_.current,g).then(()=>{k(!0)})},[b,g]);let j=(0,s.useCallback)(async(e,t)=>{y.current=e,_.current=t,await f(t,g),k(!0),null!=c&&C(e,c)},[c]),w=(0,s.useCallback)(e=>{null==n||n(e||"")},[n]),C=(0,s.useCallback)((e,t)=>{S.current&&S.current.clear(),S.current=e.createDecorationsCollection([{range:{startLineNumber:t,startColumn:1,endLineNumber:t,endColumn:1},options:{isWholeLine:!0,className:"error-line-highlight",linesDecorationsClassName:"error-line-gutter"}}])},[]);(0,s.useEffect)(()=>{y.current&&null!=c?C(y.current,c):S.current&&S.current.clear()},[c,C]);let x=(0,s.useCallback)(e=>{e.preventDefault();let t=e.dataTransfer.files[0];if(t&&("application/json"===t.type||t.name.endsWith(".json"))){let e=new FileReader;e.onload=e=>{var t;let n=null==(t=e.target)?void 0:t.result;null==m||m(n)},e.readAsText(t)}},[m]),R=(0,s.useCallback)(e=>{e.preventDefault()},[]);return(0,r.jsxs)("div",{onDrop:x,onDragOver:R,className:"jsx-65ac2d9515dc1ff "+"relative ".concat(h),children:[(0,r.jsx)(a.Ay,{height:l,language:g,value:t,onChange:w,onMount:j,theme:b?"dark"===v?"jsonlint-dark":"jsonlint-light":"dark"===v?"vs-dark":"light",options:{readOnly:i,minimap:{enabled:!1},fontSize:13,fontFamily:"JetBrains Mono, Fira Code, monospace",lineNumbers:"on",folding:!0,foldingHighlight:!0,bracketPairColorization:{enabled:!0},formatOnPaste:!1,formatOnType:!1,automaticLayout:!0,scrollBeyondLastLine:!1,wordWrap:"on",tabSize:2,renderLineHighlight:"none",renderLineHighlightOnlyWhenFocus:!1,cursorBlinking:"smooth",smoothScrolling:!0,padding:{top:8,bottom:8},lineNumbersMinChars:3,quickSuggestions:!1,suggestOnTriggerCharacters:!1,acceptSuggestionOnCommitCharacter:!1,wordBasedSuggestions:"off",unicodeHighlight:{ambiguousCharacters:!1,invisibleCharacters:!1}},beforeMount:e=>{e.editor.defineTheme("jsonlint-dark",{base:"vs-dark",inherit:!0,rules:[{token:"string.key.json",foreground:"10b981"},{token:"string.value.json",foreground:"3b82f6"},{token:"number",foreground:"f59e0b"},{token:"keyword",foreground:"8b5cf6"}],colors:{"editor.background":"#1a1d23","editor.lineHighlightBackgroun
1d":"#22262e","editorLineNumber.foreground":"#4b5563","editorLineNumber.activeForeground":"#9ca3af","editor.selectionBackground":"#3b82f640","editorGutter.background":"#1a1d23"}}),e.editor.defineTheme("jsonlint-light",{base:"vs",inherit:!0,rules:[{token:"string.key.json",foreground:"047857"},{token:"string.value.json",foreground:"2563eb"},{token:"number",foreground:"d97706"},{token:"keyword",foreground:"7c3aed"}],colors:{"editor.background":"#ffffff","editor.lineHighlightBackground":"#f8fafc","editorLineNumber.foreground":"#94a3b8","editorLineNumber.activeForeground":"#475569","editor.selectionBackground":"#3b82f630","editorGutter.background":"#f8fafc"}})}}),(0,r.jsx)(p,{text:t,className:"absolute top-1.5 right-1.5 opacity-60 hover:opacity-100"}),m&&(0,r.jsx)("div",{className:"jsx-65ac2d9515dc1ff absolute inset-0 pointer-events-none flex items-center justify-center opacity-0 hover:opacity-100 transition-opacity"}),(0,r.jsx)(o(),{id:"65ac2d9515dc1ff",children:".error-line-highlight{background-color:rgba(239,68,68,.2)!important}.error-line-gutter{background-color:#ef4444;width:4px!important;margin-left:3px}"})]})}function p(e){let{text:t,className:n}=e,[i,o]=(0,s.useState)(!1);return(0,r.jsx)("button",{onClick:()=>{c()(t),o(!0),setTimeout(()=>o(!1),2e3)},className:"btn-secondary p-2 z-10 ".concat(n),title:"Copy to clipboard",children:i?(0,r.jsx)(v,{className:"w-4 h-4 text-accent-green"}):(0,r.jsx)(g,{className:"w-4 h-4"})})}function g(e){let{className:t}=e;return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[(0,r.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,r.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}function v(e){let{className:t}=e;return(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:(0,r.jsx)("polyline",{points:"20 6 9 17 4 12"})})}},86340:()=>{},88661:(e,t,n)=>{"use strict";e.exports=n(45688).style}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.