import{L as r}from"./c6a992d55-AaM_e_RT.js";import{s as e,t as O,L as t,a as o,i as s,c as a,f as i,b as c}from"./cbd02b8f2-CSdsgpgM.js";import"./vendor-react-AXa6hZO5.js";import"./vendor-intl-BdADXLLt.js";import"./c5610fbe3-DjxUPk_m.js";import"./cdd5b9598-juLasKsB.js";import"./cec18ad9a-DiLjrOUd.js";import"./vendor-radix-glKlawmm.js";import"./vendor-zod-CMvj0_Fd.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-Dy3Nea9p.js";import"./vendor-lodash-BKAXkXVe.js";import"./vendor-motion-0BJMgYoH.js";import"./vendor-infra-CFC-WJ8N.js";import"./vendor-router-BSYVf8By.js";import"./vendor-query-D7SPXjZv.js";import"./vendor-growthbook-XJcBFzji.js";import"./index-C_tZnXTW.js";import"./c2591c98b-9UrrTnB9.js";import"./vendor-luxon-D0OkDiyb.js";import"./c51f8bc6d-BS9P5nN1.js";import"./tree-sitter-BFuuT2ac.js";import"./cc3d7c553-DQkOIOMP.js";import"./c50abf9b6-DzXr_SVm.js";import"./ce2de6171-DsDuBTPr.js";import"./c6eedc03a-5Yw_0dNp.js";import"./ca9c256b9-Bo3xKkdq.js";import"./cac48b28c-NF22wg1f.js";import"./c9a932a07-CTm7HcUx.js";import"./c042dfd41-BW55p_ob.js";import"./c2764ca9d-5rijQG1V.js";import"./c606eaf84-CNZBcau1.js";import"./c574ff469-BMz6-iZ1.js";import"./c9a932b3c-C_rzcYLJ.js";import"./c07cc694b-CWpiSYxy.js";import"./c8a5da52e-CYQbukLg.js";import"./c227fa54a-CP31E09L.js";import"./c050edc85-BlrP51J8.js";import"./c2f2d399f-CK6G7tXa.js";import"./ca44b2238-Bw97OVmZ.js";import"./cfe55e8af-4e7B8Mjd.js";import"./c9678f7a7-bMx2V5YC.js";import"./cadc35a07-9-73w7-B.js";import"./cc2e285cb-BCUJlhVA.js";const p=e({String:O.string,Number:O.number,"True False":O.bool,PropertyName:O.propertyName,Null:O.null,",":O.separator,"[ ]":O.squareBracket,"{ }":O.brace}),n=r.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[p],skippedNodes:[0],repeatNodeCount:2,tokenData:"(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]Oc~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOe~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOh~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOg~~&rO]~~&wO[~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOW~~(pOV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),m=()=>r=>{try{JSON.parse(r.state.doc.toString())}catch(e){if(!(e instanceof SyntaxError))throw e;const O=function(r,e){let O;return(O=r.message.match(/at position (\d+)/))?Math.min(+O[1],e.length):(O=r.message.match(/at line (\d+) column (\d+)/))?Math.min(e.line(+O[1]).from+ +O[2]-1,e.length):0}(e,r.state.doc);return[{from:O,message:e.message,severity:"error",to:O}]}return[]};const P=o.define({parser:n.configure({props:[s.add({Object:a({except:/^\s*\}/}),Array:a({except:/^\s*\]/})}),i.add({"Object Array":c})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function Q(){return new t(P)}export{Q as json,P as jsonLanguage,m as jsonParseLinter};
