UNPKG

json-editor-vue-v2

Version:

Vue and Nuxt 2/3 isomorphic JSON editor, viewer, formatter and validator.

19 lines 1.19 MB
(function(kr,Vu){typeof exports=="object"&&typeof module<"u"?module.exports=Vu(require("vue-demi")):typeof define=="function"&&define.amd?define(["vue-demi"],Vu):(kr=typeof globalThis<"u"?globalThis:kr||self,kr.JsonEditorVue=Vu(kr.vueDemi))})(this,function(kr){"use strict";const Vu=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,ON=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,EN=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function AN(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){$N(t);return}return e}function $N(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function Jf(t,e={}){if(typeof t!="string")return t;const n=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!EN.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(Vu.test(t)||ON.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,AN)}return JSON.parse(t)}catch(r){if(e.strict)throw r;return t}}function MN(t,e={}){return Jf(t,{...e,strict:!0})}var Wx=typeof global=="object"&&global&&global.Object===Object&&global,PN=typeof self=="object"&&self&&self.Object===Object&&self,Ui=Wx||PN||Function("return this")(),Ci=Ui.Symbol,Kx=Object.prototype,TN=Kx.hasOwnProperty,RN=Kx.toString,Hu=Ci?Ci.toStringTag:void 0;function NN(t){var e=TN.call(t,Hu),n=t[Hu];try{t[Hu]=void 0;var r=!0}catch{}var o=RN.call(t);return r&&(e?t[Hu]=n:delete t[Hu]),o}var DN=Object.prototype,IN=DN.toString;function zN(t){return IN.call(t)}var LN="[object Null]",BN="[object Undefined]",Jx=Ci?Ci.toStringTag:void 0;function mc(t){return t==null?t===void 0?BN:LN:Jx&&Jx in Object(t)?NN(t):zN(t)}function Aa(t){return t!=null&&typeof t=="object"}var FN="[object Symbol]";function _l(t){return typeof t=="symbol"||Aa(t)&&mc(t)==FN}function Wu(t,e){for(var n=-1,r=t==null?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}var Ro=Array.isArray,qN=1/0,Gx=Ci?Ci.prototype:void 0,Qx=Gx?Gx.toString:void 0;function Yx(t){if(typeof t=="string")return t;if(Ro(t))return Wu(t,Yx)+"";if(_l(t))return Qx?Qx.call(t):"";var e=t+"";return e=="0"&&1/t==-qN?"-0":e}var UN=/\s/;function VN(t){for(var e=t.length;e--&&UN.test(t.charAt(e)););return e}var HN=/^\s+/;function WN(t){return t&&t.slice(0,VN(t)+1).replace(HN,"")}function ys(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Xx=NaN,KN=/^[-+]0x[0-9a-f]+$/i,JN=/^0b[01]+$/i,GN=/^0o[0-7]+$/i,QN=parseInt;function qg(t){if(typeof t=="number")return t;if(_l(t))return Xx;if(ys(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=ys(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=WN(t);var n=JN.test(t);return n||GN.test(t)?QN(t.slice(2),n?2:8):KN.test(t)?Xx:+t}var Zx=1/0,YN=17976931348623157e292;function Gf(t){if(!t)return t===0?t:0;if(t=qg(t),t===Zx||t===-Zx){var e=t<0?-1:1;return e*YN}return t===t?t:0}function XN(t){var e=Gf(t),n=e%1;return e===e?n?e-n:e:0}function Ku(t){return t}var ZN="[object AsyncFunction]",eD="[object Function]",tD="[object GeneratorFunction]",nD="[object Proxy]";function ew(t){if(!ys(t))return!1;var e=mc(t);return e==eD||e==tD||e==ZN||e==nD}var Ug=Ui["__core-js_shared__"],tw=function(){var t=/[^.]+$/.exec(Ug&&Ug.keys&&Ug.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function rD(t){return!!tw&&tw in t}var oD=Function.prototype,iD=oD.toString;function jl(t){if(t!=null){try{return iD.call(t)}catch{}try{return t+""}catch{}}return""}var sD=/[\\^$.*+?()[\]{}|]/g,aD=/^\[object .+?Constructor\]$/,lD=Function.prototype,cD=Object.prototype,uD=lD.toString,dD=cD.hasOwnProperty,fD=RegExp("^"+uD.call(dD).replace(sD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hD(t){if(!ys(t)||rD(t))return!1;var e=ew(t)?fD:aD;return e.test(jl(t))}function pD(t,e){return t==null?void 0:t[e]}function kl(t,e){var n=pD(t,e);return hD(n)?n:void 0}var Vg=kl(Ui,"WeakMap"),nw=Object.create,mD=function(){function t(){}return function(e){if(!ys(e))return{};if(nw)return nw(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function gD(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Vr(){}function vD(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var bD=800,yD=16,xD=Date.now;function wD(t){var e=0,n=0;return function(){var r=xD(),o=yD-(r-n);if(n=r,o>0){if(++e>=bD)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function _D(t){return function(){return t}}var Qf=function(){try{var t=kl(Object,"defineProperty");return t({},"",{}),t}catch{}}(),jD=Qf?function(t,e){return Qf(t,"toString",{configurable:!0,enumerable:!1,value:_D(e),writable:!0})}:Ku,kD=wD(jD);function SD(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var CD=9007199254740991,OD=/^(?:0|[1-9]\d*)$/;function Hg(t,e){var n=typeof t;return e=e??CD,!!e&&(n=="number"||n!="symbol"&&OD.test(t))&&t>-1&&t%1==0&&t<e}function Yf(t,e,n){e=="__proto__"&&Qf?Qf(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Xf(t,e){return t===e||t!==t&&e!==e}var ED=Object.prototype,AD=ED.hasOwnProperty;function rw(t,e,n){var r=t[e];(!(AD.call(t,e)&&Xf(r,n))||n===void 0&&!(e in t))&&Yf(t,e,n)}function Zf(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var a=e[i],l=void 0;l===void 0&&(l=t[a]),o?Yf(n,a,l):rw(n,a,l)}return n}var ow=Math.max;function $D(t,e,n){return e=ow(e===void 0?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=ow(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(s),gD(t,this,a)}}function MD(t,e){return kD($D(t,e,Ku),t+"")}var PD=9007199254740991;function Wg(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=PD}function gc(t){return t!=null&&Wg(t.length)&&!ew(t)}function Kg(t,e,n){if(!ys(n))return!1;var r=typeof e;return(r=="number"?gc(n)&&Hg(e,n.length):r=="string"&&e in n)?Xf(n[e],t):!1}var TD=Object.prototype;function eh(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||TD;return t===n}function iw(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var RD="[object Arguments]";function sw(t){return Aa(t)&&mc(t)==RD}var aw=Object.prototype,ND=aw.hasOwnProperty,DD=aw.propertyIsEnumerable,th=sw(function(){return arguments}())?sw:function(t){return Aa(t)&&ND.call(t,"callee")&&!DD.call(t,"callee")};function ID(){return!1}var lw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,cw=lw&&typeof module=="object"&&module&&!module.nodeType&&module,zD=cw&&cw.exports===lw,uw=zD?Ui.Buffer:void 0,LD=uw?uw.isBuffer:void 0,Ju=LD||ID,BD="[object Arguments]",FD="[object Array]",qD="[object Boolean]",UD="[object Date]",VD="[object Error]",HD="[object Function]",WD="[object Map]",KD="[object Number]",JD="[object Object]",GD="[object RegExp]",QD="[object Set]",YD="[object String]",XD="[object WeakMap]",ZD="[object ArrayBuffer]",eI="[object DataView]",tI="[object Float32Array]",nI="[object Float64Array]",rI="[object Int8Array]",oI="[object Int16Array]",iI="[object Int32Array]",sI="[object Uint8Array]",aI="[object Uint8ClampedArray]",lI="[object Uint16Array]",cI="[object Uint32Array]",Sr={};Sr[tI]=Sr[nI]=Sr[rI]=Sr[oI]=Sr[iI]=Sr[sI]=Sr[aI]=Sr[lI]=Sr[cI]=!0,Sr[BD]=Sr[FD]=Sr[ZD]=Sr[qD]=Sr[eI]=Sr[UD]=Sr[VD]=Sr[HD]=Sr[WD]=Sr[KD]=Sr[JD]=Sr[GD]=Sr[QD]=Sr[YD]=Sr[XD]=!1;function uI(t){return Aa(t)&&Wg(t.length)&&!!Sr[mc(t)]}function nh(t){return function(e){return t(e)}}var dw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Gu=dw&&typeof module=="object"&&module&&!module.nodeType&&module,dI=Gu&&Gu.exports===dw,Jg=dI&&Wx.process,vc=function(){try{var t=Gu&&Gu.require&&Gu.require("util").types;return t||Jg&&Jg.binding&&Jg.binding("util")}catch{}}(),fw=vc&&vc.isTypedArray,Gg=fw?nh(fw):uI,fI=Object.prototype,hI=fI.hasOwnProperty;function hw(t,e){var n=Ro(t),r=!n&&th(t),o=!n&&!r&&Ju(t),i=!n&&!r&&!o&&Gg(t),s=n||r||o||i,a=s?iw(t.length,String):[],l=a.length;for(var u in t)(e||hI.call(t,u))&&!(s&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Hg(u,l)))&&a.push(u);return a}function pw(t,e){return function(n){return t(e(n))}}var pI=pw(Object.keys,Object),mI=Object.prototype,gI=mI.hasOwnProperty;function mw(t){if(!eh(t))return pI(t);var e=[];for(var n in Object(t))gI.call(t,n)&&n!="constructor"&&e.push(n);return e}function bc(t){return gc(t)?hw(t):mw(t)}function vI(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var bI=Object.prototype,yI=bI.hasOwnProperty;function xI(t){if(!ys(t))return vI(t);var e=eh(t),n=[];for(var r in t)r=="constructor"&&(e||!yI.call(t,r))||n.push(r);return n}function Qg(t){return gc(t)?hw(t,!0):xI(t)}var wI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_I=/^\w*$/;function Yg(t,e){if(Ro(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||_l(t)?!0:_I.test(t)||!wI.test(t)||e!=null&&t in Object(e)}var Qu=kl(Object,"create");function jI(){this.__data__=Qu?Qu(null):{},this.size=0}function kI(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var SI="__lodash_hash_undefined__",CI=Object.prototype,OI=CI.hasOwnProperty;function EI(t){var e=this.__data__;if(Qu){var n=e[t];return n===SI?void 0:n}return OI.call(e,t)?e[t]:void 0}var AI=Object.prototype,$I=AI.hasOwnProperty;function MI(t){var e=this.__data__;return Qu?e[t]!==void 0:$I.call(e,t)}var PI="__lodash_hash_undefined__";function TI(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Qu&&e===void 0?PI:e,this}function Sl(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Sl.prototype.clear=jI,Sl.prototype.delete=kI,Sl.prototype.get=EI,Sl.prototype.has=MI,Sl.prototype.set=TI;function RI(){this.__data__=[],this.size=0}function rh(t,e){for(var n=t.length;n--;)if(Xf(t[n][0],e))return n;return-1}var NI=Array.prototype,DI=NI.splice;function II(t){var e=this.__data__,n=rh(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():DI.call(e,n,1),--this.size,!0}function zI(t){var e=this.__data__,n=rh(e,t);return n<0?void 0:e[n][1]}function LI(t){return rh(this.__data__,t)>-1}function BI(t,e){var n=this.__data__,r=rh(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function ta(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ta.prototype.clear=RI,ta.prototype.delete=II,ta.prototype.get=zI,ta.prototype.has=LI,ta.prototype.set=BI;var Yu=kl(Ui,"Map");function FI(){this.size=0,this.__data__={hash:new Sl,map:new(Yu||ta),string:new Sl}}function qI(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function oh(t,e){var n=t.__data__;return qI(e)?n[typeof e=="string"?"string":"hash"]:n.map}function UI(t){var e=oh(this,t).delete(t);return this.size-=e?1:0,e}function VI(t){return oh(this,t).get(t)}function HI(t){return oh(this,t).has(t)}function WI(t,e){var n=oh(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function na(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}na.prototype.clear=FI,na.prototype.delete=UI,na.prototype.get=VI,na.prototype.has=HI,na.prototype.set=WI;var KI="Expected a function";function Xg(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(KI);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=t.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Xg.Cache||na),n}Xg.Cache=na;var JI=500;function GI(t){var e=Xg(t,function(r){return n.size===JI&&n.clear(),r}),n=e.cache;return e}var QI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,YI=/\\(\\)?/g,XI=GI(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(QI,function(n,r,o,i){e.push(o?i.replace(YI,"$1"):r||n)}),e});function gw(t){return t==null?"":Yx(t)}function vw(t,e){return Ro(t)?t:Yg(t,e)?[t]:XI(gw(t))}var ZI=1/0;function ih(t){if(typeof t=="string"||_l(t))return t;var e=t+"";return e=="0"&&1/t==-ZI?"-0":e}function Zg(t,e){e=vw(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[ih(e[n++])];return n&&n==r?t:void 0}function ez(t,e,n){var r=t==null?void 0:Zg(t,e);return r===void 0?n:r}function ev(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}var bw=Ci?Ci.isConcatSpreadable:void 0;function tz(t){return Ro(t)||th(t)||!!(bw&&t&&t[bw])}function nz(t,e,n,r,o){var i=-1,s=t.length;for(n||(n=tz),o||(o=[]);++i<s;){var a=t[i];n(a)?ev(o,a):o[o.length]=a}return o}var yw=pw(Object.getPrototypeOf,Object);function rz(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),n=n>o?o:n,n<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i}function oz(){this.__data__=new ta,this.size=0}function iz(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function sz(t){return this.__data__.get(t)}function az(t){return this.__data__.has(t)}var lz=200;function cz(t,e){var n=this.__data__;if(n instanceof ta){var r=n.__data__;if(!Yu||r.length<lz-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new na(r)}return n.set(t,e),this.size=n.size,this}function xs(t){var e=this.__data__=new ta(t);this.size=e.size}xs.prototype.clear=oz,xs.prototype.delete=iz,xs.prototype.get=sz,xs.prototype.has=az,xs.prototype.set=cz;function uz(t,e){return t&&Zf(e,bc(e),t)}function dz(t,e){return t&&Zf(e,Qg(e),t)}var xw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ww=xw&&typeof module=="object"&&module&&!module.nodeType&&module,fz=ww&&ww.exports===xw,_w=fz?Ui.Buffer:void 0,jw=_w?_w.allocUnsafe:void 0;function hz(t,e){if(e)return t.slice();var n=t.length,r=jw?jw(n):new t.constructor(n);return t.copy(r),r}function pz(t,e){for(var n=-1,r=t==null?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i}function kw(){return[]}var mz=Object.prototype,gz=mz.propertyIsEnumerable,Sw=Object.getOwnPropertySymbols,tv=Sw?function(t){return t==null?[]:(t=Object(t),pz(Sw(t),function(e){return gz.call(t,e)}))}:kw;function vz(t,e){return Zf(t,tv(t),e)}var bz=Object.getOwnPropertySymbols,Cw=bz?function(t){for(var e=[];t;)ev(e,tv(t)),t=yw(t);return e}:kw;function yz(t,e){return Zf(t,Cw(t),e)}function Ow(t,e,n){var r=e(t);return Ro(t)?r:ev(r,n(t))}function nv(t){return Ow(t,bc,tv)}function xz(t){return Ow(t,Qg,Cw)}var rv=kl(Ui,"DataView"),ov=kl(Ui,"Promise"),iv=kl(Ui,"Set"),Ew="[object Map]",wz="[object Object]",Aw="[object Promise]",$w="[object Set]",Mw="[object WeakMap]",Pw="[object DataView]",_z=jl(rv),jz=jl(Yu),kz=jl(ov),Sz=jl(iv),Cz=jl(Vg),Oi=mc;(rv&&Oi(new rv(new ArrayBuffer(1)))!=Pw||Yu&&Oi(new Yu)!=Ew||ov&&Oi(ov.resolve())!=Aw||iv&&Oi(new iv)!=$w||Vg&&Oi(new Vg)!=Mw)&&(Oi=function(t){var e=mc(t),n=e==wz?t.constructor:void 0,r=n?jl(n):"";if(r)switch(r){case _z:return Pw;case jz:return Ew;case kz:return Aw;case Sz:return $w;case Cz:return Mw}return e});var Oz=Object.prototype,Ez=Oz.hasOwnProperty;function Az(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&Ez.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var sh=Ui.Uint8Array;function sv(t){var e=new t.constructor(t.byteLength);return new sh(e).set(new sh(t)),e}function $z(t,e){var n=e?sv(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Mz=/\w*$/;function Pz(t){var e=new t.constructor(t.source,Mz.exec(t));return e.lastIndex=t.lastIndex,e}var Tw=Ci?Ci.prototype:void 0,Rw=Tw?Tw.valueOf:void 0;function Tz(t){return Rw?Object(Rw.call(t)):{}}function Rz(t,e){var n=e?sv(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Nz="[object Boolean]",Dz="[object Date]",Iz="[object Map]",zz="[object Number]",Lz="[object RegExp]",Bz="[object Set]",Fz="[object String]",qz="[object Symbol]",Uz="[object ArrayBuffer]",Vz="[object DataView]",Hz="[object Float32Array]",Wz="[object Float64Array]",Kz="[object Int8Array]",Jz="[object Int16Array]",Gz="[object Int32Array]",Qz="[object Uint8Array]",Yz="[object Uint8ClampedArray]",Xz="[object Uint16Array]",Zz="[object Uint32Array]";function eL(t,e,n){var r=t.constructor;switch(e){case Uz:return sv(t);case Nz:case Dz:return new r(+t);case Vz:return $z(t,n);case Hz:case Wz:case Kz:case Jz:case Gz:case Qz:case Yz:case Xz:case Zz:return Rz(t,n);case Iz:return new r;case zz:case Fz:return new r(t);case Lz:return Pz(t);case Bz:return new r;case qz:return Tz(t)}}function tL(t){return typeof t.constructor=="function"&&!eh(t)?mD(yw(t)):{}}var nL="[object Map]";function rL(t){return Aa(t)&&Oi(t)==nL}var Nw=vc&&vc.isMap,oL=Nw?nh(Nw):rL,iL="[object Set]";function sL(t){return Aa(t)&&Oi(t)==iL}var Dw=vc&&vc.isSet,aL=Dw?nh(Dw):sL,lL=1,cL=2,uL=4,Iw="[object Arguments]",dL="[object Array]",fL="[object Boolean]",hL="[object Date]",pL="[object Error]",zw="[object Function]",mL="[object GeneratorFunction]",gL="[object Map]",vL="[object Number]",Lw="[object Object]",bL="[object RegExp]",yL="[object Set]",xL="[object String]",wL="[object Symbol]",_L="[object WeakMap]",jL="[object ArrayBuffer]",kL="[object DataView]",SL="[object Float32Array]",CL="[object Float64Array]",OL="[object Int8Array]",EL="[object Int16Array]",AL="[object Int32Array]",$L="[object Uint8Array]",ML="[object Uint8ClampedArray]",PL="[object Uint16Array]",TL="[object Uint32Array]",vr={};vr[Iw]=vr[dL]=vr[jL]=vr[kL]=vr[fL]=vr[hL]=vr[SL]=vr[CL]=vr[OL]=vr[EL]=vr[AL]=vr[gL]=vr[vL]=vr[Lw]=vr[bL]=vr[yL]=vr[xL]=vr[wL]=vr[$L]=vr[ML]=vr[PL]=vr[TL]=!0,vr[pL]=vr[zw]=vr[_L]=!1;function Xu(t,e,n,r,o,i){var s,a=e&lL,l=e&cL,u=e&uL;if(n&&(s=o?n(t,r,o,i):n(t)),s!==void 0)return s;if(!ys(t))return t;var d=Ro(t);if(d){if(s=Az(t),!a)return vD(t,s)}else{var f=Oi(t),h=f==zw||f==mL;if(Ju(t))return hz(t,a);if(f==Lw||f==Iw||h&&!o){if(s=l||h?{}:tL(t),!a)return l?yz(t,dz(s,t)):vz(t,uz(s,t))}else{if(!vr[f])return o?t:{};s=eL(t,f,a)}}i||(i=new xs);var p=i.get(t);if(p)return p;i.set(t,s),aL(t)?t.forEach(function(v){s.add(Xu(v,e,n,v,t,i))}):oL(t)&&t.forEach(function(v,g){s.set(g,Xu(v,e,n,g,t,i))});var m=u?l?xz:nv:l?Qg:bc,b=d?void 0:m(t);return SD(b||t,function(v,g){b&&(g=v,v=t[g]),rw(s,g,Xu(v,e,n,g,t,i))}),s}var RL=1,NL=4;function av(t){return Xu(t,RL|NL)}var DL=1,IL=4;function zL(t,e){return e=typeof e=="function"?e:void 0,Xu(t,DL|IL,e)}var LL="__lodash_hash_undefined__";function BL(t){return this.__data__.set(t,LL),this}function FL(t){return this.__data__.has(t)}function ah(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new na;++e<n;)this.add(t[e])}ah.prototype.add=ah.prototype.push=BL,ah.prototype.has=FL;function qL(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function UL(t,e){return t.has(e)}var VL=1,HL=2;function Bw(t,e,n,r,o,i){var s=n&VL,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var f=-1,h=!0,p=n&HL?new ah:void 0;for(i.set(t,e),i.set(e,t);++f<a;){var m=t[f],b=e[f];if(r)var v=s?r(b,m,f,e,t,i):r(m,b,f,t,e,i);if(v!==void 0){if(v)continue;h=!1;break}if(p){if(!qL(e,function(g,y){if(!UL(p,y)&&(m===g||o(m,g,n,r,i)))return p.push(y)})){h=!1;break}}else if(!(m===b||o(m,b,n,r,i))){h=!1;break}}return i.delete(t),i.delete(e),h}function WL(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function KL(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var JL=1,GL=2,QL="[object Boolean]",YL="[object Date]",XL="[object Error]",ZL="[object Map]",e7="[object Number]",t7="[object RegExp]",n7="[object Set]",r7="[object String]",o7="[object Symbol]",i7="[object ArrayBuffer]",s7="[object DataView]",Fw=Ci?Ci.prototype:void 0,lv=Fw?Fw.valueOf:void 0;function a7(t,e,n,r,o,i,s){switch(n){case s7:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case i7:return!(t.byteLength!=e.byteLength||!i(new sh(t),new sh(e)));case QL:case YL:case e7:return Xf(+t,+e);case XL:return t.name==e.name&&t.message==e.message;case t7:case r7:return t==e+"";case ZL:var a=WL;case n7:var l=r&JL;if(a||(a=KL),t.size!=e.size&&!l)return!1;var u=s.get(t);if(u)return u==e;r|=GL,s.set(t,e);var d=Bw(a(t),a(e),r,o,i,s);return s.delete(t),d;case o7:if(lv)return lv.call(t)==lv.call(e)}return!1}var l7=1,c7=Object.prototype,u7=c7.hasOwnProperty;function d7(t,e,n,r,o,i){var s=n&l7,a=nv(t),l=a.length,u=nv(e),d=u.length;if(l!=d&&!s)return!1;for(var f=l;f--;){var h=a[f];if(!(s?h in e:u7.call(e,h)))return!1}var p=i.get(t),m=i.get(e);if(p&&m)return p==e&&m==t;var b=!0;i.set(t,e),i.set(e,t);for(var v=s;++f<l;){h=a[f];var g=t[h],y=e[h];if(r)var x=s?r(y,g,h,e,t,i):r(g,y,h,t,e,i);if(!(x===void 0?g===y||o(g,y,n,r,i):x)){b=!1;break}v||(v=h=="constructor")}if(b&&!v){var k=t.constructor,_=e.constructor;k!=_&&"constructor"in t&&"constructor"in e&&!(typeof k=="function"&&k instanceof k&&typeof _=="function"&&_ instanceof _)&&(b=!1)}return i.delete(t),i.delete(e),b}var f7=1,qw="[object Arguments]",Uw="[object Array]",lh="[object Object]",h7=Object.prototype,Vw=h7.hasOwnProperty;function p7(t,e,n,r,o,i){var s=Ro(t),a=Ro(e),l=s?Uw:Oi(t),u=a?Uw:Oi(e);l=l==qw?lh:l,u=u==qw?lh:u;var d=l==lh,f=u==lh,h=l==u;if(h&&Ju(t)){if(!Ju(e))return!1;s=!0,d=!1}if(h&&!d)return i||(i=new xs),s||Gg(t)?Bw(t,e,n,r,o,i):a7(t,e,l,n,r,o,i);if(!(n&f7)){var p=d&&Vw.call(t,"__wrapped__"),m=f&&Vw.call(e,"__wrapped__");if(p||m){var b=p?t.value():t,v=m?e.value():e;return i||(i=new xs),o(b,v,n,r,i)}}return h?(i||(i=new xs),d7(t,e,n,r,o,i)):!1}function ch(t,e,n,r,o){return t===e?!0:t==null||e==null||!Aa(t)&&!Aa(e)?t!==t&&e!==e:p7(t,e,n,r,ch,o)}var m7=1,g7=2;function v7(t,e,n,r){var o=n.length,i=o;if(t==null)return!i;for(t=Object(t);o--;){var s=n[o];if(s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++o<i;){s=n[o];var a=s[0],l=t[a],u=s[1];if(s[2]){if(l===void 0&&!(a in t))return!1}else{var d=new xs,f;if(!(f===void 0?ch(u,l,m7|g7,r,d):f))return!1}}return!0}function Hw(t){return t===t&&!ys(t)}function b7(t){for(var e=bc(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,Hw(o)]}return e}function Ww(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function y7(t){var e=b7(t);return e.length==1&&e[0][2]?Ww(e[0][0],e[0][1]):function(n){return n===t||v7(n,t,e)}}function x7(t,e){return t!=null&&e in Object(t)}function w7(t,e,n){e=vw(e,t);for(var r=-1,o=e.length,i=!1;++r<o;){var s=ih(e[r]);if(!(i=t!=null&&n(t,s)))break;t=t[s]}return i||++r!=o?i:(o=t==null?0:t.length,!!o&&Wg(o)&&Hg(s,o)&&(Ro(t)||th(t)))}function _7(t,e){return t!=null&&w7(t,e,x7)}var j7=1,k7=2;function S7(t,e){return Yg(t)&&Hw(e)?Ww(ih(t),e):function(n){var r=ez(n,t);return r===void 0&&r===e?_7(n,t):ch(e,r,j7|k7)}}function C7(t){return function(e){return e==null?void 0:e[t]}}function O7(t){return function(e){return Zg(e,t)}}function E7(t){return Yg(t)?C7(ih(t)):O7(t)}function Zu(t){return typeof t=="function"?t:t==null?Ku:typeof t=="object"?Ro(t)?S7(t[0],t[1]):y7(t):E7(t)}function A7(t,e,n,r){for(var o=-1,i=t==null?0:t.length;++o<i;){var s=t[o];e(r,s,n(s),t)}return r}function Kw(t){return function(e,n,r){for(var o=-1,i=Object(e),s=r(e),a=s.length;a--;){var l=s[t?a:++o];if(n(i[l],l,i)===!1)break}return e}}var $7=Kw();function Jw(t,e){return t&&$7(t,e,bc)}function Gw(t,e){return function(n,r){if(n==null)return n;if(!gc(n))return t(n,r);for(var o=n.length,i=e?o:-1,s=Object(n);(e?i--:++i<o)&&r(s[i],i,s)!==!1;);return n}}var Qw=Gw(Jw);function M7(t,e,n,r){return Qw(t,function(o,i,s){e(r,o,n(o),s)}),r}function Yw(t,e){return function(n,r){var o=Ro(n)?A7:M7,i=e?e():{};return o(n,t,Zu(r),i)}}var cv=function(){return Ui.Date.now()},P7="Expected a function",T7=Math.max,R7=Math.min;function ed(t,e,n){var r,o,i,s,a,l,u=0,d=!1,f=!1,h=!0;if(typeof t!="function")throw new TypeError(P7);e=qg(e)||0,ys(n)&&(d=!!n.leading,f="maxWait"in n,i=f?T7(qg(n.maxWait)||0,e):i,h="trailing"in n?!!n.trailing:h);function p(S){var E=r,P=o;return r=o=void 0,u=S,s=t.apply(P,E),s}function m(S){return u=S,a=setTimeout(g,e),d?p(S):s}function b(S){var E=S-l,P=S-u,C=e-E;return f?R7(C,i-P):C}function v(S){var E=S-l,P=S-u;return l===void 0||E>=e||E<0||f&&P>=i}function g(){var S=cv();if(v(S))return y(S);a=setTimeout(g,b(S))}function y(S){return a=void 0,h&&r?p(S):(r=o=void 0,s)}function x(){a!==void 0&&clearTimeout(a),u=0,r=l=o=a=void 0}function k(){return a===void 0?s:y(cv())}function _(){var S=cv(),E=v(S);if(r=arguments,o=this,l=S,E){if(a===void 0)return m(l);if(f)return clearTimeout(a),a=setTimeout(g,e),p(l)}return a===void 0&&(a=setTimeout(g,e)),s}return _.cancel=x,_.flush=k,_}function dn(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function Xw(t){return typeof t=="function"?t:Ku}function N7(t,e){for(var n=t==null?0:t.length;n--&&e(t[n],n,t)!==!1;);return t}var D7=Kw(!0);function I7(t,e){return t&&D7(t,e,bc)}var z7=Gw(I7,!0);function L7(t,e){var n=Ro(t)?N7:z7;return n(t,Xw(e))}function ra(t){return t&&t.length?t[0]:void 0}function Zw(t,e){var n=-1,r=gc(t)?Array(t.length):[];return Qw(t,function(o,i,s){r[++n]=e(o,i,s)}),r}function B7(t,e){var n=Ro(t)?Wu:Zw;return n(t,Zu(e))}var F7=Object.prototype,q7=F7.hasOwnProperty,U7=Yw(function(t,e,n){q7.call(t,n)?t[n].push(e):Yf(t,n,[e])});function On(t){var e=t==null?0:t.length;return e?rz(t,0,-1):[]}var V7="[object Map]",H7="[object Set]",W7=Object.prototype,K7=W7.hasOwnProperty;function Yn(t){if(t==null)return!0;if(gc(t)&&(Ro(t)||typeof t=="string"||typeof t.splice=="function"||Ju(t)||Gg(t)||th(t)))return!t.length;var e=Oi(t);if(e==V7||e==H7)return!t.size;if(eh(t))return!mw(t).length;for(var n in t)if(K7.call(t,n))return!1;return!0}function wn(t,e){return ch(t,e)}function J7(t,e){return t<e}function G7(t,e){var n={};return e=Zu(e),Jw(t,function(r,o,i){Yf(n,o,e(r,o,i))}),n}function Q7(t,e,n){for(var r=-1,o=t.length;++r<o;){var i=t[r],s=e(i);if(s!=null&&(a===void 0?s===s&&!_l(s):n(s,a)))var a=s,l=i}return l}function uh(t,e){return t&&t.length?Q7(t,Zu(e),J7):void 0}function Y7(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function X7(t,e){if(t!==e){var n=t!==void 0,r=t===null,o=t===t,i=_l(t),s=e!==void 0,a=e===null,l=e===e,u=_l(e);if(!a&&!u&&!i&&t>e||i&&s&&l&&!a&&!u||r&&s&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&t<e||u&&n&&o&&!r&&!i||a&&n&&o||!s&&o||!l)return-1}return 0}function Z7(t,e,n){for(var r=-1,o=t.criteria,i=e.criteria,s=o.length,a=n.length;++r<s;){var l=X7(o[r],i[r]);if(l){if(r>=a)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return t.index-e.index}function eB(t,e,n){e.length?e=Wu(e,function(i){return Ro(i)?function(s){return Zg(s,i.length===1?i[0]:i)}:i}):e=[Ku];var r=-1;e=Wu(e,nh(Zu));var o=Zw(t,function(i,s,a){var l=Wu(e,function(u){return u(i)});return{criteria:l,index:++r,value:i}});return Y7(o,function(i,s){return Z7(i,s,n)})}var tB=Yw(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),nB=Math.ceil,rB=Math.max;function oB(t,e,n,r){for(var o=-1,i=rB(nB((e-t)/(n||1)),0),s=Array(i);i--;)s[++o]=t,t+=n;return s}function iB(t){return function(e,n,r){return r&&typeof r!="number"&&Kg(e,n,r)&&(n=r=void 0),e=Gf(e),n===void 0?(n=e,e=0):n=Gf(n),r=r===void 0?e<n?1:-1:Gf(r),oB(e,n,r)}}var e_=iB(),sB=MD(function(t,e){if(t==null)return[];var n=e.length;return n>1&&Kg(t,e[0],e[1])?e=[]:n>2&&Kg(e[0],e[1],e[2])&&(e=[e[0]]),eB(t,nz(e),[])}),aB=9007199254740991,uv=4294967295,lB=Math.min;function cB(t,e){if(t=XN(t),t<1||t>aB)return[];var n=uv,r=lB(t,uv);e=Xw(e),t-=uv;for(var o=iw(r,e);++n<t;)e(n);return o}var uB=0;function yc(t){var e=++uB;return gw(t)+e}function Cr(t){return Array.isArray(t)}function Dr(t){return t!==null&&typeof t=="object"&&(t.constructor===void 0||t.constructor.name==="Object")}function t_(t){return t&&typeof t=="object"?t.op==="add":!1}function n_(t){return t&&typeof t=="object"?t.op==="remove":!1}function dv(t){return t&&typeof t=="object"?t.op==="replace":!1}function fv(t){return t&&typeof t=="object"?t.op==="copy":!1}function xc(t){return t&&typeof t=="object"?t.op==="move":!1}function dB(t,e){return JSON.stringify(t)===JSON.stringify(e)}function fB(t,e){return t===e}function r_(t){return t.slice(0,t.length-1)}function hB(t){return t[t.length-1]}function pB(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fB;if(t.length<e.length)return!1;for(let r=0;r<e.length;r++)if(!n(t[r],e[r]))return!1;return!0}function o_(t){return typeof t=="object"&&t!==null}function hv(t){if(Cr(t)){const e=t.slice();return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else if(Dr(t)){const e={...t};return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else return t}function pv(t,e,n){if(t[e]===n)return t;{const r=hv(t);return r[e]=n,r}}function rt(t,e){let n=t,r=0;for(;r<e.length;)Dr(n)?n=n[e[r]]:Cr(n)?n=n[parseInt(e[r])]:n=void 0,r++;return n}function ei(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e.length===0)return n;const o=e[0],i=ei(t?t[o]:void 0,e.slice(1),n,r);if(Dr(t)||Cr(t))return pv(t,o,i);if(r){const s=mB.test(o)?[]:{};return s[o]=i,s}else throw new Error("Path does not exist")}const mB=/^\d+$/;function mv(t,e,n){if(e.length===0)return n(t);if(!o_(t))throw new Error("Path doesn't exist");const r=e[0],o=mv(t[r],e.slice(1),n);return pv(t,r,o)}function dh(t,e){if(e.length===0)return t;if(!o_(t))throw new Error("Path does not exist");if(e.length===1){const o=e[0];if(o in t){const i=hv(t);return Cr(i)&&i.splice(parseInt(o),1),Dr(i)&&delete i[o],i}else return t}const n=e[0],r=dh(t[n],e.slice(1));return pv(t,n,r)}function gv(t,e,n){const r=e.slice(0,e.length-1),o=e[e.length-1];return mv(t,r,i=>{if(!Array.isArray(i))throw new TypeError("Array expected at path "+JSON.stringify(r));const s=hv(i);return s.splice(parseInt(o),0,n),s})}function Ei(t,e){return t===void 0?!1:e.length===0?!0:t===null?!1:Ei(t[e[0]],e.slice(1))}function Ai(t){const e=t.split("/");return e.shift(),e.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function jt(t){return t.map(i_).join("")}function i_(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function s_(t,e){return t+i_(e)}function Vi(t,e,n){let r=t;for(let o=0;o<e.length;o++){jB(e[o]);let i=e[o];if(n&&n.before){const l=n.before(r,i);if(l!==void 0){if(l.document!==void 0&&(r=l.document),l.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');l.operation!==void 0&&(i=l.operation)}}const s=r,a=Hi(r,i.path);if(i.op==="add")r=bB(r,a,i.value);else if(i.op==="remove")r=vB(r,a);else if(i.op==="replace")r=gB(r,a,i.value);else if(i.op==="copy")r=yB(r,a,vv(i.from));else if(i.op==="move")r=xB(r,a,vv(i.from));else if(i.op==="test")wB(r,a,i.value);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(i));if(n&&n.after){const l=n.after(r,i,s);l!==void 0&&(r=l)}}return r}function gB(t,e,n){return ei(t,e,n)}function vB(t,e){return dh(t,e)}function bB(t,e,n){return td(t,e)?gv(t,e,n):ei(t,e,n)}function yB(t,e,n){const r=rt(t,n);if(td(t,e))return gv(t,e,r);{const o=rt(t,n);return ei(t,e,o)}}function xB(t,e,n){const r=rt(t,n),o=dh(t,n);return td(o,e)?gv(o,e,r):ei(o,e,r)}function wB(t,e,n){if(n===void 0)throw new Error(`Test failed: no value provided (path: "${jt(e)}")`);if(!Ei(t,e))throw new Error(`Test failed: path not found (path: "${jt(e)}")`);const r=rt(t,e);if(!dB(r,n))throw new Error(`Test failed, value differs (path: "${jt(e)}")`)}function td(t,e){if(e.length===0)return!1;const n=rt(t,r_(e));return Array.isArray(n)}function _B(t,e){if(hB(e)!=="-")return e;const n=r_(e),r=rt(t,n);return n.concat(r.length)}function jB(t){if(!["add","remove","replace","copy","move","test"].includes(t.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(t.op));if(typeof t.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(t));if((t.op==="copy"||t.op==="move")&&typeof t.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(t))}function Hi(t,e){return _B(t,Ai(e))}function vv(t){return Ai(t)}function a_(t,e,n){let r=[];return Vi(t,e,{before:(i,s)=>{let a;const l=Hi(i,s.path);if(s.op==="add")a=u_(i,l);else if(s.op==="remove")a=c_(i,l);else if(s.op==="replace")a=l_(i,l);else if(s.op==="copy")a=kB(i,l);else if(s.op==="move")a=SB(i,l,vv(s.from));else if(s.op==="test")a=[];else throw new Error("Unknown JSONPatch operation "+JSON.stringify(s));let u;if(n&&n.before){const d=n.before(i,s,a);if(d&&d.revertOperations&&(a=d.revertOperations),d&&d.document&&(u=d.document),d&&d.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"')}if(r=a.concat(r),u!==void 0)return{document:u}}}),r}function l_(t,e){return[{op:"replace",path:jt(e),value:rt(t,e)}]}function c_(t,e){return[{op:"add",path:jt(e),value:rt(t,e)}]}function u_(t,e){return td(t,e)||!Ei(t,e)?[{op:"remove",path:jt(e)}]:l_(t,e)}function kB(t,e){return u_(t,e)}function SB(t,e,n){if(e.length<n.length&&pB(n,e))return[{op:"replace",path:jt(e),value:t}];const r={op:"move",from:jt(e),path:jt(n)};return!td(t,e)&&Ei(t,e)?[r,...c_(t,e)]:[r]}function CB(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fh={},d_={b:"\b",f:"\f",n:` `,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},OB=97;fh.parse=function(t,e,n){var r={},o=0,i=0,s=0,a=n&&n.bigint&&typeof BigInt<"u";return{data:l("",!0),pointers:r};function l(C,F){u();var ee;x(C,"value");var G=b();switch(G){case"t":m("rue"),ee=!0;break;case"f":m("alse"),ee=!1;break;case"n":m("ull"),ee=null;break;case'"':ee=d();break;case"[":ee=h(C);break;case"{":ee=p(C);break;default:v(),"-0123456789".indexOf(G)>=0?ee=f():S()}return x(C,"valueEnd"),u(),F&&s<t.length&&S(),ee}function u(){e:for(;s<t.length;){switch(t[s]){case" ":i++;break;case" ":i+=4;break;case"\r":i=0;break;case` `:i=0,o++;break;default:break e}s++}}function d(){for(var C="",F;F=b(),F!='"';)F=="\\"?(F=b(),F in d_?C+=d_[F]:F=="u"?C+=g():E()):C+=F;return C}function f(){var C="",F=!0;t[s]=="-"&&(C+=b()),C+=t[s]=="0"?b():y(),t[s]=="."&&(C+=b()+y(),F=!1),(t[s]=="e"||t[s]=="E")&&(C+=b(),(t[s]=="+"||t[s]=="-")&&(C+=b()),C+=y(),F=!1);var ee=+C;return a&&F&&(ee>Number.MAX_SAFE_INTEGER||ee<Number.MIN_SAFE_INTEGER)?BigInt(C):ee}function h(C){u();var F=[],ee=0;if(b()=="]")return F;for(v();;){var G=C+"/"+ee;F.push(l(G)),u();var Z=b();if(Z=="]")break;Z!=","&&E(),u(),ee++}return F}function p(C){u();var F={};if(b()=="}")return F;for(v();;){var ee=_();b()!='"'&&E();var G=d(),Z=C+"/"+bv(G);k(Z,"key",ee),x(Z,"keyEnd"),u(),b()!=":"&&E(),u(),F[G]=l(Z),u();var X=b();if(X=="}")break;X!=","&&E(),u()}return F}function m(C){for(var F=0;F<C.length;F++)b()!==C[F]&&E()}function b(){P();var C=t[s];return s++,i++,C}function v(){s--,i--}function g(){for(var C=4,F=0;C--;){F<<=4;var ee=b().toLowerCase();ee>="a"&&ee<="f"?F+=ee.charCodeAt()-OB+10:ee>="0"&&ee<="9"?F+=+ee:E()}return String.fromCharCode(F)}function y(){for(var C="";t[s]>="0"&&t[s]<="9";)C+=b();if(C.length)return C;P(),S()}function x(C,F){k(C,F,_())}function k(C,F,ee){r[C]=r[C]||{},r[C][F]=ee}function _(){return{line:o,column:i,pos:s}}function S(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function E(){v(),S()}function P(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}},fh.stringify=function(t,e,n){if(!hh(t))return;var r=0,o,i,s=typeof n=="object"?n.space:n;switch(typeof s){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&k(a," "),o=a,i=a;break;case"string":s=s.slice(0,10),o=0,i=0;for(var l=0;l<s.length;l++){var u=s[l];switch(u){case" ":i++;break;case" ":i+=4;break;case"\r":i=0;break;case` `:i=0,r++;break;default:throw new Error("whitespace characters not allowed in JSON")}o++}break;default:s=void 0}var d="",f={},h=0,p=0,m=0,b=n&&n.es6&&typeof Map=="function";return v(t,0,""),{json:d,pointers:f};function v(_,S,E){switch(x(E,"value"),typeof _){case"number":case"bigint":case"boolean":g(""+_);break;case"string":g(ph(_));break;case"object":_===null?g("null"):typeof _.toJSON=="function"?g(ph(_.toJSON())):Array.isArray(_)?P():b?_.constructor.BYTES_PER_ELEMENT?P():_ instanceof Map?F():_ instanceof Set?F(!0):C():C()}x(E,"valueEnd");function P(){if(_.length){g("[");for(var ee=S+1,G=0;G<_.length;G++){G&&g(","),y(ee);var Z=hh(_[G])?_[G]:null,X=E+"/"+G;v(Z,ee,X)}y(S),g("]")}else g("[]")}function C(){var ee=Object.keys(_);if(ee.length){g("{");for(var G=S+1,Z=0;Z<ee.length;Z++){var X=ee[Z],ue=_[X];if(hh(ue)){Z&&g(",");var te=E+"/"+bv(X);y(G),x(te,"key"),g(ph(X)),x(te,"keyEnd"),g(":"),s&&g(" "),v(ue,G,te)}}y(S),g("}")}else g("{}")}function F(ee){if(_.size){g("{");for(var G=S+1,Z=!0,X=_.entries(),ue=X.next();!ue.done;){var te=ue.value,ne=te[0],Ee=ee?!0:te[1];if(hh(Ee)){Z||g(","),Z=!1;var _e=E+"/"+bv(ne);y(G),x(_e,"key"),g(ph(ne)),x(_e,"keyEnd"),g(":"),s&&g(" "),v(Ee,G,_e)}ue=X.next()}y(S),g("}")}else g("{}")}}function g(_){p+=_.length,m+=_.length,d+=_}function y(_){if(s){for(d+=` `+k(_,s),h++,p=0;_--;)r?(h+=r,p=i):p+=i,m+=o;m+=1}}function x(_,S){f[_]=f[_]||{},f[_][S]={line:h,column:p,pos:m}}function k(_,S){return Array(_+1).join(S)}};var EB=["number","bigint","boolean","string","object"];function hh(t){return EB.indexOf(typeof t)>=0}var AB=/"|\\/g,$B=/[\b]/g,MB=/\f/g,PB=/\n/g,TB=/\r/g,RB=/\t/g;function ph(t){return t=t.replace(AB,"\\$&").replace(MB,"\\f").replace($B,"\\b").replace(PB,"\\n").replace(TB,"\\r").replace(RB,"\\t"),'"'+t+'"'}var NB=/~/g,DB=/\//g;function bv(t){return t.replace(NB,"~0").replace(DB,"~1")}class wc extends Error{constructor(e,n){super(`${e} at position ${n}`),this.position=n}}const mh=92,yv=47,IB=42,f_=123,gh=125,h_=91,vh=93,zB=41,LB=32,xv=10,p_=9,m_=13,BB=8,FB=12,bh=34,g_=43,v_=45,b_=39,y_=48,x_=57,Cl=44,yh=46,qB=58,UB=59,VB=65,HB=97,WB=69,KB=101,JB=70,GB=102,QB=160,YB=8192,XB=8202,ZB=8239,eF=8287,tF=12288,nF=8220,rF=8221,oF=8216,iF=8217,sF=96,aF=180;function lF(t){return t>=y_&&t<=x_||t>=VB&&t<=JB||t>=HB&&t<=GB}function Ol(t){return t>=y_&&t<=x_}function cF(t){return t>=32&&t<=1114111}function xh(t){return uF.test(t)}const uF=/^[,:[\]/{}()\n+]$/,dF=/^[,[\]/{}\n+]$/,fF=/^[a-zA-Z_$]$/,hF=/^[a-zA-Z_$0-9]$/;function w_(t){return dF.test(t)}function __(t){return pF.test(t)||t&&wh(t.charCodeAt(0))}const pF=/^[[{\w-]$/;function mF(t){return t===xv||t===m_||t===p_||t===BB||t===FB}function El(t){return t===LB||t===xv||t===p_||t===m_}function gF(t){return t===QB||t>=YB&&t<=XB||t===ZB||t===eF||t===tF}function wh(t){return j_(t)||wv(t)}function j_(t){return t===bh||t===nF||t===rF}function k_(t){return t===bh}function wv(t){return t===b_||t===oF||t===iF||t===sF||t===aF}function S_(t){return t===b_}function nd(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const r=t.lastIndexOf(e);return r!==-1?t.substring(0,r)+(n?"":t.substring(r+1)):t}function ws(t,e){let n=t.length;if(!El(t.charCodeAt(n-1)))return t+e;for(;El(t.charCodeAt(n-1));)n--;return t.substring(0,n)+e+t.substring(n)}function vF(t,e,n){return t.substring(0,e)+t.substring(e+n)}function bF(t){return/[,\n][ \t\r]*$/.test(t)}const yF={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},xF={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` `,r:"\r",t:" "};function _s(t){let e=0,n="";i()||G();const o=u(Cl);for(o&&s(),__(t[e])&&bF(n)?(o||(n=ws(n,",")),b()):o&&(n=nd(n,","));t.charCodeAt(e)===gh||t.charCodeAt(e)===vh;)e++,s();if(e>=t.length)return n;ee();function i(){s();const te=p()||m()||v()||y()||x()||_(!1)||S();return s(),te}function s(){const te=e;let ne=a();do ne=l(),ne&&(ne=a());while(ne);return e>te}function a(){let te="",ne;for(;(ne=El(t.charCodeAt(e)))||gF(t.charCodeAt(e));)ne?te+=t[e]:te+=" ",e++;return te.length>0?(n+=te,!0):!1}function l(){if(t.charCodeAt(e)===yv&&t.charCodeAt(e+1)===IB){for(;e<t.length&&!wF(t,e);)e++;return e+=2,!0}if(t.charCodeAt(e)===yv&&t.charCodeAt(e+1)===yv){for(;e<t.length&&t.charCodeAt(e)!==xv;)e++;return!0}return!1}function u(te){return t.charCodeAt(e)===te?(n+=t[e],e++,!0):!1}function d(te){return t.charCodeAt(e)===te?(e++,!0):!1}function f(){return d(mh)}function h(){return s(),t.charCodeAt(e)===yh&&t.charCodeAt(e+1)===yh&&t.charCodeAt(e+2)===yh?(e+=3,s(),d(Cl),!0):!1}function p(){if(t.charCodeAt(e)===f_){n+="{",e++,s(),d(Cl)&&s();let te=!0;for(;e<t.length&&t.charCodeAt(e)!==gh;){let ne;if(te?(ne=!0,te=!1):(ne=u(Cl),ne||(n=ws(n,",")),s()),h(),!(v()||_(!0))){t.charCodeAt(e)===gh||t.charCodeAt(e)===f_||t.charCodeAt(e)===vh||t.charCodeAt(e)===h_||t[e]===void 0?n=nd(n,","):Z();break}s();const _e=u(qB),K=e>=t.length;_e||(__(t[e])||K?n=ws(n,":"):X()),i()||(_e||K?n+="null":X())}return t.charCodeAt(e)===gh?(n+="}",e++):n=ws(n,"}"),!0}return!1}function m(){if(t.charCodeAt(e)===h_){n+="[",e++,s(),d(Cl)&&s();let te=!0;for(;e<t.length&&t.charCodeAt(e)!==vh;)if(te?te=!1:u(Cl)||(n=ws(n,",")),h(),!i()){n=nd(n,",");break}return t.charCodeAt(e)===vh?(n+="]",e++):n=ws(n,"]"),!0}return!1}function b(){let te=!0,ne=!0;for(;ne;)te?te=!1:u(Cl)||(n=ws(n,",")),ne=i();ne||(n=nd(n,",")),n=`[ ${n} ]`}function v(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ne=t.charCodeAt(e)===mh;if(ne&&(e++,ne=!0),wh(t.charCodeAt(e))){const Ee=k_(t.charCodeAt(e))?k_:S_(t.charCodeAt(e))?S_:wv(t.charCodeAt(e))?wv:j_,_e=e,K=n.length;let R='"';for(e++;;){if(e>=t.length){const J=E(e-1);return!te&&xh(t.charAt(J))?(e=_e,n=n.substring(0,K),v(!0)):(R=ws(R,'"'),n+=R,!0)}else if(Ee(t.charCodeAt(e))){const J=e,U=R.length;if(R+='"',e++,n+=R,s(),te||e>=t.length||xh(t.charAt(e))||wh(t.charCodeAt(e))||Ol(t.charCodeAt(e)))return g(),!0;if(xh(t.charAt(E(J-1))))return e=_e,n=n.substring(0,K),v(!0);n=n.substring(0,K),e=J+1,R=`${R.substring(0,U)}\\${R.substring(U)}`}else{if(te&&w_(t[e]))return R=ws(R,'"'),n+=R,g(),!0;if(t.charCodeAt(e)===mh){const J=t.charAt(e+1);if(xF[J]!==void 0)R+=t.slice(e,e+2),e+=2;else if(J==="u"){let A=2;for(;A<6&&lF(t.charCodeAt(e+A));)A++;A===6?(R+=t.slice(e,e+6),e+=6):e+A>=t.length?e=t.length:ue()}else R+=J,e+=2}else{const J=t.charAt(e),U=t.charCodeAt(e);U===bh&&t.charCodeAt(e-1)!==mh?(R+=`\\${J}`,e++):mF(U)?(R+=yF[J],e++):(cF(U)||F(J),R+=J,e++)}}ne&&f()}}return!1}function g(){let te=!1;for(s();t.charCodeAt(e)===g_;){te=!0,e++,s(),n=nd(n,'"',!0);const ne=n.length;v()?n=vF(n,ne,1):n=ws(n,'"')}return te}function y(){const te=e;if(t.charCodeAt(e)===v_){if(e++,P())return C(te),!0;if(!Ol(t.charCodeAt(e)))return e=te,!1}for(;Ol(t.charCodeAt(e));)e++;if(t.charCodeAt(e)===yh){if(e++,P())return C(te),!0;if(!Ol(t.charCodeAt(e)))return e=te,!1;for(;Ol(t.charCodeAt(e));)e++}if(t.charCodeAt(e)===KB||t.charCodeAt(e)===WB){if(e++,(t.charCodeAt(e)===v_||t.charCodeAt(e)===g_)&&e++,P())return C(te),!0;if(!Ol(t.charCodeAt(e)))return e=te,!1;for(;Ol(t.charCodeAt(e));)e++}if(!P())return e=te,!1;if(e>te){const ne=t.slice(te,e),Ee=/^0\d/.test(ne);return n+=Ee?`"${ne}"`:ne,!0}return!1}function x(){return k("true","true")||k("false","false")||k("null","null")||k("True","true")||k("False","false")||k("None","null")}function k(te,ne){return t.slice(e,e+te.length)===te?(n+=ne,e+=te.length,!0):!1}function _(te){const ne=e;if(fF.test(t[e])){for(;e<t.length&&hF.test(t[e]);)e++;let Ee=e;for(;El(t.charCodeAt(Ee));)Ee++;if(t[Ee]==="(")return e=Ee+1,i(),t.charCodeAt(e)===zB&&(e++,t.charCodeAt(e)===UB&&e++),!0}for(;e<t.length&&!w_(t[e])&&!wh(t.charCodeAt(e))&&(!te||t[e]!==":");)e++;if(e>ne){for(;El(t.charCodeAt(e-1))&&e>0;)e--;const Ee=t.slice(ne,e);return n+=Ee==="undefined"?"null":JSON.stringify(Ee),t.charCodeAt(e)===bh&&e++,!0}}function S(){if(t[e]==="/"){const te=e;for(e++;e<t.length&&(t[e]!=="/"||t[e-1]==="\\");)e++;return e++,n+=`"${t.substring(te,e)}"`,!0}}function E(te){let ne=te;for(;ne>0&&El(t.charCodeAt(ne));)ne--;return ne}function P(){return e>=t.length||xh(t[e])||El(t.charCodeAt(e))}function C(te){n+=`${t.slice(te,e)}0`}function F(te){throw new wc(`Invalid character ${JSON.stringify(te)}`,e)}function ee(){throw new wc(`Unexpected character ${JSON.stringify(t[e])}`,e)}function G(){throw new wc("Unexpected end of json string",t.length)}function Z(){throw new wc("Object key expected",e)}function X(){throw new wc("Colon expected",e)}function ue(){const te=t.slice(e,e+6);throw new wc(`Invalid unicode character "${te}"`,e)}}function wF(t,e){return t[e]==="*"&&t[e+1]==="/"}const _v=t=>Array.isArray(t),_F=t=>typeof t=="string";function fo(t){return(...e)=>{const n=e.map(i=>ui(i)),r=n[0],o=n[1];return n.length===1?i=>t(r(i)):n.length===2?i=>t(r(i),o(i)):i=>t(...n.map(s=>s(i)))}}const _c={pipe:(...t)=>{const e=t.map(n=>ui(n));return n=>e.reduce((r,o)=>o(r),n)},object:t=>{const e=Object.keys(t).map(n=>[n,ui(t[n])]);return n=>{const r={};for(const[o,i]of e)r[o]=i(n);return r}},array:(...t)=>{const e=t.map(n=>ui(n));return n=>e.map(r=>r(n))},get:(...t)=>{if(t.length===0)return e=>e;if(t.length===1){const e=t[0];return n=>n==null?void 0:n[e]}return e=>{let n=e;for(const r of t)n=n==null?void 0:n[r];return n}},map:t=>{const e=ui(t);return n=>n.map(e)},filter:t=>{const e=ui(t);return n=>n.filter(e)},sort:(t=["get"],e)=>{const n=ui(t),r=e==="desc"?-1:1;function o(i,s){const a=n(i),l=n(s);return a>l?r:a<l?-r:0}return i=>i.slice().sort(o)},pick:(...t)=>{const e=t.map(([r,...o])=>[o[o.length-1],_c.get(...o)]),n=(r,o)=>{const i={};for(const[s,a]of o)i[s]=a(r);return i};return r=>_v(r)?r.map(o=>n(o,e)):n(r,e)},groupBy:t=>{const e=ui(t);return n=>{const r={};for(const o of n){const i=e(o);r[i]?r[i].push(o):r[i]=[o]}return r}},keyBy:t=>{const e=ui(t);return n=>{const r={};for(const o of n){const i=e(o);r[i]=r[i]??o}return r}},flatten:()=>t=>t.flat(),uniq:()=>t=>[...new Set(t)],uniqBy:t=>e=>Object.values(_c.groupBy(t)(e)).map(n=>n[0]),limit:t=>e=>e.slice(0,t),size:()=>t=>t.length,keys:()=>Object.keys,values:()=>Object.values,prod:()=>t=>t.reduce((e,n)=>e*n),sum:()=>t=>t.reduce((e,n)=>e+n),average:()=>t=>_c.sum()(t)/t.length,min:()=>t=>Math.min(...t),max:()=>t=>Math.max(...t),in:(t,e)=>{const n=ui(t),r=ui(e);return o=>r(o).includes(n(o))},"not in":(t,e)=>{const n=_c.in(t,e);return r=>!n(r)},regex:(t,e,n)=>{const r=new RegExp(e,n),o=ui(t);return i=>r.test(o(i))},and:fo((t,e)=>t&&e),or:fo((t,e)=>t||e),not:fo(t=>!t),exists:fo(t=>t!==void 0),eq:fo((t,e)=>t===e),gt:fo((t,e)=>t>e),gte:fo((t,e)=>t>=e),lt:fo((t,e)=>t<e),lte:fo((t,e)=>t<=e),ne:fo((t,e)=>t!==e),add:fo((t,e)=>t+e),subtract:fo((t,e)=>t-e),multiply:fo((t,e)=>t*e),divide:fo((t,e)=>t/e),pow:fo((t,e)=>t**e),mod:fo((t,e)=>t%e),abs:fo(Math.abs),round:fo((t,e=0)=>+`${Math.round(+`${t}e${e}`)}e${-e}`)},_h=[];function ui(t,e){_h.unshift({..._c,..._h[0]});try{const n=_v(t)?jF(t,_h[0]):()=>t;return r=>{try{return n(r)}catch(o){throw o.jsonquery=[{data:r,query:t},...o.jsonquery??[]],o}}}finally{_h.shift()}}function jF(t,e){const[n,...r]=t,o=e[n];if(!o)throw new Error(`Unknown function '${n}'`);return o(...r)}const C_={and:"and",or:"or",eq:"==",gt:">",gte:">=",lt:"<",lte:"<=",ne:"!=",add:"+",subtract:"-",multiply:"*",divide:"/",pow:"^",mod:"%",in:"in","not in":"not in"},kF=/^[a-zA-Z_$][a-zA-Z\d_$]*$/,SF=/^[a-zA-Z_$][a-zA-Z\d_$]*/,CF=/^"(?:[^"\\]|\\.)*"/,OF=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,EF=/^(0|[1-9][0-9]*)/,AF=/^(true|false|null)/,$F=/^[ \n\t\r]+/;function O_(t,e){const n=()=>{v();const _=r();if(v(),t[x]==="|"){const S=[_];for(;t[x]==="|";)x++,v(),S.push(r());return["pipe",...S]}return _},r=()=>{const _={...C_},S=o();v();for(const E of Object.keys(_).sort((P,C)=>C.length-P.length)){const P=_[E];if(t.substring(x,x+P.length)===P){x+=P.length,v();const C=o();return[E,S,C]}}return S},o=()=>{if(t[x]==="("){x++;const _=n();return g(")"),_}return i()},i=()=>{const _=[];if(t[x]==="."){for(;t[x]===".";)x++,_.push(u()??d()??h()??y("Property expected"));return["get",..._]}return s()},s=()=>{const _=x,S=d();if(v(),!S||t[x]!=="(")return x=_,a();x++,!_c[S]&&y(`Unknown function '${S}'`),v();const E=t[x]!==")"?[n()]:[];for(;x<t.length&&t[x]!==")";)v(),g(","),E.push(n());return g(")"),[S,...E]},a=()=>{if(t[x]==="{"){x++,v();const _={};let S=!0;for(;x<t.length&&t[x]!=="}";){S?S=!1:(g(","),v());const E=u()??d()??h()??y("Key expected");v(),g(":"),_[E]=n()}return g("}"),["object",_]}return l()},l=()=>{if(t[x]==="["){x++,v();const _=[];let S=!0;for(;x<t.length&&t[x]!=="]";)S?S=!1:(g(","),v()),_.push(n());return g("]"),["array",..._]}return u()??f()??p()},u=()=>b(CF,JSON.parse),d=()=>b(SF,_=>_),f=()=>b(OF,JSON.parse),h=()=>b(EF,JSON.parse),p=()=>{const _=b(AF,JSON.parse);if(_!==void 0)return _;y("Value expected")},m=()=>{v(),x<t.length&&y(`Unexpected part '${t.substring(x)}'`)},b=(_,S)=>{const E=t.substring(x).match(_);if(E)return x+=E[0].length,S(E[0])},v=()=>b($F,_=>_),g=_=>{t[x]!==_&&y(`Character '${_}' expected`),x++},y=(_,S=x)=>{throw new SyntaxError(`${_} (pos: ${S})`)};let x=0;const k=n();return m(),k}const MF=40,PF=" ",TF=(t,e)=>{const n=PF,r=(u,d)=>_v(u)?o(u,d):JSON.stringify(u),o=(u,d)=>{var f;const[h,...p]=u;if(h==="get"&&p.length>0)return s(p);if(h==="pipe"){const g=p.map(y=>r(y,d+n));return l(g,[""," | ",""],["",` ${d+n}| `,""])}if(h==="object")return i(p[0],d);if(h==="array"){const g=p.map(y=>r(y,d));return l(g,["[",", ","]"],[`[ ${d+n}`,`, ${d+n}`,` ${d}]`])}const m=((f=void 0)==null?void 0:f[h])??C_[h];if(m&&p.length===2){const[g,y]=p,x=r(g,d),k=r(y,d);return`(${x} ${m} ${k})`}const b=p.length===1?d:d+n,v=p.map(g=>r(g,b));return p.length===1&&v[0][0]==="("?`${h}${v}`:l(v,[`${h}(`,", ",")"],p.length===1?[`${h}(`,`, ${d}`,")"]:[`${h}( ${b}`,`, ${b}`,` ${d})`])},i=(u,d)=>{const f=d+n,h=Object.entries(u).map(([p,m])=>`${a(p)}: ${r(m,f)}`);return l(h,["{ ",", "," }"],[`{ ${f}`,`, ${f}`,` ${d}}`])},s=u=>u.map(d=>`.${a(d)}`).join(""),a=u=>kF.test(u)?u:JSON.stringify(u),l=(u,[d,f,h],[p,m,b])=>d.length+u.reduce((v,g)=>v+g.length+f.length,0)-f.length+h.length<=MF?d+u.join(f)+h:p+u.join(m)+b;return r(t,"")};function RF(t,e,n){return ui(_F(e)?O_(e):e)(t)}const NF={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M297.2 248.9